commonMain.aws.sdk.kotlin.services.dataexchange.model.RedshiftDataShareAssetSourceEntry.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dataexchange-jvm Show documentation
Show all versions of dataexchange-jvm Show documentation
The AWS Kotlin client for DataExchange
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.dataexchange.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The source of the Amazon Redshift datashare asset.
*/
public class RedshiftDataShareAssetSourceEntry private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the datashare asset.
*/
public val dataShareArn: kotlin.String = requireNotNull(builder.dataShareArn) { "A non-null value must be provided for dataShareArn" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.dataexchange.model.RedshiftDataShareAssetSourceEntry = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RedshiftDataShareAssetSourceEntry(")
append("dataShareArn=$dataShareArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = dataShareArn.hashCode()
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 RedshiftDataShareAssetSourceEntry
if (dataShareArn != other.dataShareArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.dataexchange.model.RedshiftDataShareAssetSourceEntry = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the datashare asset.
*/
public var dataShareArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.dataexchange.model.RedshiftDataShareAssetSourceEntry) : this() {
this.dataShareArn = x.dataShareArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.dataexchange.model.RedshiftDataShareAssetSourceEntry = RedshiftDataShareAssetSourceEntry(this)
internal fun correctErrors(): Builder {
if (dataShareArn == null) dataShareArn = ""
return this
}
}
}