public class SegmentDimensions extends Object implements Serializable
| Constructor and Description |
|---|
SegmentDimensions() |
| Modifier and Type | Method and Description |
|---|---|
SegmentDimensions |
addAttributesEntry(String key,
AttributeDimension value)
Custom segment attributes.
|
SegmentDimensions |
addMetricsEntry(String key,
MetricDimension value)
Custom segment metrics.
|
SegmentDimensions |
addUserAttributesEntry(String key,
AttributeDimension value)
Custom segment user attributes.
|
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.
|
boolean |
equals(Object obj) |
Map<String,AttributeDimension> |
getAttributes()
Custom segment attributes.
|
SegmentBehaviors |
getBehavior()
The segment behaviors attributes.
|
SegmentDemographics |
getDemographic()
The segment demographics attributes.
|
SegmentLocation |
getLocation()
The segment location attributes.
|
Map<String,MetricDimension> |
getMetrics()
Custom segment metrics.
|
Map<String,AttributeDimension> |
getUserAttributes()
Custom segment user attributes.
|
int |
hashCode() |
void |
setAttributes(Map<String,AttributeDimension> attributes)
Custom segment attributes.
|
void |
setBehavior(SegmentBehaviors behavior)
The segment behaviors attributes.
|
void |
setDemographic(SegmentDemographics demographic)
The segment demographics attributes.
|
void |
setLocation(SegmentLocation location)
The segment location attributes.
|
void |
setMetrics(Map<String,MetricDimension> metrics)
Custom segment metrics.
|
void |
setUserAttributes(Map<String,AttributeDimension> userAttributes)
Custom segment user attributes.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SegmentDimensions |
withAttributes(Map<String,AttributeDimension> attributes)
Custom segment attributes.
|
SegmentDimensions |
withBehavior(SegmentBehaviors behavior)
The segment behaviors attributes.
|
SegmentDimensions |
withDemographic(SegmentDemographics demographic)
The segment demographics attributes.
|
SegmentDimensions |
withLocation(SegmentLocation location)
The segment location attributes.
|
SegmentDimensions |
withMetrics(Map<String,MetricDimension> metrics)
Custom segment metrics.
|
SegmentDimensions |
withUserAttributes(Map<String,AttributeDimension> userAttributes)
Custom segment user attributes.
|
public Map<String,AttributeDimension> getAttributes()
public void setAttributes(Map<String,AttributeDimension> attributes)
attributes - Custom segment attributes.public SegmentDimensions withAttributes(Map<String,AttributeDimension> attributes)
Returns a reference to this object so that method calls can be chained together.
attributes - Custom segment attributes.public SegmentDimensions addAttributesEntry(String key, AttributeDimension value)
The method adds a new key-value pair into Attributes parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into Attributes.value - The corresponding value of the entry to be added into
Attributes.public SegmentDimensions clearAttributesEntries()
Returns a reference to this object so that method calls can be chained together.
public SegmentBehaviors getBehavior()
public void setBehavior(SegmentBehaviors behavior)
behavior - The segment behaviors attributes.public SegmentDimensions withBehavior(SegmentBehaviors behavior)
Returns a reference to this object so that method calls can be chained together.
behavior - The segment behaviors attributes.public SegmentDemographics getDemographic()
public void setDemographic(SegmentDemographics demographic)
demographic - The segment demographics attributes.public SegmentDimensions withDemographic(SegmentDemographics demographic)
Returns a reference to this object so that method calls can be chained together.
demographic - The segment demographics attributes.public SegmentLocation getLocation()
public void setLocation(SegmentLocation location)
location - The segment location attributes.public SegmentDimensions withLocation(SegmentLocation location)
Returns a reference to this object so that method calls can be chained together.
location - The segment location attributes.public Map<String,MetricDimension> getMetrics()
public void setMetrics(Map<String,MetricDimension> metrics)
metrics - Custom segment metrics.public SegmentDimensions withMetrics(Map<String,MetricDimension> metrics)
Returns a reference to this object so that method calls can be chained together.
metrics - Custom segment metrics.public SegmentDimensions addMetricsEntry(String key, MetricDimension value)
The method adds a new key-value pair into Metrics parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into Metrics.value - The corresponding value of the entry to be added into
Metrics.public SegmentDimensions clearMetricsEntries()
Returns a reference to this object so that method calls can be chained together.
public Map<String,AttributeDimension> getUserAttributes()
public void setUserAttributes(Map<String,AttributeDimension> userAttributes)
userAttributes - Custom segment user attributes.public SegmentDimensions withUserAttributes(Map<String,AttributeDimension> userAttributes)
Returns a reference to this object so that method calls can be chained together.
userAttributes - Custom segment user attributes.public SegmentDimensions addUserAttributesEntry(String key, AttributeDimension value)
The method adds a new key-value pair into UserAttributes parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into UserAttributes.value - The corresponding value of the entry to be added into
UserAttributes.public SegmentDimensions clearUserAttributesEntries()
Returns a reference to this object so that method calls can be chained together.
public String toString()
toString in class ObjectObject.toString()Copyright © 2019. All rights reserved.