FeatureFlagConfigurationSetting Class
- java.
lang. Object - com.
azure. data. appconfiguration. models. ConfigurationSetting - com.
azure. data. appconfiguration. models. FeatureFlagConfigurationSetting
- com.
- com.
public final class FeatureFlagConfigurationSetting
extends ConfigurationSetting
FeatureFlagConfigurationSetting allows you to customize your own feature flags to dynamically administer a feature's lifecycle. Feature flags can be used to enable or disable features.
Field Summary
Modifier and Type | Field and Description |
---|---|
static final String |
KEY_PREFIX
A prefix is used to construct a feature flag configuration setting's key. |
Constructor Summary
Constructor | Description |
---|---|
FeatureFlagConfigurationSetting(String featureId, boolean isEnabled) |
The constructor for a feature flag configuration setting. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Feature |
addClientFilter(FeatureFlagFilter clientFilter)
Add a feature flag filter to this configuration setting. |
List<Feature |
getClientFilters()
Gets the feature flag filters of this configuration setting. |
String |
getDescription()
Get the description of this configuration setting. |
String |
getDisplayName()
Get the display name of this configuration setting. |
String |
getFeatureId()
Get the feature ID of this configuration setting. |
String |
getValue()
Gets the value of this configuration setting. |
boolean |
isEnabled()
Get the boolean indicator to show if the setting is turn on or off. |
Feature |
setClientFilters(List<FeatureFlagFilter> clientFilters)
Sets the feature flag filters of this configuration setting. |
Feature |
setContentType(String contentType)
Sets the content type. |
Feature |
setDescription(String description)
Set the description of this configuration setting. |
Feature |
setDisplayName(String displayName)
Set the display name of this configuration setting. |
Feature |
setETag(String etag)
Sets the ETag for this configuration setting. |
Feature |
setEnabled(boolean isEnabled)
Set the boolean indicator to show if the setting is turn on or off. |
Feature |
setFeatureId(String featureId)
Set the feature ID of this configuration setting. |
Feature |
setKey(String key)
Sets the key of this setting. |
Feature |
setLabel(String label)
Sets the label of this configuration setting. |
Feature |
setTags(Map<String,String> tags)
Sets the tags for this configuration setting. |
Feature |
setValue(String value)
Sets the value of this setting. |
Methods inherited from ConfigurationSetting
Methods inherited from java.lang.Object
Field Details
KEY_PREFIX
public static final String KEY_PREFIX
A prefix is used to construct a feature flag configuration setting's key.
Constructor Details
FeatureFlagConfigurationSetting
public FeatureFlagConfigurationSetting(String featureId, boolean isEnabled)
The constructor for a feature flag configuration setting.
Parameters:
KEY_PREFIX
concatenate featureId
.
Method Details
addClientFilter
public FeatureFlagConfigurationSetting addClientFilter(FeatureFlagFilter clientFilter)
Add a feature flag filter to this configuration setting.
Parameters:
Returns:
getClientFilters
public List
Gets the feature flag filters of this configuration setting.
Returns:
getDescription
public String getDescription()
Get the description of this configuration setting.
Returns:
getDisplayName
public String getDisplayName()
Get the display name of this configuration setting.
Returns:
getFeatureId
public String getFeatureId()
Get the feature ID of this configuration setting.
Returns:
getValue
public String getValue()
Gets the value of this configuration setting.
Overrides:
FeatureFlagConfigurationSetting.getValue()isEnabled
public boolean isEnabled()
Get the boolean indicator to show if the setting is turn on or off.
Returns:
setClientFilters
public FeatureFlagConfigurationSetting setClientFilters(List
Sets the feature flag filters of this configuration setting.
Parameters:
Returns:
setContentType
public FeatureFlagConfigurationSetting setContentType(String contentType)
Sets the content type. By default, the content type is null.
Overrides:
FeatureFlagConfigurationSetting.setContentType(String contentType)Parameters:
Returns:
setDescription
public FeatureFlagConfigurationSetting setDescription(String description)
Set the description of this configuration setting.
Parameters:
Returns:
setDisplayName
public FeatureFlagConfigurationSetting setDisplayName(String displayName)
Set the display name of this configuration setting.
Parameters:
Returns:
setETag
public FeatureFlagConfigurationSetting setETag(String etag)
Sets the ETag for this configuration setting.
Overrides:
FeatureFlagConfigurationSetting.setETag(String etag)Parameters:
Returns:
setEnabled
public FeatureFlagConfigurationSetting setEnabled(boolean isEnabled)
Set the boolean indicator to show if the setting is turn on or off.
Parameters:
Returns:
setFeatureId
public FeatureFlagConfigurationSetting setFeatureId(String featureId)
Set the feature ID of this configuration setting.
Parameters:
Returns:
setKey
public FeatureFlagConfigurationSetting setKey(String key)
Sets the key of this setting.
Overrides:
FeatureFlagConfigurationSetting.setKey(String key)Parameters:
Returns:
setLabel
public FeatureFlagConfigurationSetting setLabel(String label)
Sets the label of this configuration setting. #NO_LABEL is the default label used when this value is not set.
Overrides:
FeatureFlagConfigurationSetting.setLabel(String label)Parameters:
Returns:
setTags
public FeatureFlagConfigurationSetting setTags(Map
Sets the tags for this configuration setting.
Overrides:
FeatureFlagConfigurationSetting.setTags(Map<String,String> tags)Parameters:
Returns:
setValue
public FeatureFlagConfigurationSetting setValue(String value)
Sets the value of this setting.
Overrides:
FeatureFlagConfigurationSetting.setValue(String value)Parameters:
Returns:
Applies to
Azure SDK for Java