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