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

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

/**
 * The required configuration fields to give intermediate access to a provider service.
 */
public class ProviderIntermediateDataAccessConfiguration private constructor(builder: Builder) {
    /**
     * The Amazon Web Services account that provider can use to read or write data into the customer's intermediate S3 bucket.
     */
    public val awsAccountIds: List? = builder.awsAccountIds
    /**
     * The S3 bucket actions that the provider requires permission for.
     */
    public val requiredBucketActions: List? = builder.requiredBucketActions

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

    override fun toString(): kotlin.String = buildString {
        append("ProviderIntermediateDataAccessConfiguration(")
        append("awsAccountIds=$awsAccountIds,")
        append("requiredBucketActions=$requiredBucketActions")
        append(")")
    }

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

        if (awsAccountIds != other.awsAccountIds) return false
        if (requiredBucketActions != other.requiredBucketActions) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The Amazon Web Services account that provider can use to read or write data into the customer's intermediate S3 bucket.
         */
        public var awsAccountIds: List? = null
        /**
         * The S3 bucket actions that the provider requires permission for.
         */
        public var requiredBucketActions: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.entityresolution.model.ProviderIntermediateDataAccessConfiguration) : this() {
            this.awsAccountIds = x.awsAccountIds
            this.requiredBucketActions = x.requiredBucketActions
        }

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

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy