commonMain.aws.sdk.kotlin.services.glue.model.GetTableRequest.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
import aws.smithy.kotlin.runtime.time.Instant
public class GetTableRequest private constructor(builder: Builder) {
/**
* The ID of the Data Catalog where the table resides. If none is provided, the Amazon Web Services account ID is used by default.
*/
public val catalogId: kotlin.String? = builder.catalogId
/**
* The name of the database in the catalog in which the table resides. For Hive compatibility, this name is entirely lowercase.
*/
public val databaseName: kotlin.String? = builder.databaseName
/**
* Specifies whether to include status details related to a request to create or update an Glue Data Catalog view.
*/
public val includeStatusDetails: kotlin.Boolean? = builder.includeStatusDetails
/**
* The name of the table for which to retrieve the definition. For Hive compatibility, this name is entirely lowercase.
*/
public val name: kotlin.String? = builder.name
/**
* The time as of when to read the table contents. If not set, the most recent transaction commit time will be used. Cannot be specified along with `TransactionId`.
*/
public val queryAsOfTime: aws.smithy.kotlin.runtime.time.Instant? = builder.queryAsOfTime
/**
* The transaction ID at which to read the table contents.
*/
public val transactionId: kotlin.String? = builder.transactionId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.GetTableRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetTableRequest(")
append("catalogId=$catalogId,")
append("databaseName=$databaseName,")
append("includeStatusDetails=$includeStatusDetails,")
append("name=$name,")
append("queryAsOfTime=$queryAsOfTime,")
append("transactionId=$transactionId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = catalogId?.hashCode() ?: 0
result = 31 * result + (databaseName?.hashCode() ?: 0)
result = 31 * result + (includeStatusDetails?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (queryAsOfTime?.hashCode() ?: 0)
result = 31 * result + (transactionId?.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 GetTableRequest
if (catalogId != other.catalogId) return false
if (databaseName != other.databaseName) return false
if (includeStatusDetails != other.includeStatusDetails) return false
if (name != other.name) return false
if (queryAsOfTime != other.queryAsOfTime) return false
if (transactionId != other.transactionId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.GetTableRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID of the Data Catalog where the table resides. If none is provided, the Amazon Web Services account ID is used by default.
*/
public var catalogId: kotlin.String? = null
/**
* The name of the database in the catalog in which the table resides. For Hive compatibility, this name is entirely lowercase.
*/
public var databaseName: kotlin.String? = null
/**
* Specifies whether to include status details related to a request to create or update an Glue Data Catalog view.
*/
public var includeStatusDetails: kotlin.Boolean? = null
/**
* The name of the table for which to retrieve the definition. For Hive compatibility, this name is entirely lowercase.
*/
public var name: kotlin.String? = null
/**
* The time as of when to read the table contents. If not set, the most recent transaction commit time will be used. Cannot be specified along with `TransactionId`.
*/
public var queryAsOfTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The transaction ID at which to read the table contents.
*/
public var transactionId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.GetTableRequest) : this() {
this.catalogId = x.catalogId
this.databaseName = x.databaseName
this.includeStatusDetails = x.includeStatusDetails
this.name = x.name
this.queryAsOfTime = x.queryAsOfTime
this.transactionId = x.transactionId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.GetTableRequest = GetTableRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}