@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UtilizationByTime extends Object implements Serializable, Cloneable, StructuredPojo
The amount of utilization, in hours.
Constructor and Description |
---|
UtilizationByTime() |
Modifier and Type | Method and Description |
---|---|
UtilizationByTime |
clone() |
boolean |
equals(Object obj) |
List<ReservationUtilizationGroup> |
getGroups()
The groups that this utilization result uses.
|
DateInterval |
getTimePeriod()
The period of time that this utilization was used for.
|
ReservationAggregates |
getTotal()
The total number of reservation hours that were used.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setGroups(Collection<ReservationUtilizationGroup> groups)
The groups that this utilization result uses.
|
void |
setTimePeriod(DateInterval timePeriod)
The period of time that this utilization was used for.
|
void |
setTotal(ReservationAggregates total)
The total number of reservation hours that were used.
|
String |
toString()
Returns a string representation of this object.
|
UtilizationByTime |
withGroups(Collection<ReservationUtilizationGroup> groups)
The groups that this utilization result uses.
|
UtilizationByTime |
withGroups(ReservationUtilizationGroup... groups)
The groups that this utilization result uses.
|
UtilizationByTime |
withTimePeriod(DateInterval timePeriod)
The period of time that this utilization was used for.
|
UtilizationByTime |
withTotal(ReservationAggregates total)
The total number of reservation hours that were used.
|
public void setTimePeriod(DateInterval timePeriod)
The period of time that this utilization was used for.
timePeriod
- The period of time that this utilization was used for.public DateInterval getTimePeriod()
The period of time that this utilization was used for.
public UtilizationByTime withTimePeriod(DateInterval timePeriod)
The period of time that this utilization was used for.
timePeriod
- The period of time that this utilization was used for.public List<ReservationUtilizationGroup> getGroups()
The groups that this utilization result uses.
public void setGroups(Collection<ReservationUtilizationGroup> groups)
The groups that this utilization result uses.
groups
- The groups that this utilization result uses.public UtilizationByTime withGroups(ReservationUtilizationGroup... groups)
The groups that this utilization result uses.
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 utilization result uses.public UtilizationByTime withGroups(Collection<ReservationUtilizationGroup> groups)
The groups that this utilization result uses.
groups
- The groups that this utilization result uses.public void setTotal(ReservationAggregates total)
The total number of reservation hours that were used.
total
- The total number of reservation hours that were used.public ReservationAggregates getTotal()
The total number of reservation hours that were used.
public UtilizationByTime withTotal(ReservationAggregates total)
The total number of reservation hours that were used.
total
- The total number of reservation hours that were used.public String toString()
toString
in class Object
Object.toString()
public UtilizationByTime clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.