VariantReference Class
- java.
lang. Object - com.
azure. spring. cloud. feature. management. models. VariantReference
- com.
public class 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
| Constructor | Description |
|---|---|
| VariantReference() |
Creates a new instance of the Variant |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Object |
getConfigurationValue()
Gets the configuration value associated with this variant reference. |
| String |
getName()
Gets the name of this variant reference. |
| String |
getStatusOverride()
Gets the status override associated with this variant reference. |
|
Variant |
setConfigurationValue(Object configurationValue)
Sets the configuration value for this variant reference. |
|
Variant |
setName(String name)
Sets the name of this variant reference. |
|
Variant |
setStatusOverride(String statusOverride)
Sets the status override for this variant reference. |
Methods inherited from java.lang.Object
Constructor Details
VariantReference
public VariantReference()
Creates a new instance of the VariantReference class.
Method Details
getConfigurationValue
public Object getConfigurationValue()
Gets the configuration value associated with this variant reference.
Returns:
getName
public String getName()
Gets the name of this variant reference.
Returns:
getStatusOverride
public String getStatusOverride()
Gets the status override associated with this variant reference.
Returns:
setConfigurationValue
public VariantReference setConfigurationValue(Object configurationValue)
Sets the configuration value for this variant reference.
Parameters:
Returns:
setName
public VariantReference setName(String name)
Sets the name of this variant reference.
Parameters:
Returns:
setStatusOverride
public VariantReference setStatusOverride(String statusOverride)
Sets the status override for this variant reference.
Parameters:
Returns: