@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DateInterval extends Object implements Serializable, Cloneable, StructuredPojo
The time period of the request.
Constructor and Description |
---|
DateInterval() |
Modifier and Type | Method and Description |
---|---|
DateInterval |
clone() |
boolean |
equals(Object obj) |
String |
getEnd()
The end of the time period.
|
String |
getStart()
The beginning of the time period.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setEnd(String end)
The end of the time period.
|
void |
setStart(String start)
The beginning of the time period.
|
String |
toString()
Returns a string representation of this object.
|
DateInterval |
withEnd(String end)
The end of the time period.
|
DateInterval |
withStart(String start)
The beginning of the time period.
|
public void setStart(String start)
The beginning of the time period. The start date is inclusive. For example, if start
is
2017-01-01
, Amazon Web Services 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
, Amazon Web Services 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 String getStart()
The beginning of the time period. The start date is inclusive. For example, if start
is
2017-01-01
, Amazon Web Services 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
, Amazon Web Services 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 DateInterval withStart(String start)
The beginning of the time period. The start date is inclusive. For example, if start
is
2017-01-01
, Amazon Web Services 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
, Amazon Web Services 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(String end)
The end of the time period. The end date is exclusive. For example, if end
is
2017-05-01
, Amazon Web Services 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
, Amazon Web Services retrieves cost and usage data from the start date up to, but
not including, 2017-05-01
.public String getEnd()
The end of the time period. The end date is exclusive. For example, if end
is
2017-05-01
, Amazon Web Services retrieves cost and usage data from the start date up to, but not
including, 2017-05-01
.
end
is
2017-05-01
, Amazon Web Services retrieves cost and usage data from the start date up to, but
not including, 2017-05-01
.public DateInterval withEnd(String end)
The end of the time period. The end date is exclusive. For example, if end
is
2017-05-01
, Amazon Web Services 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
, Amazon Web Services retrieves cost and usage data from the start date up to, but
not including, 2017-05-01
.public String toString()
toString
in class Object
Object.toString()
public DateInterval clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.