commonMain.aws.sdk.kotlin.services.glue.model.DataLakeAccessPropertiesOutput.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
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The output properties of the data lake access configuration for your catalog resource in the Glue Data Catalog.
*/
public class DataLakeAccessPropertiesOutput private constructor(builder: Builder) {
/**
* Specifies a federated catalog type for the native catalog resource. The currently supported type is `aws:redshift`.
*/
public val catalogType: kotlin.String? = builder.catalogType
/**
* Turns on or off data lake access for Apache Spark applications that access Amazon Redshift databases in the Data Catalog.
*/
public val dataLakeAccess: kotlin.Boolean = builder.dataLakeAccess
/**
* A role that will be assumed by Glue for transferring data into/out of the staging bucket during a query.
*/
public val dataTransferRole: kotlin.String? = builder.dataTransferRole
/**
* An encryption key that will be used for the staging bucket that will be created along with the catalog.
*/
public val kmsKey: kotlin.String? = builder.kmsKey
/**
* The managed Redshift Serverless compute name that is created for your catalog resource.
*/
public val managedWorkgroupName: kotlin.String? = builder.managedWorkgroupName
/**
* The managed Redshift Serverless compute status.
*/
public val managedWorkgroupStatus: kotlin.String? = builder.managedWorkgroupStatus
/**
* The default Redshift database resource name in the managed compute.
*/
public val redshiftDatabaseName: kotlin.String? = builder.redshiftDatabaseName
/**
* A message that gives more detailed information about the managed workgroup status.
*/
public val statusMessage: kotlin.String? = builder.statusMessage
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.DataLakeAccessPropertiesOutput = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DataLakeAccessPropertiesOutput(")
append("catalogType=$catalogType,")
append("dataLakeAccess=$dataLakeAccess,")
append("dataTransferRole=$dataTransferRole,")
append("kmsKey=$kmsKey,")
append("managedWorkgroupName=$managedWorkgroupName,")
append("managedWorkgroupStatus=$managedWorkgroupStatus,")
append("redshiftDatabaseName=$redshiftDatabaseName,")
append("statusMessage=$statusMessage")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = catalogType?.hashCode() ?: 0
result = 31 * result + (dataLakeAccess.hashCode())
result = 31 * result + (dataTransferRole?.hashCode() ?: 0)
result = 31 * result + (kmsKey?.hashCode() ?: 0)
result = 31 * result + (managedWorkgroupName?.hashCode() ?: 0)
result = 31 * result + (managedWorkgroupStatus?.hashCode() ?: 0)
result = 31 * result + (redshiftDatabaseName?.hashCode() ?: 0)
result = 31 * result + (statusMessage?.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 DataLakeAccessPropertiesOutput
if (catalogType != other.catalogType) return false
if (dataLakeAccess != other.dataLakeAccess) return false
if (dataTransferRole != other.dataTransferRole) return false
if (kmsKey != other.kmsKey) return false
if (managedWorkgroupName != other.managedWorkgroupName) return false
if (managedWorkgroupStatus != other.managedWorkgroupStatus) return false
if (redshiftDatabaseName != other.redshiftDatabaseName) return false
if (statusMessage != other.statusMessage) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.DataLakeAccessPropertiesOutput = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Specifies a federated catalog type for the native catalog resource. The currently supported type is `aws:redshift`.
*/
public var catalogType: kotlin.String? = null
/**
* Turns on or off data lake access for Apache Spark applications that access Amazon Redshift databases in the Data Catalog.
*/
public var dataLakeAccess: kotlin.Boolean = false
/**
* A role that will be assumed by Glue for transferring data into/out of the staging bucket during a query.
*/
public var dataTransferRole: kotlin.String? = null
/**
* An encryption key that will be used for the staging bucket that will be created along with the catalog.
*/
public var kmsKey: kotlin.String? = null
/**
* The managed Redshift Serverless compute name that is created for your catalog resource.
*/
public var managedWorkgroupName: kotlin.String? = null
/**
* The managed Redshift Serverless compute status.
*/
public var managedWorkgroupStatus: kotlin.String? = null
/**
* The default Redshift database resource name in the managed compute.
*/
public var redshiftDatabaseName: kotlin.String? = null
/**
* A message that gives more detailed information about the managed workgroup status.
*/
public var statusMessage: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.DataLakeAccessPropertiesOutput) : this() {
this.catalogType = x.catalogType
this.dataLakeAccess = x.dataLakeAccess
this.dataTransferRole = x.dataTransferRole
this.kmsKey = x.kmsKey
this.managedWorkgroupName = x.managedWorkgroupName
this.managedWorkgroupStatus = x.managedWorkgroupStatus
this.redshiftDatabaseName = x.redshiftDatabaseName
this.statusMessage = x.statusMessage
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.DataLakeAccessPropertiesOutput = DataLakeAccessPropertiesOutput(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy