aws.sdk.kotlin.services.sagemaker.model.UpdateModelPackageResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemaker.model
class UpdateModelPackageResponse private constructor(builder: BuilderImpl) {
/**
* The Amazon Resource Name (ARN) of the model.
*/
val modelPackageArn: String? = builder.modelPackageArn
companion object {
@JvmStatic
fun fluentBuilder(): FluentBuilder = BuilderImpl()
internal fun builder(): DslBuilder = BuilderImpl()
operator fun invoke(block: DslBuilder.() -> kotlin.Unit): UpdateModelPackageResponse = BuilderImpl().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateModelPackageResponse(")
append("modelPackageArn=$modelPackageArn)")
}
override fun hashCode(): kotlin.Int {
var result = modelPackageArn?.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 UpdateModelPackageResponse
if (modelPackageArn != other.modelPackageArn) return false
return true
}
fun copy(block: DslBuilder.() -> kotlin.Unit = {}): UpdateModelPackageResponse = BuilderImpl(this).apply(block).build()
interface FluentBuilder {
fun build(): UpdateModelPackageResponse
/**
* The Amazon Resource Name (ARN) of the model.
*/
fun modelPackageArn(modelPackageArn: String): FluentBuilder
}
interface DslBuilder {
/**
* The Amazon Resource Name (ARN) of the model.
*/
var modelPackageArn: String?
fun build(): UpdateModelPackageResponse
}
private class BuilderImpl() : FluentBuilder, DslBuilder {
override var modelPackageArn: String? = null
constructor(x: UpdateModelPackageResponse) : this() {
this.modelPackageArn = x.modelPackageArn
}
override fun build(): UpdateModelPackageResponse = UpdateModelPackageResponse(this)
override fun modelPackageArn(modelPackageArn: String): FluentBuilder = apply { this.modelPackageArn = modelPackageArn }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy