All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.glue.model.TransformEncryption.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show 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. Machine learning transforms can access user data encrypted in Amazon S3 using KMS.
 *
 * Additionally, imported labels and trained transforms can now be encrypted using a customer provided KMS key.
 */
public class TransformEncryption private constructor(builder: Builder) {
    /**
     * An `MLUserDataEncryption` object containing the encryption mode and customer-provided KMS key ID.
     */
    public val mlUserDataEncryption: aws.sdk.kotlin.services.glue.model.MlUserDataEncryption? = builder.mlUserDataEncryption
    /**
     * The name of the security configuration.
     */
    public val taskRunSecurityConfigurationName: kotlin.String? = builder.taskRunSecurityConfigurationName

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.TransformEncryption = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("TransformEncryption(")
        append("mlUserDataEncryption=$mlUserDataEncryption,")
        append("taskRunSecurityConfigurationName=$taskRunSecurityConfigurationName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = mlUserDataEncryption?.hashCode() ?: 0
        result = 31 * result + (taskRunSecurityConfigurationName?.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 TransformEncryption

        if (mlUserDataEncryption != other.mlUserDataEncryption) return false
        if (taskRunSecurityConfigurationName != other.taskRunSecurityConfigurationName) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.TransformEncryption = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * An `MLUserDataEncryption` object containing the encryption mode and customer-provided KMS key ID.
         */
        public var mlUserDataEncryption: aws.sdk.kotlin.services.glue.model.MlUserDataEncryption? = null
        /**
         * The name of the security configuration.
         */
        public var taskRunSecurityConfigurationName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.glue.model.TransformEncryption) : this() {
            this.mlUserDataEncryption = x.mlUserDataEncryption
            this.taskRunSecurityConfigurationName = x.taskRunSecurityConfigurationName
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.glue.model.TransformEncryption = TransformEncryption(this)

        /**
         * construct an [aws.sdk.kotlin.services.glue.model.MlUserDataEncryption] inside the given [block]
         */
        public fun mlUserDataEncryption(block: aws.sdk.kotlin.services.glue.model.MlUserDataEncryption.Builder.() -> kotlin.Unit) {
            this.mlUserDataEncryption = aws.sdk.kotlin.services.glue.model.MlUserDataEncryption.invoke(block)
        }

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy