public static interface Feature.Builder extends SdkPojo, CopyableBuilder<Feature.Builder,Feature>
| Modifier and Type | Method and Description |
|---|---|
Feature.Builder |
arn(String arn)
The ARN of the feature.
|
Feature.Builder |
createdTime(Instant createdTime)
The date and time that the feature is created.
|
Feature.Builder |
defaultVariation(String defaultVariation)
The name of the variation that is used as the default variation.
|
Feature.Builder |
description(String description)
The description of the feature.
|
Feature.Builder |
entityOverrides(Map<String,String> entityOverrides)
A set of key-value pairs that specify users who should always be served a specific variation of a feature.
|
Feature.Builder |
evaluationRules(Collection<EvaluationRule> evaluationRules)
An array of structures that define the evaluation rules for the feature.
|
Feature.Builder |
evaluationRules(Consumer<EvaluationRule.Builder>... evaluationRules)
An array of structures that define the evaluation rules for the feature.
|
Feature.Builder |
evaluationRules(EvaluationRule... evaluationRules)
An array of structures that define the evaluation rules for the feature.
|
Feature.Builder |
evaluationStrategy(FeatureEvaluationStrategy evaluationStrategy)
If this value is
ALL_RULES, the traffic allocation specified by any ongoing launches or
experiments is being used. |
Feature.Builder |
evaluationStrategy(String evaluationStrategy)
If this value is
ALL_RULES, the traffic allocation specified by any ongoing launches or
experiments is being used. |
Feature.Builder |
lastUpdatedTime(Instant lastUpdatedTime)
The date and time that the feature was most recently updated.
|
Feature.Builder |
name(String name)
The name of the feature.
|
Feature.Builder |
project(String project)
The name or ARN of the project that contains the feature.
|
Feature.Builder |
status(FeatureStatus status)
The current state of the feature.
|
Feature.Builder |
status(String status)
The current state of the feature.
|
Feature.Builder |
tags(Map<String,String> tags)
The list of tag keys and values associated with this feature.
|
Feature.Builder |
valueType(String valueType)
Defines the type of value used to define the different feature variations.
|
Feature.Builder |
valueType(VariationValueType valueType)
Defines the type of value used to define the different feature variations.
|
Feature.Builder |
variations(Collection<Variation> variations)
An array of structures that contain the configuration of the feature's different variations.
|
Feature.Builder |
variations(Consumer<Variation.Builder>... variations)
An array of structures that contain the configuration of the feature's different variations.
|
Feature.Builder |
variations(Variation... variations)
An array of structures that contain the configuration of the feature's different variations.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildFeature.Builder arn(String arn)
The ARN of the feature.
arn - The ARN of the feature.Feature.Builder createdTime(Instant createdTime)
The date and time that the feature is created.
createdTime - The date and time that the feature is created.Feature.Builder defaultVariation(String defaultVariation)
The name of the variation that is used 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 variations structure.
If you omit defaultVariation, the first variation listed in the variations
structure is used as the default variation.
defaultVariation - The name of the variation that is used 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 variations structure.
If you omit defaultVariation, the first variation listed in the variations
structure is used as the default variation.
Feature.Builder description(String description)
The description of the feature.
description - The description of the feature.Feature.Builder entityOverrides(Map<String,String> entityOverrides)
A set of key-value pairs that specify users who should always be served a specific variation of a feature. Each key specifies a user using their user ID, account ID, or some other identifier. The value specifies the name of the variation that the user is to be served.
For the override to be successful, the value of the key must match the entityId used in the
EvaluateFeature operation.
entityOverrides - A set of key-value pairs that specify users who should always be served a specific variation of a
feature. Each key specifies a user using their user ID, account ID, or some other identifier. The
value specifies the name of the variation that the user is to be served.
For the override to be successful, the value of the key must match the entityId used in
the EvaluateFeature operation.
Feature.Builder evaluationRules(Collection<EvaluationRule> evaluationRules)
An array of structures that define the evaluation rules for the feature.
evaluationRules - An array of structures that define the evaluation rules for the feature.Feature.Builder evaluationRules(EvaluationRule... evaluationRules)
An array of structures that define the evaluation rules for the feature.
evaluationRules - An array of structures that define the evaluation rules for the feature.Feature.Builder evaluationRules(Consumer<EvaluationRule.Builder>... evaluationRules)
An array of structures that define the evaluation rules for the feature.
This is a convenience method that creates an instance of theEvaluationRule.Builder avoiding the need to create
one manually via EvaluationRule.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately
and its result is passed to #evaluationRules(List.
evaluationRules - a consumer that will call methods on
EvaluationRule.Builder#evaluationRules(java.util.Collection) Feature.Builder evaluationStrategy(String evaluationStrategy)
If this value is ALL_RULES, the traffic allocation specified by any ongoing launches or
experiments is being used. If this is DEFAULT_VARIATION, the default variation is being served
to all users.
evaluationStrategy - If this value is ALL_RULES, the traffic allocation specified by any ongoing launches or
experiments is being used. If this is DEFAULT_VARIATION, the default variation is being
served to all users.FeatureEvaluationStrategy,
FeatureEvaluationStrategyFeature.Builder evaluationStrategy(FeatureEvaluationStrategy evaluationStrategy)
If this value is ALL_RULES, the traffic allocation specified by any ongoing launches or
experiments is being used. If this is DEFAULT_VARIATION, the default variation is being served
to all users.
evaluationStrategy - If this value is ALL_RULES, the traffic allocation specified by any ongoing launches or
experiments is being used. If this is DEFAULT_VARIATION, the default variation is being
served to all users.FeatureEvaluationStrategy,
FeatureEvaluationStrategyFeature.Builder lastUpdatedTime(Instant lastUpdatedTime)
The date and time that the feature was most recently updated.
lastUpdatedTime - The date and time that the feature was most recently updated.Feature.Builder name(String name)
The name of the feature.
name - The name of the feature.Feature.Builder project(String project)
The name or ARN of the project that contains the feature.
project - The name or ARN of the project that contains the feature.Feature.Builder status(String status)
The current state of the feature.
status - The current state of the feature.FeatureStatus,
FeatureStatusFeature.Builder status(FeatureStatus status)
The current state of the feature.
status - The current state of the feature.FeatureStatus,
FeatureStatusFeature.Builder tags(Map<String,String> tags)
The list of tag keys and values associated with this feature.
tags - The list of tag keys and values associated with this feature.Feature.Builder valueType(String valueType)
Defines the type of value used to define the different feature variations. For more information, see Variation types
valueType - Defines the type of value used to define the different feature variations. For more information, see
Variation typesVariationValueType,
VariationValueTypeFeature.Builder valueType(VariationValueType valueType)
Defines the type of value used to define the different feature variations. For more information, see Variation types
valueType - Defines the type of value used to define the different feature variations. For more information, see
Variation typesVariationValueType,
VariationValueTypeFeature.Builder variations(Collection<Variation> variations)
An array of structures that contain the configuration of the feature's different variations.
variations - An array of structures that contain the configuration of the feature's different variations.Feature.Builder variations(Variation... variations)
An array of structures that contain the configuration of the feature's different variations.
variations - An array of structures that contain the configuration of the feature's different variations.Feature.Builder variations(Consumer<Variation.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 theVariation.Builder avoiding the need to create one
manually via Variation.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and
its result is passed to #variations(List.
variations - a consumer that will call methods on
Variation.Builder#variations(java.util.Collection) Copyright © 2022. All rights reserved.