commonMain.aws.sdk.kotlin.services.glue.model.DeleteTableRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DeleteTableRequest 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 catalog database in which the table resides. For Hive compatibility, this name is entirely lowercase.
*/
public val databaseName: kotlin.String? = builder.databaseName
/**
* The name of the table to be deleted. For Hive compatibility, this name is entirely lowercase.
*/
public val name: kotlin.String? = builder.name
/**
* The transaction ID at which to delete 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.DeleteTableRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteTableRequest(")
append("catalogId=$catalogId,")
append("databaseName=$databaseName,")
append("name=$name,")
append("transactionId=$transactionId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = catalogId?.hashCode() ?: 0
result = 31 * result + (databaseName?.hashCode() ?: 0)
result = 31 * result + (name?.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 DeleteTableRequest
if (catalogId != other.catalogId) return false
if (databaseName != other.databaseName) return false
if (name != other.name) return false
if (transactionId != other.transactionId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.DeleteTableRequest = 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 catalog database in which the table resides. For Hive compatibility, this name is entirely lowercase.
*/
public var databaseName: kotlin.String? = null
/**
* The name of the table to be deleted. For Hive compatibility, this name is entirely lowercase.
*/
public var name: kotlin.String? = null
/**
* The transaction ID at which to delete the table contents.
*/
public var transactionId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.DeleteTableRequest) : this() {
this.catalogId = x.catalogId
this.databaseName = x.databaseName
this.name = x.name
this.transactionId = x.transactionId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.DeleteTableRequest = DeleteTableRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}