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
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates the feature flag was evaluated based on the default value when the flag is disabled.Indicates the feature flag was evaluated based on the default value when the flag is enabled.Indicates the feature flag was evaluated based on group targeting criteria.Indicates no specific reason was assigned for the feature flag evaluation.Indicates the feature flag was evaluated based on percentile targeting criteria.Indicates the feature flag was evaluated based on user targeting criteria. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Gets the string representation of this variant assignment reason.static VariantAssignmentReasonReturns the enum constant of this type with the specified name.static VariantAssignmentReason[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
Indicates no specific reason was assigned for the feature flag evaluation. -
DEFAULT_WHEN_DISABLED
Indicates the feature flag was evaluated based on the default value when the flag is disabled. -
DEFAULT_WHEN_ENABLED
Indicates the feature flag was evaluated based on the default value when the flag is enabled. -
USER
Indicates the feature flag was evaluated based on user targeting criteria. -
GROUP
Indicates the feature flag was evaluated based on group targeting criteria. -
PERCENTILE
Indicates the feature flag was evaluated based on percentile targeting criteria.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getValue
Gets the string representation of this variant assignment reason.- Returns:
- the string representation of this variant assignment reason
-