commonMain.aws.sdk.kotlin.services.appstream.model.ServiceAccountCredentials.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
/**
* Describes the credentials for the service account used by the fleet or image builder to connect to the directory.
*/
public class ServiceAccountCredentials private constructor(builder: Builder) {
/**
* The user name of the account. This account must have the following privileges: create computer objects, join computers to the domain, and change/reset the password on descendant computer objects for the organizational units specified.
*/
public val accountName: kotlin.String? = builder.accountName
/**
* The password for the account.
*/
public val accountPassword: kotlin.String? = builder.accountPassword
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appstream.model.ServiceAccountCredentials = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ServiceAccountCredentials(")
append("accountName=*** Sensitive Data Redacted ***,")
append("accountPassword=*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = accountName?.hashCode() ?: 0
result = 31 * result + (accountPassword?.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 ServiceAccountCredentials
if (accountName != other.accountName) return false
if (accountPassword != other.accountPassword) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appstream.model.ServiceAccountCredentials = Builder(this).apply(block).build()
public class Builder {
/**
* The user name of the account. This account must have the following privileges: create computer objects, join computers to the domain, and change/reset the password on descendant computer objects for the organizational units specified.
*/
public var accountName: kotlin.String? = null
/**
* The password for the account.
*/
public var accountPassword: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appstream.model.ServiceAccountCredentials) : this() {
this.accountName = x.accountName
this.accountPassword = x.accountPassword
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appstream.model.ServiceAccountCredentials = ServiceAccountCredentials(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy