
commonMain.aws.sdk.kotlin.services.dynamodb.model.ProvisionedThroughputOverride.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.dynamodb.model
/**
* Replica-specific provisioned throughput settings. If not specified, uses the source table's provisioned throughput settings.
*/
public class ProvisionedThroughputOverride private constructor(builder: Builder) {
/**
* Replica-specific read capacity units. If not specified, uses the source table's read capacity settings.
*/
public val readCapacityUnits: kotlin.Long? = builder.readCapacityUnits
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.dynamodb.model.ProvisionedThroughputOverride = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ProvisionedThroughputOverride(")
append("readCapacityUnits=$readCapacityUnits")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = readCapacityUnits?.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 ProvisionedThroughputOverride
if (readCapacityUnits != other.readCapacityUnits) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.dynamodb.model.ProvisionedThroughputOverride = Builder(this).apply(block).build()
public class Builder {
/**
* Replica-specific read capacity units. If not specified, uses the source table's read capacity settings.
*/
public var readCapacityUnits: kotlin.Long? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.dynamodb.model.ProvisionedThroughputOverride) : this() {
this.readCapacityUnits = x.readCapacityUnits
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.dynamodb.model.ProvisionedThroughputOverride = ProvisionedThroughputOverride(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy