@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TimeRange extends Object implements Serializable, Cloneable, StructuredPojo
The time range.
| Constructor and Description |
|---|
TimeRange() |
| Modifier and Type | Method and Description |
|---|---|
TimeRange |
clone() |
boolean |
equals(Object obj) |
Date |
getFromInclusive()
The start time, in Unix time in seconds.
|
Date |
getToExclusive()
The end time, in Unix time in seconds.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setFromInclusive(Date fromInclusive)
The start time, in Unix time in seconds.
|
void |
setToExclusive(Date toExclusive)
The end time, in Unix time in seconds.
|
String |
toString()
Returns a string representation of this object.
|
TimeRange |
withFromInclusive(Date fromInclusive)
The start time, in Unix time in seconds.
|
TimeRange |
withToExclusive(Date toExclusive)
The end time, in Unix time in seconds.
|
public void setFromInclusive(Date fromInclusive)
The start time, in Unix time in seconds.
fromInclusive - The start time, in Unix time in seconds.public Date getFromInclusive()
The start time, in Unix time in seconds.
public TimeRange withFromInclusive(Date fromInclusive)
The start time, in Unix time in seconds.
fromInclusive - The start time, in Unix time in seconds.public void setToExclusive(Date toExclusive)
The end time, in Unix time in seconds.
toExclusive - The end time, in Unix time in seconds.public Date getToExclusive()
The end time, in Unix time in seconds.
public TimeRange withToExclusive(Date toExclusive)
The end time, in Unix time in seconds.
toExclusive - The end time, in Unix time in seconds.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.