@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SegmentDimensions extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the dimension settings for a segment.
Constructor and Description |
---|
SegmentDimensions() |
Modifier and Type | Method and Description |
---|---|
SegmentDimensions |
addAttributesEntry(String key,
AttributeDimension value)
Add a single Attributes entry
|
SegmentDimensions |
addMetricsEntry(String key,
MetricDimension value)
Add a single Metrics entry
|
SegmentDimensions |
addUserAttributesEntry(String key,
AttributeDimension value)
Add a single UserAttributes entry
|
SegmentDimensions |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
SegmentDimensions |
clearMetricsEntries()
Removes all the entries added into Metrics.
|
SegmentDimensions |
clearUserAttributesEntries()
Removes all the entries added into UserAttributes.
|
SegmentDimensions |
clone() |
boolean |
equals(Object obj) |
Map<String,AttributeDimension> |
getAttributes()
One or more custom attributes to use as criteria for the segment.
|
SegmentBehaviors |
getBehavior()
The behavior-based criteria, such as how recently users have used your app, for the segment.
|
SegmentDemographics |
getDemographic()
The demographic-based criteria, such as device platform, for the segment.
|
SegmentLocation |
getLocation()
The location-based criteria, such as region or GPS coordinates, for the segment.
|
Map<String,MetricDimension> |
getMetrics()
One or more custom metrics to use as criteria for the segment.
|
Map<String,AttributeDimension> |
getUserAttributes()
One or more custom user attributes to use as criteria for the segment.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAttributes(Map<String,AttributeDimension> attributes)
One or more custom attributes to use as criteria for the segment.
|
void |
setBehavior(SegmentBehaviors behavior)
The behavior-based criteria, such as how recently users have used your app, for the segment.
|
void |
setDemographic(SegmentDemographics demographic)
The demographic-based criteria, such as device platform, for the segment.
|
void |
setLocation(SegmentLocation location)
The location-based criteria, such as region or GPS coordinates, for the segment.
|
void |
setMetrics(Map<String,MetricDimension> metrics)
One or more custom metrics to use as criteria for the segment.
|
void |
setUserAttributes(Map<String,AttributeDimension> userAttributes)
One or more custom user attributes to use as criteria for the segment.
|
String |
toString()
Returns a string representation of this object.
|
SegmentDimensions |
withAttributes(Map<String,AttributeDimension> attributes)
One or more custom attributes to use as criteria for the segment.
|
SegmentDimensions |
withBehavior(SegmentBehaviors behavior)
The behavior-based criteria, such as how recently users have used your app, for the segment.
|
SegmentDimensions |
withDemographic(SegmentDemographics demographic)
The demographic-based criteria, such as device platform, for the segment.
|
SegmentDimensions |
withLocation(SegmentLocation location)
The location-based criteria, such as region or GPS coordinates, for the segment.
|
SegmentDimensions |
withMetrics(Map<String,MetricDimension> metrics)
One or more custom metrics to use as criteria for the segment.
|
SegmentDimensions |
withUserAttributes(Map<String,AttributeDimension> userAttributes)
One or more custom user attributes to use as criteria for the segment.
|
public Map<String,AttributeDimension> getAttributes()
One or more custom attributes to use as criteria for the segment.
public void setAttributes(Map<String,AttributeDimension> attributes)
One or more custom attributes to use as criteria for the segment.
attributes
- One or more custom attributes to use as criteria for the segment.public SegmentDimensions withAttributes(Map<String,AttributeDimension> attributes)
One or more custom attributes to use as criteria for the segment.
attributes
- One or more custom attributes to use as criteria for the segment.public SegmentDimensions addAttributesEntry(String key, AttributeDimension value)
public SegmentDimensions clearAttributesEntries()
public void setBehavior(SegmentBehaviors behavior)
The behavior-based criteria, such as how recently users have used your app, for the segment.
behavior
- The behavior-based criteria, such as how recently users have used your app, for the segment.public SegmentBehaviors getBehavior()
The behavior-based criteria, such as how recently users have used your app, for the segment.
public SegmentDimensions withBehavior(SegmentBehaviors behavior)
The behavior-based criteria, such as how recently users have used your app, for the segment.
behavior
- The behavior-based criteria, such as how recently users have used your app, for the segment.public void setDemographic(SegmentDemographics demographic)
The demographic-based criteria, such as device platform, for the segment.
demographic
- The demographic-based criteria, such as device platform, for the segment.public SegmentDemographics getDemographic()
The demographic-based criteria, such as device platform, for the segment.
public SegmentDimensions withDemographic(SegmentDemographics demographic)
The demographic-based criteria, such as device platform, for the segment.
demographic
- The demographic-based criteria, such as device platform, for the segment.public void setLocation(SegmentLocation location)
The location-based criteria, such as region or GPS coordinates, for the segment.
location
- The location-based criteria, such as region or GPS coordinates, for the segment.public SegmentLocation getLocation()
The location-based criteria, such as region or GPS coordinates, for the segment.
public SegmentDimensions withLocation(SegmentLocation location)
The location-based criteria, such as region or GPS coordinates, for the segment.
location
- The location-based criteria, such as region or GPS coordinates, for the segment.public Map<String,MetricDimension> getMetrics()
One or more custom metrics to use as criteria for the segment.
public void setMetrics(Map<String,MetricDimension> metrics)
One or more custom metrics to use as criteria for the segment.
metrics
- One or more custom metrics to use as criteria for the segment.public SegmentDimensions withMetrics(Map<String,MetricDimension> metrics)
One or more custom metrics to use as criteria for the segment.
metrics
- One or more custom metrics to use as criteria for the segment.public SegmentDimensions addMetricsEntry(String key, MetricDimension value)
public SegmentDimensions clearMetricsEntries()
public Map<String,AttributeDimension> getUserAttributes()
One or more custom user attributes to use as criteria for the segment.
public void setUserAttributes(Map<String,AttributeDimension> userAttributes)
One or more custom user attributes to use as criteria for the segment.
userAttributes
- One or more custom user attributes to use as criteria for the segment.public SegmentDimensions withUserAttributes(Map<String,AttributeDimension> userAttributes)
One or more custom user attributes to use as criteria for the segment.
userAttributes
- One or more custom user attributes to use as criteria for the segment.public SegmentDimensions addUserAttributesEntry(String key, AttributeDimension value)
public SegmentDimensions clearUserAttributesEntries()
public String toString()
toString
in class Object
Object.toString()
public SegmentDimensions clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.