Class CfnRecommenderPropsMixin.MetricsProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.customerprofiles.CfnRecommenderPropsMixin.MetricsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRecommenderPropsMixin.MetricsProperty>
- Enclosing interface:
CfnRecommenderPropsMixin.MetricsProperty
@Stability(Stable)
public static final class CfnRecommenderPropsMixin.MetricsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRecommenderPropsMixin.MetricsProperty>
A builder for
CfnRecommenderPropsMixin.MetricsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnRecommenderPropsMixin.MetricsProperty.getCoverage()Sets the value ofCfnRecommenderPropsMixin.MetricsProperty.getFreshness()Sets the value ofCfnRecommenderPropsMixin.MetricsProperty.getHit()popularity(Number popularity) Sets the value ofCfnRecommenderPropsMixin.MetricsProperty.getPopularity()Sets the value ofCfnRecommenderPropsMixin.MetricsProperty.getRecall()similarity(Number similarity) Sets the value ofCfnRecommenderPropsMixin.MetricsProperty.getSimilarity()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
coverage
@Stability(Stable) public CfnRecommenderPropsMixin.MetricsProperty.Builder coverage(Number coverage) Sets the value ofCfnRecommenderPropsMixin.MetricsProperty.getCoverage()- Parameters:
coverage- the value to be set.- Returns:
this
-
freshness
@Stability(Stable) public CfnRecommenderPropsMixin.MetricsProperty.Builder freshness(Number freshness) Sets the value ofCfnRecommenderPropsMixin.MetricsProperty.getFreshness()- Parameters:
freshness- the value to be set.- Returns:
this
-
hit
Sets the value ofCfnRecommenderPropsMixin.MetricsProperty.getHit()- Parameters:
hit- the value to be set.- Returns:
this
-
popularity
@Stability(Stable) public CfnRecommenderPropsMixin.MetricsProperty.Builder popularity(Number popularity) Sets the value ofCfnRecommenderPropsMixin.MetricsProperty.getPopularity()- Parameters:
popularity- the value to be set.- Returns:
this
-
recall
Sets the value ofCfnRecommenderPropsMixin.MetricsProperty.getRecall()- Parameters:
recall- the value to be set.- Returns:
this
-
similarity
@Stability(Stable) public CfnRecommenderPropsMixin.MetricsProperty.Builder similarity(Number similarity) Sets the value ofCfnRecommenderPropsMixin.MetricsProperty.getSimilarity()- Parameters:
similarity- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRecommenderPropsMixin.MetricsProperty>- Returns:
- a new instance of
CfnRecommenderPropsMixin.MetricsProperty - Throws:
NullPointerException- if any required attribute was not provided
-