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

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

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

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

import aws.smithy.kotlin.runtime.time.Instant

/**
 * Describes the configuration information required to join fleets and image builders to Microsoft Active Directory domains.
 */
public class DirectoryConfig private constructor(builder: Builder) {
    /**
     * The time the directory configuration was created.
     */
    public val createdTime: aws.smithy.kotlin.runtime.time.Instant? = builder.createdTime
    /**
     * The fully qualified name of the directory (for example, corp.example.com).
     */
    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.DirectoryConfig = Builder().apply(block).build()
    }

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

    override fun hashCode(): kotlin.Int {
        var result = createdTime?.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 DirectoryConfig

        if (createdTime != other.createdTime) 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.DirectoryConfig = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The time the directory configuration was created.
         */
        public var createdTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The fully qualified name of the directory (for example, corp.example.com).
         */
        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.DirectoryConfig) : this() {
            this.createdTime = x.createdTime
            this.directoryName = x.directoryName
            this.organizationalUnitDistinguishedNames = x.organizationalUnitDistinguishedNames
            this.serviceAccountCredentials = x.serviceAccountCredentials
        }

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

        /**
         * 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)
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy