@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 |
getQuotaAppliedAtLevel()
Specifies at which level of granularity that the quota value is applied.
|
String |
getQuotaArn()
The Amazon Resource Name (ARN) of the quota.
|
String |
getQuotaCode()
Specifies the quota identifier.
|
QuotaContextInfo |
getQuotaContext()
The context for this service quota.
|
String |
getQuotaName()
Specifies the quota name.
|
String |
getServiceCode()
Specifies the service identifier.
|
String |
getServiceName()
Specifies 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 |
setQuotaAppliedAtLevel(String quotaAppliedAtLevel)
Specifies at which level of granularity that the quota value is applied.
|
void |
setQuotaArn(String quotaArn)
The Amazon Resource Name (ARN) of the quota.
|
void |
setQuotaCode(String quotaCode)
Specifies the quota identifier.
|
void |
setQuotaContext(QuotaContextInfo quotaContext)
The context for this service quota.
|
void |
setQuotaName(String quotaName)
Specifies the quota name.
|
void |
setServiceCode(String serviceCode)
Specifies the service identifier.
|
void |
setServiceName(String serviceName)
Specifies 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 |
withQuotaAppliedAtLevel(AppliedLevelEnum quotaAppliedAtLevel)
Specifies at which level of granularity that the quota value is applied.
|
ServiceQuota |
withQuotaAppliedAtLevel(String quotaAppliedAtLevel)
Specifies at which level of granularity that the quota value is applied.
|
ServiceQuota |
withQuotaArn(String quotaArn)
The Amazon Resource Name (ARN) of the quota.
|
ServiceQuota |
withQuotaCode(String quotaCode)
Specifies the quota identifier.
|
ServiceQuota |
withQuotaContext(QuotaContextInfo quotaContext)
The context for this service quota.
|
ServiceQuota |
withQuotaName(String quotaName)
Specifies the quota name.
|
ServiceQuota |
withServiceCode(String serviceCode)
Specifies the service identifier.
|
ServiceQuota |
withServiceName(String serviceName)
Specifies 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)
Specifies the service identifier. To find the service code value for an Amazon Web Services service, use the ListServices operation.
serviceCode
- Specifies the service identifier. To find the service code value for an Amazon Web Services service, use
the ListServices operation.public String getServiceCode()
Specifies the service identifier. To find the service code value for an Amazon Web Services service, use the ListServices operation.
public ServiceQuota withServiceCode(String serviceCode)
Specifies the service identifier. To find the service code value for an Amazon Web Services service, use the ListServices operation.
serviceCode
- Specifies the service identifier. To find the service code value for an Amazon Web Services service, use
the ListServices operation.public void setServiceName(String serviceName)
Specifies the service name.
serviceName
- Specifies the service name.public String getServiceName()
Specifies the service name.
public ServiceQuota withServiceName(String serviceName)
Specifies the service name.
serviceName
- Specifies 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)
Specifies the quota identifier. To find the quota code for a specific quota, use the ListServiceQuotas
operation, and look for the QuotaCode
response in the output for the quota you want.
quotaCode
- Specifies the quota identifier. To find the quota code for a specific quota, use the
ListServiceQuotas operation, and look for the QuotaCode
response in the output for the
quota you want.public String getQuotaCode()
Specifies the quota identifier. To find the quota code for a specific quota, use the ListServiceQuotas
operation, and look for the QuotaCode
response in the output for the quota you want.
QuotaCode
response in the output for
the quota you want.public ServiceQuota withQuotaCode(String quotaCode)
Specifies the quota identifier. To find the quota code for a specific quota, use the ListServiceQuotas
operation, and look for the QuotaCode
response in the output for the quota you want.
quotaCode
- Specifies the quota identifier. To find the quota code for a specific quota, use the
ListServiceQuotas operation, and look for the QuotaCode
response in the output for the
quota you want.public void setQuotaName(String quotaName)
Specifies the quota name.
quotaName
- Specifies the quota name.public String getQuotaName()
Specifies the quota name.
public ServiceQuota withQuotaName(String quotaName)
Specifies the quota name.
quotaName
- Specifies 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 void setQuotaAppliedAtLevel(String quotaAppliedAtLevel)
Specifies at which level of granularity that the quota value is applied.
quotaAppliedAtLevel
- Specifies at which level of granularity that the quota value is applied.AppliedLevelEnum
public String getQuotaAppliedAtLevel()
Specifies at which level of granularity that the quota value is applied.
AppliedLevelEnum
public ServiceQuota withQuotaAppliedAtLevel(String quotaAppliedAtLevel)
Specifies at which level of granularity that the quota value is applied.
quotaAppliedAtLevel
- Specifies at which level of granularity that the quota value is applied.AppliedLevelEnum
public ServiceQuota withQuotaAppliedAtLevel(AppliedLevelEnum quotaAppliedAtLevel)
Specifies at which level of granularity that the quota value is applied.
quotaAppliedAtLevel
- Specifies at which level of granularity that the quota value is applied.AppliedLevelEnum
public void setQuotaContext(QuotaContextInfo quotaContext)
The context for this service quota.
quotaContext
- The context for this service quota.public QuotaContextInfo getQuotaContext()
The context for this service quota.
public ServiceQuota withQuotaContext(QuotaContextInfo quotaContext)
The context for this service quota.
quotaContext
- The context for this service quota.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.