@Generated(value="software.amazon.awssdk:codegen") public final class UsageStatisticsFilter extends Object implements SdkPojo, Serializable, ToCopyableBuilder<UsageStatisticsFilter.Builder,UsageStatisticsFilter>
Specifies a condition for filtering the results of a query for account quotas and usage data.
| Modifier and Type | Class and Description |
|---|---|
static interface |
UsageStatisticsFilter.Builder |
| Modifier and Type | Method and Description |
|---|---|
static UsageStatisticsFilter.Builder |
builder() |
UsageStatisticsFilterComparator |
comparator()
The operator to use in the condition.
|
String |
comparatorAsString()
The operator to use in the condition.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasValues()
Returns true if the Values property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
UsageStatisticsFilterKey |
key()
The field to use in the condition.
|
String |
keyAsString()
The field to use in the condition.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends UsageStatisticsFilter.Builder> |
serializableBuilderClass() |
UsageStatisticsFilter.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
List<String> |
values()
An array that lists values to use in the condition, based on the value for the field specified by the key
property.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic UsageStatisticsFilterComparator comparator()
The operator to use in the condition. If the value for the key property is accountId, this value must be CONTAINS. If the value for the key property is any other supported field, this value can be EQ, GT, GTE, LT, LTE, or NE.
If the service returns an enum value that is not available in the current SDK version, comparator will
return UsageStatisticsFilterComparator.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from comparatorAsString().
UsageStatisticsFilterComparatorpublic String comparatorAsString()
The operator to use in the condition. If the value for the key property is accountId, this value must be CONTAINS. If the value for the key property is any other supported field, this value can be EQ, GT, GTE, LT, LTE, or NE.
If the service returns an enum value that is not available in the current SDK version, comparator will
return UsageStatisticsFilterComparator.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from comparatorAsString().
UsageStatisticsFilterComparatorpublic UsageStatisticsFilterKey key()
The field to use in the condition.
If the service returns an enum value that is not available in the current SDK version, key will return
UsageStatisticsFilterKey.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
keyAsString().
UsageStatisticsFilterKeypublic String keyAsString()
The field to use in the condition.
If the service returns an enum value that is not available in the current SDK version, key will return
UsageStatisticsFilterKey.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
keyAsString().
UsageStatisticsFilterKeypublic boolean hasValues()
public List<String> values()
An array that lists values to use in the condition, based on the value for the field specified by the key property. If the value for the key property is accountId, this array can specify multiple values. Otherwise, this array can specify only one value.
Valid values for each supported field are:
accountId - The unique identifier for an AWS account.
freeTrialStartDate - The date and time, in UTC and extended ISO 8601 format, when the free trial started for an account.
serviceLimit - A Boolean (true or false) value that indicates whether an account has reached its monthly quota.
total - A string that represents the current, estimated month-to-date cost for an account.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasValues() to see if a value was sent in this field.
Valid values for each supported field are:
accountId - The unique identifier for an AWS account.
freeTrialStartDate - The date and time, in UTC and extended ISO 8601 format, when the free trial started for an account.
serviceLimit - A Boolean (true or false) value that indicates whether an account has reached its monthly quota.
total - A string that represents the current, estimated month-to-date cost for an account.
public UsageStatisticsFilter.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<UsageStatisticsFilter.Builder,UsageStatisticsFilter>public static UsageStatisticsFilter.Builder builder()
public static Class<? extends UsageStatisticsFilter.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.