Class VariantReference
java.lang.Object
com.azure.spring.cloud.feature.management.models.VariantReference
Reference to a Variant containing the Variant name, configuration value, and possible status override.
This class provides a way to reference variants in feature flag configurations and their associated values.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the configuration value associated with this variant reference.getName()Gets the name of this variant reference.Gets the status override associated with this variant reference.setConfigurationValue(Object configurationValue) Sets the configuration value for this variant reference.Sets the name of this variant reference.setStatusOverride(String statusOverride) Sets the status override for this variant reference.
-
Constructor Details
-
VariantReference
public VariantReference()Creates a new instance of the VariantReference class.
-
-
Method Details
-
getName
Gets the name of this variant reference.- Returns:
- the name of the variant reference
-
setName
Sets the name of this variant reference.- Parameters:
name- the name to set for this variant reference- Returns:
- the updated VariantReference instance for method chaining
-
getConfigurationValue
Gets the configuration value associated with this variant reference.- Returns:
- the configuration value of this variant reference
-
setConfigurationValue
Sets the configuration value for this variant reference.- Parameters:
configurationValue- the configuration value to set for this variant reference- Returns:
- the updated VariantReference instance for method chaining
-
getStatusOverride
Gets the status override associated with this variant reference.- Returns:
- the status override of this variant reference
-
setStatusOverride
Sets the status override for this variant reference.- Parameters:
statusOverride- the status override to set for this variant reference- Returns:
- the updated VariantReference instance for method chaining
-