@Generated(value="software.amazon.awssdk:codegen") public final class QuotaSettings extends Object implements SdkPojo, Serializable, 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) |
boolean |
equalsBySdkFields(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.
|
Integer |
offset()
The day that a time period starts.
|
QuotaPeriodType |
period()
The time period in which the limit applies.
|
String |
periodAsString()
The time period in which the limit applies.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends QuotaSettings.Builder> |
serializableBuilderClass() |
QuotaSettings.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Integer limit()
The maximum number of requests that can be made in a given time period.
public final 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.
WEEK, an offset of
0 starts on Sunday, and an offset of 1 starts on Monday.public final 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 final 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()
toBuilder in interface ToCopyableBuilder<QuotaSettings.Builder,QuotaSettings>public static QuotaSettings.Builder builder()
public static Class<? extends QuotaSettings.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.