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

commonMain.aws.sdk.kotlin.services.appstream.model.UpdateDirectoryConfigRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.appstream.model

import aws.smithy.kotlin.runtime.SdkDsl

public class UpdateDirectoryConfigRequest private constructor(builder: Builder) {
    /**
     * The certificate-based authentication properties used to authenticate SAML 2.0 Identity Provider (IdP) user identities to Active Directory domain-joined streaming instances. Fallback is turned on by default when certificate-based authentication is **Enabled** . Fallback allows users to log in using their AD domain password if certificate-based authentication is unsuccessful, or to unlock a desktop lock screen. **Enabled_no_directory_login_fallback** enables certificate-based authentication, but does not allow users to log in using their AD domain password. Users will be disconnected to re-authenticate using certificates.
     */
    public val certificateBasedAuthProperties: aws.sdk.kotlin.services.appstream.model.CertificateBasedAuthProperties? = builder.certificateBasedAuthProperties
    /**
     * The name of the Directory Config object.
     */
    public val directoryName: kotlin.String? = builder.directoryName
    /**
     * The distinguished names of the organizational units for computer accounts.
     */
    public val organizationalUnitDistinguishedNames: List? = builder.organizationalUnitDistinguishedNames
    /**
     * The credentials for the service account used by the fleet or image builder to connect to the directory.
     */
    public val serviceAccountCredentials: aws.sdk.kotlin.services.appstream.model.ServiceAccountCredentials? = builder.serviceAccountCredentials

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateDirectoryConfigRequest(")
        append("certificateBasedAuthProperties=$certificateBasedAuthProperties,")
        append("directoryName=$directoryName,")
        append("organizationalUnitDistinguishedNames=$organizationalUnitDistinguishedNames,")
        append("serviceAccountCredentials=$serviceAccountCredentials")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = certificateBasedAuthProperties?.hashCode() ?: 0
        result = 31 * result + (directoryName?.hashCode() ?: 0)
        result = 31 * result + (organizationalUnitDistinguishedNames?.hashCode() ?: 0)
        result = 31 * result + (serviceAccountCredentials?.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 UpdateDirectoryConfigRequest

        if (certificateBasedAuthProperties != other.certificateBasedAuthProperties) return false
        if (directoryName != other.directoryName) return false
        if (organizationalUnitDistinguishedNames != other.organizationalUnitDistinguishedNames) return false
        if (serviceAccountCredentials != other.serviceAccountCredentials) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The certificate-based authentication properties used to authenticate SAML 2.0 Identity Provider (IdP) user identities to Active Directory domain-joined streaming instances. Fallback is turned on by default when certificate-based authentication is **Enabled** . Fallback allows users to log in using their AD domain password if certificate-based authentication is unsuccessful, or to unlock a desktop lock screen. **Enabled_no_directory_login_fallback** enables certificate-based authentication, but does not allow users to log in using their AD domain password. Users will be disconnected to re-authenticate using certificates.
         */
        public var certificateBasedAuthProperties: aws.sdk.kotlin.services.appstream.model.CertificateBasedAuthProperties? = null
        /**
         * The name of the Directory Config object.
         */
        public var directoryName: kotlin.String? = null
        /**
         * The distinguished names of the organizational units for computer accounts.
         */
        public var organizationalUnitDistinguishedNames: List? = null
        /**
         * The credentials for the service account used by the fleet or image builder to connect to the directory.
         */
        public var serviceAccountCredentials: aws.sdk.kotlin.services.appstream.model.ServiceAccountCredentials? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.appstream.model.UpdateDirectoryConfigRequest) : this() {
            this.certificateBasedAuthProperties = x.certificateBasedAuthProperties
            this.directoryName = x.directoryName
            this.organizationalUnitDistinguishedNames = x.organizationalUnitDistinguishedNames
            this.serviceAccountCredentials = x.serviceAccountCredentials
        }

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy