commonMain.aws.sdk.kotlin.services.cleanroomsml.model.Destination.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cleanroomsml-jvm Show documentation
Show all versions of cleanroomsml-jvm Show documentation
The AWS SDK for Kotlin client for CleanRoomsML
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cleanroomsml.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The Amazon S3 location where the exported model artifacts are stored.
*/
public class Destination private constructor(builder: Builder) {
/**
* Provides information about an Amazon S3 bucket and path.
*/
public val s3Destination: aws.sdk.kotlin.services.cleanroomsml.model.S3ConfigMap? = builder.s3Destination
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cleanroomsml.model.Destination = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Destination(")
append("s3Destination=$s3Destination")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = s3Destination?.hashCode() ?: 0
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as Destination
if (s3Destination != other.s3Destination) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cleanroomsml.model.Destination = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Provides information about an Amazon S3 bucket and path.
*/
public var s3Destination: aws.sdk.kotlin.services.cleanroomsml.model.S3ConfigMap? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cleanroomsml.model.Destination) : this() {
this.s3Destination = x.s3Destination
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cleanroomsml.model.Destination = Destination(this)
/**
* construct an [aws.sdk.kotlin.services.cleanroomsml.model.S3ConfigMap] inside the given [block]
*/
public fun s3Destination(block: aws.sdk.kotlin.services.cleanroomsml.model.S3ConfigMap.Builder.() -> kotlin.Unit) {
this.s3Destination = aws.sdk.kotlin.services.cleanroomsml.model.S3ConfigMap.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}