@Generated(value="software.amazon.awssdk:codegen") public final class DateTimeRange extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DateTimeRange.Builder,DateTimeRange>
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
.
Modifier and Type | Class and Description |
---|---|
static interface |
DateTimeRange.Builder |
Modifier and Type | Method and Description |
---|---|
static DateTimeRange.Builder |
builder() |
boolean |
equals(Object obj) |
Instant |
from()
The starting date and time of a time range.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends DateTimeRange.Builder> |
serializableBuilderClass() |
Instant |
to()
The ending date and time of a time range.
|
DateTimeRange.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public Instant from()
The starting date and time of a time range.
public Instant to()
The ending date and time of a time range.
public DateTimeRange.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<DateTimeRange.Builder,DateTimeRange>
public static DateTimeRange.Builder builder()
public static Class<? extends DateTimeRange.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.