Class SetSecretRequest.Builder
- java.lang.Object
-
- com.microsoft.azure.keyvault.requests.SetSecretRequest.Builder
-
- Enclosing class:
- SetSecretRequest
public static class SetSecretRequest.Builder extends Object
TheSetSecretRequestbuilder.
-
-
Constructor Summary
Constructors Constructor Description Builder(String vaultBaseUrl, String secretName, String value)The builder for constructingSetSecretRequestobject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SetSecretRequestbuild()builds theSetSecretRequestobject.SetSecretRequest.BuilderwithAttributes(Attributes attributes)Set the attributes value.SetSecretRequest.BuilderwithContentType(String contentType)Set the content type value.SetSecretRequest.BuilderwithTags(Map<String,String> tags)Set the tags value.
-
-
-
Constructor Detail
-
Builder
public Builder(String vaultBaseUrl, String secretName, String value)
The builder for constructingSetSecretRequestobject.- Parameters:
vaultBaseUrl- The vault name, e.g. https://myvault.vault.azure.netsecretName- The name of the secret in the given vaultvalue- The value of the secret
-
-
Method Detail
-
withContentType
public SetSecretRequest.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 SetSecretRequest.Builder withAttributes(Attributes attributes)
Set the attributes value.- Parameters:
attributes- The secret management attributes.- Returns:
- the Builder object itself.
-
withTags
public SetSecretRequest.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 SetSecretRequest build()
builds theSetSecretRequestobject.- Returns:
- the
SetSecretRequestobject.
-
-