Class ConfigurationSetting
java.lang.Object
com.azure.data.appconfiguration.models.ConfigurationSetting
- Direct Known Subclasses:
FeatureFlagConfigurationSetting
,SecretReferenceConfigurationSetting
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the content type of this configuration setting.getETag()
The ETag for this configuration setting.getKey()
Gets the key name for this configuration setting.getLabel()
Gets the label of this configuration setting.The time when the configuration setting was last modified.getTags()
Gets tags associated with this configuration setting.getValue()
Gets the value of this configuration setting.boolean
Gets whether or not the configuration setting is read-only.setContentType
(String contentType) Sets the content type.Sets the ETag for this configuration setting.Sets the key of this configuration setting.Sets the label of this configuration setting.Sets the tags for this configuration setting.Sets the value of this setting.toString()
-
Field Details
-
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
Gets the key name for this configuration setting.- Returns:
- The key for this configuration setting.
-
setKey
Sets the key of this configuration setting.- Parameters:
key
- The name of the configuration key.- Returns:
- ConfigurationSetting object itself.
-
getLabel
Gets the label of this configuration setting.- Returns:
- The label of this setting.
-
setLabel
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
Gets the value of this configuration setting.- Returns:
- The value of this configuration setting.
-
setValue
Sets the value of this setting.- Parameters:
value
- The value to associate with this configuration setting.- Returns:
- The updated ConfigurationSetting object.
-
getContentType
Gets the content type of this configuration setting. By default, this content type is null.- Returns:
- The content type of this setting.
-
setContentType
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
The ETag for this configuration setting.- Returns:
- etag The ETag for the setting.
-
setETag
Sets the ETag for this configuration setting.- Parameters:
etag
- The ETag for the configuration setting.- Returns:
- The updated ConfigurationSetting object.
-
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
Gets tags associated with this configuration setting.- Returns:
- tags Gets tags for this configuration setting.
-
setTags
Sets the tags for this configuration setting.- Parameters:
tags
- The tags to add to this configuration setting.- Returns:
- The updated ConfigurationSetting object.
-
toString
-