commonMain.aws.sdk.kotlin.services.cleanroomsml.model.AudienceDestination.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
/**
* Defines the Amazon S3 bucket where the configured audience is stored.
*/
public class AudienceDestination private constructor(builder: Builder) {
/**
* The Amazon S3 bucket and path for the configured audience.
*/
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.AudienceDestination = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AudienceDestination(")
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 AudienceDestination
if (s3Destination != other.s3Destination) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cleanroomsml.model.AudienceDestination = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon S3 bucket and path for the configured audience.
*/
public var s3Destination: aws.sdk.kotlin.services.cleanroomsml.model.S3ConfigMap? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cleanroomsml.model.AudienceDestination) : this() {
this.s3Destination = x.s3Destination
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cleanroomsml.model.AudienceDestination = AudienceDestination(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
}
}
}