
commonMain.aws.sdk.kotlin.services.rekognition.model.ImageTooLargeException.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.rekognition.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.ServiceErrorMetadata
/**
* The input image size exceeds the allowed limit. If you are calling DetectProtectiveEquipment, the image size or resolution exceeds the allowed limit. For more information, see Guidelines and quotas in Amazon Rekognition in the Amazon Rekognition Developer Guide.
*/
public class ImageTooLargeException private constructor(builder: Builder) : RekognitionException(builder.message) {
public val code: kotlin.String? = builder.code
/**
* A universally unique identifier (UUID) for the request.
*/
public val logref: kotlin.String? = builder.logref
init {
sdkErrorMetadata.attributes[ServiceErrorMetadata.ErrorType] = ErrorType.Client
}
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.rekognition.model.ImageTooLargeException = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ImageTooLargeException(")
append("code=$code,")
append("logref=$logref,")
append("message=$message")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = code?.hashCode() ?: 0
result = 31 * result + (logref?.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 ImageTooLargeException
if (code != other.code) return false
if (logref != other.logref) return false
if (message != other.message) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.rekognition.model.ImageTooLargeException = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
public var code: kotlin.String? = null
/**
* A universally unique identifier (UUID) for the request.
*/
public var logref: kotlin.String? = null
public var message: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.rekognition.model.ImageTooLargeException) : this() {
this.code = x.code
this.logref = x.logref
this.message = x.message
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.rekognition.model.ImageTooLargeException = ImageTooLargeException(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy