commonMain.aws.sdk.kotlin.services.glue.model.LakeFormationConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glue-jvm Show documentation
Show all versions of glue-jvm Show documentation
The AWS SDK for Kotlin client for Glue
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Specifies Lake Formation configuration settings for the crawler.
*/
public class LakeFormationConfiguration private constructor(builder: Builder) {
/**
* Required for cross account crawls. For same account crawls as the target data, this can be left as null.
*/
public val accountId: kotlin.String? = builder.accountId
/**
* Specifies whether to use Lake Formation credentials for the crawler instead of the IAM role credentials.
*/
public val useLakeFormationCredentials: kotlin.Boolean? = builder.useLakeFormationCredentials
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.LakeFormationConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("LakeFormationConfiguration(")
append("accountId=$accountId,")
append("useLakeFormationCredentials=$useLakeFormationCredentials")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = accountId?.hashCode() ?: 0
result = 31 * result + (useLakeFormationCredentials?.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 (accountId != other.accountId) return false
if (useLakeFormationCredentials != other.useLakeFormationCredentials) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.LakeFormationConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Required for cross account crawls. For same account crawls as the target data, this can be left as null.
*/
public var accountId: kotlin.String? = null
/**
* Specifies whether to use Lake Formation credentials for the crawler instead of the IAM role credentials.
*/
public var useLakeFormationCredentials: kotlin.Boolean? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.LakeFormationConfiguration) : this() {
this.accountId = x.accountId
this.useLakeFormationCredentials = x.useLakeFormationCredentials
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.LakeFormationConfiguration = LakeFormationConfiguration(this)
internal fun correctErrors(): Builder {
return this
}
}
}