@Generated(value="software.amazon.awssdk:codegen") public final class ResultByTime extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResultByTime.Builder,ResultByTime>
The result that is associated with a time period.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ResultByTime.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ResultByTime.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Boolean |
estimated()
Whether the result is estimated.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
List<Group> |
groups()
The groups that this time period includes.
|
boolean |
hasGroups()
Returns true if the Groups property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasTotal()
Returns true if the Total property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ResultByTime.Builder> |
serializableBuilderClass() |
DateInterval |
timePeriod()
The time period that the result covers.
|
ResultByTime.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Map<String,MetricValue> |
total()
The total amount of cost or usage accrued during the time period.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final DateInterval timePeriod()
The time period that the result covers.
public final boolean hasTotal()
public final Map<String,MetricValue> total()
The total amount of cost or usage accrued during the time period.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTotal() to see if a value was sent in this field.
public final boolean hasGroups()
public final List<Group> groups()
The groups that this time period includes.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasGroups() to see if a value was sent in this field.
public final Boolean estimated()
Whether the result is estimated.
public ResultByTime.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ResultByTime.Builder,ResultByTime>public static ResultByTime.Builder builder()
public static Class<? extends ResultByTime.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.