Interface Feature.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Feature.Builder,Feature>,SdkBuilder<Feature.Builder,Feature>,SdkPojo
- Enclosing class:
- Feature
public static interface Feature.Builder extends SdkPojo, CopyableBuilder<Feature.Builder,Feature>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Feature.Builderarn(String arn)The ARN of the feature.Feature.BuildercreatedTime(Instant createdTime)The date and time that the feature is created.Feature.BuilderdefaultVariation(String defaultVariation)The name of the variation that is used as the default variation.Feature.Builderdescription(String description)The description of the feature.Feature.BuilderentityOverrides(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.BuilderevaluationRules(Collection<EvaluationRule> evaluationRules)An array of structures that define the evaluation rules for the feature.Feature.BuilderevaluationRules(Consumer<EvaluationRule.Builder>... evaluationRules)An array of structures that define the evaluation rules for the feature.Feature.BuilderevaluationRules(EvaluationRule... evaluationRules)An array of structures that define the evaluation rules for the feature.Feature.BuilderevaluationStrategy(String evaluationStrategy)If this value isALL_RULES, the traffic allocation specified by any ongoing launches or experiments is being used.Feature.BuilderevaluationStrategy(FeatureEvaluationStrategy evaluationStrategy)If this value isALL_RULES, the traffic allocation specified by any ongoing launches or experiments is being used.Feature.BuilderlastUpdatedTime(Instant lastUpdatedTime)The date and time that the feature was most recently updated.Feature.Buildername(String name)The name of the feature.Feature.Builderproject(String project)The name or ARN of the project that contains the feature.Feature.Builderstatus(String status)The current state of the feature.Feature.Builderstatus(FeatureStatus status)The current state of the feature.Feature.Buildertags(Map<String,String> tags)The list of tag keys and values associated with this feature.Feature.BuildervalueType(String valueType)Defines the type of value used to define the different feature variations.Feature.BuildervalueType(VariationValueType valueType)Defines the type of value used to define the different feature variations.Feature.Buildervariations(Collection<Variation> variations)An array of structures that contain the configuration of the feature's different variations.Feature.Buildervariations(Consumer<Variation.Builder>... variations)An array of structures that contain the configuration of the feature's different variations.Feature.Buildervariations(Variation... variations)An array of structures that contain the configuration of the feature's different variations.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
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
-
arn
Feature.Builder arn(String arn)
The ARN of the feature.
- Parameters:
arn- The ARN of the feature.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdTime
Feature.Builder createdTime(Instant createdTime)
The date and time that the feature is created.
- Parameters:
createdTime- The date and time that the feature is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultVariation
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
variationsstructure.If you omit
defaultVariation, the first variation listed in thevariationsstructure is used as the default variation.- Parameters:
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
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
Feature.Builder description(String description)
The description of the feature.
- Parameters:
description- The description of the feature.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entityOverrides
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
entityIdused in the EvaluateFeature operation.- Parameters:
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
entityIdused in the EvaluateFeature operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluationRules
Feature.Builder evaluationRules(Collection<EvaluationRule> evaluationRules)
An array of structures that define the evaluation rules for the feature.
- Parameters:
evaluationRules- An array of structures that define the evaluation rules for the feature.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluationRules
Feature.Builder evaluationRules(EvaluationRule... evaluationRules)
An array of structures that define the evaluation rules for the feature.
- Parameters:
evaluationRules- An array of structures that define the evaluation rules for the feature.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluationRules
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.Builderavoiding the need to create one manually viaEvaluationRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#evaluationRules(List.) - Parameters:
evaluationRules- a consumer that will call methods onEvaluationRule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#evaluationRules(java.util.Collection)
-
evaluationStrategy
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 isDEFAULT_VARIATION, the default variation is being served to all users.- Parameters:
evaluationStrategy- If this value isALL_RULES, the traffic allocation specified by any ongoing launches or experiments is being used. If this isDEFAULT_VARIATION, the default variation is being served to all users.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
FeatureEvaluationStrategy,FeatureEvaluationStrategy
-
evaluationStrategy
Feature.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 isDEFAULT_VARIATION, the default variation is being served to all users.- Parameters:
evaluationStrategy- If this value isALL_RULES, the traffic allocation specified by any ongoing launches or experiments is being used. If this isDEFAULT_VARIATION, the default variation is being served to all users.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
FeatureEvaluationStrategy,FeatureEvaluationStrategy
-
lastUpdatedTime
Feature.Builder lastUpdatedTime(Instant lastUpdatedTime)
The date and time that the feature was most recently updated.
- Parameters:
lastUpdatedTime- The date and time that the feature was most recently updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
Feature.Builder name(String name)
The name of the feature.
- Parameters:
name- The name of the feature.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
project
Feature.Builder project(String project)
The name or ARN of the project that contains the feature.
- Parameters:
project- The name or ARN of the project that contains the feature.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
Feature.Builder status(String status)
The current state of the feature.
- Parameters:
status- The current state of the feature.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
FeatureStatus,FeatureStatus
-
status
Feature.Builder status(FeatureStatus status)
The current state of the feature.
- Parameters:
status- The current state of the feature.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
FeatureStatus,FeatureStatus
-
tags
Feature.Builder tags(Map<String,String> tags)
The list of tag keys and values associated with this feature.
- Parameters:
tags- The list of tag keys and values associated with this feature.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
valueType
Feature.Builder valueType(String valueType)
Defines the type of value used to define the different feature variations. For more information, see Variation types
- Parameters:
valueType- Defines the type of value used to define the different feature variations. For more information, see Variation types- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
VariationValueType,VariationValueType
-
valueType
Feature.Builder valueType(VariationValueType valueType)
Defines the type of value used to define the different feature variations. For more information, see Variation types
- Parameters:
valueType- Defines the type of value used to define the different feature variations. For more information, see Variation types- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
VariationValueType,VariationValueType
-
variations
Feature.Builder variations(Collection<Variation> 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
Feature.Builder variations(Variation... 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
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.Builderavoiding the need to create one manually viaVariation.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 onVariation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#variations(java.util.Collection)
-
-