@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MetricDefinitionConfig extends Object implements Serializable, Cloneable, StructuredPojo
This structure defines a metric that you want to use to evaluate the variations during a launch or experiment.
Constructor and Description |
---|
MetricDefinitionConfig() |
Modifier and Type | Method and Description |
---|---|
MetricDefinitionConfig |
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()
A name for the metric.
|
String |
getUnitLabel()
A 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)
A name for the metric.
|
void |
setUnitLabel(String unitLabel)
A 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.
|
MetricDefinitionConfig |
withEntityIdKey(String entityIdKey)
The entity, such as a user or session, that does an action that causes a metric value to be recorded.
|
MetricDefinitionConfig |
withEventPattern(String eventPattern)
The EventBridge event pattern that defines how the metric is recorded.
|
MetricDefinitionConfig |
withName(String name)
A name for the metric.
|
MetricDefinitionConfig |
withUnitLabel(String unitLabel)
A label for the units that the metric is measuring.
|
MetricDefinitionConfig |
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. An example
is userDetails.userID
.
entityIdKey
- The entity, such as a user or session, that does an action that causes a metric value to be recorded. An
example is userDetails.userID
.public String getEntityIdKey()
The entity, such as a user or session, that does an action that causes a metric value to be recorded. An example
is userDetails.userID
.
userDetails.userID
.public MetricDefinitionConfig withEntityIdKey(String entityIdKey)
The entity, such as a user or session, that does an action that causes a metric value to be recorded. An example
is userDetails.userID
.
entityIdKey
- The entity, such as a user or session, that does an action that causes a metric value to be recorded. An
example is userDetails.userID
.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 MetricDefinitionConfig 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)
A name for the metric.
name
- A name for the metric.public String getName()
A name for the metric.
public MetricDefinitionConfig withName(String name)
A name for the metric.
name
- A name for the metric.public void setUnitLabel(String unitLabel)
A label for the units that the metric is measuring.
unitLabel
- A label for the units that the metric is measuring.public String getUnitLabel()
A label for the units that the metric is measuring.
public MetricDefinitionConfig withUnitLabel(String unitLabel)
A label for the units that the metric is measuring.
unitLabel
- A 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 MetricDefinitionConfig 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 MetricDefinitionConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.