commonMain.aws.sdk.kotlin.services.ssmincidents.model.RegionMapInputValue.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
/**
* The mapping between a Amazon Web Services Region and the key that's used to encrypt the data.
*/
public class RegionMapInputValue private constructor(builder: Builder) {
/**
* The KMS key used to encrypt the data in your replication set.
*/
public val sseKmsKeyId: kotlin.String? = builder.sseKmsKeyId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssmincidents.model.RegionMapInputValue = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RegionMapInputValue(")
append("sseKmsKeyId=$sseKmsKeyId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = sseKmsKeyId?.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 RegionMapInputValue
if (sseKmsKeyId != other.sseKmsKeyId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssmincidents.model.RegionMapInputValue = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The KMS key used to encrypt the data in your replication set.
*/
public var sseKmsKeyId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssmincidents.model.RegionMapInputValue) : this() {
this.sseKmsKeyId = x.sseKmsKeyId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssmincidents.model.RegionMapInputValue = RegionMapInputValue(this)
internal fun correctErrors(): Builder {
return this
}
}
}