@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResultByTime extends Object implements Serializable, Cloneable, StructuredPojo
The result that is associated with a time period.
| Constructor and Description |
|---|
ResultByTime() |
| Modifier and Type | Method and Description |
|---|---|
ResultByTime |
addTotalEntry(String key,
MetricValue value)
Add a single Total entry
|
ResultByTime |
clearTotalEntries()
Removes all the entries added into Total.
|
ResultByTime |
clone() |
boolean |
equals(Object obj) |
Boolean |
getEstimated()
Whether the result is estimated.
|
List<Group> |
getGroups()
The groups that this time period includes.
|
DateInterval |
getTimePeriod()
The time period that the result covers.
|
Map<String,MetricValue> |
getTotal()
The total amount of cost or usage accrued during the time period.
|
int |
hashCode() |
Boolean |
isEstimated()
Whether the result is estimated.
|
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setEstimated(Boolean estimated)
Whether the result is estimated.
|
void |
setGroups(Collection<Group> groups)
The groups that this time period includes.
|
void |
setTimePeriod(DateInterval timePeriod)
The time period that the result covers.
|
void |
setTotal(Map<String,MetricValue> total)
The total amount of cost or usage accrued during the time period.
|
String |
toString()
Returns a string representation of this object.
|
ResultByTime |
withEstimated(Boolean estimated)
Whether the result is estimated.
|
ResultByTime |
withGroups(Collection<Group> groups)
The groups that this time period includes.
|
ResultByTime |
withGroups(Group... groups)
The groups that this time period includes.
|
ResultByTime |
withTimePeriod(DateInterval timePeriod)
The time period that the result covers.
|
ResultByTime |
withTotal(Map<String,MetricValue> total)
The total amount of cost or usage accrued during the time period.
|
public void setTimePeriod(DateInterval timePeriod)
The time period that the result covers.
timePeriod - The time period that the result covers.public DateInterval getTimePeriod()
The time period that the result covers.
public ResultByTime withTimePeriod(DateInterval timePeriod)
The time period that the result covers.
timePeriod - The time period that the result covers.public Map<String,MetricValue> getTotal()
The total amount of cost or usage accrued during the time period.
public void setTotal(Map<String,MetricValue> total)
The total amount of cost or usage accrued during the time period.
total - The total amount of cost or usage accrued during the time period.public ResultByTime withTotal(Map<String,MetricValue> total)
The total amount of cost or usage accrued during the time period.
total - The total amount of cost or usage accrued during the time period.public ResultByTime addTotalEntry(String key, MetricValue value)
public ResultByTime clearTotalEntries()
public List<Group> getGroups()
The groups that this time period includes.
public void setGroups(Collection<Group> groups)
The groups that this time period includes.
groups - The groups that this time period includes.public ResultByTime withGroups(Group... groups)
The groups that this time period includes.
NOTE: This method appends the values to the existing list (if any). Use
setGroups(java.util.Collection) or withGroups(java.util.Collection) if you want to override the
existing values.
groups - The groups that this time period includes.public ResultByTime withGroups(Collection<Group> groups)
The groups that this time period includes.
groups - The groups that this time period includes.public void setEstimated(Boolean estimated)
Whether the result is estimated.
estimated - Whether the result is estimated.public Boolean getEstimated()
Whether the result is estimated.
public ResultByTime withEstimated(Boolean estimated)
Whether the result is estimated.
estimated - Whether the result is estimated.public Boolean isEstimated()
Whether the result is estimated.
public String toString()
toString in class ObjectObject.toString()public ResultByTime clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2021. All rights reserved.