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 DeleteBucketMetricsConfigurationRequest private constructor(builder: Builder) {
|
9 9 | /**
|
10 10 | * The name of the bucket containing the metrics configuration to delete.
|
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 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).
|
17 + | *
|
18 + | * 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`.
|
15 19 | */
|
16 20 | public val expectedBucketOwner: kotlin.String? = builder.expectedBucketOwner
|
17 21 | /**
|
18 22 | * The ID used to identify the metrics configuration. The ID has a 64 character limit and can only contain letters, numbers, periods, dashes, and underscores.
|
19 23 | */
|
20 24 | public val id: kotlin.String? = builder.id
|
21 25 |
|
22 26 | public companion object {
|
23 27 | public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3.model.DeleteBucketMetricsConfigurationRequest = Builder().apply(block).build()
|
24 28 | }
|
25 29 |
|
26 30 | override fun toString(): kotlin.String = buildString {
|
27 31 | append("DeleteBucketMetricsConfigurationRequest(")
|
28 32 | append("bucket=$bucket,")
|
29 33 | append("expectedBucketOwner=$expectedBucketOwner,")
|
30 34 | append("id=$id")
|
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.expectedBucketOwner?.hashCode() ?: 0)
|
37 41 | result = 31 * result + (this.id?.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 DeleteBucketMetricsConfigurationRequest
|
46 50 |
|
47 51 | if (bucket != other.bucket) return false
|
48 52 | if (expectedBucketOwner != other.expectedBucketOwner) return false
|
49 53 | if (id != other.id) 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.DeleteBucketMetricsConfigurationRequest = 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 configuration to delete.
|
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 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).
|
70 + | *
|
71 + | * 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`.
|
64 72 | */
|
65 73 | public var expectedBucketOwner: kotlin.String? = null
|
66 74 | /**
|
67 75 | * The ID used to identify the metrics configuration. The ID has a 64 character limit and can only contain letters, numbers, periods, dashes, and underscores.
|
68 76 | */
|
69 77 | public var id: kotlin.String? = null
|
70 78 |
|
71 79 | @PublishedApi
|
72 80 | internal constructor()
|
73 81 | @PublishedApi
|