Class CfnLaunch.MetricDefinitionObjectProperty.Builder
java.lang.Object
software.amazon.awscdk.services.evidently.CfnLaunch.MetricDefinitionObjectProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLaunch.MetricDefinitionObjectProperty>
- Enclosing interface:
CfnLaunch.MetricDefinitionObjectProperty
@Stability(Stable)
public static final class CfnLaunch.MetricDefinitionObjectProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLaunch.MetricDefinitionObjectProperty>
A builder for
CfnLaunch.MetricDefinitionObjectProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.entityIdKey
(String entityIdKey) Sets the value ofCfnLaunch.MetricDefinitionObjectProperty.getEntityIdKey()
eventPattern
(String eventPattern) Sets the value ofCfnLaunch.MetricDefinitionObjectProperty.getEventPattern()
metricName
(String metricName) Sets the value ofCfnLaunch.MetricDefinitionObjectProperty.getMetricName()
Sets the value ofCfnLaunch.MetricDefinitionObjectProperty.getUnitLabel()
Sets the value ofCfnLaunch.MetricDefinitionObjectProperty.getValueKey()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
entityIdKey
@Stability(Stable) public CfnLaunch.MetricDefinitionObjectProperty.Builder entityIdKey(String entityIdKey) Sets the value ofCfnLaunch.MetricDefinitionObjectProperty.getEntityIdKey()
- Parameters:
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 isuserDetails.userID
.- Returns:
this
-
metricName
@Stability(Stable) public CfnLaunch.MetricDefinitionObjectProperty.Builder metricName(String metricName) Sets the value ofCfnLaunch.MetricDefinitionObjectProperty.getMetricName()
- Parameters:
metricName
- A name for the metric. This parameter is required. It can include up to 255 characters.- Returns:
this
-
valueKey
@Stability(Stable) public CfnLaunch.MetricDefinitionObjectProperty.Builder valueKey(String valueKey) Sets the value ofCfnLaunch.MetricDefinitionObjectProperty.getValueKey()
- Parameters:
valueKey
- The value that is tracked to produce the metric. This parameter is required.- Returns:
this
-
eventPattern
@Stability(Stable) public CfnLaunch.MetricDefinitionObjectProperty.Builder eventPattern(String eventPattern) Sets the value ofCfnLaunch.MetricDefinitionObjectProperty.getEventPattern()
- Parameters:
eventPattern
- The EventBridge event pattern that defines how the metric is recorded. For more information about EventBridge event patterns, see Amazon EventBridge event patterns .- Returns:
this
-
unitLabel
@Stability(Stable) public CfnLaunch.MetricDefinitionObjectProperty.Builder unitLabel(String unitLabel) Sets the value ofCfnLaunch.MetricDefinitionObjectProperty.getUnitLabel()
- Parameters:
unitLabel
- A label for the units that the metric is measuring.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLaunch.MetricDefinitionObjectProperty>
- Returns:
- a new instance of
CfnLaunch.MetricDefinitionObjectProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-