ConfigurationSetting Class
- java.
lang. Object - com.
azure. data. appconfiguration. models. ConfigurationSetting
- com.
Implements
public class ConfigurationSetting
implements JsonSerializable<ConfigurationSetting>
ConfigurationSetting is a resource identified by unique combination of getKey() and getLabel(). By default, the label is null
. To explicitly reference the default label use NO_LABEL.
Field Summary
Modifier and Type | Field and Description |
---|---|
static final String |
NO_LABEL
The default label for configuration settings is the label, "\0". |
Constructor Summary
Constructor | Description |
---|---|
ConfigurationSetting() |
Creates an instance of the configuration setting. |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Configuration |
fromJson(JsonReader jsonReader)
Reads an instance of Configuration |
String |
getContentType()
Gets the content type of this configuration setting. |
String |
getETag()
The ETag for this configuration setting. |
String |
getKey()
Gets the key name for this configuration setting. |
String |
getLabel()
Gets the label of this configuration setting. |
Offset |
getLastModified()
The time when the configuration setting was last modified. |
Map<String,String> |
getTags()
Gets tags associated with this configuration setting. |
String |
getValue()
Gets the value of this configuration setting. |
boolean |
isReadOnly()
Gets whether or not the configuration setting is read-only. |
Configuration |
setContentType(String contentType)
Sets the content type. |
Configuration |
setETag(String etag)
Sets the ETag for this configuration setting. |
Configuration |
setKey(String key)
Sets the key of this configuration setting. |
Configuration |
setLabel(String label)
Sets the label of this configuration setting. |
Configuration |
setTags(Map<String,String> tags)
Sets the tags for this configuration setting. |
Configuration |
setValue(String value)
Sets the value of this setting. |
Json |
toJson(JsonWriter jsonWriter) |
String | toString() |
Methods inherited from java.lang.Object
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".
Constructor Details
ConfigurationSetting
public ConfigurationSetting()
Creates an instance of the configuration setting.
Method Details
fromJson
public static ConfigurationSetting fromJson(JsonReader jsonReader)
Reads an instance of ConfigurationSetting from the JsonReader.
Parameters:
Returns:
Throws:
getContentType
public String getContentType()
Gets the content type of this configuration setting. By default, this content type is null.
Returns:
getETag
public String getETag()
The ETag for this configuration setting.
Returns:
getKey
public String getKey()
Gets the key name for this configuration setting.
Returns:
getLabel
public String getLabel()
Gets the label of this configuration setting.
Returns:
getLastModified
public OffsetDateTime getLastModified()
The time when the configuration setting was last modified.
Returns:
getTags
public Map
Gets tags associated with this configuration setting.
Returns:
getValue
public String getValue()
Gets the value of this configuration setting.
Returns:
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:
setContentType
public ConfigurationSetting setContentType(String contentType)
Sets the content type. By default, the content type is null.
Parameters:
Returns:
setETag
public ConfigurationSetting setETag(String etag)
Sets the ETag for this configuration setting.
Parameters:
Returns:
setKey
public ConfigurationSetting setKey(String key)
Sets the key of this configuration setting.
Parameters:
Returns:
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:
Returns:
setTags
public ConfigurationSetting setTags(Map
Sets the tags for this configuration setting.
Parameters:
Returns:
setValue
public ConfigurationSetting setValue(String value)
Sets the value of this setting.
Parameters:
Returns:
toJson
toString
public String toString()
Overrides:
ConfigurationSetting.toString()Applies to
Azure SDK for Java
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour