commonMain.aws.sdk.kotlin.services.appstream.model.DisableUserRequest.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
public class DisableUserRequest 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.
*/
public val userName: kotlin.String? = builder.userName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appstream.model.DisableUserRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DisableUserRequest(")
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 DisableUserRequest
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.DisableUserRequest = Builder(this).apply(block).build()
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.
*/
public var userName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appstream.model.DisableUserRequest) : this() {
this.authenticationType = x.authenticationType
this.userName = x.userName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appstream.model.DisableUserRequest = DisableUserRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy