
commonMain.aws.sdk.kotlin.services.dynamodb.model.UpdateGlobalTableRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.dynamodb.model
public class UpdateGlobalTableRequest private constructor(builder: Builder) {
/**
* The global table name.
*/
public val globalTableName: kotlin.String? = builder.globalTableName
/**
* A list of Regions that should be added or removed from the global table.
*/
public val replicaUpdates: List? = builder.replicaUpdates
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.dynamodb.model.UpdateGlobalTableRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateGlobalTableRequest(")
append("globalTableName=$globalTableName,")
append("replicaUpdates=$replicaUpdates")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = globalTableName?.hashCode() ?: 0
result = 31 * result + (replicaUpdates?.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 UpdateGlobalTableRequest
if (globalTableName != other.globalTableName) return false
if (replicaUpdates != other.replicaUpdates) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.dynamodb.model.UpdateGlobalTableRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The global table name.
*/
public var globalTableName: kotlin.String? = null
/**
* A list of Regions that should be added or removed from the global table.
*/
public var replicaUpdates: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.dynamodb.model.UpdateGlobalTableRequest) : this() {
this.globalTableName = x.globalTableName
this.replicaUpdates = x.replicaUpdates
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.dynamodb.model.UpdateGlobalTableRequest = UpdateGlobalTableRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy