
commonMain.aws.sdk.kotlin.services.kafka.model.EncryptionAtRest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kafka.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The data-volume encryption details.
*/
public class EncryptionAtRest private constructor(builder: Builder) {
/**
* The ARN of the AWS KMS key for encrypting data at rest. If you don't specify a KMS key, MSK creates one for you and uses it.
*/
public val dataVolumeKmsKeyId: kotlin.String? = builder.dataVolumeKmsKeyId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kafka.model.EncryptionAtRest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("EncryptionAtRest(")
append("dataVolumeKmsKeyId=$dataVolumeKmsKeyId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = dataVolumeKmsKeyId?.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 EncryptionAtRest
if (dataVolumeKmsKeyId != other.dataVolumeKmsKeyId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kafka.model.EncryptionAtRest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ARN of the AWS KMS key for encrypting data at rest. If you don't specify a KMS key, MSK creates one for you and uses it.
*/
public var dataVolumeKmsKeyId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kafka.model.EncryptionAtRest) : this() {
this.dataVolumeKmsKeyId = x.dataVolumeKmsKeyId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kafka.model.EncryptionAtRest = EncryptionAtRest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy