commonMain.aws.sdk.kotlin.services.appstream.model.ImageStateChangeReason.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 reason why the last image state change occurred.
*/
class ImageStateChangeReason private constructor(builder: Builder) {
/**
* The state change reason code.
*/
val code: aws.sdk.kotlin.services.appstream.model.ImageStateChangeReasonCode? = builder.code
/**
* The state change reason message.
*/
val message: kotlin.String? = builder.message
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appstream.model.ImageStateChangeReason = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ImageStateChangeReason(")
append("code=$code,")
append("message=$message)")
}
override fun hashCode(): kotlin.Int {
var result = code?.hashCode() ?: 0
result = 31 * result + (message?.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 ImageStateChangeReason
if (code != other.code) return false
if (message != other.message) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appstream.model.ImageStateChangeReason = Builder(this).apply(block).build()
class Builder {
/**
* The state change reason code.
*/
var code: aws.sdk.kotlin.services.appstream.model.ImageStateChangeReasonCode? = null
/**
* The state change reason message.
*/
var message: kotlin.String? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appstream.model.ImageStateChangeReason) : this() {
this.code = x.code
this.message = x.message
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appstream.model.ImageStateChangeReason = ImageStateChangeReason(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy