
commonMain.aws.sdk.kotlin.services.s3control.model.SsekmsEncryption.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.s3control.model
/**
* Configuration for the use of SSE-KMS to encrypt generated manifest objects.
*/
public class SsekmsEncryption private constructor(builder: Builder) {
/**
* Specifies the ID of the Amazon Web Services Key Management Service (Amazon Web Services KMS) symmetric encryption customer managed key to use for encrypting generated manifest objects.
*/
public val keyId: kotlin.String = requireNotNull(builder.keyId) { "A non-null value must be provided for keyId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3control.model.SsekmsEncryption = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SsekmsEncryption(")
append("keyId=$keyId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = keyId.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 SsekmsEncryption
if (keyId != other.keyId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3control.model.SsekmsEncryption = Builder(this).apply(block).build()
public class Builder {
/**
* Specifies the ID of the Amazon Web Services Key Management Service (Amazon Web Services KMS) symmetric encryption customer managed key to use for encrypting generated manifest objects.
*/
public var keyId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.s3control.model.SsekmsEncryption) : this() {
this.keyId = x.keyId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.s3control.model.SsekmsEncryption = SsekmsEncryption(this)
internal fun correctErrors(): Builder {
if (keyId == null) keyId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy