aws.sdk.kotlin.services.sagemakerfeaturestoreruntime.model.ResourceNotFound.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sagemakerfeaturestoreruntime Show documentation
Show all versions of sagemakerfeaturestoreruntime Show documentation
The AWS SDK for Kotlin client for SageMaker FeatureStore Runtime
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemakerfeaturestoreruntime.model
import aws.smithy.kotlin.runtime.ServiceErrorMetadata
/**
* A resource that is required to perform an action was not found.
*/
class ResourceNotFound private constructor(builder: BuilderImpl) : SageMakerFeatureStoreRuntimeException() {
override val message: String? = builder.message
init {
sdkErrorMetadata.attributes[ServiceErrorMetadata.ErrorType] = ErrorType.Client
}
companion object {
@JvmStatic
fun fluentBuilder(): FluentBuilder = BuilderImpl()
internal fun builder(): DslBuilder = BuilderImpl()
operator fun invoke(block: DslBuilder.() -> kotlin.Unit): ResourceNotFound = BuilderImpl().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ResourceNotFound(")
append("message=$message)")
}
override fun hashCode(): kotlin.Int {
var result = message?.hashCode() ?: 0
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (javaClass != other?.javaClass) return false
other as ResourceNotFound
if (message != other.message) return false
return true
}
fun copy(block: DslBuilder.() -> kotlin.Unit = {}): ResourceNotFound = BuilderImpl(this).apply(block).build()
interface FluentBuilder {
fun build(): ResourceNotFound
fun message(message: String): FluentBuilder
}
interface DslBuilder {
var message: String?
fun build(): ResourceNotFound
}
private class BuilderImpl() : FluentBuilder, DslBuilder {
override var message: String? = null
constructor(x: ResourceNotFound) : this() {
this.message = x.message
}
override fun build(): ResourceNotFound = ResourceNotFound(this)
override fun message(message: String): FluentBuilder = apply { this.message = message }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy