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