Class ConfigurationSetting

java.lang.Object
com.azure.data.appconfiguration.models.ConfigurationSetting
Direct Known Subclasses:
FeatureFlagConfigurationSetting, SecretReferenceConfigurationSetting

public class ConfigurationSetting extends Object
ConfigurationSetting is a resource identified by unique combination of key and label. By default, the label is null. To explicitly reference the default label use NO_LABEL.
  • Field Details

    • NO_LABEL

      public static final String NO_LABEL
      The default label for configuration settings is the label, "\0". Users use this value when they want to explicitly reference a configuration setting that has no label. This gets URL encoded as "%00".
      See Also:
  • Constructor Details

    • ConfigurationSetting

      public ConfigurationSetting()
      Creates an instance of the configuration setting.
  • Method Details

    • getKey

      public String getKey()
      Gets the key name for this configuration setting.
      Returns:
      The key for this configuration setting.
    • setKey

      public ConfigurationSetting setKey(String key)
      Sets the key of this configuration setting.
      Parameters:
      key - The name of the configuration key.
      Returns:
      ConfigurationSetting object itself.
    • getLabel

      public String getLabel()
      Gets the label of this configuration setting.
      Returns:
      The label of this setting.
    • setLabel

      public ConfigurationSetting setLabel(String label)
      Sets the label of this configuration setting. NO_LABEL is the default label used when this value is not set.
      Parameters:
      label - The label of this configuration setting.
      Returns:
      The updated ConfigurationSetting object.
    • getValue

      public String getValue()
      Gets the value of this configuration setting.
      Returns:
      The value of this configuration setting.
    • setValue

      public ConfigurationSetting setValue(String value)
      Sets the value of this setting.
      Parameters:
      value - The value to associate with this configuration setting.
      Returns:
      The updated ConfigurationSetting object.
    • getContentType

      public String getContentType()
      Gets the content type of this configuration setting. By default, this content type is null.
      Returns:
      The content type of this setting.
    • setContentType

      public ConfigurationSetting setContentType(String contentType)
      Sets the content type. By default, the content type is null.
      Parameters:
      contentType - The content type of this configuration setting.
      Returns:
      The updated ConfigurationSetting object.
    • getETag

      public String getETag()
      The ETag for this configuration setting.
      Returns:
      etag The ETag for the setting.
    • setETag

      public ConfigurationSetting setETag(String etag)
      Sets the ETag for this configuration setting.
      Parameters:
      etag - The ETag for the configuration setting.
      Returns:
      The updated ConfigurationSetting object.
    • getLastModified

      public OffsetDateTime getLastModified()
      The time when the configuration setting was last modified.
      Returns:
      The time when the configuration was last modified.
    • isReadOnly

      public boolean isReadOnly()
      Gets whether or not the configuration setting is read-only. If it is, then no modifications can be made to this setting. This is a readonly property. It is populated from responses from the Azure App Configuration service.
      Returns:
      true if read-only; false otherwise.
    • getTags

      public Map<String,String> getTags()
      Gets tags associated with this configuration setting.
      Returns:
      tags Gets tags for this configuration setting.
    • setTags

      public ConfigurationSetting setTags(Map<String,String> tags)
      Sets the tags for this configuration setting.
      Parameters:
      tags - The tags to add to this configuration setting.
      Returns:
      The updated ConfigurationSetting object.
    • toString

      public String toString()
      Overrides:
      toString in class Object