commonMain.aws.sdk.kotlin.services.ssmincidents.model.GetReplicationSetResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ssmincidents-jvm Show documentation
Show all versions of ssmincidents-jvm Show documentation
The AWS SDK for Kotlin client for SSM Incidents
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssmincidents.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetReplicationSetResponse private constructor(builder: Builder) {
/**
* Details of the replication set.
*/
public val replicationSet: aws.sdk.kotlin.services.ssmincidents.model.ReplicationSet? = builder.replicationSet
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssmincidents.model.GetReplicationSetResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetReplicationSetResponse(")
append("replicationSet=$replicationSet")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = replicationSet?.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 GetReplicationSetResponse
if (replicationSet != other.replicationSet) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssmincidents.model.GetReplicationSetResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Details of the replication set.
*/
public var replicationSet: aws.sdk.kotlin.services.ssmincidents.model.ReplicationSet? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssmincidents.model.GetReplicationSetResponse) : this() {
this.replicationSet = x.replicationSet
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssmincidents.model.GetReplicationSetResponse = GetReplicationSetResponse(this)
/**
* construct an [aws.sdk.kotlin.services.ssmincidents.model.ReplicationSet] inside the given [block]
*/
public fun replicationSet(block: aws.sdk.kotlin.services.ssmincidents.model.ReplicationSet.Builder.() -> kotlin.Unit) {
this.replicationSet = aws.sdk.kotlin.services.ssmincidents.model.ReplicationSet.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}