
commonMain.aws.sdk.kotlin.services.s3control.model.MultiRegionAccessPointRegionalResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.s3control.model
/**
* Status information for a single Multi-Region Access Point Region.
*/
public class MultiRegionAccessPointRegionalResponse private constructor(builder: Builder) {
/**
* The name of the Region in the Multi-Region Access Point.
*/
public val name: kotlin.String? = builder.name
/**
* The current status of the Multi-Region Access Point in this Region.
*/
public val requestStatus: kotlin.String? = builder.requestStatus
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3control.model.MultiRegionAccessPointRegionalResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MultiRegionAccessPointRegionalResponse(")
append("name=$name,")
append("requestStatus=$requestStatus")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = name?.hashCode() ?: 0
result = 31 * result + (requestStatus?.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 MultiRegionAccessPointRegionalResponse
if (name != other.name) return false
if (requestStatus != other.requestStatus) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3control.model.MultiRegionAccessPointRegionalResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The name of the Region in the Multi-Region Access Point.
*/
public var name: kotlin.String? = null
/**
* The current status of the Multi-Region Access Point in this Region.
*/
public var requestStatus: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.s3control.model.MultiRegionAccessPointRegionalResponse) : this() {
this.name = x.name
this.requestStatus = x.requestStatus
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.s3control.model.MultiRegionAccessPointRegionalResponse = MultiRegionAccessPointRegionalResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy