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

commonMain.aws.sdk.kotlin.services.route53recoverycontrolconfig.model.ClusterEndpoint.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

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * A cluster endpoint. Specify an endpoint when you want to set or retrieve a routing control state in the cluster.
 */
public class ClusterEndpoint private constructor(builder: Builder) {
    /**
     * A cluster endpoint. Specify an endpoint and Amazon Web Services Region when you want to set or retrieve a routing control state in the cluster.
     *
     * To get or update the routing control state, see the Amazon Route 53 Application Recovery Controller Routing Control Actions.
     */
    public val endpoint: kotlin.String? = builder.endpoint
    /**
     * The Amazon Web Services Region for a cluster endpoint.
     */
    public val region: kotlin.String? = builder.region

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

    override fun toString(): kotlin.String = buildString {
        append("ClusterEndpoint(")
        append("endpoint=$endpoint,")
        append("region=$region")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = endpoint?.hashCode() ?: 0
        result = 31 * result + (region?.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 ClusterEndpoint

        if (endpoint != other.endpoint) return false
        if (region != other.region) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A cluster endpoint. Specify an endpoint and Amazon Web Services Region when you want to set or retrieve a routing control state in the cluster.
         *
         * To get or update the routing control state, see the Amazon Route 53 Application Recovery Controller Routing Control Actions.
         */
        public var endpoint: kotlin.String? = null
        /**
         * The Amazon Web Services Region for a cluster endpoint.
         */
        public var region: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.route53recoverycontrolconfig.model.ClusterEndpoint) : this() {
            this.endpoint = x.endpoint
            this.region = x.region
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy