@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CoverageByTime extends Object implements Serializable, Cloneable, StructuredPojo
Reservation coverage for a specified period, in hours.
Constructor and Description |
---|
CoverageByTime() |
Modifier and Type | Method and Description |
---|---|
CoverageByTime |
clone() |
boolean |
equals(Object obj) |
List<ReservationCoverageGroup> |
getGroups()
The groups of instances that the reservation covered.
|
DateInterval |
getTimePeriod()
The period that this coverage was used over.
|
Coverage |
getTotal()
The total reservation coverage, in hours.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setGroups(Collection<ReservationCoverageGroup> groups)
The groups of instances that the reservation covered.
|
void |
setTimePeriod(DateInterval timePeriod)
The period that this coverage was used over.
|
void |
setTotal(Coverage total)
The total reservation coverage, in hours.
|
String |
toString()
Returns a string representation of this object.
|
CoverageByTime |
withGroups(Collection<ReservationCoverageGroup> groups)
The groups of instances that the reservation covered.
|
CoverageByTime |
withGroups(ReservationCoverageGroup... groups)
The groups of instances that the reservation covered.
|
CoverageByTime |
withTimePeriod(DateInterval timePeriod)
The period that this coverage was used over.
|
CoverageByTime |
withTotal(Coverage total)
The total reservation coverage, in hours.
|
public void setTimePeriod(DateInterval timePeriod)
The period that this coverage was used over.
timePeriod
- The period that this coverage was used over.public DateInterval getTimePeriod()
The period that this coverage was used over.
public CoverageByTime withTimePeriod(DateInterval timePeriod)
The period that this coverage was used over.
timePeriod
- The period that this coverage was used over.public List<ReservationCoverageGroup> getGroups()
The groups of instances that the reservation covered.
public void setGroups(Collection<ReservationCoverageGroup> groups)
The groups of instances that the reservation covered.
groups
- The groups of instances that the reservation covered.public CoverageByTime withGroups(ReservationCoverageGroup... groups)
The groups of instances that the reservation covered.
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 of instances that the reservation covered.public CoverageByTime withGroups(Collection<ReservationCoverageGroup> groups)
The groups of instances that the reservation covered.
groups
- The groups of instances that the reservation covered.public void setTotal(Coverage total)
The total reservation coverage, in hours.
total
- The total reservation coverage, in hours.public Coverage getTotal()
The total reservation coverage, in hours.
public CoverageByTime withTotal(Coverage total)
The total reservation coverage, in hours.
total
- The total reservation coverage, in hours.public String toString()
toString
in class Object
Object.toString()
public CoverageByTime clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.