Class RecencyDimension
- java.lang.Object
-
- software.amazon.awssdk.services.pinpoint.model.RecencyDimension
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RecencyDimension.Builder,RecencyDimension>
@Generated("software.amazon.awssdk:codegen") public final class RecencyDimension extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RecencyDimension.Builder,RecencyDimension>
Specifies criteria for including or excluding endpoints from a segment based on how recently an endpoint was active.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRecencyDimension.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RecencyDimension.Builderbuilder()Durationduration()The duration to use when determining whether an endpoint is active or inactive.StringdurationAsString()The duration to use when determining whether an endpoint is active or inactive.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()RecencyTyperecencyType()The type of recency dimension to use for the segment.StringrecencyTypeAsString()The type of recency dimension to use for the segment.List<SdkField<?>>sdkFields()static Class<? extends RecencyDimension.Builder>serializableBuilderClass()RecencyDimension.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
-
duration
public final Duration duration()
The duration to use when determining whether an endpoint is active or inactive.
If the service returns an enum value that is not available in the current SDK version,
durationwill returnDuration.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdurationAsString().- Returns:
- The duration to use when determining whether an endpoint is active or inactive.
- See Also:
Duration
-
durationAsString
public final String durationAsString()
The duration to use when determining whether an endpoint is active or inactive.
If the service returns an enum value that is not available in the current SDK version,
durationwill returnDuration.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdurationAsString().- Returns:
- The duration to use when determining whether an endpoint is active or inactive.
- See Also:
Duration
-
recencyType
public final RecencyType recencyType()
The type of recency dimension to use for the segment. Valid values are: ACTIVE, endpoints that were active within the specified duration are included in the segment; and, INACTIVE, endpoints that weren't active within the specified duration are included in the segment.
If the service returns an enum value that is not available in the current SDK version,
recencyTypewill returnRecencyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrecencyTypeAsString().- Returns:
- The type of recency dimension to use for the segment. Valid values are: ACTIVE, endpoints that were active within the specified duration are included in the segment; and, INACTIVE, endpoints that weren't active within the specified duration are included in the segment.
- See Also:
RecencyType
-
recencyTypeAsString
public final String recencyTypeAsString()
The type of recency dimension to use for the segment. Valid values are: ACTIVE, endpoints that were active within the specified duration are included in the segment; and, INACTIVE, endpoints that weren't active within the specified duration are included in the segment.
If the service returns an enum value that is not available in the current SDK version,
recencyTypewill returnRecencyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrecencyTypeAsString().- Returns:
- The type of recency dimension to use for the segment. Valid values are: ACTIVE, endpoints that were active within the specified duration are included in the segment; and, INACTIVE, endpoints that weren't active within the specified duration are included in the segment.
- See Also:
RecencyType
-
toBuilder
public RecencyDimension.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<RecencyDimension.Builder,RecencyDimension>
-
builder
public static RecencyDimension.Builder builder()
-
serializableBuilderClass
public static Class<? extends RecencyDimension.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.
-
-