Class DateRange
- java.lang.Object
-
- software.amazon.awssdk.services.securityhub.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>
A date range for the date filter.
- 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)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends DateRange.Builder>serializableBuilderClass()DateRange.BuildertoBuilder()StringtoString()Returns a string representation of this object.DateRangeUnitunit()A date range unit for the date filter.StringunitAsString()A date range unit for the date filter.Integervalue()A date range value for the date filter.-
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
-
value
public final Integer value()
A date range value for the date filter.
- Returns:
- A date range value for the date filter.
-
unit
public final DateRangeUnit unit()
A date range unit for the date filter.
If the service returns an enum value that is not available in the current SDK version,
unitwill returnDateRangeUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromunitAsString().- Returns:
- A date range unit for the date filter.
- See Also:
DateRangeUnit
-
unitAsString
public final String unitAsString()
A date range unit for the date filter.
If the service returns an enum value that is not available in the current SDK version,
unitwill returnDateRangeUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromunitAsString().- Returns:
- A date range unit for the date filter.
- See Also:
DateRangeUnit
-
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.
-
-