public class SegmentDimensions
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
SegmentDimensions() |
Modifier and Type | Method and Description |
---|---|
SegmentDimensions |
addAttributesEntry(java.lang.String key,
AttributeDimension value)
Custom segment attributes.
|
SegmentDimensions |
addMetricsEntry(java.lang.String key,
MetricDimension value)
Custom segment metrics.
|
SegmentDimensions |
addUserAttributesEntry(java.lang.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(java.lang.Object obj) |
java.util.Map<java.lang.String,AttributeDimension> |
getAttributes()
Custom segment attributes.
|
SegmentBehaviors |
getBehavior()
The segment behaviors attributes.
|
SegmentDemographics |
getDemographic()
The segment demographics attributes.
|
SegmentLocation |
getLocation()
The segment location attributes.
|
java.util.Map<java.lang.String,MetricDimension> |
getMetrics()
Custom segment metrics.
|
java.util.Map<java.lang.String,AttributeDimension> |
getUserAttributes()
Custom segment user attributes.
|
int |
hashCode() |
void |
setAttributes(java.util.Map<java.lang.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(java.util.Map<java.lang.String,MetricDimension> metrics)
Custom segment metrics.
|
void |
setUserAttributes(java.util.Map<java.lang.String,AttributeDimension> userAttributes)
Custom segment user attributes.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SegmentDimensions |
withAttributes(java.util.Map<java.lang.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(java.util.Map<java.lang.String,MetricDimension> metrics)
Custom segment metrics.
|
SegmentDimensions |
withUserAttributes(java.util.Map<java.lang.String,AttributeDimension> userAttributes)
Custom segment user attributes.
|
public java.util.Map<java.lang.String,AttributeDimension> getAttributes()
public void setAttributes(java.util.Map<java.lang.String,AttributeDimension> attributes)
attributes
- Custom segment attributes.public SegmentDimensions withAttributes(java.util.Map<java.lang.String,AttributeDimension> attributes)
Returns a reference to this object so that method calls can be chained together.
attributes
- Custom segment attributes.public SegmentDimensions addAttributesEntry(java.lang.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 java.util.Map<java.lang.String,MetricDimension> getMetrics()
public void setMetrics(java.util.Map<java.lang.String,MetricDimension> metrics)
metrics
- Custom segment metrics.public SegmentDimensions withMetrics(java.util.Map<java.lang.String,MetricDimension> metrics)
Returns a reference to this object so that method calls can be chained together.
metrics
- Custom segment metrics.public SegmentDimensions addMetricsEntry(java.lang.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 java.util.Map<java.lang.String,AttributeDimension> getUserAttributes()
public void setUserAttributes(java.util.Map<java.lang.String,AttributeDimension> userAttributes)
userAttributes
- Custom segment user attributes.public SegmentDimensions withUserAttributes(java.util.Map<java.lang.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(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.