次の方法で共有


SecretReferenceConfigurationSetting Class

public final class SecretReferenceConfigurationSetting
extends ConfigurationSetting

SecretReferenceConfigurationSetting model. It represents a configuration setting that references as KeyVault secret.

Constructor Summary

Constructor Description
SecretReferenceConfigurationSetting(String key, String secretId)

The constructor for a secret reference configuration setting.

Method Summary

Modifier and Type Method and Description
String getSecretId()

Get the secret ID value of this configuration setting.

String getValue()

Gets the value of this configuration setting.

SecretReferenceConfigurationSetting setContentType(String contentType)

Sets the content type.

SecretReferenceConfigurationSetting setETag(String etag)

Sets the ETag for this configuration setting.

SecretReferenceConfigurationSetting setKey(String key)

Sets the key of this setting.

SecretReferenceConfigurationSetting setLabel(String label)

Sets the label of this configuration setting.

SecretReferenceConfigurationSetting setSecretId(String secretId)

Set the secret ID value of this configuration setting.

SecretReferenceConfigurationSetting setTags(Map<String,String> tags)

Sets the tags for this configuration setting.

SecretReferenceConfigurationSetting setValue(String value)

Sets the value of this setting.

Methods inherited from ConfigurationSetting

Methods inherited from java.lang.Object

Constructor Details

SecretReferenceConfigurationSetting

public SecretReferenceConfigurationSetting(String key, String secretId)

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

public String getSecretId()

Get the secret ID value of this configuration setting.

Returns:

the secret ID value of this configuration setting.

getValue

public String getValue()

Gets the value of this configuration setting.

Overrides:

SecretReferenceConfigurationSetting.getValue()

setContentType

public SecretReferenceConfigurationSetting setContentType(String contentType)

Sets the content type. By default, the content type is null.

Overrides:

SecretReferenceConfigurationSetting.setContentType(String contentType)

Parameters:

contentType - The content type of this configuration setting.

Returns:

The updated ConfigurationSetting object.

setETag

public SecretReferenceConfigurationSetting setETag(String etag)

Sets the ETag for this configuration setting.

Overrides:

SecretReferenceConfigurationSetting.setETag(String etag)

Parameters:

etag - The ETag for the configuration setting.

Returns:

The updated ConfigurationSetting object.

setKey

public SecretReferenceConfigurationSetting setKey(String key)

Sets the key of this setting.

Overrides:

SecretReferenceConfigurationSetting.setKey(String key)

Parameters:

key - The key to associate with this configuration setting.

Returns:

setLabel

public SecretReferenceConfigurationSetting setLabel(String label)

Sets the label of this configuration setting. #NO_LABEL is the default label used when this value is not set.

Overrides:

SecretReferenceConfigurationSetting.setLabel(String label)

Parameters:

label - The label of this configuration setting.

Returns:

The updated ConfigurationSetting object.

setSecretId

public SecretReferenceConfigurationSetting setSecretId(String secretId)

Set the secret ID value of this configuration setting.

Parameters:

secretId - the secret ID value of this configuration setting.

Returns:

setTags

public SecretReferenceConfigurationSetting setTags(Map tags)

Sets the tags for this configuration setting.

Overrides:

SecretReferenceConfigurationSetting.setTags(Map<String,String> tags)

Parameters:

tags - The tags to add to this configuration setting.

Returns:

The updated ConfigurationSetting object.

setValue

public SecretReferenceConfigurationSetting setValue(String value)

Sets the value of this setting.

Overrides:

SecretReferenceConfigurationSetting.setValue(String value)

Parameters:

value - The value to associate with this configuration setting.

Returns:

Applies to