Class CfnMetricAttributionPropsMixin.MetricAttributeProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.personalize.CfnMetricAttributionPropsMixin.MetricAttributeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMetricAttributionPropsMixin.MetricAttributeProperty>
- Enclosing interface:
CfnMetricAttributionPropsMixin.MetricAttributeProperty
@Stability(Stable)
public static final class CfnMetricAttributionPropsMixin.MetricAttributeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMetricAttributionPropsMixin.MetricAttributeProperty>
A builder for
CfnMetricAttributionPropsMixin.MetricAttributeProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnMetricAttributionPropsMixin.MetricAttributeProperty.getEventType()expression(String expression) Sets the value ofCfnMetricAttributionPropsMixin.MetricAttributeProperty.getExpression()metricName(String metricName) Sets the value ofCfnMetricAttributionPropsMixin.MetricAttributeProperty.getMetricName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
eventType
@Stability(Stable) public CfnMetricAttributionPropsMixin.MetricAttributeProperty.Builder eventType(String eventType) Sets the value ofCfnMetricAttributionPropsMixin.MetricAttributeProperty.getEventType()- Parameters:
eventType- The metric's event type.- Returns:
this
-
expression
@Stability(Stable) public CfnMetricAttributionPropsMixin.MetricAttributeProperty.Builder expression(String expression) Sets the value ofCfnMetricAttributionPropsMixin.MetricAttributeProperty.getExpression()- Parameters:
expression- The attribute's expression.- Returns:
this
-
metricName
@Stability(Stable) public CfnMetricAttributionPropsMixin.MetricAttributeProperty.Builder metricName(String metricName) Sets the value ofCfnMetricAttributionPropsMixin.MetricAttributeProperty.getMetricName()- Parameters:
metricName- The metric's name.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMetricAttributionPropsMixin.MetricAttributeProperty>- Returns:
- a new instance of
CfnMetricAttributionPropsMixin.MetricAttributeProperty - Throws:
NullPointerException- if any required attribute was not provided
-