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

commonMain.aws.sdk.kotlin.services.route53recoverycontrolconfig.model.CreateRoutingControlRequest.kt Maven / Gradle / Ivy

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.route53recoverycontrolconfig.model



/**
 * The details of the routing control that you're creating.
 */
public class CreateRoutingControlRequest private constructor(builder: Builder) {
    /**
     * A unique, case-sensitive string of up to 64 ASCII characters. To make an idempotent API request with an action, specify a client token in the request.
     */
    public val clientToken: kotlin.String? = builder.clientToken
    /**
     * The Amazon Resource Name (ARN) of the cluster that includes the routing control.
     */
    public val clusterArn: kotlin.String? = builder.clusterArn
    /**
     * The Amazon Resource Name (ARN) of the control panel that includes the routing control.
     */
    public val controlPanelArn: kotlin.String? = builder.controlPanelArn
    /**
     * The name of the routing control.
     */
    public val routingControlName: kotlin.String? = builder.routingControlName

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

    override fun toString(): kotlin.String = buildString {
        append("CreateRoutingControlRequest(")
        append("clientToken=$clientToken,")
        append("clusterArn=$clusterArn,")
        append("controlPanelArn=$controlPanelArn,")
        append("routingControlName=$routingControlName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = clientToken?.hashCode() ?: 0
        result = 31 * result + (clusterArn?.hashCode() ?: 0)
        result = 31 * result + (controlPanelArn?.hashCode() ?: 0)
        result = 31 * result + (routingControlName?.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 CreateRoutingControlRequest

        if (clientToken != other.clientToken) return false
        if (clusterArn != other.clusterArn) return false
        if (controlPanelArn != other.controlPanelArn) return false
        if (routingControlName != other.routingControlName) return false

        return true
    }

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

    public class Builder {
        /**
         * A unique, case-sensitive string of up to 64 ASCII characters. To make an idempotent API request with an action, specify a client token in the request.
         */
        public var clientToken: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the cluster that includes the routing control.
         */
        public var clusterArn: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the control panel that includes the routing control.
         */
        public var controlPanelArn: kotlin.String? = null
        /**
         * The name of the routing control.
         */
        public var routingControlName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.route53recoverycontrolconfig.model.CreateRoutingControlRequest) : this() {
            this.clientToken = x.clientToken
            this.clusterArn = x.clusterArn
            this.controlPanelArn = x.controlPanelArn
            this.routingControlName = x.routingControlName
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy