Class UpdateSecretRequest.Builder
- java.lang.Object
-
- com.microsoft.azure.keyvault.requests.UpdateSecretRequest.Builder
-
- Enclosing class:
- UpdateSecretRequest
public static class UpdateSecretRequest.Builder extends Object
TheUpdateSecretRequest
builder.
-
-
Constructor Summary
Constructors Constructor Description Builder(String secretId)
The builder for constructingUpdateSecretRequest
object.Builder(String vaultBaseUrl, String secretName)
The builder for constructingUpdateSecretRequest
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateSecretRequest
build()
builds theUpdateSecretRequest
object.UpdateSecretRequest.Builder
withAttributes(Attributes attributes)
Set the attributes value.UpdateSecretRequest.Builder
withContentType(String contentType)
Set the content type value.UpdateSecretRequest.Builder
withTags(Map<String,String> tags)
Set the tags value.UpdateSecretRequest.Builder
withVersion(String version)
Sets the secret version.
-
-
-
Constructor Detail
-
Builder
public Builder(String vaultBaseUrl, String secretName)
The builder for constructingUpdateSecretRequest
object.- 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 constructingUpdateSecretRequest
object.- 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 theUpdateSecretRequest
object.- Returns:
- the
UpdateSecretRequest
object.
-
-