commonMain.aws.sdk.kotlin.services.cleanrooms.model.IdMappingTableInputReferenceConfig.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
/**
* Provides the input reference configuration for the ID mapping table.
*/
public class IdMappingTableInputReferenceConfig private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the referenced resource in Entity Resolution. Valid values are ID mapping workflow ARNs.
*/
public val inputReferenceArn: kotlin.String = requireNotNull(builder.inputReferenceArn) { "A non-null value must be provided for inputReferenceArn" }
/**
* When `TRUE`, Clean Rooms manages permissions for the ID mapping table resource.
*
* When `FALSE`, the resource owner manages permissions for the ID mapping table resource.
*/
public val manageResourcePolicies: kotlin.Boolean = requireNotNull(builder.manageResourcePolicies) { "A non-null value must be provided for manageResourcePolicies" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cleanrooms.model.IdMappingTableInputReferenceConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("IdMappingTableInputReferenceConfig(")
append("inputReferenceArn=$inputReferenceArn,")
append("manageResourcePolicies=$manageResourcePolicies")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = inputReferenceArn.hashCode()
result = 31 * result + (manageResourcePolicies.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 IdMappingTableInputReferenceConfig
if (inputReferenceArn != other.inputReferenceArn) return false
if (manageResourcePolicies != other.manageResourcePolicies) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cleanrooms.model.IdMappingTableInputReferenceConfig = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the referenced resource in Entity Resolution. Valid values are ID mapping workflow ARNs.
*/
public var inputReferenceArn: kotlin.String? = null
/**
* When `TRUE`, Clean Rooms manages permissions for the ID mapping table resource.
*
* When `FALSE`, the resource owner manages permissions for the ID mapping table resource.
*/
public var manageResourcePolicies: kotlin.Boolean? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cleanrooms.model.IdMappingTableInputReferenceConfig) : this() {
this.inputReferenceArn = x.inputReferenceArn
this.manageResourcePolicies = x.manageResourcePolicies
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cleanrooms.model.IdMappingTableInputReferenceConfig = IdMappingTableInputReferenceConfig(this)
internal fun correctErrors(): Builder {
if (inputReferenceArn == null) inputReferenceArn = ""
if (manageResourcePolicies == null) manageResourcePolicies = false
return this
}
}
}