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

commonMain.aws.sdk.kotlin.services.entityresolution.model.IdNamespaceInputSource.kt Maven / Gradle / Ivy

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.entityresolution.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * An object containing `InputSourceARN` and `SchemaName`.
 */
public class IdNamespaceInputSource private constructor(builder: Builder) {
    /**
     * An Glue table ARN for the input source table.
     */
    public val inputSourceArn: kotlin.String = requireNotNull(builder.inputSourceArn) { "A non-null value must be provided for inputSourceArn" }
    /**
     * The name of the schema.
     */
    public val schemaName: kotlin.String? = builder.schemaName

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

    override fun toString(): kotlin.String = buildString {
        append("IdNamespaceInputSource(")
        append("inputSourceArn=$inputSourceArn,")
        append("schemaName=$schemaName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = inputSourceArn.hashCode()
        result = 31 * result + (schemaName?.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 IdNamespaceInputSource

        if (inputSourceArn != other.inputSourceArn) return false
        if (schemaName != other.schemaName) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * An Glue table ARN for the input source table.
         */
        public var inputSourceArn: kotlin.String? = null
        /**
         * The name of the schema.
         */
        public var schemaName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.entityresolution.model.IdNamespaceInputSource) : this() {
            this.inputSourceArn = x.inputSourceArn
            this.schemaName = x.schemaName
        }

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

        internal fun correctErrors(): Builder {
            if (inputSourceArn == null) inputSourceArn = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy