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

commonMain.aws.sdk.kotlin.services.cleanrooms.model.IdMappingTable.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
import aws.smithy.kotlin.runtime.time.Instant

/**
 * Describes information about the ID mapping table.
 */
public class IdMappingTable private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name (ARN) of the ID mapping table.
     */
    public val arn: kotlin.String = requireNotNull(builder.arn) { "A non-null value must be provided for arn" }
    /**
     * The Amazon Resource Name (ARN) of the collaboration that contains this ID mapping table.
     */
    public val collaborationArn: kotlin.String = requireNotNull(builder.collaborationArn) { "A non-null value must be provided for collaborationArn" }
    /**
     * The unique identifier of the collaboration that contains this ID mapping table.
     */
    public val collaborationId: kotlin.String = requireNotNull(builder.collaborationId) { "A non-null value must be provided for collaborationId" }
    /**
     * The time at which the ID mapping table was created.
     */
    public val createTime: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.createTime) { "A non-null value must be provided for createTime" }
    /**
     * The description of the ID mapping table.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The unique identifier of the ID mapping table.
     */
    public val id: kotlin.String = requireNotNull(builder.id) { "A non-null value must be provided for id" }
    /**
     * The input reference configuration for the ID mapping table.
     */
    public val inputReferenceConfig: aws.sdk.kotlin.services.cleanrooms.model.IdMappingTableInputReferenceConfig? = builder.inputReferenceConfig
    /**
     * The input reference properties for the ID mapping table.
     */
    public val inputReferenceProperties: aws.sdk.kotlin.services.cleanrooms.model.IdMappingTableInputReferenceProperties? = builder.inputReferenceProperties
    /**
     * The Amazon Resource Name (ARN) of the Amazon Web Services KMS key.
     */
    public val kmsKeyArn: kotlin.String? = builder.kmsKeyArn
    /**
     * The Amazon Resource Name (ARN) of the membership resource for the ID mapping table.
     */
    public val membershipArn: kotlin.String = requireNotNull(builder.membershipArn) { "A non-null value must be provided for membershipArn" }
    /**
     * The unique identifier of the membership resource for the ID mapping table.
     */
    public val membershipId: kotlin.String = requireNotNull(builder.membershipId) { "A non-null value must be provided for membershipId" }
    /**
     * The name of the ID mapping table.
     */
    public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
    /**
     * The most recent time at which the ID mapping table was updated.
     */
    public val updateTime: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.updateTime) { "A non-null value must be provided for updateTime" }

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

    override fun toString(): kotlin.String = buildString {
        append("IdMappingTable(")
        append("arn=$arn,")
        append("collaborationArn=$collaborationArn,")
        append("collaborationId=$collaborationId,")
        append("createTime=$createTime,")
        append("description=$description,")
        append("id=$id,")
        append("inputReferenceConfig=$inputReferenceConfig,")
        append("inputReferenceProperties=$inputReferenceProperties,")
        append("kmsKeyArn=$kmsKeyArn,")
        append("membershipArn=$membershipArn,")
        append("membershipId=$membershipId,")
        append("name=$name,")
        append("updateTime=$updateTime")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = arn.hashCode()
        result = 31 * result + (collaborationArn.hashCode())
        result = 31 * result + (collaborationId.hashCode())
        result = 31 * result + (createTime.hashCode())
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (id.hashCode())
        result = 31 * result + (inputReferenceConfig?.hashCode() ?: 0)
        result = 31 * result + (inputReferenceProperties?.hashCode() ?: 0)
        result = 31 * result + (kmsKeyArn?.hashCode() ?: 0)
        result = 31 * result + (membershipArn.hashCode())
        result = 31 * result + (membershipId.hashCode())
        result = 31 * result + (name.hashCode())
        result = 31 * result + (updateTime.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 IdMappingTable

        if (arn != other.arn) return false
        if (collaborationArn != other.collaborationArn) return false
        if (collaborationId != other.collaborationId) return false
        if (createTime != other.createTime) return false
        if (description != other.description) return false
        if (id != other.id) return false
        if (inputReferenceConfig != other.inputReferenceConfig) return false
        if (inputReferenceProperties != other.inputReferenceProperties) return false
        if (kmsKeyArn != other.kmsKeyArn) return false
        if (membershipArn != other.membershipArn) return false
        if (membershipId != other.membershipId) return false
        if (name != other.name) return false
        if (updateTime != other.updateTime) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The Amazon Resource Name (ARN) of the ID mapping table.
         */
        public var arn: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the collaboration that contains this ID mapping table.
         */
        public var collaborationArn: kotlin.String? = null
        /**
         * The unique identifier of the collaboration that contains this ID mapping table.
         */
        public var collaborationId: kotlin.String? = null
        /**
         * The time at which the ID mapping table was created.
         */
        public var createTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The description of the ID mapping table.
         */
        public var description: kotlin.String? = null
        /**
         * The unique identifier of the ID mapping table.
         */
        public var id: kotlin.String? = null
        /**
         * The input reference configuration for the ID mapping table.
         */
        public var inputReferenceConfig: aws.sdk.kotlin.services.cleanrooms.model.IdMappingTableInputReferenceConfig? = null
        /**
         * The input reference properties for the ID mapping table.
         */
        public var inputReferenceProperties: aws.sdk.kotlin.services.cleanrooms.model.IdMappingTableInputReferenceProperties? = null
        /**
         * The Amazon Resource Name (ARN) of the Amazon Web Services KMS key.
         */
        public var kmsKeyArn: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the membership resource for the ID mapping table.
         */
        public var membershipArn: kotlin.String? = null
        /**
         * The unique identifier of the membership resource for the ID mapping table.
         */
        public var membershipId: kotlin.String? = null
        /**
         * The name of the ID mapping table.
         */
        public var name: kotlin.String? = null
        /**
         * The most recent time at which the ID mapping table was updated.
         */
        public var updateTime: aws.smithy.kotlin.runtime.time.Instant? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.cleanrooms.model.IdMappingTable) : this() {
            this.arn = x.arn
            this.collaborationArn = x.collaborationArn
            this.collaborationId = x.collaborationId
            this.createTime = x.createTime
            this.description = x.description
            this.id = x.id
            this.inputReferenceConfig = x.inputReferenceConfig
            this.inputReferenceProperties = x.inputReferenceProperties
            this.kmsKeyArn = x.kmsKeyArn
            this.membershipArn = x.membershipArn
            this.membershipId = x.membershipId
            this.name = x.name
            this.updateTime = x.updateTime
        }

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

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

        internal fun correctErrors(): Builder {
            if (arn == null) arn = ""
            if (collaborationArn == null) collaborationArn = ""
            if (collaborationId == null) collaborationId = ""
            if (createTime == null) createTime = Instant.fromEpochSeconds(0)
            if (id == null) id = ""
            if (membershipArn == null) membershipArn = ""
            if (membershipId == null) membershipId = ""
            if (name == null) name = ""
            if (updateTime == null) updateTime = Instant.fromEpochSeconds(0)
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy