Class SecretReferenceConfigurationSetting
java.lang.Object
com.azure.data.appconfiguration.models.ConfigurationSetting
com.azure.data.appconfiguration.models.SecretReferenceConfigurationSetting
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ConfigurationSetting>
SecretReferenceConfigurationSetting model. It represents a configuration setting that references as
KeyVault secret.-
Field Summary
Fields inherited from class com.azure.data.appconfiguration.models.ConfigurationSetting
NO_LABEL -
Constructor Summary
ConstructorsConstructorDescriptionSecretReferenceConfigurationSetting(String key, String secretId) The constructor for a secret reference configuration setting. -
Method Summary
Modifier and TypeMethodDescriptionGet the secret ID value of this configuration setting.getValue()Gets the value of this configuration setting.setContentType(String contentType) Sets the content type.Sets the ETag for this configuration setting.Sets the key of this setting.Sets the label of this configuration setting.setSecretId(String secretId) Set the secret ID value of this configuration setting.Sets the tags for this configuration setting.Sets the value of this setting.Methods inherited from class com.azure.data.appconfiguration.models.ConfigurationSetting
fromJson, getContentType, getETag, getKey, getLabel, getLastModified, getTags, isReadOnly, toJson, toString
-
Constructor Details
-
SecretReferenceConfigurationSetting
The constructor for a secret reference configuration setting.- Parameters:
key- A key name for this configuration setting.secretId- A uri value that used to in the JSON value of setting. e.x., {"uri":"{secretId}"}.
-
-
Method Details
-
getSecretId
Get the secret ID value of this configuration setting.- Returns:
- the secret ID value of this configuration setting.
- Throws:
IllegalArgumentException- if the setting'svalueis an invalid JSON format.
-
setSecretId
Set the secret ID value of this configuration setting.- Parameters:
secretId- the secret ID value of this configuration setting.- Returns:
- The updated
SecretReferenceConfigurationSettingobject. - Throws:
IllegalArgumentException- if the setting'svalueis an invalid JSON format.
-
setKey
Sets the key of this setting.- Overrides:
setKeyin classConfigurationSetting- Parameters:
key- The key to associate with this configuration setting.- Returns:
- The updated
FeatureFlagConfigurationSettingobject.
-
getValue
Description copied from class:ConfigurationSettingGets the value of this configuration setting.- Overrides:
getValuein classConfigurationSetting- Returns:
- The value of this configuration setting.
-
setValue
Sets the value of this setting.- Overrides:
setValuein classConfigurationSetting- Parameters:
value- The value to associate with this configuration setting.- Returns:
- The updated
SecretReferenceConfigurationSettingobject. - Throws:
IllegalArgumentException- if the setting'svalueis an invalid JSON format.
-
setLabel
Sets the label of this configuration setting.ConfigurationSetting.NO_LABELis the default label used when this value is not set.- Overrides:
setLabelin classConfigurationSetting- Parameters:
label- The label of this configuration setting.- Returns:
- The updated ConfigurationSetting object.
-
setContentType
Sets the content type. By default, the content type is null.- Overrides:
setContentTypein classConfigurationSetting- Parameters:
contentType- The content type of this configuration setting.- Returns:
- The updated ConfigurationSetting object.
-
setETag
Sets the ETag for this configuration setting.- Overrides:
setETagin classConfigurationSetting- Parameters:
etag- The ETag for the configuration setting.- Returns:
- The updated ConfigurationSetting object.
-
setTags
Sets the tags for this configuration setting.- Overrides:
setTagsin classConfigurationSetting- Parameters:
tags- The tags to add to this configuration setting.- Returns:
- The updated ConfigurationSetting object.
-