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