commonMain.aws.sdk.kotlin.services.cleanrooms.model.ConfiguredTableAssociation.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cleanrooms-jvm Show documentation
Show all versions of cleanrooms-jvm Show documentation
The AWS SDK for Kotlin client for CleanRooms
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cleanrooms.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* A configured table association links a configured table to a collaboration.
*/
public class ConfiguredTableAssociation private constructor(builder: Builder) {
/**
* The analysis rule types for the configured table association.
*/
public val analysisRuleTypes: List? = builder.analysisRuleTypes
/**
* The unique ARN for the configured table association.
*/
public val arn: kotlin.String = requireNotNull(builder.arn) { "A non-null value must be provided for arn" }
/**
* The unique ARN for the configured table that the association refers to.
*/
public val configuredTableArn: kotlin.String = requireNotNull(builder.configuredTableArn) { "A non-null value must be provided for configuredTableArn" }
/**
* The unique ID for the configured table that the association refers to.
*/
public val configuredTableId: kotlin.String = requireNotNull(builder.configuredTableId) { "A non-null value must be provided for configuredTableId" }
/**
* The time the configured table association was created.
*/
public val createTime: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.createTime) { "A non-null value must be provided for createTime" }
/**
* A description of the configured table association.
*/
public val description: kotlin.String? = builder.description
/**
* The unique ID for the configured table association.
*/
public val id: kotlin.String = requireNotNull(builder.id) { "A non-null value must be provided for id" }
/**
* The unique ARN for the membership this configured table association belongs to.
*/
public val membershipArn: kotlin.String = requireNotNull(builder.membershipArn) { "A non-null value must be provided for membershipArn" }
/**
* The unique ID for the membership this configured table association belongs to.
*/
public val membershipId: kotlin.String = requireNotNull(builder.membershipId) { "A non-null value must be provided for membershipId" }
/**
* The name of the configured table association, in lowercase. The table is identified by this name when running protected queries against the underlying data.
*/
public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
/**
* The service will assume this role to access catalog metadata and query the table.
*/
public val roleArn: kotlin.String = requireNotNull(builder.roleArn) { "A non-null value must be provided for roleArn" }
/**
* The time the configured table association was last updated.
*/
public val updateTime: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.updateTime) { "A non-null value must be provided for updateTime" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cleanrooms.model.ConfiguredTableAssociation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ConfiguredTableAssociation(")
append("analysisRuleTypes=$analysisRuleTypes,")
append("arn=$arn,")
append("configuredTableArn=$configuredTableArn,")
append("configuredTableId=$configuredTableId,")
append("createTime=$createTime,")
append("description=$description,")
append("id=$id,")
append("membershipArn=$membershipArn,")
append("membershipId=$membershipId,")
append("name=$name,")
append("roleArn=$roleArn,")
append("updateTime=$updateTime")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = analysisRuleTypes?.hashCode() ?: 0
result = 31 * result + (arn.hashCode())
result = 31 * result + (configuredTableArn.hashCode())
result = 31 * result + (configuredTableId.hashCode())
result = 31 * result + (createTime.hashCode())
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (id.hashCode())
result = 31 * result + (membershipArn.hashCode())
result = 31 * result + (membershipId.hashCode())
result = 31 * result + (name.hashCode())
result = 31 * result + (roleArn.hashCode())
result = 31 * result + (updateTime.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 ConfiguredTableAssociation
if (analysisRuleTypes != other.analysisRuleTypes) return false
if (arn != other.arn) return false
if (configuredTableArn != other.configuredTableArn) return false
if (configuredTableId != other.configuredTableId) return false
if (createTime != other.createTime) return false
if (description != other.description) return false
if (id != other.id) return false
if (membershipArn != other.membershipArn) return false
if (membershipId != other.membershipId) return false
if (name != other.name) return false
if (roleArn != other.roleArn) return false
if (updateTime != other.updateTime) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cleanrooms.model.ConfiguredTableAssociation = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The analysis rule types for the configured table association.
*/
public var analysisRuleTypes: List? = null
/**
* The unique ARN for the configured table association.
*/
public var arn: kotlin.String? = null
/**
* The unique ARN for the configured table that the association refers to.
*/
public var configuredTableArn: kotlin.String? = null
/**
* The unique ID for the configured table that the association refers to.
*/
public var configuredTableId: kotlin.String? = null
/**
* The time the configured table association was created.
*/
public var createTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* A description of the configured table association.
*/
public var description: kotlin.String? = null
/**
* The unique ID for the configured table association.
*/
public var id: kotlin.String? = null
/**
* The unique ARN for the membership this configured table association belongs to.
*/
public var membershipArn: kotlin.String? = null
/**
* The unique ID for the membership this configured table association belongs to.
*/
public var membershipId: kotlin.String? = null
/**
* The name of the configured table association, in lowercase. The table is identified by this name when running protected queries against the underlying data.
*/
public var name: kotlin.String? = null
/**
* The service will assume this role to access catalog metadata and query the table.
*/
public var roleArn: kotlin.String? = null
/**
* The time the configured table association was last updated.
*/
public var updateTime: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cleanrooms.model.ConfiguredTableAssociation) : this() {
this.analysisRuleTypes = x.analysisRuleTypes
this.arn = x.arn
this.configuredTableArn = x.configuredTableArn
this.configuredTableId = x.configuredTableId
this.createTime = x.createTime
this.description = x.description
this.id = x.id
this.membershipArn = x.membershipArn
this.membershipId = x.membershipId
this.name = x.name
this.roleArn = x.roleArn
this.updateTime = x.updateTime
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cleanrooms.model.ConfiguredTableAssociation = ConfiguredTableAssociation(this)
internal fun correctErrors(): Builder {
if (arn == null) arn = ""
if (configuredTableArn == null) configuredTableArn = ""
if (configuredTableId == null) configuredTableId = ""
if (createTime == null) createTime = Instant.fromEpochSeconds(0)
if (id == null) id = ""
if (membershipArn == null) membershipArn = ""
if (membershipId == null) membershipId = ""
if (name == null) name = ""
if (roleArn == null) roleArn = ""
if (updateTime == null) updateTime = Instant.fromEpochSeconds(0)
return this
}
}
}