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

commonMain.aws.sdk.kotlin.services.route53recoverycluster.model.UpdateRoutingControlStatesRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.route53recoverycluster.model

import aws.smithy.kotlin.runtime.SdkDsl

public class UpdateRoutingControlStatesRequest private constructor(builder: Builder) {
    /**
     * The Amazon Resource Names (ARNs) for the safety rules that you want to override when you're updating routing control states. You can override one safety rule or multiple safety rules by including one or more ARNs, separated by commas.
     *
     * For more information, see [ Override safety rules to reroute traffic](https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.override-safety-rule.html) in the Amazon Route 53 Application Recovery Controller Developer Guide.
     */
    public val safetyRulesToOverride: List? = builder.safetyRulesToOverride
    /**
     * A set of routing control entries that you want to update.
     */
    public val updateRoutingControlStateEntries: List? = builder.updateRoutingControlStateEntries

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateRoutingControlStatesRequest(")
        append("safetyRulesToOverride=$safetyRulesToOverride,")
        append("updateRoutingControlStateEntries=$updateRoutingControlStateEntries")
        append(")")
    }

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

        if (safetyRulesToOverride != other.safetyRulesToOverride) return false
        if (updateRoutingControlStateEntries != other.updateRoutingControlStateEntries) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The Amazon Resource Names (ARNs) for the safety rules that you want to override when you're updating routing control states. You can override one safety rule or multiple safety rules by including one or more ARNs, separated by commas.
         *
         * For more information, see [ Override safety rules to reroute traffic](https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.override-safety-rule.html) in the Amazon Route 53 Application Recovery Controller Developer Guide.
         */
        public var safetyRulesToOverride: List? = null
        /**
         * A set of routing control entries that you want to update.
         */
        public var updateRoutingControlStateEntries: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.route53recoverycluster.model.UpdateRoutingControlStatesRequest) : this() {
            this.safetyRulesToOverride = x.safetyRulesToOverride
            this.updateRoutingControlStateEntries = x.updateRoutingControlStateEntries
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy