@Generated(value="software.amazon.awssdk:codegen") public class QuotaSettings extends Object implements StructuredPojo, ToCopyableBuilder<QuotaSettings.Builder,QuotaSettings>
Quotas configured for a usage plan.
| Modifier and Type | Class and Description |
|---|---|
static interface |
QuotaSettings.Builder |
| Modifier and Type | Method and Description |
|---|---|
static QuotaSettings.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
limit()
The maximum number of requests that can be made in a given time period.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
Integer |
offset()
The number of requests subtracted from the given limit in the initial time period.
|
QuotaPeriodType |
period()
The time period in which the limit applies.
|
String |
periodAsString()
The time period in which the limit applies.
|
static Class<? extends QuotaSettings.Builder> |
serializableBuilderClass() |
QuotaSettings.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copypublic Integer limit()
The maximum number of requests that can be made in a given time period.
public Integer offset()
The number of requests subtracted from the given limit in the initial time period.
public QuotaPeriodType period()
The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".
If the service returns an enum value that is not available in the current SDK version, period will
return QuotaPeriodType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
periodAsString().
QuotaPeriodTypepublic String periodAsString()
The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".
If the service returns an enum value that is not available in the current SDK version, period will
return QuotaPeriodType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
periodAsString().
QuotaPeriodTypepublic QuotaSettings.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<QuotaSettings.Builder,QuotaSettings>public static QuotaSettings.Builder builder()
public static Class<? extends QuotaSettings.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.