@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class StartTimeRange extends Object implements Serializable, Cloneable, StructuredPojo
A time range used to specify when the behavior of an insight or anomaly started.
| Constructor and Description |
|---|
StartTimeRange() |
| Modifier and Type | Method and Description |
|---|---|
StartTimeRange |
clone() |
boolean |
equals(Object obj) |
Date |
getFromTime()
The start time of the time range.
|
Date |
getToTime()
The end time of the time range.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setFromTime(Date fromTime)
The start time of the time range.
|
void |
setToTime(Date toTime)
The end time of the time range.
|
String |
toString()
Returns a string representation of this object.
|
StartTimeRange |
withFromTime(Date fromTime)
The start time of the time range.
|
StartTimeRange |
withToTime(Date toTime)
The end time of the time range.
|
public void setFromTime(Date fromTime)
The start time of the time range.
fromTime - The start time of the time range.public Date getFromTime()
The start time of the time range.
public StartTimeRange withFromTime(Date fromTime)
The start time of the time range.
fromTime - The start time of the time range.public void setToTime(Date toTime)
The end time of the time range.
toTime - The end time of the time range.public Date getToTime()
The end time of the time range.
public StartTimeRange withToTime(Date toTime)
The end time of the time range.
toTime - The end time of the time range.public String toString()
toString in class ObjectObject.toString()public StartTimeRange clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.