@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 are covered by a reservation.
|
DateInterval |
getTimePeriod()
The period over which this coverage was used.
|
Coverage |
getTotal()
The total reservation coverage, in hours.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setGroups(Collection<ReservationCoverageGroup> groups)
The groups of instances that are covered by a reservation.
|
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 groups of instances that are covered by a reservation.
|
CoverageByTime |
withGroups(ReservationCoverageGroup... groups)
The groups of instances that are covered by a reservation.
|
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 groups of instances that are covered by a reservation.
public void setGroups(Collection<ReservationCoverageGroup> groups)
The groups of instances that are covered by a reservation.
groups
- The groups of instances that are covered by a reservation.public CoverageByTime withGroups(ReservationCoverageGroup... groups)
The groups of instances that are covered by a reservation.
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 are covered by a reservation.public CoverageByTime withGroups(Collection<ReservationCoverageGroup> groups)
The groups of instances that are covered by a reservation.
groups
- The groups of instances that are covered by a reservation.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)
marshall
in interface StructuredPojo
Copyright © 2018. All rights reserved.