Class CfnRecommender.TrainingMetricsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.customerprofiles.CfnRecommender.TrainingMetricsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRecommender.TrainingMetricsProperty>
- Enclosing interface:
CfnRecommender.TrainingMetricsProperty
@Stability(Stable)
public static final class CfnRecommender.TrainingMetricsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRecommender.TrainingMetricsProperty>
A builder for
CfnRecommender.TrainingMetricsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.metrics(IResolvable metrics) Sets the value ofCfnRecommender.TrainingMetricsProperty.getMetrics()metrics(CfnRecommender.MetricsProperty metrics) Sets the value ofCfnRecommender.TrainingMetricsProperty.getMetrics()Sets the value ofCfnRecommender.TrainingMetricsProperty.getTime()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metrics
@Stability(Stable) public CfnRecommender.TrainingMetricsProperty.Builder metrics(IResolvable metrics) Sets the value ofCfnRecommender.TrainingMetricsProperty.getMetrics()- Parameters:
metrics- Training metrics by type.- Returns:
this
-
metrics
@Stability(Stable) public CfnRecommender.TrainingMetricsProperty.Builder metrics(CfnRecommender.MetricsProperty metrics) Sets the value ofCfnRecommender.TrainingMetricsProperty.getMetrics()- Parameters:
metrics- Training metrics by type.- Returns:
this
-
time
Sets the value ofCfnRecommender.TrainingMetricsProperty.getTime()- Parameters:
time- Timestamp of the training metrics.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRecommender.TrainingMetricsProperty>- Returns:
- a new instance of
CfnRecommender.TrainingMetricsProperty - Throws:
NullPointerException- if any required attribute was not provided
-