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

commonMain.aws.sdk.kotlin.services.cleanrooms.model.UpdateIdNamespaceAssociationRequest.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 UpdateIdNamespaceAssociationRequest private constructor(builder: Builder) {
    /**
     * A new description for 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 unique identifier of the ID namespace association that you want to update.
     */
    public val idNamespaceAssociationIdentifier: kotlin.String? = builder.idNamespaceAssociationIdentifier
    /**
     * The unique identifier of the membership that contains the ID namespace association that you want to update.
     */
    public val membershipIdentifier: kotlin.String? = builder.membershipIdentifier
    /**
     * A new name for the ID namespace association.
     */
    public val name: kotlin.String? = builder.name

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cleanrooms.model.UpdateIdNamespaceAssociationRequest = Builder().apply(block).build()
    }

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

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

        if (description != other.description) return false
        if (idMappingConfig != other.idMappingConfig) return false
        if (idNamespaceAssociationIdentifier != other.idNamespaceAssociationIdentifier) return false
        if (membershipIdentifier != other.membershipIdentifier) return false
        if (name != other.name) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A new description for 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 unique identifier of the ID namespace association that you want to update.
         */
        public var idNamespaceAssociationIdentifier: kotlin.String? = null
        /**
         * The unique identifier of the membership that contains the ID namespace association that you want to update.
         */
        public var membershipIdentifier: kotlin.String? = null
        /**
         * A new name for the ID namespace association.
         */
        public var name: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.cleanrooms.model.UpdateIdNamespaceAssociationRequest) : this() {
            this.description = x.description
            this.idMappingConfig = x.idMappingConfig
            this.idNamespaceAssociationIdentifier = x.idNamespaceAssociationIdentifier
            this.membershipIdentifier = x.membershipIdentifier
            this.name = x.name
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.cleanrooms.model.UpdateIdNamespaceAssociationRequest = UpdateIdNamespaceAssociationRequest(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)
        }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy