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