Enum VariantAssignmentReason

java.lang.Object
java.lang.Enum<VariantAssignmentReason>
com.azure.spring.cloud.feature.management.models.VariantAssignmentReason
All Implemented Interfaces:
Serializable, Comparable<VariantAssignmentReason>, java.lang.constant.Constable

public enum VariantAssignmentReason extends Enum<VariantAssignmentReason>
The reason why a given boolean/variant was returned when calling isEnabled/getVariant. This enum represents the different filtering mechanisms that determined the feature flag state.
  • Enum Constant Details

    • NONE

      public static final VariantAssignmentReason NONE
      Indicates no specific reason was assigned for the feature flag evaluation.
    • DEFAULT_WHEN_DISABLED

      public static final VariantAssignmentReason DEFAULT_WHEN_DISABLED
      Indicates the feature flag was evaluated based on the default value when the flag is disabled.
    • DEFAULT_WHEN_ENABLED

      public static final VariantAssignmentReason DEFAULT_WHEN_ENABLED
      Indicates the feature flag was evaluated based on the default value when the flag is enabled.
    • USER

      public static final VariantAssignmentReason USER
      Indicates the feature flag was evaluated based on user targeting criteria.
    • GROUP

      public static final VariantAssignmentReason GROUP
      Indicates the feature flag was evaluated based on group targeting criteria.
    • PERCENTILE

      public static final VariantAssignmentReason PERCENTILE
      Indicates the feature flag was evaluated based on percentile targeting criteria.
  • Method Details

    • values

      public static VariantAssignmentReason[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static VariantAssignmentReason valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
      Gets the string representation of this variant assignment reason.
      Returns:
      the string representation of this variant assignment reason