Class CfnMetricAttributionProps.Builder
java.lang.Object
software.amazon.awscdk.services.personalize.CfnMetricAttributionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMetricAttributionProps>
- Enclosing interface:
CfnMetricAttributionProps
@Stability(Stable)
public static final class CfnMetricAttributionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMetricAttributionProps>
A builder for
CfnMetricAttributionProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.datasetGroupArn(String datasetGroupArn) Sets the value ofCfnMetricAttributionProps.getDatasetGroupArn()Sets the value ofCfnMetricAttributionProps.getMetrics()metrics(IResolvable metrics) Sets the value ofCfnMetricAttributionProps.getMetrics()metricsOutputConfig(IResolvable metricsOutputConfig) Sets the value ofCfnMetricAttributionProps.getMetricsOutputConfig()metricsOutputConfig(CfnMetricAttribution.MetricsOutputConfigProperty metricsOutputConfig) Sets the value ofCfnMetricAttributionProps.getMetricsOutputConfig()Sets the value ofCfnMetricAttributionProps.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
datasetGroupArn
Sets the value ofCfnMetricAttributionProps.getDatasetGroupArn()- Parameters:
datasetGroupArn- The ARN of the destination dataset group. This parameter is required.- Returns:
this
-
metrics
Sets the value ofCfnMetricAttributionProps.getMetrics()- Parameters:
metrics- A list of metric attributes for the metric attribution. This parameter is required.- Returns:
this
-
metrics
Sets the value ofCfnMetricAttributionProps.getMetrics()- Parameters:
metrics- A list of metric attributes for the metric attribution. This parameter is required.- Returns:
this
-
metricsOutputConfig
@Stability(Stable) public CfnMetricAttributionProps.Builder metricsOutputConfig(IResolvable metricsOutputConfig) Sets the value ofCfnMetricAttributionProps.getMetricsOutputConfig()- Parameters:
metricsOutputConfig- The output configuration details for the metric attribution. This parameter is required.- Returns:
this
-
metricsOutputConfig
@Stability(Stable) public CfnMetricAttributionProps.Builder metricsOutputConfig(CfnMetricAttribution.MetricsOutputConfigProperty metricsOutputConfig) Sets the value ofCfnMetricAttributionProps.getMetricsOutputConfig()- Parameters:
metricsOutputConfig- The output configuration details for the metric attribution. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnMetricAttributionProps.getName()- Parameters:
name- The name of the metric attribution. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMetricAttributionProps>- Returns:
- a new instance of
CfnMetricAttributionProps - Throws:
NullPointerException- if any required attribute was not provided
-