1 1 | // Code generated by smithy-kotlin codegen. DO NOT EDIT!
|
2 2 |
|
3 3 | package aws.sdk.kotlin.services.s3.model
|
4 4 |
|
5 5 | import aws.smithy.kotlin.runtime.SdkDsl
|
6 6 |
|
7 7 |
|
8 8 | public class ListBucketMetricsConfigurationsRequest private constructor(builder: Builder) {
|
9 9 | /**
|
10 10 | * The name of the bucket containing the metrics configurations to retrieve.
|
11 + | *
|
12 + | * **Directory buckets ** - When you use this operation with a directory bucket, you must use path-style requests in the format `https://s3express-control.<i>region-code</i>.amazonaws.com/<i>bucket-name</i> `. Virtual-hosted-style requests aren't supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names must also follow the format ` <i>bucket-base-name</i>--<i>zone-id</i>--x-s3` (for example, ` <i>DOC-EXAMPLE-BUCKET</i>--<i>usw2-az1</i>--x-s3`). For information about bucket naming restrictions, see [Directory bucket naming rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) in the *Amazon S3 User Guide*
|
11 13 | */
|
12 14 | public val bucket: kotlin.String? = builder.bucket
|
13 15 | /**
|
14 16 | * The marker that is used to continue a metrics configuration listing that has been truncated. Use the `NextContinuationToken` from a previously truncated list response to continue the listing. The continuation token is an opaque value that Amazon S3 understands.
|
15 17 | */
|
16 18 | public val continuationToken: kotlin.String? = builder.continuationToken
|
17 19 | /**
|
18 20 | * The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code `403 Forbidden` (access denied).
|
21 + | *
|
22 + | * For directory buckets, this header is not supported in this API operation. If you specify this header, the request fails with the HTTP status code `501 Not Implemented`.
|
19 23 | */
|
20 24 | public val expectedBucketOwner: kotlin.String? = builder.expectedBucketOwner
|
21 25 |
|
22 26 | public companion object {
|
23 27 | public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3.model.ListBucketMetricsConfigurationsRequest = Builder().apply(block).build()
|
24 28 | }
|
25 29 |
|
26 30 | override fun toString(): kotlin.String = buildString {
|
27 31 | append("ListBucketMetricsConfigurationsRequest(")
|
28 32 | append("bucket=$bucket,")
|
29 33 | append("continuationToken=$continuationToken,")
|
30 34 | append("expectedBucketOwner=$expectedBucketOwner")
|
31 35 | append(")")
|
32 36 | }
|
33 37 |
|
34 38 | override fun hashCode(): kotlin.Int {
|
35 39 | var result = bucket?.hashCode() ?: 0
|
36 40 | result = 31 * result + (this.continuationToken?.hashCode() ?: 0)
|
37 41 | result = 31 * result + (this.expectedBucketOwner?.hashCode() ?: 0)
|
38 42 | return result
|
39 43 | }
|
40 44 |
|
41 45 | override fun equals(other: kotlin.Any?): kotlin.Boolean {
|
42 46 | if (this === other) return true
|
43 47 | if (other == null || this::class != other::class) return false
|
44 48 |
|
45 49 | other as ListBucketMetricsConfigurationsRequest
|
46 50 |
|
47 51 | if (bucket != other.bucket) return false
|
48 52 | if (continuationToken != other.continuationToken) return false
|
49 53 | if (expectedBucketOwner != other.expectedBucketOwner) return false
|
50 54 |
|
51 55 | return true
|
52 56 | }
|
53 57 |
|
54 58 | public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3.model.ListBucketMetricsConfigurationsRequest = Builder(this).apply(block).build()
|
55 59 |
|
56 60 | @SdkDsl
|
57 61 | public class Builder {
|
58 62 | /**
|
59 63 | * The name of the bucket containing the metrics configurations to retrieve.
|
64 + | *
|
65 + | * **Directory buckets ** - When you use this operation with a directory bucket, you must use path-style requests in the format `https://s3express-control.<i>region-code</i>.amazonaws.com/<i>bucket-name</i> `. Virtual-hosted-style requests aren't supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names must also follow the format ` <i>bucket-base-name</i>--<i>zone-id</i>--x-s3` (for example, ` <i>DOC-EXAMPLE-BUCKET</i>--<i>usw2-az1</i>--x-s3`). For information about bucket naming restrictions, see [Directory bucket naming rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) in the *Amazon S3 User Guide*
|
60 66 | */
|
61 67 | public var bucket: kotlin.String? = null
|
62 68 | /**
|
63 69 | * The marker that is used to continue a metrics configuration listing that has been truncated. Use the `NextContinuationToken` from a previously truncated list response to continue the listing. The continuation token is an opaque value that Amazon S3 understands.
|
64 70 | */
|
65 71 | public var continuationToken: kotlin.String? = null
|
66 72 | /**
|
67 73 | * The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code `403 Forbidden` (access denied).
|
74 + | *
|
75 + | * For directory buckets, this header is not supported in this API operation. If you specify this header, the request fails with the HTTP status code `501 Not Implemented`.
|
68 76 | */
|
69 77 | public var expectedBucketOwner: kotlin.String? = null
|
70 78 |
|
71 79 | @PublishedApi
|
72 80 | internal constructor()
|
73 81 | @PublishedApi
|
74 82 | internal constructor(x: aws.sdk.kotlin.services.s3.model.ListBucketMetricsConfigurationsRequest) : this() {
|
75 83 | this.bucket = x.bucket
|
76 84 | this.continuationToken = x.continuationToken
|
77 85 | this.expectedBucketOwner = x.expectedBucketOwner
|