@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CoverageByTime extends Object implements Serializable, Cloneable, StructuredPojo
Reservation coverage, in hours.
Constructor and Description |
---|
CoverageByTime() |
Modifier and Type | Method and Description |
---|---|
CoverageByTime |
clone() |
boolean |
equals(Object obj) |
List<ReservationCoverageGroup> |
getGroups()
The group of instances that a reservation covered.
|
DateInterval |
getTimePeriod()
The period over which this coverage was used.
|
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 group of instances that a reservation covered.
|
void |
setTimePeriod(DateInterval timePeriod)
The period over which this coverage was used.
|
void |
setTotal(Coverage total)
The total reservation coverage, in hours.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
CoverageByTime |
withGroups(Collection<ReservationCoverageGroup> groups)
The group of instances that a reservation covered.
|
CoverageByTime |
withGroups(ReservationCoverageGroup... groups)
The group of instances that a reservation covered.
|
CoverageByTime |
withTimePeriod(DateInterval timePeriod)
The period over which this coverage was used.
|
CoverageByTime |
withTotal(Coverage total)
The total reservation coverage, in hours.
|
public void setTimePeriod(DateInterval timePeriod)
The period over which this coverage was used.
timePeriod
- The period over which this coverage was used.public DateInterval getTimePeriod()
The period over which this coverage was used.
public CoverageByTime withTimePeriod(DateInterval timePeriod)
The period over which this coverage was used.
timePeriod
- The period over which this coverage was used.public List<ReservationCoverageGroup> getGroups()
The group of instances that a reservation covered.
public void setGroups(Collection<ReservationCoverageGroup> groups)
The group of instances that a reservation covered.
groups
- The group of instances that a reservation covered.public CoverageByTime withGroups(ReservationCoverageGroup... groups)
The group of instances that a 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 group of instances that a reservation covered.public CoverageByTime withGroups(Collection<ReservationCoverageGroup> groups)
The group of instances that a reservation covered.
groups
- The group of instances that a 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.