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

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

/**
 * An object containing the `providerServiceARN`, `intermediateSourceConfiguration`, and `providerConfiguration`.
 */
public class ProviderProperties private constructor(builder: Builder) {
    /**
     * The Amazon S3 location that temporarily stores your data while it processes. Your information won't be saved permanently.
     */
    public val intermediateSourceConfiguration: aws.sdk.kotlin.services.entityresolution.model.IntermediateSourceConfiguration? = builder.intermediateSourceConfiguration
    /**
     * The required configuration fields to use with the provider service.
     */
    public val providerConfiguration: aws.smithy.kotlin.runtime.content.Document? = builder.providerConfiguration
    /**
     * The 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.ProviderProperties = Builder().apply(block).build()
    }

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

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

        if (intermediateSourceConfiguration != other.intermediateSourceConfiguration) return false
        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.ProviderProperties = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The Amazon S3 location that temporarily stores your data while it processes. Your information won't be saved permanently.
         */
        public var intermediateSourceConfiguration: aws.sdk.kotlin.services.entityresolution.model.IntermediateSourceConfiguration? = null
        /**
         * The required configuration fields to use with the provider service.
         */
        public var providerConfiguration: aws.smithy.kotlin.runtime.content.Document? = null
        /**
         * The ARN of the provider service.
         */
        public var providerServiceArn: kotlin.String? = null

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy