aws.sdk.kotlin.services.sagemaker.model.StopPipelineExecutionRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemaker.model
class StopPipelineExecutionRequest private constructor(builder: BuilderImpl) {
/**
* A unique, case-sensitive identifier that you provide to ensure the idempotency of the
* operation. An idempotent operation completes no more than once.
*/
val clientRequestToken: String? = builder.clientRequestToken
/**
* The Amazon Resource Name (ARN) of the pipeline execution.
*/
val pipelineExecutionArn: String? = builder.pipelineExecutionArn
companion object {
@JvmStatic
fun fluentBuilder(): FluentBuilder = BuilderImpl()
internal fun builder(): DslBuilder = BuilderImpl()
operator fun invoke(block: DslBuilder.() -> kotlin.Unit): StopPipelineExecutionRequest = BuilderImpl().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StopPipelineExecutionRequest(")
append("clientRequestToken=$clientRequestToken,")
append("pipelineExecutionArn=$pipelineExecutionArn)")
}
override fun hashCode(): kotlin.Int {
var result = clientRequestToken?.hashCode() ?: 0
result = 31 * result + (pipelineExecutionArn?.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 StopPipelineExecutionRequest
if (clientRequestToken != other.clientRequestToken) return false
if (pipelineExecutionArn != other.pipelineExecutionArn) return false
return true
}
fun copy(block: DslBuilder.() -> kotlin.Unit = {}): StopPipelineExecutionRequest = BuilderImpl(this).apply(block).build()
interface FluentBuilder {
fun build(): StopPipelineExecutionRequest
/**
* A unique, case-sensitive identifier that you provide to ensure the idempotency of the
* operation. An idempotent operation completes no more than once.
*/
fun clientRequestToken(clientRequestToken: String): FluentBuilder
/**
* The Amazon Resource Name (ARN) of the pipeline execution.
*/
fun pipelineExecutionArn(pipelineExecutionArn: String): FluentBuilder
}
interface DslBuilder {
/**
* A unique, case-sensitive identifier that you provide to ensure the idempotency of the
* operation. An idempotent operation completes no more than once.
*/
var clientRequestToken: String?
/**
* The Amazon Resource Name (ARN) of the pipeline execution.
*/
var pipelineExecutionArn: String?
fun build(): StopPipelineExecutionRequest
}
private class BuilderImpl() : FluentBuilder, DslBuilder {
override var clientRequestToken: String? = null
override var pipelineExecutionArn: String? = null
constructor(x: StopPipelineExecutionRequest) : this() {
this.clientRequestToken = x.clientRequestToken
this.pipelineExecutionArn = x.pipelineExecutionArn
}
override fun build(): StopPipelineExecutionRequest = StopPipelineExecutionRequest(this)
override fun clientRequestToken(clientRequestToken: String): FluentBuilder = apply { this.clientRequestToken = clientRequestToken }
override fun pipelineExecutionArn(pipelineExecutionArn: String): FluentBuilder = apply { this.pipelineExecutionArn = pipelineExecutionArn }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy