Class UpdateCertificateRequest.Builder
- java.lang.Object
-
- com.microsoft.azure.keyvault.requests.UpdateCertificateRequest.Builder
-
- Enclosing class:
- UpdateCertificateRequest
public static class UpdateCertificateRequest.Builder extends Object
TheUpdateCertificateRequest
builder.
-
-
Constructor Summary
Constructors Constructor Description Builder(String vaultBaseUrl, String certificateName)
The builder for constructingUpdateCertificateRequest
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateCertificateRequest
build()
builds theUpdateCertificateRequest
object.UpdateCertificateRequest.Builder
withAttributes(Attributes attributes)
Set the attributes value.UpdateCertificateRequest.Builder
withCertificateVersion(String version)
Set the certificate version value.UpdateCertificateRequest.Builder
withPolicy(CertificatePolicy certificatePolicy)
Set the certificatePolicy value.UpdateCertificateRequest.Builder
withTags(Map<String,String> tags)
Set the tags value.
-
-
-
Constructor Detail
-
Builder
public Builder(String vaultBaseUrl, String certificateName)
The builder for constructingUpdateCertificateRequest
object.- Parameters:
vaultBaseUrl
- The vault name, e.g. https://myvault.vault.azure.net.certificateName
- The name of the certificate in the given vault.
-
-
Method Detail
-
withCertificateVersion
public UpdateCertificateRequest.Builder withCertificateVersion(String version)
Set the certificate version value.- Parameters:
version
- The version of the certificate.- Returns:
- the Builder object itself.
-
withPolicy
public UpdateCertificateRequest.Builder withPolicy(CertificatePolicy certificatePolicy)
Set the certificatePolicy value. Mandatory if sending the create request for the first time.- Parameters:
certificatePolicy
- The management policy for the certificate.- Returns:
- the Builder object itself.
-
withAttributes
public UpdateCertificateRequest.Builder withAttributes(Attributes attributes)
Set the attributes value.- Parameters:
attributes
- The attributes of the certificate.- Returns:
- the Builder object itself.
-
withTags
public UpdateCertificateRequest.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 UpdateCertificateRequest build()
builds theUpdateCertificateRequest
object.- Returns:
- the
UpdateCertificateRequest
object.
-
-