
commonMain.aws.sdk.kotlin.services.ssmsap.model.Resilience.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssmsap.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Details of the SAP HANA system replication for the instance.
*/
public class Resilience private constructor(builder: Builder) {
/**
* The cluster status of the component.
*/
public val clusterStatus: aws.sdk.kotlin.services.ssmsap.model.ClusterStatus? = builder.clusterStatus
/**
* Indicates if or not enqueue replication is enabled for the ASCS component.
*/
public val enqueueReplication: kotlin.Boolean? = builder.enqueueReplication
/**
* The operation mode of the component.
*/
public val hsrOperationMode: aws.sdk.kotlin.services.ssmsap.model.OperationMode? = builder.hsrOperationMode
/**
* The replication mode of the component.
*/
public val hsrReplicationMode: aws.sdk.kotlin.services.ssmsap.model.ReplicationMode? = builder.hsrReplicationMode
/**
* The tier of the component.
*/
public val hsrTier: kotlin.String? = builder.hsrTier
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssmsap.model.Resilience = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Resilience(")
append("clusterStatus=$clusterStatus,")
append("enqueueReplication=$enqueueReplication,")
append("hsrOperationMode=$hsrOperationMode,")
append("hsrReplicationMode=$hsrReplicationMode,")
append("hsrTier=$hsrTier")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clusterStatus?.hashCode() ?: 0
result = 31 * result + (enqueueReplication?.hashCode() ?: 0)
result = 31 * result + (hsrOperationMode?.hashCode() ?: 0)
result = 31 * result + (hsrReplicationMode?.hashCode() ?: 0)
result = 31 * result + (hsrTier?.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 Resilience
if (clusterStatus != other.clusterStatus) return false
if (enqueueReplication != other.enqueueReplication) return false
if (hsrOperationMode != other.hsrOperationMode) return false
if (hsrReplicationMode != other.hsrReplicationMode) return false
if (hsrTier != other.hsrTier) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssmsap.model.Resilience = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The cluster status of the component.
*/
public var clusterStatus: aws.sdk.kotlin.services.ssmsap.model.ClusterStatus? = null
/**
* Indicates if or not enqueue replication is enabled for the ASCS component.
*/
public var enqueueReplication: kotlin.Boolean? = null
/**
* The operation mode of the component.
*/
public var hsrOperationMode: aws.sdk.kotlin.services.ssmsap.model.OperationMode? = null
/**
* The replication mode of the component.
*/
public var hsrReplicationMode: aws.sdk.kotlin.services.ssmsap.model.ReplicationMode? = null
/**
* The tier of the component.
*/
public var hsrTier: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssmsap.model.Resilience) : this() {
this.clusterStatus = x.clusterStatus
this.enqueueReplication = x.enqueueReplication
this.hsrOperationMode = x.hsrOperationMode
this.hsrReplicationMode = x.hsrReplicationMode
this.hsrTier = x.hsrTier
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssmsap.model.Resilience = Resilience(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy