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.
*/
public class ResourceError private constructor(builder: Builder) {
/**
* The error code.
*/
public val errorCode: aws.sdk.kotlin.services.appstream.model.FleetErrorCode? = builder.errorCode
/**
* The error message.
*/
public val errorMessage: kotlin.String? = builder.errorMessage
/**
* The time the error occurred.
*/
public val errorTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.errorTimestamp
public companion object {
public 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")
append(")")
}
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
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appstream.model.ResourceError = Builder(this).apply(block).build()
public class Builder {
/**
* The error code.
*/
public var errorCode: aws.sdk.kotlin.services.appstream.model.FleetErrorCode? = null
/**
* The error message.
*/
public var errorMessage: kotlin.String? = null
/**
* The time the error occurred.
*/
public var errorTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
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