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

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

There is a newer version: 1.3.31
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

public class CreateIdMappingTableRequest private constructor(builder: Builder) {
    /**
     * A description of the ID mapping table.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The input reference configuration needed to create the ID mapping table.
     */
    public val inputReferenceConfig: aws.sdk.kotlin.services.cleanrooms.model.IdMappingTableInputReferenceConfig? = builder.inputReferenceConfig
    /**
     * The Amazon Resource Name (ARN) of the Amazon Web Services KMS key. This value is used to encrypt the mapping table data that is stored by Clean Rooms.
     */
    public val kmsKeyArn: kotlin.String? = builder.kmsKeyArn
    /**
     * The unique identifier of the membership that contains the ID mapping table.
     */
    public val membershipIdentifier: kotlin.String? = builder.membershipIdentifier
    /**
     * A name for the ID mapping table.
     */
    public val name: kotlin.String? = builder.name
    /**
     * 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.CreateIdMappingTableRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("CreateIdMappingTableRequest(")
        append("description=$description,")
        append("inputReferenceConfig=$inputReferenceConfig,")
        append("kmsKeyArn=$kmsKeyArn,")
        append("membershipIdentifier=$membershipIdentifier,")
        append("name=$name,")
        append("tags=$tags")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = description?.hashCode() ?: 0
        result = 31 * result + (inputReferenceConfig?.hashCode() ?: 0)
        result = 31 * result + (kmsKeyArn?.hashCode() ?: 0)
        result = 31 * result + (membershipIdentifier?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        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 CreateIdMappingTableRequest

        if (description != other.description) return false
        if (inputReferenceConfig != other.inputReferenceConfig) return false
        if (kmsKeyArn != other.kmsKeyArn) return false
        if (membershipIdentifier != other.membershipIdentifier) return false
        if (name != other.name) return false
        if (tags != other.tags) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cleanrooms.model.CreateIdMappingTableRequest = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * A description of the ID mapping table.
         */
        public var description: kotlin.String? = null
        /**
         * The input reference configuration needed to create the ID mapping table.
         */
        public var inputReferenceConfig: aws.sdk.kotlin.services.cleanrooms.model.IdMappingTableInputReferenceConfig? = null
        /**
         * The Amazon Resource Name (ARN) of the Amazon Web Services KMS key. This value is used to encrypt the mapping table data that is stored by Clean Rooms.
         */
        public var kmsKeyArn: kotlin.String? = null
        /**
         * The unique identifier of the membership that contains the ID mapping table.
         */
        public var membershipIdentifier: kotlin.String? = null
        /**
         * A name for the ID mapping table.
         */
        public var name: 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.CreateIdMappingTableRequest) : this() {
            this.description = x.description
            this.inputReferenceConfig = x.inputReferenceConfig
            this.kmsKeyArn = x.kmsKeyArn
            this.membershipIdentifier = x.membershipIdentifier
            this.name = x.name
            this.tags = x.tags
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.cleanrooms.model.CreateIdMappingTableRequest = CreateIdMappingTableRequest(this)

        /**
         * construct an [aws.sdk.kotlin.services.cleanrooms.model.IdMappingTableInputReferenceConfig] inside the given [block]
         */
        public fun inputReferenceConfig(block: aws.sdk.kotlin.services.cleanrooms.model.IdMappingTableInputReferenceConfig.Builder.() -> kotlin.Unit) {
            this.inputReferenceConfig = aws.sdk.kotlin.services.cleanrooms.model.IdMappingTableInputReferenceConfig.invoke(block)
        }

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy