
commonMain.aws.sdk.kotlin.services.s3.model.GetBucketLocationResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.s3.model
public class GetBucketLocationResponse private constructor(builder: Builder) {
/**
* Specifies the Region where the bucket resides. For a list of all the Amazon S3 supported location constraints by Region, see [Regions and Endpoints](https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region). Buckets in Region `us-east-1` have a LocationConstraint of `null`.
*/
public val locationConstraint: aws.sdk.kotlin.services.s3.model.BucketLocationConstraint? = builder.locationConstraint
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3.model.GetBucketLocationResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetBucketLocationResponse(")
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 GetBucketLocationResponse
if (locationConstraint != other.locationConstraint) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3.model.GetBucketLocationResponse = Builder(this).apply(block).build()
public class Builder {
/**
* Specifies the Region where the bucket resides. For a list of all the Amazon S3 supported location constraints by Region, see [Regions and Endpoints](https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region). Buckets in Region `us-east-1` have a LocationConstraint of `null`.
*/
public var locationConstraint: aws.sdk.kotlin.services.s3.model.BucketLocationConstraint? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.s3.model.GetBucketLocationResponse) : this() {
this.locationConstraint = x.locationConstraint
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.s3.model.GetBucketLocationResponse = GetBucketLocationResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy