
commonMain.aws.sdk.kotlin.services.s3control.model.RegionReport.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.s3control.model
/**
* A combination of a bucket and Region that's part of a Multi-Region Access Point.
*/
public class RegionReport private constructor(builder: Builder) {
/**
* The name of the bucket.
*/
public val bucket: kotlin.String? = builder.bucket
/**
* The Amazon Web Services account ID that owns the Amazon S3 bucket that's associated with this Multi-Region Access Point.
*/
public val bucketAccountId: kotlin.String? = builder.bucketAccountId
/**
* The name of the Region.
*/
public val region: kotlin.String? = builder.region
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3control.model.RegionReport = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RegionReport(")
append("bucket=$bucket,")
append("bucketAccountId=$bucketAccountId,")
append("region=$region")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = bucket?.hashCode() ?: 0
result = 31 * result + (bucketAccountId?.hashCode() ?: 0)
result = 31 * result + (region?.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 RegionReport
if (bucket != other.bucket) return false
if (bucketAccountId != other.bucketAccountId) return false
if (region != other.region) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3control.model.RegionReport = Builder(this).apply(block).build()
public class Builder {
/**
* The name of the bucket.
*/
public var bucket: kotlin.String? = null
/**
* The Amazon Web Services account ID that owns the Amazon S3 bucket that's associated with this Multi-Region Access Point.
*/
public var bucketAccountId: kotlin.String? = null
/**
* The name of the Region.
*/
public var region: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.s3control.model.RegionReport) : this() {
this.bucket = x.bucket
this.bucketAccountId = x.bucketAccountId
this.region = x.region
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.s3control.model.RegionReport = RegionReport(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy