commonMain.aws.sdk.kotlin.services.cleanrooms.model.CreateConfiguredTableAssociationRequest.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
public class CreateConfiguredTableAssociationRequest private constructor(builder: Builder) {
/**
* A unique identifier for the configured table to be associated to. Currently accepts a configured table ID.
*/
public val configuredTableIdentifier: kotlin.String = requireNotNull(builder.configuredTableIdentifier) { "A non-null value must be provided for configuredTableIdentifier" }
/**
* A description for the configured table association.
*/
public val description: kotlin.String? = builder.description
/**
* A unique identifier for one of your memberships for a collaboration. The configured table is associated to the collaboration that this membership belongs to. Currently accepts a membership ID.
*/
public val membershipIdentifier: kotlin.String = requireNotNull(builder.membershipIdentifier) { "A non-null value must be provided for membershipIdentifier" }
/**
* The name of the configured table association. This name is used to query the underlying configured table.
*/
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" }
/**
* An optional label that you can assign to a resource when you create it. Each tag consists of a key and an optional value, both of which you define. When you use tagging, you can also use tag-based access control in IAM policies to control access to this resource.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cleanrooms.model.CreateConfiguredTableAssociationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateConfiguredTableAssociationRequest(")
append("configuredTableIdentifier=$configuredTableIdentifier,")
append("description=$description,")
append("membershipIdentifier=$membershipIdentifier,")
append("name=$name,")
append("roleArn=$roleArn,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = configuredTableIdentifier.hashCode()
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (membershipIdentifier.hashCode())
result = 31 * result + (name.hashCode())
result = 31 * result + (roleArn.hashCode())
result = 31 * result + (tags?.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 CreateConfiguredTableAssociationRequest
if (configuredTableIdentifier != other.configuredTableIdentifier) return false
if (description != other.description) return false
if (membershipIdentifier != other.membershipIdentifier) return false
if (name != other.name) return false
if (roleArn != other.roleArn) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cleanrooms.model.CreateConfiguredTableAssociationRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A unique identifier for the configured table to be associated to. Currently accepts a configured table ID.
*/
public var configuredTableIdentifier: kotlin.String? = null
/**
* A description for the configured table association.
*/
public var description: kotlin.String? = null
/**
* A unique identifier for one of your memberships for a collaboration. The configured table is associated to the collaboration that this membership belongs to. Currently accepts a membership ID.
*/
public var membershipIdentifier: kotlin.String? = null
/**
* The name of the configured table association. This name is used to query the underlying configured table.
*/
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
/**
* An optional label that you can assign to a resource when you create it. Each tag consists of a key and an optional value, both of which you define. When you use tagging, you can also use tag-based access control in IAM policies to control access to this resource.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cleanrooms.model.CreateConfiguredTableAssociationRequest) : this() {
this.configuredTableIdentifier = x.configuredTableIdentifier
this.description = x.description
this.membershipIdentifier = x.membershipIdentifier
this.name = x.name
this.roleArn = x.roleArn
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cleanrooms.model.CreateConfiguredTableAssociationRequest = CreateConfiguredTableAssociationRequest(this)
internal fun correctErrors(): Builder {
if (configuredTableIdentifier == null) configuredTableIdentifier = ""
if (membershipIdentifier == null) membershipIdentifier = ""
if (name == null) name = ""
if (roleArn == null) roleArn = ""
return this
}
}
}