public static final class CfnExperiment.MetricGoalObjectProperty.Builder
extends java.lang.Object
CfnExperiment.MetricGoalObjectProperty
Constructor and Description |
---|
Builder() |
public CfnExperiment.MetricGoalObjectProperty.Builder desiredChange(java.lang.String desiredChange)
CfnExperiment.MetricGoalObjectProperty.getDesiredChange()
desiredChange
- `INCREASE` means that a variation with a higher number for this metric is performing better. This parameter is required.
DECREASE
means that a variation with a lower number for this metric is performing better.this
public CfnExperiment.MetricGoalObjectProperty.Builder entityIdKey(java.lang.String entityIdKey)
CfnExperiment.MetricGoalObjectProperty.getEntityIdKey()
entityIdKey
- The entity, such as a user or session, that does an action that causes a metric value to be recorded. This parameter is required.
An example is userDetails.userID
.this
public CfnExperiment.MetricGoalObjectProperty.Builder metricName(java.lang.String metricName)
CfnExperiment.MetricGoalObjectProperty.getMetricName()
metricName
- A name for the metric. This parameter is required.
It can include up to 255 characters.this
public CfnExperiment.MetricGoalObjectProperty.Builder valueKey(java.lang.String valueKey)
CfnExperiment.MetricGoalObjectProperty.getValueKey()
valueKey
- The JSON path to reference the numerical metric value in the event. This parameter is required.this
public CfnExperiment.MetricGoalObjectProperty.Builder eventPattern(java.lang.String eventPattern)
CfnExperiment.MetricGoalObjectProperty.getEventPattern()
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
public CfnExperiment.MetricGoalObjectProperty.Builder unitLabel(java.lang.String unitLabel)
CfnExperiment.MetricGoalObjectProperty.getUnitLabel()
unitLabel
- A label for the units that the metric is measuring.this
public CfnExperiment.MetricGoalObjectProperty build()
CfnExperiment.MetricGoalObjectProperty
java.lang.NullPointerException
- if any required attribute was not provided