Class CfnLaunchPropsMixin.MetricDefinitionObjectProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.evidently.CfnLaunchPropsMixin.MetricDefinitionObjectProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLaunchPropsMixin.MetricDefinitionObjectProperty>
- Enclosing interface:
CfnLaunchPropsMixin.MetricDefinitionObjectProperty
@Stability(Stable)
public static final class CfnLaunchPropsMixin.MetricDefinitionObjectProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLaunchPropsMixin.MetricDefinitionObjectProperty>
A builder for
CfnLaunchPropsMixin.MetricDefinitionObjectProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.entityIdKey(String entityIdKey) Sets the value ofCfnLaunchPropsMixin.MetricDefinitionObjectProperty.getEntityIdKey()eventPattern(String eventPattern) Sets the value ofCfnLaunchPropsMixin.MetricDefinitionObjectProperty.getEventPattern()metricName(String metricName) Sets the value ofCfnLaunchPropsMixin.MetricDefinitionObjectProperty.getMetricName()Sets the value ofCfnLaunchPropsMixin.MetricDefinitionObjectProperty.getUnitLabel()Sets the value ofCfnLaunchPropsMixin.MetricDefinitionObjectProperty.getValueKey()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
entityIdKey
@Stability(Stable) public CfnLaunchPropsMixin.MetricDefinitionObjectProperty.Builder entityIdKey(String entityIdKey) Sets the value ofCfnLaunchPropsMixin.MetricDefinitionObjectProperty.getEntityIdKey()- Parameters:
entityIdKey- The entity, such as a user or session, that does an action that causes a metric value to be recorded. An example isuserDetails.userID.- Returns:
this
-
eventPattern
@Stability(Stable) public CfnLaunchPropsMixin.MetricDefinitionObjectProperty.Builder eventPattern(String eventPattern) Sets the value ofCfnLaunchPropsMixin.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
-
metricName
@Stability(Stable) public CfnLaunchPropsMixin.MetricDefinitionObjectProperty.Builder metricName(String metricName) Sets the value ofCfnLaunchPropsMixin.MetricDefinitionObjectProperty.getMetricName()- Parameters:
metricName- A name for the metric. It can include up to 255 characters.- Returns:
this
-
unitLabel
@Stability(Stable) public CfnLaunchPropsMixin.MetricDefinitionObjectProperty.Builder unitLabel(String unitLabel) Sets the value ofCfnLaunchPropsMixin.MetricDefinitionObjectProperty.getUnitLabel()- Parameters:
unitLabel- A label for the units that the metric is measuring.- Returns:
this
-
valueKey
@Stability(Stable) public CfnLaunchPropsMixin.MetricDefinitionObjectProperty.Builder valueKey(String valueKey) Sets the value ofCfnLaunchPropsMixin.MetricDefinitionObjectProperty.getValueKey()- Parameters:
valueKey- The value that is tracked to produce the metric.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLaunchPropsMixin.MetricDefinitionObjectProperty>- Returns:
- a new instance of
CfnLaunchPropsMixin.MetricDefinitionObjectProperty - Throws:
NullPointerException- if any required attribute was not provided
-