Class CfnSolution.HpoObjectiveProperty.Builder
java.lang.Object
software.amazon.awscdk.services.personalize.CfnSolution.HpoObjectiveProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSolution.HpoObjectiveProperty>
- Enclosing interface:
- CfnSolution.HpoObjectiveProperty
@Stability(Stable)
public static final class CfnSolution.HpoObjectiveProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSolution.HpoObjectiveProperty>
A builder for
CfnSolution.HpoObjectiveProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.metricName(String metricName) Sets the value ofCfnSolution.HpoObjectiveProperty.getMetricName()metricRegex(String metricRegex) Sets the value ofCfnSolution.HpoObjectiveProperty.getMetricRegex()Sets the value ofCfnSolution.HpoObjectiveProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metricName
Sets the value ofCfnSolution.HpoObjectiveProperty.getMetricName()- Parameters:
metricName-CfnSolution.HpoObjectiveProperty.MetricName.- Returns:
this
-
metricRegex
Sets the value ofCfnSolution.HpoObjectiveProperty.getMetricRegex()- Parameters:
metricRegex-CfnSolution.HpoObjectiveProperty.MetricRegex.- Returns:
this
-
type
Sets the value ofCfnSolution.HpoObjectiveProperty.getType()- Parameters:
type-CfnSolution.HpoObjectiveProperty.Type.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSolution.HpoObjectiveProperty>- Returns:
- a new instance of
CfnSolution.HpoObjectiveProperty - Throws:
NullPointerException- if any required attribute was not provided
-