Interface CreateFeatureRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateFeatureRequest.Builder,CreateFeatureRequest>,EvidentlyRequest.Builder,SdkBuilder<CreateFeatureRequest.Builder,CreateFeatureRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateFeatureRequest
public static interface CreateFeatureRequest.Builder extends EvidentlyRequest.Builder, SdkPojo, CopyableBuilder<CreateFeatureRequest.Builder,CreateFeatureRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateFeatureRequest.BuilderdefaultVariation(String defaultVariation)The name of the variation to use as the default variation.CreateFeatureRequest.Builderdescription(String description)An optional description of the feature.CreateFeatureRequest.BuilderentityOverrides(Map<String,String> entityOverrides)Specify users that should always be served a specific variation of a feature.CreateFeatureRequest.BuilderevaluationStrategy(String evaluationStrategy)SpecifyALL_RULESto activate the traffic allocation specified by any ongoing launches or experiments.CreateFeatureRequest.BuilderevaluationStrategy(FeatureEvaluationStrategy evaluationStrategy)SpecifyALL_RULESto activate the traffic allocation specified by any ongoing launches or experiments.CreateFeatureRequest.Buildername(String name)The name for the new feature.CreateFeatureRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateFeatureRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateFeatureRequest.Builderproject(String project)The name or ARN of the project that is to contain the new feature.CreateFeatureRequest.Buildertags(Map<String,String> tags)Assigns one or more tags (key-value pairs) to the feature.CreateFeatureRequest.Buildervariations(Collection<VariationConfig> variations)An array of structures that contain the configuration of the feature's different variations.CreateFeatureRequest.Buildervariations(Consumer<VariationConfig.Builder>... variations)An array of structures that contain the configuration of the feature's different variations.CreateFeatureRequest.Buildervariations(VariationConfig... variations)An array of structures that contain the configuration of the feature's different variations.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.evidently.model.EvidentlyRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
defaultVariation
CreateFeatureRequest.Builder defaultVariation(String 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.- 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:
- Returns a reference to this object so that method calls can be chained together.
-
description
CreateFeatureRequest.Builder description(String description)
An optional description of the feature.
- Parameters:
description- An optional description of the feature.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entityOverrides
CreateFeatureRequest.Builder entityOverrides(Map<String,String> 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.
This parameter is limited to 2500 overrides or a total of 40KB. The 40KB limit includes an overhead of 6 bytes per override.
- 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.This parameter is limited to 2500 overrides or a total of 40KB. The 40KB limit includes an overhead of 6 bytes per override.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluationStrategy
CreateFeatureRequest.Builder evaluationStrategy(String evaluationStrategy)
Specify
ALL_RULESto activate the traffic allocation specified by any ongoing launches or experiments. SpecifyDEFAULT_VARIATIONto serve the default variation to all users instead.- 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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
FeatureEvaluationStrategy,FeatureEvaluationStrategy
-
evaluationStrategy
CreateFeatureRequest.Builder evaluationStrategy(FeatureEvaluationStrategy evaluationStrategy)
Specify
ALL_RULESto activate the traffic allocation specified by any ongoing launches or experiments. SpecifyDEFAULT_VARIATIONto serve the default variation to all users instead.- 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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
FeatureEvaluationStrategy,FeatureEvaluationStrategy
-
name
CreateFeatureRequest.Builder name(String name)
The name for the new feature.
- Parameters:
name- The name for the new feature.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
project
CreateFeatureRequest.Builder project(String project)
The name or ARN of the project that is to contain the new feature.
- Parameters:
project- The name or ARN of the project that is to contain the new feature.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateFeatureRequest.Builder tags(Map<String,String> 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 Amazon Web Services and are interpreted strictly as strings of characters.
You can associate as many as 50 tags with a feature.
For more information, see Tagging Amazon Web Services resources.
- 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 Amazon Web Services and are interpreted strictly as strings of characters.
You can associate as many as 50 tags with a feature.
For more information, see Tagging Amazon Web Services resources.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
variations
CreateFeatureRequest.Builder variations(Collection<VariationConfig> variations)
An array of structures that contain the configuration of the feature's different variations.
- Parameters:
variations- An array of structures that contain the configuration of the feature's different variations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
variations
CreateFeatureRequest.Builder variations(VariationConfig... variations)
An array of structures that contain the configuration of the feature's different variations.
- Parameters:
variations- An array of structures that contain the configuration of the feature's different variations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
variations
CreateFeatureRequest.Builder variations(Consumer<VariationConfig.Builder>... variations)
An array of structures that contain the configuration of the feature's different variations.
This is a convenience method that creates an instance of theVariationConfig.Builderavoiding the need to create one manually viaVariationConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#variations(List.) - Parameters:
variations- a consumer that will call methods onVariationConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#variations(java.util.Collection)
-
overrideConfiguration
CreateFeatureRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateFeatureRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-