
commonMain.aws.sdk.kotlin.services.s3control.model.CreateBucketConfiguration.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.s3control.model
/**
* The container for the bucket configuration.
*
* This is not supported by Amazon S3 on Outposts buckets.
*/
public class CreateBucketConfiguration private constructor(builder: Builder) {
/**
* Specifies the Region where the bucket will be created. If you are creating a bucket on the US East (N. Virginia) Region (us-east-1), you do not need to specify the location.
*
* This is not supported by Amazon S3 on Outposts buckets.
*/
public val locationConstraint: aws.sdk.kotlin.services.s3control.model.BucketLocationConstraint? = builder.locationConstraint
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3control.model.CreateBucketConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateBucketConfiguration(")
append("locationConstraint=$locationConstraint")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = locationConstraint?.hashCode() ?: 0
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as CreateBucketConfiguration
if (locationConstraint != other.locationConstraint) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3control.model.CreateBucketConfiguration = Builder(this).apply(block).build()
public class Builder {
/**
* Specifies the Region where the bucket will be created. If you are creating a bucket on the US East (N. Virginia) Region (us-east-1), you do not need to specify the location.
*
* This is not supported by Amazon S3 on Outposts buckets.
*/
public var locationConstraint: aws.sdk.kotlin.services.s3control.model.BucketLocationConstraint? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.s3control.model.CreateBucketConfiguration) : this() {
this.locationConstraint = x.locationConstraint
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.s3control.model.CreateBucketConfiguration = CreateBucketConfiguration(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy