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

commonMain.aws.sdk.kotlin.services.cleanrooms.model.IdNamespaceAssociationInputReferenceProperties.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
import aws.smithy.kotlin.runtime.content.Document

/**
 * Provides the information for the ID namespace association input reference properties.
 */
public class IdNamespaceAssociationInputReferenceProperties private constructor(builder: Builder) {
    /**
     * Defines how ID mapping workflows are supported for this ID namespace association.
     */
    public val idMappingWorkflowsSupported: List = requireNotNull(builder.idMappingWorkflowsSupported) { "A non-null value must be provided for idMappingWorkflowsSupported" }
    /**
     * The ID namespace type for this ID namespace association.
     */
    public val idNamespaceType: aws.sdk.kotlin.services.cleanrooms.model.IdNamespaceType = requireNotNull(builder.idNamespaceType) { "A non-null value must be provided for idNamespaceType" }

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

    override fun toString(): kotlin.String = buildString {
        append("IdNamespaceAssociationInputReferenceProperties(")
        append("idMappingWorkflowsSupported=$idMappingWorkflowsSupported,")
        append("idNamespaceType=$idNamespaceType")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = idMappingWorkflowsSupported.hashCode()
        result = 31 * result + (idNamespaceType.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 IdNamespaceAssociationInputReferenceProperties

        if (idMappingWorkflowsSupported != other.idMappingWorkflowsSupported) return false
        if (idNamespaceType != other.idNamespaceType) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Defines how ID mapping workflows are supported for this ID namespace association.
         */
        public var idMappingWorkflowsSupported: List? = null
        /**
         * The ID namespace type for this ID namespace association.
         */
        public var idNamespaceType: aws.sdk.kotlin.services.cleanrooms.model.IdNamespaceType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.cleanrooms.model.IdNamespaceAssociationInputReferenceProperties) : this() {
            this.idMappingWorkflowsSupported = x.idMappingWorkflowsSupported
            this.idNamespaceType = x.idNamespaceType
        }

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

        internal fun correctErrors(): Builder {
            if (idMappingWorkflowsSupported == null) idMappingWorkflowsSupported = emptyList()
            if (idNamespaceType == null) idNamespaceType = IdNamespaceType.SdkUnknown("no value provided")
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy