
commonMain.aws.sdk.kotlin.services.voiceid.model.ServerSideEncryptionConfiguration.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.voiceid.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The configuration containing information about the customer managed key used for encrypting customer data.
*/
public class ServerSideEncryptionConfiguration private constructor(builder: Builder) {
/**
* The identifier of the KMS key to use to encrypt data stored by Voice ID. Voice ID doesn't support asymmetric customer managed keys.
*/
public val kmsKeyId: kotlin.String = requireNotNull(builder.kmsKeyId) { "A non-null value must be provided for kmsKeyId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.voiceid.model.ServerSideEncryptionConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ServerSideEncryptionConfiguration(")
append("kmsKeyId=$kmsKeyId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = kmsKeyId.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 ServerSideEncryptionConfiguration
if (kmsKeyId != other.kmsKeyId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.voiceid.model.ServerSideEncryptionConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The identifier of the KMS key to use to encrypt data stored by Voice ID. Voice ID doesn't support asymmetric customer managed keys.
*/
public var kmsKeyId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.voiceid.model.ServerSideEncryptionConfiguration) : this() {
this.kmsKeyId = x.kmsKeyId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.voiceid.model.ServerSideEncryptionConfiguration = ServerSideEncryptionConfiguration(this)
internal fun correctErrors(): Builder {
if (kmsKeyId == null) kmsKeyId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy