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

commonMain.aws.sdk.kotlin.services.entityresolution.model.ProviderServiceSummary.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

/**
 * A list of `ProviderService` objects, each of which contain the fields `providerName`, `providerServiceArn`, `providerServiceName`, and `providerServiceType`.
 */
public class ProviderServiceSummary private constructor(builder: Builder) {
    /**
     * The name of the provider. This name is typically the company name.
     */
    public val providerName: kotlin.String = requireNotNull(builder.providerName) { "A non-null value must be provided for providerName" }
    /**
     * The ARN (Amazon Resource Name) that Entity Resolution generated for the `providerService`.
     */
    public val providerServiceArn: kotlin.String = requireNotNull(builder.providerServiceArn) { "A non-null value must be provided for providerServiceArn" }
    /**
     * The display name of the provider service.
     */
    public val providerServiceDisplayName: kotlin.String = requireNotNull(builder.providerServiceDisplayName) { "A non-null value must be provided for providerServiceDisplayName" }
    /**
     * The name of the product that the provider service provides.
     */
    public val providerServiceName: kotlin.String = requireNotNull(builder.providerServiceName) { "A non-null value must be provided for providerServiceName" }
    /**
     * The type of provider service.
     */
    public val providerServiceType: aws.sdk.kotlin.services.entityresolution.model.ServiceType = requireNotNull(builder.providerServiceType) { "A non-null value must be provided for providerServiceType" }

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

    override fun toString(): kotlin.String = buildString {
        append("ProviderServiceSummary(")
        append("providerName=$providerName,")
        append("providerServiceArn=$providerServiceArn,")
        append("providerServiceDisplayName=$providerServiceDisplayName,")
        append("providerServiceName=$providerServiceName,")
        append("providerServiceType=$providerServiceType")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = providerName.hashCode()
        result = 31 * result + (providerServiceArn.hashCode())
        result = 31 * result + (providerServiceDisplayName.hashCode())
        result = 31 * result + (providerServiceName.hashCode())
        result = 31 * result + (providerServiceType.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 ProviderServiceSummary

        if (providerName != other.providerName) return false
        if (providerServiceArn != other.providerServiceArn) return false
        if (providerServiceDisplayName != other.providerServiceDisplayName) return false
        if (providerServiceName != other.providerServiceName) return false
        if (providerServiceType != other.providerServiceType) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The name of the provider. This name is typically the company name.
         */
        public var providerName: kotlin.String? = null
        /**
         * The ARN (Amazon Resource Name) that Entity Resolution generated for the `providerService`.
         */
        public var providerServiceArn: kotlin.String? = null
        /**
         * The display name of the provider service.
         */
        public var providerServiceDisplayName: kotlin.String? = null
        /**
         * The name of the product that the provider service provides.
         */
        public var providerServiceName: kotlin.String? = null
        /**
         * The type of provider service.
         */
        public var providerServiceType: aws.sdk.kotlin.services.entityresolution.model.ServiceType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.entityresolution.model.ProviderServiceSummary) : this() {
            this.providerName = x.providerName
            this.providerServiceArn = x.providerServiceArn
            this.providerServiceDisplayName = x.providerServiceDisplayName
            this.providerServiceName = x.providerServiceName
            this.providerServiceType = x.providerServiceType
        }

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

        internal fun correctErrors(): Builder {
            if (providerName == null) providerName = ""
            if (providerServiceArn == null) providerServiceArn = ""
            if (providerServiceDisplayName == null) providerServiceDisplayName = ""
            if (providerServiceName == null) providerServiceName = ""
            if (providerServiceType == null) providerServiceType = ServiceType.SdkUnknown("no value provided")
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy