commonMain.aws.sdk.kotlin.services.appconfig.model.BadRequestException.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appconfig-jvm Show documentation
Show all versions of appconfig-jvm Show documentation
The AWS SDK for Kotlin client for AppConfig
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appconfig.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.ServiceErrorMetadata
/**
* The input fails to satisfy the constraints specified by an Amazon Web Services service.
*/
public class BadRequestException private constructor(builder: Builder) : AppConfigException(builder.message) {
/**
* Detailed information about the input that failed to satisfy the constraints specified by a call.
*/
public val details: aws.sdk.kotlin.services.appconfig.model.BadRequestDetails? = builder.details
public val reason: aws.sdk.kotlin.services.appconfig.model.BadRequestReason? = builder.reason
init {
sdkErrorMetadata.attributes[ServiceErrorMetadata.ErrorType] = ErrorType.Client
}
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appconfig.model.BadRequestException = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BadRequestException(")
append("details=$details,")
append("message=$message,")
append("reason=$reason")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = details?.hashCode() ?: 0
result = 31 * result + (message?.hashCode() ?: 0)
result = 31 * result + (reason?.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 BadRequestException
if (details != other.details) return false
if (message != other.message) return false
if (reason != other.reason) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appconfig.model.BadRequestException = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Detailed information about the input that failed to satisfy the constraints specified by a call.
*/
public var details: aws.sdk.kotlin.services.appconfig.model.BadRequestDetails? = null
public var message: kotlin.String? = null
public var reason: aws.sdk.kotlin.services.appconfig.model.BadRequestReason? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appconfig.model.BadRequestException) : this() {
this.details = x.details
this.message = x.message
this.reason = x.reason
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appconfig.model.BadRequestException = BadRequestException(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy