commonMain.aws.sdk.kotlin.services.databasemigrationservice.model.AccountQuota.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of databasemigrationservice-jvm Show documentation
Show all versions of databasemigrationservice-jvm Show documentation
The AWS SDK for Kotlin client for Database Migration Service
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.databasemigrationservice.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Describes a quota for an Amazon Web Services account, for example the number of replication instances allowed.
*/
public class AccountQuota private constructor(builder: Builder) {
/**
* The name of the DMS quota for this Amazon Web Services account.
*/
public val accountQuotaName: kotlin.String? = builder.accountQuotaName
/**
* The maximum allowed value for the quota.
*/
public val max: kotlin.Long = builder.max
/**
* The amount currently used toward the quota maximum.
*/
public val used: kotlin.Long = builder.used
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.databasemigrationservice.model.AccountQuota = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AccountQuota(")
append("accountQuotaName=$accountQuotaName,")
append("max=$max,")
append("used=$used")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = accountQuotaName?.hashCode() ?: 0
result = 31 * result + (max.hashCode())
result = 31 * result + (used.hashCode())
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 AccountQuota
if (accountQuotaName != other.accountQuotaName) return false
if (max != other.max) return false
if (used != other.used) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.databasemigrationservice.model.AccountQuota = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the DMS quota for this Amazon Web Services account.
*/
public var accountQuotaName: kotlin.String? = null
/**
* The maximum allowed value for the quota.
*/
public var max: kotlin.Long = 0L
/**
* The amount currently used toward the quota maximum.
*/
public var used: kotlin.Long = 0L
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.databasemigrationservice.model.AccountQuota) : this() {
this.accountQuotaName = x.accountQuotaName
this.max = x.max
this.used = x.used
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.databasemigrationservice.model.AccountQuota = AccountQuota(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy