@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class QuotaSettings extends Object implements Serializable, Cloneable, StructuredPojo
Quotas configured for a usage plan.
Constructor and Description |
---|
QuotaSettings() |
Modifier and Type | Method and Description |
---|---|
QuotaSettings |
clone() |
boolean |
equals(Object obj) |
Integer |
getLimit()
The target maximum number of requests that can be made in a given time period.
|
Integer |
getOffset()
The number of requests subtracted from the given limit in the initial time period.
|
String |
getPeriod()
The time period in which the limit applies.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setLimit(Integer limit)
The target maximum number of requests that can be made in a given time period.
|
void |
setOffset(Integer offset)
The number of requests subtracted from the given limit in the initial time period.
|
void |
setPeriod(QuotaPeriodType period)
The time period in which the limit applies.
|
void |
setPeriod(String period)
The time period in which the limit applies.
|
String |
toString()
Returns a string representation of this object.
|
QuotaSettings |
withLimit(Integer limit)
The target maximum number of requests that can be made in a given time period.
|
QuotaSettings |
withOffset(Integer offset)
The number of requests subtracted from the given limit in the initial time period.
|
QuotaSettings |
withPeriod(QuotaPeriodType period)
The time period in which the limit applies.
|
QuotaSettings |
withPeriod(String period)
The time period in which the limit applies.
|
public void setLimit(Integer limit)
The target maximum number of requests that can be made in a given time period.
limit
- The target maximum number of requests that can be made in a given time period.public Integer getLimit()
The target maximum number of requests that can be made in a given time period.
public QuotaSettings withLimit(Integer limit)
The target maximum number of requests that can be made in a given time period.
limit
- The target maximum number of requests that can be made in a given time period.public void setOffset(Integer offset)
The number of requests subtracted from the given limit in the initial time period.
offset
- The number of requests subtracted from the given limit in the initial time period.public Integer getOffset()
The number of requests subtracted from the given limit in the initial time period.
public QuotaSettings withOffset(Integer offset)
The number of requests subtracted from the given limit in the initial time period.
offset
- The number of requests subtracted from the given limit in the initial time period.public void setPeriod(String period)
The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".
period
- The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".QuotaPeriodType
public String getPeriod()
The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".
QuotaPeriodType
public QuotaSettings withPeriod(String period)
The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".
period
- The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".QuotaPeriodType
public void setPeriod(QuotaPeriodType period)
The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".
period
- The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".QuotaPeriodType
public QuotaSettings withPeriod(QuotaPeriodType period)
The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".
period
- The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".QuotaPeriodType
public String toString()
toString
in class Object
Object.toString()
public QuotaSettings clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.