commonMain.aws.sdk.kotlin.services.cleanrooms.model.GetConfiguredTableAssociationRequest.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 GetConfiguredTableAssociationRequest private constructor(builder: Builder) {
/**
* The unique ID for the configured table association to retrieve. Currently accepts the configured table ID.
*/
public val configuredTableAssociationIdentifier: kotlin.String = requireNotNull(builder.configuredTableAssociationIdentifier) { "A non-null value must be provided for configuredTableAssociationIdentifier" }
/**
* A unique identifier for the membership that the configured table association belongs to. Currently accepts the membership ID.
*/
public val membershipIdentifier: kotlin.String = requireNotNull(builder.membershipIdentifier) { "A non-null value must be provided for membershipIdentifier" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cleanrooms.model.GetConfiguredTableAssociationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetConfiguredTableAssociationRequest(")
append("configuredTableAssociationIdentifier=$configuredTableAssociationIdentifier,")
append("membershipIdentifier=$membershipIdentifier")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = configuredTableAssociationIdentifier.hashCode()
result = 31 * result + (membershipIdentifier.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 GetConfiguredTableAssociationRequest
if (configuredTableAssociationIdentifier != other.configuredTableAssociationIdentifier) return false
if (membershipIdentifier != other.membershipIdentifier) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cleanrooms.model.GetConfiguredTableAssociationRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The unique ID for the configured table association to retrieve. Currently accepts the configured table ID.
*/
public var configuredTableAssociationIdentifier: kotlin.String? = null
/**
* A unique identifier for the membership that the configured table association belongs to. Currently accepts the membership ID.
*/
public var membershipIdentifier: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cleanrooms.model.GetConfiguredTableAssociationRequest) : this() {
this.configuredTableAssociationIdentifier = x.configuredTableAssociationIdentifier
this.membershipIdentifier = x.membershipIdentifier
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cleanrooms.model.GetConfiguredTableAssociationRequest = GetConfiguredTableAssociationRequest(this)
internal fun correctErrors(): Builder {
if (configuredTableAssociationIdentifier == null) configuredTableAssociationIdentifier = ""
if (membershipIdentifier == null) membershipIdentifier = ""
return this
}
}
}