Interface EvaluateFeatureResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<EvaluateFeatureResponse.Builder,EvaluateFeatureResponse>,EvidentlyResponse.Builder,SdkBuilder<EvaluateFeatureResponse.Builder,EvaluateFeatureResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- EvaluateFeatureResponse
public static interface EvaluateFeatureResponse.Builder extends EvidentlyResponse.Builder, SdkPojo, CopyableBuilder<EvaluateFeatureResponse.Builder,EvaluateFeatureResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description EvaluateFeatureResponse.Builderdetails(String details)If this user was assigned to a launch or experiment, this field lists the launch or experiment name.EvaluateFeatureResponse.Builderreason(String reason)Specifies the reason that the user session was assigned this variation.default EvaluateFeatureResponse.Buildervalue(Consumer<VariableValue.Builder> value)The value assigned to this variation to differentiate it from the other variations of this feature.EvaluateFeatureResponse.Buildervalue(VariableValue value)The value assigned to this variation to differentiate it from the other variations of this feature.EvaluateFeatureResponse.Buildervariation(String variation)The name of the variation that was served to the user session.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.evidently.model.EvidentlyResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
details
EvaluateFeatureResponse.Builder details(String details)
If this user was assigned to a launch or experiment, this field lists the launch or experiment name.
- Parameters:
details- If this user was assigned to a launch or experiment, this field lists the launch or experiment name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reason
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; orENTITY_OVERRIDES_MATCH, if the user'sentityIdmatches an override rule.- Parameters:
reason- Specifies the reason that the user session was assigned this variation. Possible values includeDEFAULT, 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; orENTITY_OVERRIDES_MATCH, if the user'sentityIdmatches an override rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
value
EvaluateFeatureResponse.Builder value(VariableValue value)
The value assigned to this variation to differentiate it from the other variations of this feature.
- Parameters:
value- The value assigned to this variation to differentiate it from the other variations of this feature.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
value
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.Builderavoiding the need to create one manually viaVariableValue.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovalue(VariableValue).- Parameters:
value- a consumer that will call methods onVariableValue.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
value(VariableValue)
-
variation
EvaluateFeatureResponse.Builder variation(String variation)
The name of the variation that was served to the user session.
- Parameters:
variation- The name of the variation that was served to the user session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-