Interface UpdateFeatureRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpdateFeatureRequest.Builder,UpdateFeatureRequest>,EvidentlyRequest.Builder,SdkBuilder<UpdateFeatureRequest.Builder,UpdateFeatureRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- UpdateFeatureRequest
public static interface UpdateFeatureRequest.Builder extends EvidentlyRequest.Builder, SdkPojo, CopyableBuilder<UpdateFeatureRequest.Builder,UpdateFeatureRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UpdateFeatureRequest.BuilderaddOrUpdateVariations(Collection<VariationConfig> addOrUpdateVariations)To update variation configurations for this feature, or add new ones, specify this structure.UpdateFeatureRequest.BuilderaddOrUpdateVariations(Consumer<VariationConfig.Builder>... addOrUpdateVariations)To update variation configurations for this feature, or add new ones, specify this structure.UpdateFeatureRequest.BuilderaddOrUpdateVariations(VariationConfig... addOrUpdateVariations)To update variation configurations for this feature, or add new ones, specify this structure.UpdateFeatureRequest.BuilderdefaultVariation(String defaultVariation)The name of the variation to use as the default variation.UpdateFeatureRequest.Builderdescription(String description)An optional description of the feature.UpdateFeatureRequest.BuilderentityOverrides(Map<String,String> entityOverrides)Specified users that should always be served a specific variation of a feature.UpdateFeatureRequest.BuilderevaluationStrategy(String evaluationStrategy)SpecifyALL_RULESto activate the traffic allocation specified by any ongoing launches or experiments.UpdateFeatureRequest.BuilderevaluationStrategy(FeatureEvaluationStrategy evaluationStrategy)SpecifyALL_RULESto activate the traffic allocation specified by any ongoing launches or experiments.UpdateFeatureRequest.Builderfeature(String feature)The name of the feature to be updated.UpdateFeatureRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)UpdateFeatureRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)UpdateFeatureRequest.Builderproject(String project)The name or ARN of the project that contains the feature to be updated.UpdateFeatureRequest.BuilderremoveVariations(String... removeVariations)Removes a variation from the feature.UpdateFeatureRequest.BuilderremoveVariations(Collection<String> removeVariations)Removes a variation from the feature.-
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, sdkFields
-
-
-
-
Method Detail
-
addOrUpdateVariations
UpdateFeatureRequest.Builder addOrUpdateVariations(Collection<VariationConfig> addOrUpdateVariations)
To update variation configurations for this feature, or add new ones, specify this structure. In this array, include any variations that you want to add or update. If the array includes a variation name that already exists for this feature, it is updated. If it includes a new variation name, it is added as a new variation.
- Parameters:
addOrUpdateVariations- To update variation configurations for this feature, or add new ones, specify this structure. In this array, include any variations that you want to add or update. If the array includes a variation name that already exists for this feature, it is updated. If it includes a new variation name, it is added as a new variation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addOrUpdateVariations
UpdateFeatureRequest.Builder addOrUpdateVariations(VariationConfig... addOrUpdateVariations)
To update variation configurations for this feature, or add new ones, specify this structure. In this array, include any variations that you want to add or update. If the array includes a variation name that already exists for this feature, it is updated. If it includes a new variation name, it is added as a new variation.
- Parameters:
addOrUpdateVariations- To update variation configurations for this feature, or add new ones, specify this structure. In this array, include any variations that you want to add or update. If the array includes a variation name that already exists for this feature, it is updated. If it includes a new variation name, it is added as a new variation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addOrUpdateVariations
UpdateFeatureRequest.Builder addOrUpdateVariations(Consumer<VariationConfig.Builder>... addOrUpdateVariations)
To update variation configurations for this feature, or add new ones, specify this structure. In this array, include any variations that you want to add or update. If the array includes a variation name that already exists for this feature, it is updated. If it includes a new variation name, it is added as a new variation.
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#addOrUpdateVariations(List.) - Parameters:
addOrUpdateVariations- 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:
#addOrUpdateVariations(java.util.Collection)
-
defaultVariation
UpdateFeatureRequest.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.
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
UpdateFeatureRequest.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
UpdateFeatureRequest.Builder entityOverrides(Map<String,String> entityOverrides)
Specified 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- Specified 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
UpdateFeatureRequest.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
UpdateFeatureRequest.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
-
feature
UpdateFeatureRequest.Builder feature(String feature)
The name of the feature to be updated.
- Parameters:
feature- The name of the feature to be updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
project
UpdateFeatureRequest.Builder project(String project)
The name or ARN of the project that contains the feature to be updated.
- Parameters:
project- The name or ARN of the project that contains the feature to be updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
removeVariations
UpdateFeatureRequest.Builder removeVariations(Collection<String> removeVariations)
Removes a variation from the feature. If the variation you specify doesn't exist, then this makes no change and does not report an error.
This operation fails if you try to remove a variation that is part of an ongoing launch or experiment.
- Parameters:
removeVariations- Removes a variation from the feature. If the variation you specify doesn't exist, then this makes no change and does not report an error.This operation fails if you try to remove a variation that is part of an ongoing launch or experiment.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
removeVariations
UpdateFeatureRequest.Builder removeVariations(String... removeVariations)
Removes a variation from the feature. If the variation you specify doesn't exist, then this makes no change and does not report an error.
This operation fails if you try to remove a variation that is part of an ongoing launch or experiment.
- Parameters:
removeVariations- Removes a variation from the feature. If the variation you specify doesn't exist, then this makes no change and does not report an error.This operation fails if you try to remove a variation that is part of an ongoing launch or experiment.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
UpdateFeatureRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
UpdateFeatureRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-