commonMain.aws.sdk.kotlin.services.glue.model.S3Encryption.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
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Specifies how Amazon Simple Storage Service (Amazon S3) data should be encrypted.
*/
public class S3Encryption private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.
*/
public val kmsKeyArn: kotlin.String? = builder.kmsKeyArn
/**
* The encryption mode to use for Amazon S3 data.
*/
public val s3EncryptionMode: aws.sdk.kotlin.services.glue.model.S3EncryptionMode? = builder.s3EncryptionMode
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.S3Encryption = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("S3Encryption(")
append("kmsKeyArn=$kmsKeyArn,")
append("s3EncryptionMode=$s3EncryptionMode")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = kmsKeyArn?.hashCode() ?: 0
result = 31 * result + (s3EncryptionMode?.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 S3Encryption
if (kmsKeyArn != other.kmsKeyArn) return false
if (s3EncryptionMode != other.s3EncryptionMode) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.S3Encryption = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.
*/
public var kmsKeyArn: kotlin.String? = null
/**
* The encryption mode to use for Amazon S3 data.
*/
public var s3EncryptionMode: aws.sdk.kotlin.services.glue.model.S3EncryptionMode? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.S3Encryption) : this() {
this.kmsKeyArn = x.kmsKeyArn
this.s3EncryptionMode = x.s3EncryptionMode
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.S3Encryption = S3Encryption(this)
internal fun correctErrors(): Builder {
return this
}
}
}