@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TimeRange extends Object implements Serializable, Cloneable, StructuredPojo
Provides a range of time.
Constructor and Description |
---|
TimeRange() |
Modifier and Type | Method and Description |
---|---|
TimeRange |
clone() |
boolean |
equals(Object obj) |
Date |
getEndTime()
The Unix timestamp for the end of the time range.
|
Date |
getStartTime()
The Unix timestamp for the beginning of the time range.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setEndTime(Date endTime)
The Unix timestamp for the end of the time range.
|
void |
setStartTime(Date startTime)
The Unix timestamp for the beginning of the time range.
|
String |
toString()
Returns a string representation of this object.
|
TimeRange |
withEndTime(Date endTime)
The Unix timestamp for the end of the time range.
|
TimeRange |
withStartTime(Date startTime)
The Unix timestamp for the beginning of the time range.
|
public void setStartTime(Date startTime)
The Unix timestamp for the beginning of the time range.
startTime
- The Unix timestamp for the beginning of the time range.public Date getStartTime()
The Unix timestamp for the beginning of the time range.
public TimeRange withStartTime(Date startTime)
The Unix timestamp for the beginning of the time range.
startTime
- The Unix timestamp for the beginning of the time range.public void setEndTime(Date endTime)
The Unix timestamp for the end of the time range.
endTime
- The Unix timestamp for the end of the time range.public Date getEndTime()
The Unix timestamp for the end of the time range.
public TimeRange withEndTime(Date endTime)
The Unix timestamp for the end of the time range.
endTime
- The Unix timestamp for the end of the time range.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.