commonMain.aws.sdk.kotlin.services.ssmincidents.model.UpdateReplicationSetRequest.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 UpdateReplicationSetRequest private constructor(builder: Builder) {
/**
* An action to add or delete a Region.
*/
public val actions: List = requireNotNull(builder.actions) { "A non-null value must be provided for actions" }
/**
* The Amazon Resource Name (ARN) of the replication set you're updating.
*/
public val arn: kotlin.String = requireNotNull(builder.arn) { "A non-null value must be provided for arn" }
/**
* A token that ensures that the operation is called only once with the specified details.
*/
public val clientToken: kotlin.String? = builder.clientToken
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssmincidents.model.UpdateReplicationSetRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateReplicationSetRequest(")
append("actions=$actions,")
append("arn=$arn,")
append("clientToken=$clientToken")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = actions.hashCode()
result = 31 * result + (arn.hashCode())
result = 31 * result + (clientToken?.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 UpdateReplicationSetRequest
if (actions != other.actions) return false
if (arn != other.arn) return false
if (clientToken != other.clientToken) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssmincidents.model.UpdateReplicationSetRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An action to add or delete a Region.
*/
public var actions: List? = null
/**
* The Amazon Resource Name (ARN) of the replication set you're updating.
*/
public var arn: kotlin.String? = null
/**
* A token that ensures that the operation is called only once with the specified details.
*/
public var clientToken: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssmincidents.model.UpdateReplicationSetRequest) : this() {
this.actions = x.actions
this.arn = x.arn
this.clientToken = x.clientToken
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssmincidents.model.UpdateReplicationSetRequest = UpdateReplicationSetRequest(this)
internal fun correctErrors(): Builder {
if (actions == null) actions = emptyList()
if (arn == null) arn = ""
return this
}
}
}