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

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

The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

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

import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.content.Document

/**
 * An object containing `ProviderConfiguration` and `ProviderServiceArn`.
 */
public class NamespaceProviderProperties private constructor(builder: Builder) {
    /**
     * An object which defines any additional configurations required by the provider service.
     */
    public val providerConfiguration: aws.smithy.kotlin.runtime.content.Document? = builder.providerConfiguration
    /**
     * The Amazon Resource Name (ARN) of the provider service.
     */
    public val providerServiceArn: kotlin.String = requireNotNull(builder.providerServiceArn) { "A non-null value must be provided for providerServiceArn" }

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

    override fun toString(): kotlin.String = buildString {
        append("NamespaceProviderProperties(")
        append("providerConfiguration=$providerConfiguration,")
        append("providerServiceArn=$providerServiceArn")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = providerConfiguration?.hashCode() ?: 0
        result = 31 * result + (providerServiceArn.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 NamespaceProviderProperties

        if (providerConfiguration != other.providerConfiguration) return false
        if (providerServiceArn != other.providerServiceArn) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * An object which defines any additional configurations required by the provider service.
         */
        public var providerConfiguration: aws.smithy.kotlin.runtime.content.Document? = null
        /**
         * The Amazon Resource Name (ARN) of the provider service.
         */
        public var providerServiceArn: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.entityresolution.model.NamespaceProviderProperties) : this() {
            this.providerConfiguration = x.providerConfiguration
            this.providerServiceArn = x.providerServiceArn
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy