
commonMain.aws.sdk.kotlin.services.s3control.model.GetMultiRegionAccessPointRoutesResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.s3control.model
public class GetMultiRegionAccessPointRoutesResponse private constructor(builder: Builder) {
/**
* The Multi-Region Access Point ARN.
*/
public val mrap: kotlin.String? = builder.mrap
/**
* The different routes that make up the route configuration. Active routes return a value of `100`, and passive routes return a value of `0`.
*/
public val routes: List? = builder.routes
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3control.model.GetMultiRegionAccessPointRoutesResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetMultiRegionAccessPointRoutesResponse(")
append("mrap=$mrap,")
append("routes=$routes")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = mrap?.hashCode() ?: 0
result = 31 * result + (routes?.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 GetMultiRegionAccessPointRoutesResponse
if (mrap != other.mrap) return false
if (routes != other.routes) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3control.model.GetMultiRegionAccessPointRoutesResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The Multi-Region Access Point ARN.
*/
public var mrap: kotlin.String? = null
/**
* The different routes that make up the route configuration. Active routes return a value of `100`, and passive routes return a value of `0`.
*/
public var routes: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.s3control.model.GetMultiRegionAccessPointRoutesResponse) : this() {
this.mrap = x.mrap
this.routes = x.routes
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.s3control.model.GetMultiRegionAccessPointRoutesResponse = GetMultiRegionAccessPointRoutesResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy