commonMain.aws.sdk.kotlin.services.appstream.model.UserStackAssociation.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
/**
* Describes a user in the user pool and the associated stack.
*/
public class UserStackAssociation private constructor(builder: Builder) {
/**
* The authentication type for the user.
*/
public val authenticationType: aws.sdk.kotlin.services.appstream.model.AuthenticationType? = builder.authenticationType
/**
* Specifies whether a welcome email is sent to a user after the user is created in the user pool.
*/
public val sendEmailNotification: kotlin.Boolean? = builder.sendEmailNotification
/**
* The name of the stack that is associated with the user.
*/
public val stackName: kotlin.String? = builder.stackName
/**
* The email address of the user who is associated with the stack.
*
* Users' email addresses are case-sensitive.
*/
public val userName: kotlin.String? = builder.userName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appstream.model.UserStackAssociation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UserStackAssociation(")
append("authenticationType=$authenticationType,")
append("sendEmailNotification=$sendEmailNotification,")
append("stackName=$stackName,")
append("userName=*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = authenticationType?.hashCode() ?: 0
result = 31 * result + (sendEmailNotification?.hashCode() ?: 0)
result = 31 * result + (stackName?.hashCode() ?: 0)
result = 31 * result + (userName?.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 UserStackAssociation
if (authenticationType != other.authenticationType) return false
if (sendEmailNotification != other.sendEmailNotification) return false
if (stackName != other.stackName) return false
if (userName != other.userName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appstream.model.UserStackAssociation = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The authentication type for the user.
*/
public var authenticationType: aws.sdk.kotlin.services.appstream.model.AuthenticationType? = null
/**
* Specifies whether a welcome email is sent to a user after the user is created in the user pool.
*/
public var sendEmailNotification: kotlin.Boolean? = null
/**
* The name of the stack that is associated with the user.
*/
public var stackName: kotlin.String? = null
/**
* The email address of the user who is associated with the stack.
*
* Users' email addresses are case-sensitive.
*/
public var userName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appstream.model.UserStackAssociation) : this() {
this.authenticationType = x.authenticationType
this.sendEmailNotification = x.sendEmailNotification
this.stackName = x.stackName
this.userName = x.userName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appstream.model.UserStackAssociation = UserStackAssociation(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy