commonMain.aws.sdk.kotlin.services.glacier.model.InsufficientCapacityException.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glacier-jvm Show documentation
Show all versions of glacier-jvm Show documentation
The AWS Kotlin client for Glacier
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glacier.model
import aws.smithy.kotlin.runtime.ServiceErrorMetadata
/**
* Returned if there is insufficient capacity to process this expedited request. This error only applies to expedited retrievals and not to standard or bulk retrievals.
*/
public class InsufficientCapacityException private constructor(builder: Builder) : GlacierException() {
public val code: kotlin.String? = builder.code
override val message: kotlin.String? = builder.message
public val type: kotlin.String? = builder.type
init {
sdkErrorMetadata.attributes[ServiceErrorMetadata.ErrorType] = ErrorType.Client
}
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glacier.model.InsufficientCapacityException = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("InsufficientCapacityException(")
append("code=$code,")
append("message=$message,")
append("type=$type)")
}
override fun hashCode(): kotlin.Int {
var result = code?.hashCode() ?: 0
result = 31 * result + (message?.hashCode() ?: 0)
result = 31 * result + (type?.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 InsufficientCapacityException
if (code != other.code) return false
if (message != other.message) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glacier.model.InsufficientCapacityException = Builder(this).apply(block).build()
public class Builder {
public var code: kotlin.String? = null
public var message: kotlin.String? = null
public var type: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glacier.model.InsufficientCapacityException) : this() {
this.code = x.code
this.message = x.message
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glacier.model.InsufficientCapacityException = InsufficientCapacityException(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy