
commonMain.aws.sdk.kotlin.services.dynamodb.model.UpdateTableReplicaAutoScalingRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.dynamodb.model
public class UpdateTableReplicaAutoScalingRequest private constructor(builder: Builder) {
/**
* Represents the auto scaling settings of the global secondary indexes of the replica to be updated.
*/
public val globalSecondaryIndexUpdates: List? = builder.globalSecondaryIndexUpdates
/**
* Represents the auto scaling settings to be modified for a global table or global secondary index.
*/
public val provisionedWriteCapacityAutoScalingUpdate: aws.sdk.kotlin.services.dynamodb.model.AutoScalingSettingsUpdate? = builder.provisionedWriteCapacityAutoScalingUpdate
/**
* Represents the auto scaling settings of replicas of the table that will be modified.
*/
public val replicaUpdates: List? = builder.replicaUpdates
/**
* The name of the global table to be updated.
*/
public val tableName: kotlin.String? = builder.tableName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.dynamodb.model.UpdateTableReplicaAutoScalingRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateTableReplicaAutoScalingRequest(")
append("globalSecondaryIndexUpdates=$globalSecondaryIndexUpdates,")
append("provisionedWriteCapacityAutoScalingUpdate=$provisionedWriteCapacityAutoScalingUpdate,")
append("replicaUpdates=$replicaUpdates,")
append("tableName=$tableName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = globalSecondaryIndexUpdates?.hashCode() ?: 0
result = 31 * result + (provisionedWriteCapacityAutoScalingUpdate?.hashCode() ?: 0)
result = 31 * result + (replicaUpdates?.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 UpdateTableReplicaAutoScalingRequest
if (globalSecondaryIndexUpdates != other.globalSecondaryIndexUpdates) return false
if (provisionedWriteCapacityAutoScalingUpdate != other.provisionedWriteCapacityAutoScalingUpdate) return false
if (replicaUpdates != other.replicaUpdates) return false
if (tableName != other.tableName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.dynamodb.model.UpdateTableReplicaAutoScalingRequest = Builder(this).apply(block).build()
public class Builder {
/**
* Represents the auto scaling settings of the global secondary indexes of the replica to be updated.
*/
public var globalSecondaryIndexUpdates: List? = null
/**
* Represents the auto scaling settings to be modified for a global table or global secondary index.
*/
public var provisionedWriteCapacityAutoScalingUpdate: aws.sdk.kotlin.services.dynamodb.model.AutoScalingSettingsUpdate? = null
/**
* Represents the auto scaling settings of replicas of the table that will be modified.
*/
public var replicaUpdates: List? = null
/**
* The name of the global table to be updated.
*/
public var tableName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.dynamodb.model.UpdateTableReplicaAutoScalingRequest) : this() {
this.globalSecondaryIndexUpdates = x.globalSecondaryIndexUpdates
this.provisionedWriteCapacityAutoScalingUpdate = x.provisionedWriteCapacityAutoScalingUpdate
this.replicaUpdates = x.replicaUpdates
this.tableName = x.tableName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.dynamodb.model.UpdateTableReplicaAutoScalingRequest = UpdateTableReplicaAutoScalingRequest(this)
/**
* construct an [aws.sdk.kotlin.services.dynamodb.model.AutoScalingSettingsUpdate] inside the given [block]
*/
public fun provisionedWriteCapacityAutoScalingUpdate(block: aws.sdk.kotlin.services.dynamodb.model.AutoScalingSettingsUpdate.Builder.() -> kotlin.Unit) {
this.provisionedWriteCapacityAutoScalingUpdate = aws.sdk.kotlin.services.dynamodb.model.AutoScalingSettingsUpdate.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy