Class SecretReferenceConfigurationSetting
java.lang.Object
com.azure.data.appconfiguration.models.ConfigurationSetting
com.azure.data.appconfiguration.models.SecretReferenceConfigurationSetting
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
ConstructorDescriptionSecretReferenceConfigurationSetting
(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.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
getContentType, getETag, getKey, getLabel, getLastModified, getTags, getValue, isReadOnly, 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.
-
setSecretId
Set the secret ID value of this configuration setting.- Parameters:
secretId
- the secret ID value of this configuration setting.- Returns:
- The updated
SecretReferenceConfigurationSetting
object. - Throws:
IllegalArgumentException
- if the setting'svalue
is an invalid JSON format.
-
setKey
Sets the key of this setting.- Overrides:
setKey
in classConfigurationSetting
- Parameters:
key
- The key to associate with this configuration setting.- Returns:
- The updated
FeatureFlagConfigurationSetting
object.
-
setValue
Sets the value of this setting.- Overrides:
setValue
in classConfigurationSetting
- Parameters:
value
- The value to associate with this configuration setting.- Returns:
- The updated
SecretReferenceConfigurationSetting
object. - Throws:
IllegalArgumentException
- if the setting'svalue
is an invalid JSON format.
-
setLabel
Sets the label of this configuration setting.ConfigurationSetting.NO_LABEL
is the default label used when this value is not set.- Overrides:
setLabel
in 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:
setContentType
in classConfigurationSetting
- Parameters:
contentType
- The content type of this configuration setting.- Returns:
- The updated ConfigurationSetting object.
-
setETag
Sets the ETag for this configuration setting.- Overrides:
setETag
in classConfigurationSetting
- Parameters:
etag
- The ETag for the configuration setting.- Returns:
- The updated ConfigurationSetting object.
-
setTags
Sets the tags for this configuration setting.- Overrides:
setTags
in classConfigurationSetting
- Parameters:
tags
- The tags to add to this configuration setting.- Returns:
- The updated ConfigurationSetting object.
-