public class AccountQuota
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a quota for an AWS account, for example, the number of DB instances allowed.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
accountQuotaName
The name of the Amazon RDS quota for this AWS account.
|
private java.lang.Long |
max
The maximum allowed value for the quota.
|
private java.lang.Long |
used
The amount currently used toward the quota maximum.
|
Constructor and Description |
---|
AccountQuota() |
Modifier and Type | Method and Description |
---|---|
AccountQuota |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAccountQuotaName()
The name of the Amazon RDS quota for this AWS account.
|
java.lang.Long |
getMax()
The maximum allowed value for the quota.
|
java.lang.Long |
getUsed()
The amount currently used toward the quota maximum.
|
int |
hashCode() |
void |
setAccountQuotaName(java.lang.String accountQuotaName)
The name of the Amazon RDS quota for this AWS account.
|
void |
setMax(java.lang.Long max)
The maximum allowed value for the quota.
|
void |
setUsed(java.lang.Long used)
The amount currently used toward the quota maximum.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AccountQuota |
withAccountQuotaName(java.lang.String accountQuotaName)
The name of the Amazon RDS quota for this AWS account.
|
AccountQuota |
withMax(java.lang.Long max)
The maximum allowed value for the quota.
|
AccountQuota |
withUsed(java.lang.Long used)
The amount currently used toward the quota maximum.
|
private java.lang.String accountQuotaName
The name of the Amazon RDS quota for this AWS account.
private java.lang.Long used
The amount currently used toward the quota maximum.
private java.lang.Long max
The maximum allowed value for the quota.
public void setAccountQuotaName(java.lang.String accountQuotaName)
The name of the Amazon RDS quota for this AWS account.
accountQuotaName
- The name of the Amazon RDS quota for this AWS account.public java.lang.String getAccountQuotaName()
The name of the Amazon RDS quota for this AWS account.
public AccountQuota withAccountQuotaName(java.lang.String accountQuotaName)
The name of the Amazon RDS quota for this AWS account.
accountQuotaName
- The name of the Amazon RDS quota for this AWS account.public void setUsed(java.lang.Long used)
The amount currently used toward the quota maximum.
used
- The amount currently used toward the quota maximum.public java.lang.Long getUsed()
The amount currently used toward the quota maximum.
public AccountQuota withUsed(java.lang.Long used)
The amount currently used toward the quota maximum.
used
- The amount currently used toward the quota maximum.public void setMax(java.lang.Long max)
The maximum allowed value for the quota.
max
- The maximum allowed value for the quota.public java.lang.Long getMax()
The maximum allowed value for the quota.
public AccountQuota withMax(java.lang.Long max)
The maximum allowed value for the quota.
max
- The maximum allowed value for the quota.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public AccountQuota clone()
clone
in class java.lang.Object