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 Details

    • 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

      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.

      Parameters:
      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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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

      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 the VariableValue.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).

      Parameters:
      value - a consumer that will call methods on VariableValue.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.