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

commonMain.aws.sdk.kotlin.services.databasemigrationservice.model.KerberosAuthenticationSettings.kt Maven / Gradle / Ivy

The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.databasemigrationservice.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Specifies using Kerberos authentication settings for use with DMS.
 */
public class KerberosAuthenticationSettings private constructor(builder: Builder) {
    /**
     * Specifies the Amazon Resource Name (ARN) of the IAM role that grants Amazon Web Services DMS access to the secret containing key cache file for the replication instance.
     */
    public val keyCacheSecretIamArn: kotlin.String? = builder.keyCacheSecretIamArn
    /**
     * Specifies the secret ID of the key cache for the replication instance.
     */
    public val keyCacheSecretId: kotlin.String? = builder.keyCacheSecretId
    /**
     * Specifies the ID of the secret that stores the key cache file required for kerberos authentication of the replication instance.
     */
    public val krb5FileContents: kotlin.String? = builder.krb5FileContents

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

    override fun toString(): kotlin.String = buildString {
        append("KerberosAuthenticationSettings(")
        append("keyCacheSecretIamArn=$keyCacheSecretIamArn,")
        append("keyCacheSecretId=$keyCacheSecretId,")
        append("krb5FileContents=$krb5FileContents")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = keyCacheSecretIamArn?.hashCode() ?: 0
        result = 31 * result + (keyCacheSecretId?.hashCode() ?: 0)
        result = 31 * result + (krb5FileContents?.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 KerberosAuthenticationSettings

        if (keyCacheSecretIamArn != other.keyCacheSecretIamArn) return false
        if (keyCacheSecretId != other.keyCacheSecretId) return false
        if (krb5FileContents != other.krb5FileContents) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Specifies the Amazon Resource Name (ARN) of the IAM role that grants Amazon Web Services DMS access to the secret containing key cache file for the replication instance.
         */
        public var keyCacheSecretIamArn: kotlin.String? = null
        /**
         * Specifies the secret ID of the key cache for the replication instance.
         */
        public var keyCacheSecretId: kotlin.String? = null
        /**
         * Specifies the ID of the secret that stores the key cache file required for kerberos authentication of the replication instance.
         */
        public var krb5FileContents: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.databasemigrationservice.model.KerberosAuthenticationSettings) : this() {
            this.keyCacheSecretIamArn = x.keyCacheSecretIamArn
            this.keyCacheSecretId = x.keyCacheSecretId
            this.krb5FileContents = x.krb5FileContents
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy