commonMain.aws.sdk.kotlin.services.databrew.model.RecipeVersionErrorDetail.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.databrew.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Represents any errors encountered when attempting to delete multiple recipe versions.
*/
public class RecipeVersionErrorDetail private constructor(builder: Builder) {
/**
* The HTTP status code for the error.
*/
public val errorCode: kotlin.String? = builder.errorCode
/**
* The text of the error message.
*/
public val errorMessage: kotlin.String? = builder.errorMessage
/**
* The identifier for the recipe version associated with this error.
*/
public val recipeVersion: kotlin.String? = builder.recipeVersion
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.databrew.model.RecipeVersionErrorDetail = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RecipeVersionErrorDetail(")
append("errorCode=$errorCode,")
append("errorMessage=$errorMessage,")
append("recipeVersion=$recipeVersion")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = errorCode?.hashCode() ?: 0
result = 31 * result + (errorMessage?.hashCode() ?: 0)
result = 31 * result + (recipeVersion?.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 RecipeVersionErrorDetail
if (errorCode != other.errorCode) return false
if (errorMessage != other.errorMessage) return false
if (recipeVersion != other.recipeVersion) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.databrew.model.RecipeVersionErrorDetail = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The HTTP status code for the error.
*/
public var errorCode: kotlin.String? = null
/**
* The text of the error message.
*/
public var errorMessage: kotlin.String? = null
/**
* The identifier for the recipe version associated with this error.
*/
public var recipeVersion: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.databrew.model.RecipeVersionErrorDetail) : this() {
this.errorCode = x.errorCode
this.errorMessage = x.errorMessage
this.recipeVersion = x.recipeVersion
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.databrew.model.RecipeVersionErrorDetail = RecipeVersionErrorDetail(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy