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