commonMain.aws.sdk.kotlin.services.glue.model.EncryptionConfiguration.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Specifies an encryption configuration.
*/
public class EncryptionConfiguration private constructor(builder: Builder) {
/**
* The encryption configuration for Amazon CloudWatch.
*/
public val cloudWatchEncryption: aws.sdk.kotlin.services.glue.model.CloudWatchEncryption? = builder.cloudWatchEncryption
/**
* The encryption configuration for job bookmarks.
*/
public val jobBookmarksEncryption: aws.sdk.kotlin.services.glue.model.JobBookmarksEncryption? = builder.jobBookmarksEncryption
/**
* The encryption configuration for Amazon Simple Storage Service (Amazon S3) data.
*/
public val s3Encryption: List? = builder.s3Encryption
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.EncryptionConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("EncryptionConfiguration(")
append("cloudWatchEncryption=$cloudWatchEncryption,")
append("jobBookmarksEncryption=$jobBookmarksEncryption,")
append("s3Encryption=$s3Encryption")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = cloudWatchEncryption?.hashCode() ?: 0
result = 31 * result + (jobBookmarksEncryption?.hashCode() ?: 0)
result = 31 * result + (s3Encryption?.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 EncryptionConfiguration
if (cloudWatchEncryption != other.cloudWatchEncryption) return false
if (jobBookmarksEncryption != other.jobBookmarksEncryption) return false
if (s3Encryption != other.s3Encryption) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.EncryptionConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The encryption configuration for Amazon CloudWatch.
*/
public var cloudWatchEncryption: aws.sdk.kotlin.services.glue.model.CloudWatchEncryption? = null
/**
* The encryption configuration for job bookmarks.
*/
public var jobBookmarksEncryption: aws.sdk.kotlin.services.glue.model.JobBookmarksEncryption? = null
/**
* The encryption configuration for Amazon Simple Storage Service (Amazon S3) data.
*/
public var s3Encryption: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.EncryptionConfiguration) : this() {
this.cloudWatchEncryption = x.cloudWatchEncryption
this.jobBookmarksEncryption = x.jobBookmarksEncryption
this.s3Encryption = x.s3Encryption
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.EncryptionConfiguration = EncryptionConfiguration(this)
/**
* construct an [aws.sdk.kotlin.services.glue.model.CloudWatchEncryption] inside the given [block]
*/
public fun cloudWatchEncryption(block: aws.sdk.kotlin.services.glue.model.CloudWatchEncryption.Builder.() -> kotlin.Unit) {
this.cloudWatchEncryption = aws.sdk.kotlin.services.glue.model.CloudWatchEncryption.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.glue.model.JobBookmarksEncryption] inside the given [block]
*/
public fun jobBookmarksEncryption(block: aws.sdk.kotlin.services.glue.model.JobBookmarksEncryption.Builder.() -> kotlin.Unit) {
this.jobBookmarksEncryption = aws.sdk.kotlin.services.glue.model.JobBookmarksEncryption.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}