@Generated(value="software.amazon.awssdk:codegen") public final class ResultByTime extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResultByTime.Builder,ResultByTime>
The result that's 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()
Determines 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()
For responses, this returns true if the service returned a value for the Groups property.
|
int |
hashCode() |
boolean |
hasTotal()
For responses, this returns true if the service returned a value for the Total property.
|
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()
isEmpty() method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTotal() method.
public final boolean hasGroups()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasGroups() method.
public final Boolean estimated()
Determines 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 © 2023. All rights reserved.