@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TimeRange extends Object implements Serializable, Cloneable, StructuredPojo
A time range with a start and end time.
Constructor and Description |
---|
TimeRange() |
Modifier and Type | Method and Description |
---|---|
TimeRange |
clone() |
boolean |
equals(Object obj) |
Date |
getEndTime()
Time in UTC at which the time range ends.
|
Date |
getStartTime()
Time in UTC at which the time range starts.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setEndTime(Date endTime)
Time in UTC at which the time range ends.
|
void |
setStartTime(Date startTime)
Time in UTC at which the time range starts.
|
String |
toString()
Returns a string representation of this object.
|
TimeRange |
withEndTime(Date endTime)
Time in UTC at which the time range ends.
|
TimeRange |
withStartTime(Date startTime)
Time in UTC at which the time range starts.
|
public void setEndTime(Date endTime)
Time in UTC at which the time range ends.
endTime
- Time in UTC at which the time range ends.public Date getEndTime()
Time in UTC at which the time range ends.
public TimeRange withEndTime(Date endTime)
Time in UTC at which the time range ends.
endTime
- Time in UTC at which the time range ends.public void setStartTime(Date startTime)
Time in UTC at which the time range starts.
startTime
- Time in UTC at which the time range starts.public Date getStartTime()
Time in UTC at which the time range starts.
public TimeRange withStartTime(Date startTime)
Time in UTC at which the time range starts.
startTime
- Time in UTC at which the time range starts.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.