All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.s3control.model.SubmitMultiRegionAccessPointRoutesRequest.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.s3control.model



public class SubmitMultiRegionAccessPointRoutesRequest private constructor(builder: Builder) {
    /**
     * The Amazon Web Services account ID for the owner of the Multi-Region Access Point.
     */
    public val accountId: kotlin.String? = builder.accountId
    /**
     * The Multi-Region Access Point ARN.
     */
    public val mrap: kotlin.String? = builder.mrap
    /**
     * The different routes that make up the new route configuration. Active routes return a value of `100`, and passive routes return a value of `0`.
     */
    public val routeUpdates: List? = builder.routeUpdates

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3control.model.SubmitMultiRegionAccessPointRoutesRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("SubmitMultiRegionAccessPointRoutesRequest(")
        append("accountId=$accountId,")
        append("mrap=$mrap,")
        append("routeUpdates=$routeUpdates")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = accountId?.hashCode() ?: 0
        result = 31 * result + (mrap?.hashCode() ?: 0)
        result = 31 * result + (routeUpdates?.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 SubmitMultiRegionAccessPointRoutesRequest

        if (accountId != other.accountId) return false
        if (mrap != other.mrap) return false
        if (routeUpdates != other.routeUpdates) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3control.model.SubmitMultiRegionAccessPointRoutesRequest = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The Amazon Web Services account ID for the owner of the Multi-Region Access Point.
         */
        public var accountId: kotlin.String? = null
        /**
         * The Multi-Region Access Point ARN.
         */
        public var mrap: kotlin.String? = null
        /**
         * The different routes that make up the new route configuration. Active routes return a value of `100`, and passive routes return a value of `0`.
         */
        public var routeUpdates: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.s3control.model.SubmitMultiRegionAccessPointRoutesRequest) : this() {
            this.accountId = x.accountId
            this.mrap = x.mrap
            this.routeUpdates = x.routeUpdates
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.s3control.model.SubmitMultiRegionAccessPointRoutesRequest = SubmitMultiRegionAccessPointRoutesRequest(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy