@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TimePeriod extends Object implements Serializable, Cloneable, StructuredPojo
Sets the start date and end date for retrieving a cost estimate. The start date is inclusive, but the end date is
exclusive. For example, if start is 2017-01-01 and end is
2017-05-01, then the cost and usage data is retrieved from 2017-01-01 up to and including
2017-04-30 but not including 2017-05-01.
| Constructor and Description |
|---|
TimePeriod() |
| Modifier and Type | Method and Description |
|---|---|
TimePeriod |
clone() |
boolean |
equals(Object obj) |
Date |
getEnd()
The end of the time period.
|
Date |
getStart()
The beginning of the time period.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setEnd(Date end)
The end of the time period.
|
void |
setStart(Date start)
The beginning of the time period.
|
String |
toString()
Returns a string representation of this object.
|
TimePeriod |
withEnd(Date end)
The end of the time period.
|
TimePeriod |
withStart(Date start)
The beginning of the time period.
|
public void setStart(Date start)
The beginning of the time period. The start date is inclusive. For example, if start is
2017-01-01, Lightsail for Research retrieves cost and usage data starting at 2017-01-01
up to the end date. The start date must be equal to or no later than the current date to avoid a validation
error.
start - The beginning of the time period. The start date is inclusive. For example, if start is
2017-01-01, Lightsail for Research retrieves cost and usage data starting at
2017-01-01 up to the end date. The start date must be equal to or no later than the current
date to avoid a validation error.public Date getStart()
The beginning of the time period. The start date is inclusive. For example, if start is
2017-01-01, Lightsail for Research retrieves cost and usage data starting at 2017-01-01
up to the end date. The start date must be equal to or no later than the current date to avoid a validation
error.
start is
2017-01-01, Lightsail for Research retrieves cost and usage data starting at
2017-01-01 up to the end date. The start date must be equal to or no later than the current
date to avoid a validation error.public TimePeriod withStart(Date start)
The beginning of the time period. The start date is inclusive. For example, if start is
2017-01-01, Lightsail for Research retrieves cost and usage data starting at 2017-01-01
up to the end date. The start date must be equal to or no later than the current date to avoid a validation
error.
start - The beginning of the time period. The start date is inclusive. For example, if start is
2017-01-01, Lightsail for Research retrieves cost and usage data starting at
2017-01-01 up to the end date. The start date must be equal to or no later than the current
date to avoid a validation error.public void setEnd(Date end)
The end of the time period. The end date is exclusive. For example, if end is
2017-05-01, Lightsail for Research retrieves cost and usage data from the start date up to, but not
including, 2017-05-01.
end - The end of the time period. The end date is exclusive. For example, if end is
2017-05-01, Lightsail for Research retrieves cost and usage data from the start date up to,
but not including, 2017-05-01.public Date getEnd()
The end of the time period. The end date is exclusive. For example, if end is
2017-05-01, Lightsail for Research retrieves cost and usage data from the start date up to, but not
including, 2017-05-01.
end is
2017-05-01, Lightsail for Research retrieves cost and usage data from the start date up to,
but not including, 2017-05-01.public TimePeriod withEnd(Date end)
The end of the time period. The end date is exclusive. For example, if end is
2017-05-01, Lightsail for Research retrieves cost and usage data from the start date up to, but not
including, 2017-05-01.
end - The end of the time period. The end date is exclusive. For example, if end is
2017-05-01, Lightsail for Research retrieves cost and usage data from the start date up to,
but not including, 2017-05-01.public String toString()
toString in class ObjectObject.toString()public TimePeriod clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.