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

commonMain.aws.sdk.kotlin.services.connect.model.ReplicateInstanceRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.connect.model



public class ReplicateInstanceRequest private constructor(builder: Builder) {
    /**
     * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see [Making retries safe with idempotent APIs](https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/).
     */
    public val clientToken: kotlin.String? = builder.clientToken
    /**
     * The identifier of the Amazon Connect instance. You can [find the instance ID](https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html) in the Amazon Resource Name (ARN) of the instance. You can provide the `InstanceId`, or the entire ARN.
     */
    public val instanceId: kotlin.String? = requireNotNull(builder.instanceId) { "A non-null value must be provided for instanceId" }
    /**
     * The alias for the replicated instance. The `ReplicaAlias` must be unique.
     */
    public val replicaAlias: kotlin.String? = builder.replicaAlias
    /**
     * The Amazon Web Services Region where to replicate the Amazon Connect instance.
     */
    public val replicaRegion: kotlin.String? = builder.replicaRegion

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

    override fun toString(): kotlin.String = buildString {
        append("ReplicateInstanceRequest(")
        append("clientToken=$clientToken,")
        append("instanceId=$instanceId,")
        append("replicaAlias=*** Sensitive Data Redacted ***,")
        append("replicaRegion=$replicaRegion")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = clientToken?.hashCode() ?: 0
        result = 31 * result + (instanceId?.hashCode() ?: 0)
        result = 31 * result + (replicaAlias?.hashCode() ?: 0)
        result = 31 * result + (replicaRegion?.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 ReplicateInstanceRequest

        if (clientToken != other.clientToken) return false
        if (instanceId != other.instanceId) return false
        if (replicaAlias != other.replicaAlias) return false
        if (replicaRegion != other.replicaRegion) return false

        return true
    }

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

    public class Builder {
        /**
         * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see [Making retries safe with idempotent APIs](https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/).
         */
        public var clientToken: kotlin.String? = null
        /**
         * The identifier of the Amazon Connect instance. You can [find the instance ID](https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html) in the Amazon Resource Name (ARN) of the instance. You can provide the `InstanceId`, or the entire ARN.
         */
        public var instanceId: kotlin.String? = null
        /**
         * The alias for the replicated instance. The `ReplicaAlias` must be unique.
         */
        public var replicaAlias: kotlin.String? = null
        /**
         * The Amazon Web Services Region where to replicate the Amazon Connect instance.
         */
        public var replicaRegion: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.connect.model.ReplicateInstanceRequest) : this() {
            this.clientToken = x.clientToken
            this.instanceId = x.instanceId
            this.replicaAlias = x.replicaAlias
            this.replicaRegion = x.replicaRegion
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.connect.model.ReplicateInstanceRequest = ReplicateInstanceRequest(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy