Class UpdateSecretRequest.Builder
- java.lang.Object
-
- com.microsoft.azure.keyvault.requests.UpdateSecretRequest.Builder
-
- Enclosing class:
- UpdateSecretRequest
public static class UpdateSecretRequest.Builder extends Object
TheUpdateSecretRequestbuilder.
-
-
Constructor Summary
Constructors Constructor Description Builder(String secretId)The builder for constructingUpdateSecretRequestobject.Builder(String vaultBaseUrl, String secretName)The builder for constructingUpdateSecretRequestobject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateSecretRequestbuild()builds theUpdateSecretRequestobject.UpdateSecretRequest.BuilderwithAttributes(Attributes attributes)Set the attributes value.UpdateSecretRequest.BuilderwithContentType(String contentType)Set the content type value.UpdateSecretRequest.BuilderwithTags(Map<String,String> tags)Set the tags value.UpdateSecretRequest.BuilderwithVersion(String version)Sets the secret version.
-
-
-
Constructor Detail
-
Builder
public Builder(String vaultBaseUrl, String secretName)
The builder for constructingUpdateSecretRequestobject.- Parameters:
vaultBaseUrl- The vault name, e.g. https://myvault.vault.azure.net.secretName- The name of the secret in the given vault.
-
Builder
public Builder(String secretId)
The builder for constructingUpdateSecretRequestobject.- Parameters:
secretId- The secret identifier, e.g. https://{vault-name}.vault.azure.net/secrets/{secret-name} /{ secret-version}.
-
-
Method Detail
-
withVersion
public UpdateSecretRequest.Builder withVersion(String version)
Sets the secret version.- Parameters:
version- the secret version.- Returns:
- the Builder object itself.
-
withContentType
public UpdateSecretRequest.Builder withContentType(String contentType)
Set the content type value.- Parameters:
contentType- Type of the secret value such as a password.- Returns:
- the Builder object itself.
-
withAttributes
public UpdateSecretRequest.Builder withAttributes(Attributes attributes)
Set the attributes value.- Parameters:
attributes- The secret management attributes.- Returns:
- the Builder object itself.
-
withTags
public UpdateSecretRequest.Builder withTags(Map<String,String> tags)
Set the tags value.- Parameters:
tags- Application-specific metadata in the form of key-value pairs.- Returns:
- the Builder object itself.
-
build
public UpdateSecretRequest build()
builds theUpdateSecretRequestobject.- Returns:
- the
UpdateSecretRequestobject.
-
-