commonMain.aws.sdk.kotlin.services.appstream.model.UserStackAssociationError.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 the error that is returned when a user can’t be associated with or disassociated from a stack.
*/
public class UserStackAssociationError private constructor(builder: Builder) {
/**
* The error code for the error that is returned when a user can’t be associated with or disassociated from a stack.
*/
public val errorCode: aws.sdk.kotlin.services.appstream.model.UserStackAssociationErrorCode? = builder.errorCode
/**
* The error message for the error that is returned when a user can’t be associated with or disassociated from a stack.
*/
public val errorMessage: kotlin.String? = builder.errorMessage
/**
* Information about the user and associated stack.
*/
public val userStackAssociation: aws.sdk.kotlin.services.appstream.model.UserStackAssociation? = builder.userStackAssociation
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appstream.model.UserStackAssociationError = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UserStackAssociationError(")
append("errorCode=$errorCode,")
append("errorMessage=$errorMessage,")
append("userStackAssociation=$userStackAssociation")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = errorCode?.hashCode() ?: 0
result = 31 * result + (errorMessage?.hashCode() ?: 0)
result = 31 * result + (userStackAssociation?.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 UserStackAssociationError
if (errorCode != other.errorCode) return false
if (errorMessage != other.errorMessage) return false
if (userStackAssociation != other.userStackAssociation) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appstream.model.UserStackAssociationError = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The error code for the error that is returned when a user can’t be associated with or disassociated from a stack.
*/
public var errorCode: aws.sdk.kotlin.services.appstream.model.UserStackAssociationErrorCode? = null
/**
* The error message for the error that is returned when a user can’t be associated with or disassociated from a stack.
*/
public var errorMessage: kotlin.String? = null
/**
* Information about the user and associated stack.
*/
public var userStackAssociation: aws.sdk.kotlin.services.appstream.model.UserStackAssociation? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appstream.model.UserStackAssociationError) : this() {
this.errorCode = x.errorCode
this.errorMessage = x.errorMessage
this.userStackAssociation = x.userStackAssociation
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appstream.model.UserStackAssociationError = UserStackAssociationError(this)
/**
* construct an [aws.sdk.kotlin.services.appstream.model.UserStackAssociation] inside the given [block]
*/
public fun userStackAssociation(block: aws.sdk.kotlin.services.appstream.model.UserStackAssociation.Builder.() -> kotlin.Unit) {
this.userStackAssociation = aws.sdk.kotlin.services.appstream.model.UserStackAssociation.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy