All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.cleanrooms.model.IdMappingTableInputReferenceConfig.kt Maven / Gradle / Ivy

There is a newer version: 1.3.35
Show newest version
// 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
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy