Class Variant

java.lang.Object
com.azure.spring.cloud.feature.management.models.Variant

public class Variant extends Object
Represents a feature flag variant in Azure Feature Management. This class is the return object of the getVariant method and contains both the name of the variant and its corresponding value instance. Variants allow for multiple implementations of a feature beyond simple on/off states.
  • Constructor Details

    • Variant

      public Variant(String name, Object value)
      Creates a new Variant with the specified name and value.
      Parameters:
      name - The name that identifies this variant in feature flag configurations
      value - The implementation value or configuration for this variant
  • Method Details

    • getName

      public String getName()
      Gets the name of this variant.
      Returns:
      the name that identifies this variant
    • getValue

      public Object getValue()
      Gets the implementation value of this variant. This can be any object that represents the variant's behavior or configuration.
      Returns:
      the implementation value for this variant