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- The name of the metric.- Returns:
this
-
metricRegex
Sets the value ofCfnSolution.HpoObjectiveProperty.getMetricRegex()- Parameters:
metricRegex- A regular expression for finding the metric in the training job logs.- Returns:
this
-
type
Sets the value ofCfnSolution.HpoObjectiveProperty.getType()- Parameters:
type- The type of the metric. Valid values areMaximizeandMinimize.- 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
-