commonMain.aws.sdk.kotlin.services.glue.model.MlUserDataEncryption.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glue-jvm Show documentation
Show all versions of glue-jvm Show documentation
The AWS SDK for Kotlin client for Glue
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The encryption-at-rest settings of the transform that apply to accessing user data.
*/
public class MlUserDataEncryption private constructor(builder: Builder) {
/**
* The ID for the customer-provided KMS key.
*/
public val kmsKeyId: kotlin.String? = builder.kmsKeyId
/**
* The encryption mode applied to user data. Valid values are:
* + DISABLED: encryption is disabled
* + SSEKMS: use of server-side encryption with Key Management Service (SSE-KMS) for user data stored in Amazon S3.
*/
public val mlUserDataEncryptionMode: aws.sdk.kotlin.services.glue.model.MlUserDataEncryptionModeString = requireNotNull(builder.mlUserDataEncryptionMode) { "A non-null value must be provided for mlUserDataEncryptionMode" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.MlUserDataEncryption = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MlUserDataEncryption(")
append("kmsKeyId=$kmsKeyId,")
append("mlUserDataEncryptionMode=$mlUserDataEncryptionMode")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = kmsKeyId?.hashCode() ?: 0
result = 31 * result + (mlUserDataEncryptionMode.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 MlUserDataEncryption
if (kmsKeyId != other.kmsKeyId) return false
if (mlUserDataEncryptionMode != other.mlUserDataEncryptionMode) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.MlUserDataEncryption = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID for the customer-provided KMS key.
*/
public var kmsKeyId: kotlin.String? = null
/**
* The encryption mode applied to user data. Valid values are:
* + DISABLED: encryption is disabled
* + SSEKMS: use of server-side encryption with Key Management Service (SSE-KMS) for user data stored in Amazon S3.
*/
public var mlUserDataEncryptionMode: aws.sdk.kotlin.services.glue.model.MlUserDataEncryptionModeString? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.MlUserDataEncryption) : this() {
this.kmsKeyId = x.kmsKeyId
this.mlUserDataEncryptionMode = x.mlUserDataEncryptionMode
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.MlUserDataEncryption = MlUserDataEncryption(this)
internal fun correctErrors(): Builder {
if (mlUserDataEncryptionMode == null) mlUserDataEncryptionMode = MlUserDataEncryptionModeString.SdkUnknown("no value provided")
return this
}
}
}