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