public class ConfigurationSetting extends Object
key
and label
. By default, the label is null
. To explicitly reference the default label use ConfigurationSetting.NO_LABEL
.Modifier and Type | Field and Description |
---|---|
static String |
NO_LABEL
The default label for configuration settings is the label, "\0".
|
Constructor and Description |
---|
ConfigurationSetting()
Creates an instance of the configuration setting.
|
Modifier and Type | Method and Description |
---|---|
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.
|
OffsetDateTime |
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.
|
ConfigurationSetting |
setContentType(String contentType)
Sets the content type.
|
ConfigurationSetting |
setETag(String etag)
Sets the ETag for this configuration setting.
|
ConfigurationSetting |
setKey(String key)
Sets the key of this configuration setting.
|
ConfigurationSetting |
setLabel(String label)
Sets the label of this configuration setting.
|
ConfigurationSetting |
setTags(Map<String,String> tags)
Sets the tags for this configuration setting.
|
ConfigurationSetting |
setValue(String value)
Sets the value of this setting.
|
String |
toString() |
public static final String NO_LABEL
public ConfigurationSetting()
public String getKey()
public ConfigurationSetting setKey(String key)
key
- The name of the configuration key.public String getLabel()
public ConfigurationSetting setLabel(String label)
ConfigurationSetting.NO_LABEL
is the default label used when this value is not
set.label
- The label of this configuration setting.public String getValue()
public ConfigurationSetting setValue(String value)
value
- The value to associate with this configuration setting.public String getContentType()
public ConfigurationSetting setContentType(String contentType)
contentType
- The content type of this configuration setting.public String getETag()
public ConfigurationSetting setETag(String etag)
etag
- The ETag for the configuration setting.public OffsetDateTime getLastModified()
public boolean isReadOnly()
public Map<String,String> getTags()
public ConfigurationSetting setTags(Map<String,String> tags)
tags
- The tags to add to this configuration setting.Copyright © 2021 Microsoft Corporation. All rights reserved.