Class ImportCertificateRequest.Builder
- java.lang.Object
-
- com.microsoft.azure.keyvault.requests.ImportCertificateRequest.Builder
-
- Enclosing class:
- ImportCertificateRequest
public static class ImportCertificateRequest.Builder extends Object
theImportCertificateRequest
builder.
-
-
Constructor Summary
Constructors Constructor Description Builder(String vaultBaseUrl, String certificateName, String base64EncodedCertificate)
The builder for constructingImportCertificateRequest
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImportCertificateRequest
build()
builds theImportCertificateRequest
object.ImportCertificateRequest.Builder
withAttributes(Attributes attributes)
Set the certificate attributes.ImportCertificateRequest.Builder
withPassword(String password)
Set the password.ImportCertificateRequest.Builder
withPolicy(CertificatePolicy policy)
Set the certificate policy.ImportCertificateRequest.Builder
withTags(Map<String,String> tags)
Set the tags value.
-
-
-
Constructor Detail
-
Builder
public Builder(String vaultBaseUrl, String certificateName, String base64EncodedCertificate)
The builder for constructingImportCertificateRequest
object.- Parameters:
vaultBaseUrl
- The vault name, e.g. https://myvault.vault.azure.netcertificateName
- The name of the certificate in the given vaultbase64EncodedCertificate
- Base64 encoded representation of the certificate object to import. This certificate needs to contain the private key.
-
-
Method Detail
-
withPassword
public ImportCertificateRequest.Builder withPassword(String password)
Set the password.- Parameters:
password
- If the private key in base64EncodedCertificate is encrypted, the password used for encryption.- Returns:
- the Builder object itself.
-
withPolicy
public ImportCertificateRequest.Builder withPolicy(CertificatePolicy policy)
Set the certificate policy.- Parameters:
policy
- The management policy for the certificate.- Returns:
- the Builder object itself.
-
withAttributes
public ImportCertificateRequest.Builder withAttributes(Attributes attributes)
Set the certificate attributes.- Parameters:
attributes
- The attributes of the certificate.- Returns:
- the Builder object itself.
-
withTags
public ImportCertificateRequest.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 ImportCertificateRequest build()
builds theImportCertificateRequest
object.- Returns:
- the
ImportCertificateRequest
object.
-
-