Class UpdateKeyRequest.Builder
- java.lang.Object
-
- com.microsoft.azure.keyvault.requests.UpdateKeyRequest.Builder
-
- Enclosing class:
- UpdateKeyRequest
public static class UpdateKeyRequest.Builder extends Object
TheUpdateKeyRequestbuilder.
-
-
Constructor Summary
Constructors Constructor Description Builder(String keyIdentifier)The builder for constructingUpdateKeyRequestobject.Builder(String vaultBaseUrl, String keyName)The builder for constructingUpdateKeyRequestobject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateKeyRequestbuild()builds theUpdateKeyRequestobject.UpdateKeyRequest.BuilderwithAttributes(Attributes attributes)Set the key attributes value.UpdateKeyRequest.BuilderwithKeyOperations(List<JsonWebKeyOperation> keyOperations)Set the key operations value.UpdateKeyRequest.BuilderwithTags(Map<String,String> tags)Set the tags value.UpdateKeyRequest.BuilderwithVersion(String keyVersion)Set the key version value.
-
-
-
Constructor Detail
-
Builder
public Builder(String vaultBaseUrl, String keyName)
The builder for constructingUpdateKeyRequestobject.- Parameters:
vaultBaseUrl- The vault name, e.g. https://myvault.vault.azure.net.keyName- The name of the key in the given vault.
-
Builder
public Builder(String keyIdentifier)
The builder for constructingUpdateKeyRequestobject.- Parameters:
keyIdentifier- The key identifier, e.g. https://{vault-name}.vault.azure.net/keys/{key-name}/{key- version}.
-
-
Method Detail
-
withVersion
public UpdateKeyRequest.Builder withVersion(String keyVersion)
Set the key version value.- Parameters:
keyVersion- the key version.- Returns:
- the Builder object itself.
-
withKeyOperations
public UpdateKeyRequest.Builder withKeyOperations(List<JsonWebKeyOperation> keyOperations)
Set the key operations value.- Parameters:
keyOperations- the key operation list- Returns:
- the Builder object itself.
-
withAttributes
public UpdateKeyRequest.Builder withAttributes(Attributes attributes)
Set the key attributes value.- Parameters:
attributes- the key management attributes value to set- Returns:
- the Builder object itself.
-
withTags
public UpdateKeyRequest.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 UpdateKeyRequest build()
builds theUpdateKeyRequestobject.- Returns:
- the
UpdateKeyRequestobject.
-
-