Class DateRange
- java.lang.Object
-
- software.amazon.awssdk.services.backup.model.DateRange
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DateRange.Builder,DateRange>
@Generated("software.amazon.awssdk:codegen") public final class DateRange extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DateRange.Builder,DateRange>
This is a resource filter containing FromDate: DateTime and ToDate: DateTime. Both values are required. Future DateTime values are not permitted.
The date and time are in Unix format and Coordinated Universal Time (UTC), and it is accurate to milliseconds ((milliseconds are optional). For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDateRange.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DateRange.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)InstantfromDate()This value is the beginning date, inclusive.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends DateRange.Builder>serializableBuilderClass()DateRange.BuildertoBuilder()InstanttoDate()This value is the end date, inclusive.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
-
fromDate
public final Instant fromDate()
This value is the beginning date, inclusive.
The date and time are in Unix format and Coordinated Universal Time (UTC), and it is accurate to milliseconds (milliseconds are optional).
- Returns:
- This value is the beginning date, inclusive.
The date and time are in Unix format and Coordinated Universal Time (UTC), and it is accurate to milliseconds (milliseconds are optional).
-
toDate
public final Instant toDate()
This value is the end date, inclusive.
The date and time are in Unix format and Coordinated Universal Time (UTC), and it is accurate to milliseconds (milliseconds are optional).
- Returns:
- This value is the end date, inclusive.
The date and time are in Unix format and Coordinated Universal Time (UTC), and it is accurate to milliseconds (milliseconds are optional).
-
toBuilder
public DateRange.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DateRange.Builder,DateRange>
-
builder
public static DateRange.Builder builder()
-
serializableBuilderClass
public static Class<? extends DateRange.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.
-
-