@Generated(value="software.amazon.awssdk:codegen") public final class ServiceLimit extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ServiceLimit.Builder,ServiceLimit>
Specifies a current quota for an account.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ServiceLimit.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ServiceLimit.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Boolean |
isServiceLimited()
Specifies whether the account has met the quota that corresponds to the metric specified by the
UsageByAccount.type field in the response.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ServiceLimit.Builder> |
serializableBuilderClass() |
ServiceLimit.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Unit |
unit()
The unit of measurement for the value specified by the value field.
|
String |
unitAsString()
The unit of measurement for the value specified by the value field.
|
Long |
value()
The value for the metric specified by the UsageByAccount.type field in the response.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic Boolean isServiceLimited()
Specifies whether the account has met the quota that corresponds to the metric specified by the UsageByAccount.type field in the response.
public Unit unit()
The unit of measurement for the value specified by the value field.
If the service returns an enum value that is not available in the current SDK version, unit will return
Unit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
unitAsString().
Unitpublic String unitAsString()
The unit of measurement for the value specified by the value field.
If the service returns an enum value that is not available in the current SDK version, unit will return
Unit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
unitAsString().
Unitpublic Long value()
The value for the metric specified by the UsageByAccount.type field in the response.
public ServiceLimit.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ServiceLimit.Builder,ServiceLimit>public static ServiceLimit.Builder builder()
public static Class<? extends ServiceLimit.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.