Class DateTimeRange
- java.lang.Object
-
- software.amazon.awssdk.services.health.model.DateTimeRange
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DateTimeRange.Builder,DateTimeRange>
@Generated("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
fromis set andtois set: match items where the timestamp (startTime,endTime, orlastUpdatedTime) is betweenfromandtoinclusive. Iffromis set andtois not set: match items where the timestamp value is equal to or afterfrom. Iffromis not set andtois set: match items where the timestamp value is equal to or beforeto.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDateTimeRange.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DateTimeRange.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)Instantfrom()The starting date and time of a time range.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends DateTimeRange.Builder>serializableBuilderClass()Instantto()The ending date and time of a time range.DateTimeRange.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
from
public final Instant from()
The starting date and time of a time range.
- Returns:
- The starting date and time of a time range.
-
to
public final Instant to()
The ending date and time of a time range.
- Returns:
- The ending date and time of a time range.
-
toBuilder
public DateTimeRange.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DateTimeRange.Builder,DateTimeRange>
-
builder
public static DateTimeRange.Builder builder()
-
serializableBuilderClass
public static Class<? extends DateTimeRange.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-