@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MetricAttribute extends Object implements Serializable, Cloneable, StructuredPojo
Contains information on a metric that a metric attribution reports on. For more information, see Measuring impact of recommendations.
Constructor and Description |
---|
MetricAttribute() |
Modifier and Type | Method and Description |
---|---|
MetricAttribute |
clone() |
boolean |
equals(Object obj) |
String |
getEventType()
The metric's event type.
|
String |
getExpression()
The attribute's expression.
|
String |
getMetricName()
The metric's name.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setEventType(String eventType)
The metric's event type.
|
void |
setExpression(String expression)
The attribute's expression.
|
void |
setMetricName(String metricName)
The metric's name.
|
String |
toString()
Returns a string representation of this object.
|
MetricAttribute |
withEventType(String eventType)
The metric's event type.
|
MetricAttribute |
withExpression(String expression)
The attribute's expression.
|
MetricAttribute |
withMetricName(String metricName)
The metric's name.
|
public void setEventType(String eventType)
The metric's event type.
eventType
- The metric's event type.public String getEventType()
The metric's event type.
public MetricAttribute withEventType(String eventType)
The metric's event type.
eventType
- The metric's event type.public void setMetricName(String metricName)
The metric's name. The name helps you identify the metric in Amazon CloudWatch or Amazon S3.
metricName
- The metric's name. The name helps you identify the metric in Amazon CloudWatch or Amazon S3.public String getMetricName()
The metric's name. The name helps you identify the metric in Amazon CloudWatch or Amazon S3.
public MetricAttribute withMetricName(String metricName)
The metric's name. The name helps you identify the metric in Amazon CloudWatch or Amazon S3.
metricName
- The metric's name. The name helps you identify the metric in Amazon CloudWatch or Amazon S3.public void setExpression(String expression)
The attribute's expression. Available functions are SUM()
or SAMPLECOUNT()
. For SUM()
functions, provide the dataset type (either Interactions or Items) and column to sum as a parameter. For example
SUM(Items.PRICE).
expression
- The attribute's expression. Available functions are SUM()
or SAMPLECOUNT()
. For
SUM() functions, provide the dataset type (either Interactions or Items) and column to sum as a parameter.
For example SUM(Items.PRICE).public String getExpression()
The attribute's expression. Available functions are SUM()
or SAMPLECOUNT()
. For SUM()
functions, provide the dataset type (either Interactions or Items) and column to sum as a parameter. For example
SUM(Items.PRICE).
SUM()
or SAMPLECOUNT()
. For
SUM() functions, provide the dataset type (either Interactions or Items) and column to sum as a
parameter. For example SUM(Items.PRICE).public MetricAttribute withExpression(String expression)
The attribute's expression. Available functions are SUM()
or SAMPLECOUNT()
. For SUM()
functions, provide the dataset type (either Interactions or Items) and column to sum as a parameter. For example
SUM(Items.PRICE).
expression
- The attribute's expression. Available functions are SUM()
or SAMPLECOUNT()
. For
SUM() functions, provide the dataset type (either Interactions or Items) and column to sum as a parameter.
For example SUM(Items.PRICE).public String toString()
toString
in class Object
Object.toString()
public MetricAttribute clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.