public static interface EvaluateFeatureResponse.Builder extends EvidentlyResponse.Builder, SdkPojo, CopyableBuilder<EvaluateFeatureResponse.Builder,EvaluateFeatureResponse>
| Modifier and Type | Method and Description |
|---|---|
EvaluateFeatureResponse.Builder |
details(String details)
If this user was assigned to a launch or experiment, this field lists the launch or experiment name.
|
EvaluateFeatureResponse.Builder |
reason(String reason)
Specifies the reason that the user session was assigned this variation.
|
default EvaluateFeatureResponse.Builder |
value(Consumer<VariableValue.Builder> value)
The value assigned to this variation to differentiate it from the other variations of this feature.
|
EvaluateFeatureResponse.Builder |
value(VariableValue value)
The value assigned to this variation to differentiate it from the other variations of this feature.
|
EvaluateFeatureResponse.Builder |
variation(String variation)
The name of the variation that was served to the user session.
|
build, responseMetadata, responseMetadatasdkHttpResponse, sdkHttpResponseequalsBySdkFields, sdkFieldscopyapplyMutation, buildEvaluateFeatureResponse.Builder details(String details)
If this user was assigned to a launch or experiment, this field lists the launch or experiment name.
details - If this user was assigned to a launch or experiment, this field lists the launch or experiment name.EvaluateFeatureResponse.Builder reason(String reason)
Specifies the reason that the user session was assigned this variation. Possible values include
DEFAULT, meaning the user was served the default variation; LAUNCH_RULE_MATCH, if
the user session was enrolled in a launch; EXPERIMENT_RULE_MATCH, if the user session was
enrolled in an experiment; or ENTITY_OVERRIDES_MATCH, if the user's entityId
matches an override rule.
reason - Specifies the reason that the user session was assigned this variation. Possible values include
DEFAULT, meaning the user was served the default variation;
LAUNCH_RULE_MATCH, if the user session was enrolled in a launch;
EXPERIMENT_RULE_MATCH, if the user session was enrolled in an experiment; or
ENTITY_OVERRIDES_MATCH, if the user's entityId matches an override rule.EvaluateFeatureResponse.Builder value(VariableValue value)
The value assigned to this variation to differentiate it from the other variations of this feature.
value - The value assigned to this variation to differentiate it from the other variations of this feature.default EvaluateFeatureResponse.Builder value(Consumer<VariableValue.Builder> value)
The value assigned to this variation to differentiate it from the other variations of this feature.
This is a convenience method that creates an instance of theVariableValue.Builder avoiding the need
to create one manually via VariableValue.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to value(VariableValue).
value - a consumer that will call methods on VariableValue.Buildervalue(VariableValue)EvaluateFeatureResponse.Builder variation(String variation)
The name of the variation that was served to the user session.
variation - The name of the variation that was served to the user session.Copyright © 2022. All rights reserved.