@Generated(value="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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
RecencyDimension.Builder |
| Modifier and Type | Method and Description |
|---|---|
static RecencyDimension.Builder |
builder() |
Duration |
duration()
The duration to use when determining whether an endpoint is active or inactive.
|
String |
durationAsString()
The duration to use when determining whether an endpoint is active or inactive.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
RecencyType |
recencyType()
The type of recency dimension to use for the segment.
|
String |
recencyTypeAsString()
The type of recency dimension to use for the segment.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends RecencyDimension.Builder> |
serializableBuilderClass() |
RecencyDimension.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic 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, duration will
return Duration.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
durationAsString().
Durationpublic 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, duration will
return Duration.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
durationAsString().
Durationpublic 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, recencyType will
return RecencyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
recencyTypeAsString().
RecencyTypepublic 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, recencyType will
return RecencyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
recencyTypeAsString().
RecencyTypepublic RecencyDimension.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<RecencyDimension.Builder,RecencyDimension>public static RecencyDimension.Builder builder()
public static Class<? extends RecencyDimension.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.