commonMain.aws.sdk.kotlin.services.appstream.model.EnableUserRequest.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
public class EnableUserRequest private constructor(builder: Builder) {
/**
* The authentication type for the user. You must specify USERPOOL.
*/
public val authenticationType: aws.sdk.kotlin.services.appstream.model.AuthenticationType? = builder.authenticationType
/**
* The email address of the user.
*
* Users' email addresses are case-sensitive. During login, if they specify an email address that doesn't use the same capitalization as the email address specified when their user pool account was created, a "user does not exist" error message displays.
*/
public val userName: kotlin.String? = builder.userName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appstream.model.EnableUserRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("EnableUserRequest(")
append("authenticationType=$authenticationType,")
append("userName=*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = authenticationType?.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 EnableUserRequest
if (authenticationType != other.authenticationType) return false
if (userName != other.userName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appstream.model.EnableUserRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The authentication type for the user. You must specify USERPOOL.
*/
public var authenticationType: aws.sdk.kotlin.services.appstream.model.AuthenticationType? = null
/**
* The email address of the user.
*
* Users' email addresses are case-sensitive. During login, if they specify an email address that doesn't use the same capitalization as the email address specified when their user pool account was created, a "user does not exist" error message displays.
*/
public var userName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appstream.model.EnableUserRequest) : this() {
this.authenticationType = x.authenticationType
this.userName = x.userName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appstream.model.EnableUserRequest = EnableUserRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy