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