Class CfnFeatureMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.evidently.CfnFeatureMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFeatureMixinProps>
- Enclosing interface:
CfnFeatureMixinProps
@Stability(Stable)
public static final class CfnFeatureMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFeatureMixinProps>
A builder for
CfnFeatureMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.defaultVariation(String defaultVariation) Sets the value ofCfnFeatureMixinProps.getDefaultVariation()description(String description) Sets the value ofCfnFeatureMixinProps.getDescription()entityOverrides(List<? extends Object> entityOverrides) Sets the value ofCfnFeatureMixinProps.getEntityOverrides()entityOverrides(IResolvable entityOverrides) Sets the value ofCfnFeatureMixinProps.getEntityOverrides()evaluationStrategy(String evaluationStrategy) Sets the value ofCfnFeatureMixinProps.getEvaluationStrategy()Sets the value ofCfnFeatureMixinProps.getName()Sets the value ofCfnFeatureMixinProps.getProject()project(IProjectRef project) Sets the value ofCfnFeatureMixinProps.getProject()Sets the value ofCfnFeatureMixinProps.getTags()variations(List<? extends Object> variations) Sets the value ofCfnFeatureMixinProps.getVariations()variations(IResolvable variations) Sets the value ofCfnFeatureMixinProps.getVariations()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
defaultVariation
Sets the value ofCfnFeatureMixinProps.getDefaultVariation()- Parameters:
defaultVariation- The name of the variation to use as the default variation. The default variation is served to users who are not allocated to any ongoing launches or experiments of this feature.This variation must also be listed in the
Variationsstructure.If you omit
DefaultVariation, the first variation listed in theVariationsstructure is used as the default variation.- Returns:
this
-
description
Sets the value ofCfnFeatureMixinProps.getDescription()- Parameters:
description- An optional description of the feature.- Returns:
this
-
entityOverrides
Sets the value ofCfnFeatureMixinProps.getEntityOverrides()- Parameters:
entityOverrides- Specify users that should always be served a specific variation of a feature. Each user is specified by a key-value pair . For each key, specify a user by entering their user ID, account ID, or some other identifier. For the value, specify the name of the variation that they are to be served.- Returns:
this
-
entityOverrides
@Stability(Stable) public CfnFeatureMixinProps.Builder entityOverrides(List<? extends Object> entityOverrides) Sets the value ofCfnFeatureMixinProps.getEntityOverrides()- Parameters:
entityOverrides- Specify users that should always be served a specific variation of a feature. Each user is specified by a key-value pair . For each key, specify a user by entering their user ID, account ID, or some other identifier. For the value, specify the name of the variation that they are to be served.- Returns:
this
-
evaluationStrategy
@Stability(Stable) public CfnFeatureMixinProps.Builder evaluationStrategy(String evaluationStrategy) Sets the value ofCfnFeatureMixinProps.getEvaluationStrategy()- Parameters:
evaluationStrategy- SpecifyALL_RULESto activate the traffic allocation specified by any ongoing launches or experiments. SpecifyDEFAULT_VARIATIONto serve the default variation to all users instead.- Returns:
this
-
name
Sets the value ofCfnFeatureMixinProps.getName()- Parameters:
name- The name for the feature. It can include up to 127 characters.- Returns:
this
-
project
Sets the value ofCfnFeatureMixinProps.getProject()- Parameters:
project- The name or ARN of the project that is to contain the new feature.- Returns:
this
-
project
Sets the value ofCfnFeatureMixinProps.getProject()- Parameters:
project- The name or ARN of the project that is to contain the new feature.- Returns:
this
-
tags
Sets the value ofCfnFeatureMixinProps.getTags()- Parameters:
tags- Assigns one or more tags (key-value pairs) to the feature. Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.Tags don't have any semantic meaning to AWS and are interpreted strictly as strings of characters.
You can associate as many as 50 tags with a feature.
For more information, see Tagging AWS resources .
- Returns:
this
-
variations
Sets the value ofCfnFeatureMixinProps.getVariations()- Parameters:
variations- An array of structures that contain the configuration of the feature's different variations. EachVariationObjectin theVariationsarray for a feature must have the same type of value (BooleanValue,DoubleValue,LongValueorStringValue).- Returns:
this
-
variations
@Stability(Stable) public CfnFeatureMixinProps.Builder variations(List<? extends Object> variations) Sets the value ofCfnFeatureMixinProps.getVariations()- Parameters:
variations- An array of structures that contain the configuration of the feature's different variations. EachVariationObjectin theVariationsarray for a feature must have the same type of value (BooleanValue,DoubleValue,LongValueorStringValue).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFeatureMixinProps>- Returns:
- a new instance of
CfnFeatureMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-