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

commonMain.aws.sdk.kotlin.services.datazone.model.LakeFormationConfiguration.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.datazone.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * The Lake Formation configuration of the Data Lake blueprint.
 */
public class LakeFormationConfiguration private constructor(builder: Builder) {
    /**
     * Specifies certain Amazon S3 locations if you do not want Amazon DataZone to automatically register them in hybrid mode.
     */
    public val locationRegistrationExcludeS3Locations: List? = builder.locationRegistrationExcludeS3Locations
    /**
     * The role that is used to manage read/write access to the chosen Amazon S3 bucket(s) for Data Lake using AWS Lake Formation hybrid access mode.
     */
    public val locationRegistrationRole: kotlin.String? = builder.locationRegistrationRole

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

    override fun toString(): kotlin.String = buildString {
        append("LakeFormationConfiguration(")
        append("locationRegistrationExcludeS3Locations=$locationRegistrationExcludeS3Locations,")
        append("locationRegistrationRole=$locationRegistrationRole")
        append(")")
    }

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

        if (locationRegistrationExcludeS3Locations != other.locationRegistrationExcludeS3Locations) return false
        if (locationRegistrationRole != other.locationRegistrationRole) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Specifies certain Amazon S3 locations if you do not want Amazon DataZone to automatically register them in hybrid mode.
         */
        public var locationRegistrationExcludeS3Locations: List? = null
        /**
         * The role that is used to manage read/write access to the chosen Amazon S3 bucket(s) for Data Lake using AWS Lake Formation hybrid access mode.
         */
        public var locationRegistrationRole: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.datazone.model.LakeFormationConfiguration) : this() {
            this.locationRegistrationExcludeS3Locations = x.locationRegistrationExcludeS3Locations
            this.locationRegistrationRole = x.locationRegistrationRole
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy