
commonMain.aws.sdk.kotlin.services.macie.model.InvalidInputException.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.macie.model
import aws.smithy.kotlin.runtime.ServiceErrorMetadata
/**
* (Discontinued) The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
*/
public class InvalidInputException private constructor(builder: Builder) : MacieException() {
/**
* Error code for the exception
*/
public val errorCode: kotlin.String? = builder.errorCode
/**
* Field that has invalid input
*/
public val fieldName: kotlin.String? = builder.fieldName
override val message: kotlin.String? = builder.message
init {
sdkErrorMetadata.attributes[ServiceErrorMetadata.ErrorType] = ErrorType.Client
}
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.macie.model.InvalidInputException = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("InvalidInputException(")
append("errorCode=$errorCode,")
append("fieldName=$fieldName,")
append("message=$message")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = errorCode?.hashCode() ?: 0
result = 31 * result + (fieldName?.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 InvalidInputException
if (errorCode != other.errorCode) return false
if (fieldName != other.fieldName) return false
if (message != other.message) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.macie.model.InvalidInputException = Builder(this).apply(block).build()
public class Builder {
/**
* Error code for the exception
*/
public var errorCode: kotlin.String? = null
/**
* Field that has invalid input
*/
public var fieldName: kotlin.String? = null
public var message: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.macie.model.InvalidInputException) : this() {
this.errorCode = x.errorCode
this.fieldName = x.fieldName
this.message = x.message
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.macie.model.InvalidInputException = InvalidInputException(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy