
commonMain.aws.sdk.kotlin.services.dynamodb.model.DeleteGlobalSecondaryIndexAction.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.dynamodb.model
/**
* Represents a global secondary index to be deleted from an existing table.
*/
public class DeleteGlobalSecondaryIndexAction private constructor(builder: Builder) {
/**
* The name of the global secondary index to be deleted.
*/
public val indexName: kotlin.String = requireNotNull(builder.indexName) { "A non-null value must be provided for indexName" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.dynamodb.model.DeleteGlobalSecondaryIndexAction = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteGlobalSecondaryIndexAction(")
append("indexName=$indexName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = indexName.hashCode()
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 DeleteGlobalSecondaryIndexAction
if (indexName != other.indexName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.dynamodb.model.DeleteGlobalSecondaryIndexAction = Builder(this).apply(block).build()
public class Builder {
/**
* The name of the global secondary index to be deleted.
*/
public var indexName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.dynamodb.model.DeleteGlobalSecondaryIndexAction) : this() {
this.indexName = x.indexName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.dynamodb.model.DeleteGlobalSecondaryIndexAction = DeleteGlobalSecondaryIndexAction(this)
internal fun correctErrors(): Builder {
if (indexName == null) indexName = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy