commonMain.aws.sdk.kotlin.services.appstream.model.DirectoryConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appstream-jvm Show documentation
Show all versions of appstream-jvm Show documentation
The AWS SDK for Kotlin client for AppStream
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appstream.model
import aws.smithy.kotlin.runtime.SdkDsl
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 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 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("certificateBasedAuthProperties=$certificateBasedAuthProperties,")
append("createdTime=$createdTime,")
append("directoryName=$directoryName,")
append("organizationalUnitDistinguishedNames=$organizationalUnitDistinguishedNames,")
append("serviceAccountCredentials=$serviceAccountCredentials")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = certificateBasedAuthProperties?.hashCode() ?: 0
result = 31 * 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 (certificateBasedAuthProperties != other.certificateBasedAuthProperties) return false
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()
@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 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.certificateBasedAuthProperties = x.certificateBasedAuthProperties
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.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