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

commonMain.aws.sdk.kotlin.services.cleanrooms.model.CreateIdNamespaceAssociationRequest.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

public class CreateIdNamespaceAssociationRequest private constructor(builder: Builder) {
    /**
     * The description of the ID namespace association.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The configuration settings for the ID mapping table.
     */
    public val idMappingConfig: aws.sdk.kotlin.services.cleanrooms.model.IdMappingConfig? = builder.idMappingConfig
    /**
     * The input reference configuration needed to create the ID namespace association.
     */
    public val inputReferenceConfig: aws.sdk.kotlin.services.cleanrooms.model.IdNamespaceAssociationInputReferenceConfig? = builder.inputReferenceConfig
    /**
     * The unique identifier of the membership that contains the ID namespace association.
     */
    public val membershipIdentifier: kotlin.String? = builder.membershipIdentifier
    /**
     * The name for the ID namespace association.
     */
    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.CreateIdNamespaceAssociationRequest = Builder().apply(block).build()
    }

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

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

        if (description != other.description) return false
        if (idMappingConfig != other.idMappingConfig) return false
        if (inputReferenceConfig != other.inputReferenceConfig) 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.CreateIdNamespaceAssociationRequest = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The description of the ID namespace association.
         */
        public var description: kotlin.String? = null
        /**
         * The configuration settings for the ID mapping table.
         */
        public var idMappingConfig: aws.sdk.kotlin.services.cleanrooms.model.IdMappingConfig? = null
        /**
         * The input reference configuration needed to create the ID namespace association.
         */
        public var inputReferenceConfig: aws.sdk.kotlin.services.cleanrooms.model.IdNamespaceAssociationInputReferenceConfig? = null
        /**
         * The unique identifier of the membership that contains the ID namespace association.
         */
        public var membershipIdentifier: kotlin.String? = null
        /**
         * The name for the ID namespace association.
         */
        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.CreateIdNamespaceAssociationRequest) : this() {
            this.description = x.description
            this.idMappingConfig = x.idMappingConfig
            this.inputReferenceConfig = x.inputReferenceConfig
            this.membershipIdentifier = x.membershipIdentifier
            this.name = x.name
            this.tags = x.tags
        }

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy