
commonMain.aws.sdk.kotlin.services.dynamodb.model.DescribeLimitsResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.dynamodb.model
/**
* Represents the output of a `DescribeLimits` operation.
*/
public class DescribeLimitsResponse private constructor(builder: Builder) {
/**
* The maximum total read capacity units that your account allows you to provision across all of your tables in this Region.
*/
public val accountMaxReadCapacityUnits: kotlin.Long? = builder.accountMaxReadCapacityUnits
/**
* The maximum total write capacity units that your account allows you to provision across all of your tables in this Region.
*/
public val accountMaxWriteCapacityUnits: kotlin.Long? = builder.accountMaxWriteCapacityUnits
/**
* The maximum read capacity units that your account allows you to provision for a new table that you are creating in this Region, including the read capacity units provisioned for its global secondary indexes (GSIs).
*/
public val tableMaxReadCapacityUnits: kotlin.Long? = builder.tableMaxReadCapacityUnits
/**
* The maximum write capacity units that your account allows you to provision for a new table that you are creating in this Region, including the write capacity units provisioned for its global secondary indexes (GSIs).
*/
public val tableMaxWriteCapacityUnits: kotlin.Long? = builder.tableMaxWriteCapacityUnits
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.dynamodb.model.DescribeLimitsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeLimitsResponse(")
append("accountMaxReadCapacityUnits=$accountMaxReadCapacityUnits,")
append("accountMaxWriteCapacityUnits=$accountMaxWriteCapacityUnits,")
append("tableMaxReadCapacityUnits=$tableMaxReadCapacityUnits,")
append("tableMaxWriteCapacityUnits=$tableMaxWriteCapacityUnits")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = accountMaxReadCapacityUnits?.hashCode() ?: 0
result = 31 * result + (accountMaxWriteCapacityUnits?.hashCode() ?: 0)
result = 31 * result + (tableMaxReadCapacityUnits?.hashCode() ?: 0)
result = 31 * result + (tableMaxWriteCapacityUnits?.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 DescribeLimitsResponse
if (accountMaxReadCapacityUnits != other.accountMaxReadCapacityUnits) return false
if (accountMaxWriteCapacityUnits != other.accountMaxWriteCapacityUnits) return false
if (tableMaxReadCapacityUnits != other.tableMaxReadCapacityUnits) return false
if (tableMaxWriteCapacityUnits != other.tableMaxWriteCapacityUnits) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.dynamodb.model.DescribeLimitsResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The maximum total read capacity units that your account allows you to provision across all of your tables in this Region.
*/
public var accountMaxReadCapacityUnits: kotlin.Long? = null
/**
* The maximum total write capacity units that your account allows you to provision across all of your tables in this Region.
*/
public var accountMaxWriteCapacityUnits: kotlin.Long? = null
/**
* The maximum read capacity units that your account allows you to provision for a new table that you are creating in this Region, including the read capacity units provisioned for its global secondary indexes (GSIs).
*/
public var tableMaxReadCapacityUnits: kotlin.Long? = null
/**
* The maximum write capacity units that your account allows you to provision for a new table that you are creating in this Region, including the write capacity units provisioned for its global secondary indexes (GSIs).
*/
public var tableMaxWriteCapacityUnits: kotlin.Long? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.dynamodb.model.DescribeLimitsResponse) : this() {
this.accountMaxReadCapacityUnits = x.accountMaxReadCapacityUnits
this.accountMaxWriteCapacityUnits = x.accountMaxWriteCapacityUnits
this.tableMaxReadCapacityUnits = x.tableMaxReadCapacityUnits
this.tableMaxWriteCapacityUnits = x.tableMaxWriteCapacityUnits
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.dynamodb.model.DescribeLimitsResponse = DescribeLimitsResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy