
commonMain.aws.sdk.kotlin.services.s3.model.Ssekms.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.s3.model
/**
* Specifies the use of SSE-KMS to encrypt delivered inventory reports.
*/
public class Ssekms private constructor(builder: Builder) {
/**
* Specifies the ID of the Key Management Service (KMS) symmetric encryption customer managed key to use for encrypting inventory reports.
*/
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.s3.model.Ssekms = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Ssekms(")
append("keyId=*** Sensitive Data Redacted ***")
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 Ssekms
if (keyId != other.keyId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3.model.Ssekms = Builder(this).apply(block).build()
public class Builder {
/**
* Specifies the ID of the Key Management Service (KMS) symmetric encryption customer managed key to use for encrypting inventory reports.
*/
public var keyId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.s3.model.Ssekms) : this() {
this.keyId = x.keyId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.s3.model.Ssekms = Ssekms(this)
internal fun correctErrors(): Builder {
if (keyId == null) keyId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy