commonMain.aws.sdk.kotlin.services.glue.model.CreatePartitionIndexRequest.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
public class CreatePartitionIndexRequest private constructor(builder: Builder) {
/**
* The catalog ID where the table resides.
*/
public val catalogId: kotlin.String? = builder.catalogId
/**
* Specifies the name of a database in which you want to create a partition index.
*/
public val databaseName: kotlin.String? = builder.databaseName
/**
* Specifies a `PartitionIndex` structure to create a partition index in an existing table.
*/
public val partitionIndex: aws.sdk.kotlin.services.glue.model.PartitionIndex? = builder.partitionIndex
/**
* Specifies the name of a table in which you want to create a partition index.
*/
public val tableName: kotlin.String? = builder.tableName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.CreatePartitionIndexRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreatePartitionIndexRequest(")
append("catalogId=$catalogId,")
append("databaseName=$databaseName,")
append("partitionIndex=$partitionIndex,")
append("tableName=$tableName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = catalogId?.hashCode() ?: 0
result = 31 * result + (databaseName?.hashCode() ?: 0)
result = 31 * result + (partitionIndex?.hashCode() ?: 0)
result = 31 * result + (tableName?.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 CreatePartitionIndexRequest
if (catalogId != other.catalogId) return false
if (databaseName != other.databaseName) return false
if (partitionIndex != other.partitionIndex) return false
if (tableName != other.tableName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.CreatePartitionIndexRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The catalog ID where the table resides.
*/
public var catalogId: kotlin.String? = null
/**
* Specifies the name of a database in which you want to create a partition index.
*/
public var databaseName: kotlin.String? = null
/**
* Specifies a `PartitionIndex` structure to create a partition index in an existing table.
*/
public var partitionIndex: aws.sdk.kotlin.services.glue.model.PartitionIndex? = null
/**
* Specifies the name of a table in which you want to create a partition index.
*/
public var tableName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.CreatePartitionIndexRequest) : this() {
this.catalogId = x.catalogId
this.databaseName = x.databaseName
this.partitionIndex = x.partitionIndex
this.tableName = x.tableName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.CreatePartitionIndexRequest = CreatePartitionIndexRequest(this)
/**
* construct an [aws.sdk.kotlin.services.glue.model.PartitionIndex] inside the given [block]
*/
public fun partitionIndex(block: aws.sdk.kotlin.services.glue.model.PartitionIndex.Builder.() -> kotlin.Unit) {
this.partitionIndex = aws.sdk.kotlin.services.glue.model.PartitionIndex.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy