@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.Durationpublic String getDuration()
The duration to use when determining whether an endpoint is active or inactive.
Durationpublic 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.Durationpublic 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.Durationpublic 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.Durationpublic 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.RecencyTypepublic 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.
RecencyTypepublic 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.RecencyTypepublic 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.RecencyTypepublic 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.RecencyTypepublic String toString()
toString in class ObjectObject.toString()public RecencyDimension clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.