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