Interface EvaluationResult.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<EvaluationResult.Builder,EvaluationResult>,SdkBuilder<EvaluationResult.Builder,EvaluationResult>,SdkPojo
- Enclosing class:
- EvaluationResult
public static interface EvaluationResult.Builder extends SdkPojo, CopyableBuilder<EvaluationResult.Builder,EvaluationResult>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description EvaluationResult.Builderdetails(String details)If this user was assigned to a launch or experiment, this field lists the launch or experiment name.EvaluationResult.BuilderentityId(String entityId)An internal ID that represents a unique user session of the application.EvaluationResult.Builderfeature(String feature)The name of the feature being evaluated.EvaluationResult.Builderproject(String project)The name or ARN of the project that contains the feature being evaluated.EvaluationResult.Builderreason(String reason)Specifies the reason that the user session was assigned this variation.default EvaluationResult.Buildervalue(Consumer<VariableValue.Builder> value)The value assigned to this variation to differentiate it from the other variations of this feature.EvaluationResult.Buildervalue(VariableValue value)The value assigned to this variation to differentiate it from the other variations of this feature.EvaluationResult.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.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
details
EvaluationResult.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.
-
entityId
EvaluationResult.Builder entityId(String entityId)
An internal ID that represents a unique user session of the application.
- Parameters:
entityId- An internal ID that represents a unique user session of the application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
feature
EvaluationResult.Builder feature(String feature)
The name of the feature being evaluated.
- Parameters:
feature- The name of the feature being evaluated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
project
EvaluationResult.Builder project(String project)
The name or ARN of the project that contains the feature being evaluated.
- Parameters:
project- The name or ARN of the project that contains the feature being evaluated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reason
EvaluationResult.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; orEXPERIMENT_RULE_MATCH, if the user session was enrolled in an experiment.- 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; orEXPERIMENT_RULE_MATCH, if the user session was enrolled in an experiment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
value
EvaluationResult.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 EvaluationResult.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
EvaluationResult.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.
-
-