Interface UpdateFeatureRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<UpdateFeatureRequest.Builder,
,UpdateFeatureRequest> EvidentlyRequest.Builder
,SdkBuilder<UpdateFeatureRequest.Builder,
,UpdateFeatureRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
UpdateFeatureRequest
-
Method Summary
Modifier and TypeMethodDescriptionaddOrUpdateVariations
(Collection<VariationConfig> addOrUpdateVariations) To update variation configurations for this feature, or add new ones, specify this structure.addOrUpdateVariations
(Consumer<VariationConfig.Builder>... addOrUpdateVariations) To update variation configurations for this feature, or add new ones, specify this structure.addOrUpdateVariations
(VariationConfig... addOrUpdateVariations) To update variation configurations for this feature, or add new ones, specify this structure.defaultVariation
(String defaultVariation) The name of the variation to use as the default variation.description
(String description) An optional description of the feature.entityOverrides
(Map<String, String> entityOverrides) Specified users that should always be served a specific variation of a feature.evaluationStrategy
(String evaluationStrategy) SpecifyALL_RULES
to activate the traffic allocation specified by any ongoing launches or experiments.evaluationStrategy
(FeatureEvaluationStrategy evaluationStrategy) SpecifyALL_RULES
to activate the traffic allocation specified by any ongoing launches or experiments.The name of the feature to be updated.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The name or ARN of the project that contains the feature to be updated.removeVariations
(String... removeVariations) Removes a variation from the feature.removeVariations
(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 Details
-
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
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.Builder
avoiding the need to create one manually viaVariationConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaddOrUpdateVariations(List<VariationConfig>)
.- 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:
-
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
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
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
Specify
ALL_RULES
to activate the traffic allocation specified by any ongoing launches or experiments. SpecifyDEFAULT_VARIATION
to serve the default variation to all users instead.- Parameters:
evaluationStrategy
- SpecifyALL_RULES
to activate the traffic allocation specified by any ongoing launches or experiments. SpecifyDEFAULT_VARIATION
to 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:
-
evaluationStrategy
Specify
ALL_RULES
to activate the traffic allocation specified by any ongoing launches or experiments. SpecifyDEFAULT_VARIATION
to serve the default variation to all users instead.- Parameters:
evaluationStrategy
- SpecifyALL_RULES
to activate the traffic allocation specified by any ongoing launches or experiments. SpecifyDEFAULT_VARIATION
to 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:
-
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
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
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
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) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateFeatureRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-