@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) |
ResultByTime |
clearTotalEntries()
Removes all the entries added into Total.
|
ResultByTime |
clone() |
boolean |
equals(Object obj) |
Boolean |
getEstimated()
Whether or not this result is estimated.
|
List<Group> |
getGroups()
The groups that are included in this time period.
|
DateInterval |
getTimePeriod()
The time period covered by a result.
|
Map<String,MetricValue> |
getTotal()
The total amount of cost or usage accrued during the time period.
|
int |
hashCode() |
Boolean |
isEstimated()
Whether or not this result is estimated.
|
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setEstimated(Boolean estimated)
Whether or not this result is estimated.
|
void |
setGroups(Collection<Group> groups)
The groups that are included in this time period.
|
void |
setTimePeriod(DateInterval timePeriod)
The time period covered by a result.
|
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; useful for testing and debugging.
|
ResultByTime |
withEstimated(Boolean estimated)
Whether or not this result is estimated.
|
ResultByTime |
withGroups(Collection<Group> groups)
The groups that are included in this time period.
|
ResultByTime |
withGroups(Group... groups)
The groups that are included in this time period.
|
ResultByTime |
withTimePeriod(DateInterval timePeriod)
The time period covered by a result.
|
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 covered by a result.
timePeriod
- The time period covered by a result.public DateInterval getTimePeriod()
The time period covered by a result.
public ResultByTime withTimePeriod(DateInterval timePeriod)
The time period covered by a result.
timePeriod
- The time period covered by a result.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 are included in this time period.
public void setGroups(Collection<Group> groups)
The groups that are included in this time period.
groups
- The groups that are included in this time period.public ResultByTime withGroups(Group... groups)
The groups that are included in this time period.
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 are included in this time period.public ResultByTime withGroups(Collection<Group> groups)
The groups that are included in this time period.
groups
- The groups that are included in this time period.public void setEstimated(Boolean estimated)
Whether or not this result is estimated.
estimated
- Whether or not this result is estimated.public Boolean getEstimated()
Whether or not this result is estimated.
public ResultByTime withEstimated(Boolean estimated)
Whether or not this result is estimated.
estimated
- Whether or not this result is estimated.public Boolean isEstimated()
Whether or not this result is estimated.
public String toString()
toString
in class Object
Object.toString()
public ResultByTime clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2017. All rights reserved.