@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ServiceQuota extends Object implements Serializable, Cloneable, StructuredPojo
Information about a quota.
Constructor and Description |
---|
ServiceQuota() |
Modifier and Type | Method and Description |
---|---|
ServiceQuota |
clone() |
boolean |
equals(Object obj) |
Boolean |
getAdjustable()
Indicates whether the quota value can be increased.
|
ErrorReason |
getErrorReason()
The error code and error reason.
|
Boolean |
getGlobalQuota()
Indicates whether the quota is global.
|
QuotaPeriod |
getPeriod()
The period of time.
|
String |
getQuotaArn()
The Amazon Resource Name (ARN) of the quota.
|
String |
getQuotaCode()
The quota identifier.
|
String |
getQuotaName()
The quota name.
|
String |
getServiceCode()
The service identifier.
|
String |
getServiceName()
The service name.
|
String |
getUnit()
The unit of measurement.
|
MetricInfo |
getUsageMetric()
Information about the measurement.
|
Double |
getValue()
The quota value.
|
int |
hashCode() |
Boolean |
isAdjustable()
Indicates whether the quota value can be increased.
|
Boolean |
isGlobalQuota()
Indicates whether the quota is global.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAdjustable(Boolean adjustable)
Indicates whether the quota value can be increased.
|
void |
setErrorReason(ErrorReason errorReason)
The error code and error reason.
|
void |
setGlobalQuota(Boolean globalQuota)
Indicates whether the quota is global.
|
void |
setPeriod(QuotaPeriod period)
The period of time.
|
void |
setQuotaArn(String quotaArn)
The Amazon Resource Name (ARN) of the quota.
|
void |
setQuotaCode(String quotaCode)
The quota identifier.
|
void |
setQuotaName(String quotaName)
The quota name.
|
void |
setServiceCode(String serviceCode)
The service identifier.
|
void |
setServiceName(String serviceName)
The service name.
|
void |
setUnit(String unit)
The unit of measurement.
|
void |
setUsageMetric(MetricInfo usageMetric)
Information about the measurement.
|
void |
setValue(Double value)
The quota value.
|
String |
toString()
Returns a string representation of this object.
|
ServiceQuota |
withAdjustable(Boolean adjustable)
Indicates whether the quota value can be increased.
|
ServiceQuota |
withErrorReason(ErrorReason errorReason)
The error code and error reason.
|
ServiceQuota |
withGlobalQuota(Boolean globalQuota)
Indicates whether the quota is global.
|
ServiceQuota |
withPeriod(QuotaPeriod period)
The period of time.
|
ServiceQuota |
withQuotaArn(String quotaArn)
The Amazon Resource Name (ARN) of the quota.
|
ServiceQuota |
withQuotaCode(String quotaCode)
The quota identifier.
|
ServiceQuota |
withQuotaName(String quotaName)
The quota name.
|
ServiceQuota |
withServiceCode(String serviceCode)
The service identifier.
|
ServiceQuota |
withServiceName(String serviceName)
The service name.
|
ServiceQuota |
withUnit(String unit)
The unit of measurement.
|
ServiceQuota |
withUsageMetric(MetricInfo usageMetric)
Information about the measurement.
|
ServiceQuota |
withValue(Double value)
The quota value.
|
public void setServiceCode(String serviceCode)
The service identifier.
serviceCode
- The service identifier.public String getServiceCode()
The service identifier.
public ServiceQuota withServiceCode(String serviceCode)
The service identifier.
serviceCode
- The service identifier.public void setServiceName(String serviceName)
The service name.
serviceName
- The service name.public String getServiceName()
The service name.
public ServiceQuota withServiceName(String serviceName)
The service name.
serviceName
- The service name.public void setQuotaArn(String quotaArn)
The Amazon Resource Name (ARN) of the quota.
quotaArn
- The Amazon Resource Name (ARN) of the quota.public String getQuotaArn()
The Amazon Resource Name (ARN) of the quota.
public ServiceQuota withQuotaArn(String quotaArn)
The Amazon Resource Name (ARN) of the quota.
quotaArn
- The Amazon Resource Name (ARN) of the quota.public void setQuotaCode(String quotaCode)
The quota identifier.
quotaCode
- The quota identifier.public String getQuotaCode()
The quota identifier.
public ServiceQuota withQuotaCode(String quotaCode)
The quota identifier.
quotaCode
- The quota identifier.public void setQuotaName(String quotaName)
The quota name.
quotaName
- The quota name.public String getQuotaName()
The quota name.
public ServiceQuota withQuotaName(String quotaName)
The quota name.
quotaName
- The quota name.public void setValue(Double value)
The quota value.
value
- The quota value.public Double getValue()
The quota value.
public ServiceQuota withValue(Double value)
The quota value.
value
- The quota value.public void setUnit(String unit)
The unit of measurement.
unit
- The unit of measurement.public String getUnit()
The unit of measurement.
public ServiceQuota withUnit(String unit)
The unit of measurement.
unit
- The unit of measurement.public void setAdjustable(Boolean adjustable)
Indicates whether the quota value can be increased.
adjustable
- Indicates whether the quota value can be increased.public Boolean getAdjustable()
Indicates whether the quota value can be increased.
public ServiceQuota withAdjustable(Boolean adjustable)
Indicates whether the quota value can be increased.
adjustable
- Indicates whether the quota value can be increased.public Boolean isAdjustable()
Indicates whether the quota value can be increased.
public void setGlobalQuota(Boolean globalQuota)
Indicates whether the quota is global.
globalQuota
- Indicates whether the quota is global.public Boolean getGlobalQuota()
Indicates whether the quota is global.
public ServiceQuota withGlobalQuota(Boolean globalQuota)
Indicates whether the quota is global.
globalQuota
- Indicates whether the quota is global.public Boolean isGlobalQuota()
Indicates whether the quota is global.
public void setUsageMetric(MetricInfo usageMetric)
Information about the measurement.
usageMetric
- Information about the measurement.public MetricInfo getUsageMetric()
Information about the measurement.
public ServiceQuota withUsageMetric(MetricInfo usageMetric)
Information about the measurement.
usageMetric
- Information about the measurement.public void setPeriod(QuotaPeriod period)
The period of time.
period
- The period of time.public QuotaPeriod getPeriod()
The period of time.
public ServiceQuota withPeriod(QuotaPeriod period)
The period of time.
period
- The period of time.public void setErrorReason(ErrorReason errorReason)
The error code and error reason.
errorReason
- The error code and error reason.public ErrorReason getErrorReason()
The error code and error reason.
public ServiceQuota withErrorReason(ErrorReason errorReason)
The error code and error reason.
errorReason
- The error code and error reason.public String toString()
toString
in class Object
Object.toString()
public ServiceQuota clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.