@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RecencyDimension extends Object implements Serializable, Cloneable, StructuredPojo
Specifies criteria for including or excluding endpoints from a segment based on how recently an endpoint was active.
Constructor and Description |
---|
RecencyDimension() |
Modifier and Type | Method and Description |
---|---|
RecencyDimension |
clone() |
boolean |
equals(Object obj) |
String |
getDuration()
The duration to use when determining whether an endpoint is active or inactive.
|
String |
getRecencyType()
The type of recency dimension to use for the segment.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDuration(Duration duration)
The duration to use when determining whether an endpoint is active or inactive.
|
void |
setDuration(String duration)
The duration to use when determining whether an endpoint is active or inactive.
|
void |
setRecencyType(RecencyType recencyType)
The type of recency dimension to use for the segment.
|
void |
setRecencyType(String recencyType)
The type of recency dimension to use for the segment.
|
String |
toString()
Returns a string representation of this object.
|
RecencyDimension |
withDuration(Duration duration)
The duration to use when determining whether an endpoint is active or inactive.
|
RecencyDimension |
withDuration(String duration)
The duration to use when determining whether an endpoint is active or inactive.
|
RecencyDimension |
withRecencyType(RecencyType recencyType)
The type of recency dimension to use for the segment.
|
RecencyDimension |
withRecencyType(String recencyType)
The type of recency dimension to use for the segment.
|
public void setDuration(String duration)
The duration to use when determining whether an endpoint is active or inactive.
duration
- The duration to use when determining whether an endpoint is active or inactive.Duration
public String getDuration()
The duration to use when determining whether an endpoint is active or inactive.
Duration
public RecencyDimension withDuration(String duration)
The duration to use when determining whether an endpoint is active or inactive.
duration
- The duration to use when determining whether an endpoint is active or inactive.Duration
public void setDuration(Duration duration)
The duration to use when determining whether an endpoint is active or inactive.
duration
- The duration to use when determining whether an endpoint is active or inactive.Duration
public RecencyDimension withDuration(Duration duration)
The duration to use when determining whether an endpoint is active or inactive.
duration
- The duration to use when determining whether an endpoint is active or inactive.Duration
public void setRecencyType(String 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.
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.RecencyType
public String getRecencyType()
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.
RecencyType
public RecencyDimension withRecencyType(String 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.
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.RecencyType
public void setRecencyType(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.
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.RecencyType
public RecencyDimension withRecencyType(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.
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.RecencyType
public String toString()
toString
in class Object
Object.toString()
public RecencyDimension clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.