commonMain.aws.sdk.kotlin.services.bedrock.model.BatchDeleteEvaluationJobError.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bedrock-jvm Show documentation
Show all versions of bedrock-jvm Show documentation
The AWS SDK for Kotlin client for Bedrock
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.bedrock.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A JSON array that provides the status of the model evaluation jobs being deleted.
*/
public class BatchDeleteEvaluationJobError private constructor(builder: Builder) {
/**
* A HTTP status code of the model evaluation job being deleted.
*/
public val code: kotlin.String = requireNotNull(builder.code) { "A non-null value must be provided for code" }
/**
* The ARN of the model evaluation job being deleted.
*/
public val jobIdentifier: kotlin.String = requireNotNull(builder.jobIdentifier) { "A non-null value must be provided for jobIdentifier" }
/**
* A status message about the model evaluation job deletion.
*/
public val message: kotlin.String? = builder.message
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.bedrock.model.BatchDeleteEvaluationJobError = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchDeleteEvaluationJobError(")
append("code=$code,")
append("jobIdentifier=*** Sensitive Data Redacted ***,")
append("message=$message")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = code.hashCode()
result = 31 * result + (jobIdentifier.hashCode())
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 BatchDeleteEvaluationJobError
if (code != other.code) return false
if (jobIdentifier != other.jobIdentifier) return false
if (message != other.message) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.bedrock.model.BatchDeleteEvaluationJobError = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A HTTP status code of the model evaluation job being deleted.
*/
public var code: kotlin.String? = null
/**
* The ARN of the model evaluation job being deleted.
*/
public var jobIdentifier: kotlin.String? = null
/**
* A status message about the model evaluation job deletion.
*/
public var message: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.bedrock.model.BatchDeleteEvaluationJobError) : this() {
this.code = x.code
this.jobIdentifier = x.jobIdentifier
this.message = x.message
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.bedrock.model.BatchDeleteEvaluationJobError = BatchDeleteEvaluationJobError(this)
internal fun correctErrors(): Builder {
if (code == null) code = ""
if (jobIdentifier == null) jobIdentifier = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy