public static class UpdateSecretRequest.Builder extends Object
UpdateSecretRequest builder.| Constructor and Description |
|---|
Builder(String secretId)
The builder for constructing
UpdateSecretRequest object. |
Builder(String vaultBaseUrl,
String secretName)
The builder for constructing
UpdateSecretRequest object. |
| Modifier and Type | Method and Description |
|---|---|
UpdateSecretRequest |
build()
builds the
UpdateSecretRequest 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.
|
public Builder(String vaultBaseUrl, String secretName)
UpdateSecretRequest object.vaultBaseUrl - The vault name, e.g. https://myvault.vault.azure.net.secretName - The name of the secret in the given vault.public Builder(String secretId)
UpdateSecretRequest object.secretId - The secret identifier, e.g.
https://{vault-name}.vault.azure.net/secrets/{secret-name}
/{ secret-version}.public UpdateSecretRequest.Builder withVersion(String version)
version - the secret version.public UpdateSecretRequest.Builder withContentType(String contentType)
contentType - Type of the secret value such as a password.public UpdateSecretRequest.Builder withAttributes(Attributes attributes)
attributes - The secret management attributes.public UpdateSecretRequest.Builder withTags(Map<String,String> tags)
tags - Application-specific metadata in the form of key-value
pairs.public UpdateSecretRequest build()
UpdateSecretRequest object.UpdateSecretRequest object./**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/