commonMain.aws.sdk.kotlin.services.route53recoverycluster.model.GetRoutingControlStateResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of route53recoverycluster-jvm Show documentation
Show all versions of route53recoverycluster-jvm Show documentation
The AWS Kotlin client for Route53 Recovery Cluster
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.route53recoverycluster.model
public class GetRoutingControlStateResponse private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the response.
*/
public val routingControlArn: kotlin.String = requireNotNull(builder.routingControlArn) { "A non-null value must be provided for routingControlArn" }
/**
* The routing control name.
*/
public val routingControlName: kotlin.String? = builder.routingControlName
/**
* The state of the routing control.
*/
public val routingControlState: aws.sdk.kotlin.services.route53recoverycluster.model.RoutingControlState = requireNotNull(builder.routingControlState) { "A non-null value must be provided for routingControlState" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.route53recoverycluster.model.GetRoutingControlStateResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetRoutingControlStateResponse(")
append("routingControlArn=$routingControlArn,")
append("routingControlName=$routingControlName,")
append("routingControlState=$routingControlState")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = routingControlArn.hashCode()
result = 31 * result + (routingControlName?.hashCode() ?: 0)
result = 31 * result + (routingControlState.hashCode())
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 GetRoutingControlStateResponse
if (routingControlArn != other.routingControlArn) return false
if (routingControlName != other.routingControlName) return false
if (routingControlState != other.routingControlState) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.route53recoverycluster.model.GetRoutingControlStateResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The Amazon Resource Name (ARN) of the response.
*/
public var routingControlArn: kotlin.String? = null
/**
* The routing control name.
*/
public var routingControlName: kotlin.String? = null
/**
* The state of the routing control.
*/
public var routingControlState: aws.sdk.kotlin.services.route53recoverycluster.model.RoutingControlState? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.route53recoverycluster.model.GetRoutingControlStateResponse) : this() {
this.routingControlArn = x.routingControlArn
this.routingControlName = x.routingControlName
this.routingControlState = x.routingControlState
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.route53recoverycluster.model.GetRoutingControlStateResponse = GetRoutingControlStateResponse(this)
internal fun correctErrors(): Builder {
if (routingControlArn == null) routingControlArn = ""
if (routingControlState == null) routingControlState = RoutingControlState.SdkUnknown("no value provided")
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy