Udostępnij przez


VariantReference Class

  • java.lang.Object
    • com.azure.spring.cloud.feature.management.models.VariantReference

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 VariantReference class.

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.

VariantReference setConfigurationValue(Object configurationValue)

Sets the configuration value for this variant reference.

VariantReference setName(String name)

Sets the name of this variant reference.

VariantReference 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:

the configuration value of this variant reference

getName

public String getName()

Gets the name of this variant reference.

Returns:

the name of the variant reference

getStatusOverride

public String getStatusOverride()

Gets the status override associated with this variant reference.

Returns:

the status override of this variant reference

setConfigurationValue

public VariantReference setConfigurationValue(Object configurationValue)

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

setName

public VariantReference setName(String name)

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

setStatusOverride

public VariantReference setStatusOverride(String statusOverride)

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

Applies to