commonMain.aws.sdk.kotlin.services.appstream.model.ResourceError.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.time.Instant
/**
* Describes a resource error.
*/
class ResourceError private constructor(builder: Builder) {
/**
* The error code.
*/
val errorCode: aws.sdk.kotlin.services.appstream.model.FleetErrorCode? = builder.errorCode
/**
* The error message.
*/
val errorMessage: kotlin.String? = builder.errorMessage
/**
* The time the error occurred.
*/
val errorTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.errorTimestamp
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appstream.model.ResourceError = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ResourceError(")
append("errorCode=$errorCode,")
append("errorMessage=$errorMessage,")
append("errorTimestamp=$errorTimestamp)")
}
override fun hashCode(): kotlin.Int {
var result = errorCode?.hashCode() ?: 0
result = 31 * result + (errorMessage?.hashCode() ?: 0)
result = 31 * result + (errorTimestamp?.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 ResourceError
if (errorCode != other.errorCode) return false
if (errorMessage != other.errorMessage) return false
if (errorTimestamp != other.errorTimestamp) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appstream.model.ResourceError = Builder(this).apply(block).build()
class Builder {
/**
* The error code.
*/
var errorCode: aws.sdk.kotlin.services.appstream.model.FleetErrorCode? = null
/**
* The error message.
*/
var errorMessage: kotlin.String? = null
/**
* The time the error occurred.
*/
var errorTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appstream.model.ResourceError) : this() {
this.errorCode = x.errorCode
this.errorMessage = x.errorMessage
this.errorTimestamp = x.errorTimestamp
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appstream.model.ResourceError = ResourceError(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy