public class EventDimensions
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
EventDimensions() |
Modifier and Type | Method and Description |
---|---|
EventDimensions |
addAttributesEntry(java.lang.String key,
AttributeDimension value)
Custom attributes that your app reports to Amazon Pinpoint.
|
EventDimensions |
addMetricsEntry(java.lang.String key,
MetricDimension value)
Custom metrics that your app reports to Amazon Pinpoint.
|
EventDimensions |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
EventDimensions |
clearMetricsEntries()
Removes all the entries added into Metrics.
|
boolean |
equals(java.lang.Object obj) |
java.util.Map<java.lang.String,AttributeDimension> |
getAttributes()
Custom attributes that your app reports to Amazon Pinpoint.
|
SetDimension |
getEventType()
The name of the event that causes the campaign to be sent.
|
java.util.Map<java.lang.String,MetricDimension> |
getMetrics()
Custom metrics that your app reports to Amazon Pinpoint.
|
int |
hashCode() |
void |
setAttributes(java.util.Map<java.lang.String,AttributeDimension> attributes)
Custom attributes that your app reports to Amazon Pinpoint.
|
void |
setEventType(SetDimension eventType)
The name of the event that causes the campaign to be sent.
|
void |
setMetrics(java.util.Map<java.lang.String,MetricDimension> metrics)
Custom metrics that your app reports to Amazon Pinpoint.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EventDimensions |
withAttributes(java.util.Map<java.lang.String,AttributeDimension> attributes)
Custom attributes that your app reports to Amazon Pinpoint.
|
EventDimensions |
withEventType(SetDimension eventType)
The name of the event that causes the campaign to be sent.
|
EventDimensions |
withMetrics(java.util.Map<java.lang.String,MetricDimension> metrics)
Custom metrics that your app reports to Amazon Pinpoint.
|
public java.util.Map<java.lang.String,AttributeDimension> getAttributes()
public void setAttributes(java.util.Map<java.lang.String,AttributeDimension> attributes)
attributes
- Custom attributes that your app reports to Amazon
Pinpoint. You can use these attributes as selection criteria
when you create an event filter.public EventDimensions 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 attributes that your app reports to Amazon
Pinpoint. You can use these attributes as selection criteria
when you create an event filter.public EventDimensions 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 EventDimensions clearAttributesEntries()
Returns a reference to this object so that method calls can be chained together.
public SetDimension getEventType()
public void setEventType(SetDimension eventType)
eventType
- The name of the event that causes the campaign to be
sent. This can be a standard event type that Amazon Pinpoint
generates, such as _session.start, or a custom event that's
specific to your app.public EventDimensions withEventType(SetDimension eventType)
Returns a reference to this object so that method calls can be chained together.
eventType
- The name of the event that causes the campaign to be
sent. This can be a standard event type that Amazon Pinpoint
generates, such as _session.start, or a custom event that's
specific to your app.public java.util.Map<java.lang.String,MetricDimension> getMetrics()
public void setMetrics(java.util.Map<java.lang.String,MetricDimension> metrics)
metrics
- Custom metrics that your app reports to Amazon Pinpoint.
You can use these attributes as selection criteria when you
create an event filter.public EventDimensions 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 metrics that your app reports to Amazon Pinpoint.
You can use these attributes as selection criteria when you
create an event filter.public EventDimensions 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 EventDimensions clearMetricsEntries()
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.