@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MetricDefinition extends Object implements Serializable, Cloneable, StructuredPojo
This structure defines a metric that is being used to evaluate the variations during a launch or experiment.
Constructor and Description |
---|
MetricDefinition() |
Modifier and Type | Method and Description |
---|---|
MetricDefinition |
clone() |
boolean |
equals(Object obj) |
String |
getEntityIdKey()
The entity, such as a user or session, that does an action that causes a metric value to be recorded.
|
String |
getEventPattern()
The EventBridge event pattern that defines how the metric is recorded.
|
String |
getName()
The name of the metric.
|
String |
getUnitLabel()
The label for the units that the metric is measuring.
|
String |
getValueKey()
The value that is tracked to produce the metric.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setEntityIdKey(String entityIdKey)
The entity, such as a user or session, that does an action that causes a metric value to be recorded.
|
void |
setEventPattern(String eventPattern)
The EventBridge event pattern that defines how the metric is recorded.
|
void |
setName(String name)
The name of the metric.
|
void |
setUnitLabel(String unitLabel)
The label for the units that the metric is measuring.
|
void |
setValueKey(String valueKey)
The value that is tracked to produce the metric.
|
String |
toString()
Returns a string representation of this object.
|
MetricDefinition |
withEntityIdKey(String entityIdKey)
The entity, such as a user or session, that does an action that causes a metric value to be recorded.
|
MetricDefinition |
withEventPattern(String eventPattern)
The EventBridge event pattern that defines how the metric is recorded.
|
MetricDefinition |
withName(String name)
The name of the metric.
|
MetricDefinition |
withUnitLabel(String unitLabel)
The label for the units that the metric is measuring.
|
MetricDefinition |
withValueKey(String valueKey)
The value that is tracked to produce the metric.
|
public void setEntityIdKey(String entityIdKey)
The entity, such as a user or session, that does an action that causes a metric value to be recorded.
entityIdKey
- The entity, such as a user or session, that does an action that causes a metric value to be recorded.public String getEntityIdKey()
The entity, such as a user or session, that does an action that causes a metric value to be recorded.
public MetricDefinition withEntityIdKey(String entityIdKey)
The entity, such as a user or session, that does an action that causes a metric value to be recorded.
entityIdKey
- The entity, such as a user or session, that does an action that causes a metric value to be recorded.public void setEventPattern(String eventPattern)
The EventBridge event pattern that defines how the metric is recorded.
For more information about EventBridge event patterns, see Amazon EventBridge event patterns.
This field's value must be valid JSON according to RFC 7159, including the opening and closing braces. For example: '{"key": "value"}'.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
eventPattern
- The EventBridge event pattern that defines how the metric is recorded.
For more information about EventBridge event patterns, see Amazon EventBridge event patterns.
public String getEventPattern()
The EventBridge event pattern that defines how the metric is recorded.
For more information about EventBridge event patterns, see Amazon EventBridge event patterns.
This field's value will be valid JSON according to RFC 7159, including the opening and closing braces. For example: '{"key": "value"}'.
For more information about EventBridge event patterns, see Amazon EventBridge event patterns.
public MetricDefinition withEventPattern(String eventPattern)
The EventBridge event pattern that defines how the metric is recorded.
For more information about EventBridge event patterns, see Amazon EventBridge event patterns.
This field's value must be valid JSON according to RFC 7159, including the opening and closing braces. For example: '{"key": "value"}'.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
eventPattern
- The EventBridge event pattern that defines how the metric is recorded.
For more information about EventBridge event patterns, see Amazon EventBridge event patterns.
public void setName(String name)
The name of the metric.
name
- The name of the metric.public String getName()
The name of the metric.
public MetricDefinition withName(String name)
The name of the metric.
name
- The name of the metric.public void setUnitLabel(String unitLabel)
The label for the units that the metric is measuring.
unitLabel
- The label for the units that the metric is measuring.public String getUnitLabel()
The label for the units that the metric is measuring.
public MetricDefinition withUnitLabel(String unitLabel)
The label for the units that the metric is measuring.
unitLabel
- The label for the units that the metric is measuring.public void setValueKey(String valueKey)
The value that is tracked to produce the metric.
valueKey
- The value that is tracked to produce the metric.public String getValueKey()
The value that is tracked to produce the metric.
public MetricDefinition withValueKey(String valueKey)
The value that is tracked to produce the metric.
valueKey
- The value that is tracked to produce the metric.public String toString()
toString
in class Object
Object.toString()
public MetricDefinition clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.