@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DateTimeRange extends Object implements Serializable, Cloneable, StructuredPojo
A range of dates and times that is used by the EventFilter and EntityFilter objects. If
from
is set and to
is set: match items where the timestamp (startTime
,
endTime
, or lastUpdatedTime
) is between from
and to
inclusive. If
from
is set and to
is not set: match items where the timestamp value is equal to or after
from
. If from
is not set and to
is set: match items where the timestamp value
is equal to or before to
.
Constructor and Description |
---|
DateTimeRange() |
Modifier and Type | Method and Description |
---|---|
DateTimeRange |
clone() |
boolean |
equals(Object obj) |
Date |
getFrom()
The starting date and time of a time range.
|
Date |
getTo()
The ending date and time of a time range.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setFrom(Date from)
The starting date and time of a time range.
|
void |
setTo(Date to)
The ending date and time of a time range.
|
String |
toString()
Returns a string representation of this object.
|
DateTimeRange |
withFrom(Date from)
The starting date and time of a time range.
|
DateTimeRange |
withTo(Date to)
The ending date and time of a time range.
|
public void setFrom(Date from)
The starting date and time of a time range.
from
- The starting date and time of a time range.public Date getFrom()
The starting date and time of a time range.
public DateTimeRange withFrom(Date from)
The starting date and time of a time range.
from
- The starting date and time of a time range.public void setTo(Date to)
The ending date and time of a time range.
to
- The ending date and time of a time range.public Date getTo()
The ending date and time of a time range.
public DateTimeRange withTo(Date to)
The ending date and time of a time range.
to
- The ending date and time of a time range.public String toString()
toString
in class Object
Object.toString()
public DateTimeRange clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.