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