@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 maximum number of requests that can be made in a given time period.
|
Integer |
getOffset()
The day that a time period starts.
|
String |
getPeriod()
The time period in which the limit applies.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setLimit(Integer limit)
The maximum number of requests that can be made in a given time period.
|
void |
setOffset(Integer offset)
The day that a time period starts.
|
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 maximum number of requests that can be made in a given time period.
|
QuotaSettings |
withOffset(Integer offset)
The day that a time period starts.
|
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 maximum number of requests that can be made in a given time period.
limit - The maximum number of requests that can be made in a given time period.public Integer getLimit()
The maximum number of requests that can be made in a given time period.
public QuotaSettings withLimit(Integer limit)
The maximum number of requests that can be made in a given time period.
limit - The maximum number of requests that can be made in a given time period.public void setOffset(Integer offset)
The day that a time period starts. For example, with a time period of WEEK, an offset of
0 starts on Sunday, and an offset of 1 starts on Monday.
offset - The day that a time period starts. For example, with a time period of WEEK, an offset of
0 starts on Sunday, and an offset of 1 starts on Monday.public Integer getOffset()
The day that a time period starts. For example, with a time period of WEEK, an offset of
0 starts on Sunday, and an offset of 1 starts on Monday.
WEEK, an offset of
0 starts on Sunday, and an offset of 1 starts on Monday.public QuotaSettings withOffset(Integer offset)
The day that a time period starts. For example, with a time period of WEEK, an offset of
0 starts on Sunday, and an offset of 1 starts on Monday.
offset - The day that a time period starts. For example, with a time period of WEEK, an offset of
0 starts on Sunday, and an offset of 1 starts on Monday.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".QuotaPeriodTypepublic String getPeriod()
The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".
QuotaPeriodTypepublic 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".QuotaPeriodTypepublic 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".QuotaPeriodTypepublic 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".QuotaPeriodTypepublic String toString()
toString in class ObjectObject.toString()public QuotaSettings clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2021. All rights reserved.