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