Class CreateCertificateRequest.Builder
- java.lang.Object
-
- com.microsoft.azure.keyvault.requests.CreateCertificateRequest.Builder
-
- Enclosing class:
- CreateCertificateRequest
public static class CreateCertificateRequest.Builder extends Object
theCreateCertificateRequest
builder.
-
-
Constructor Summary
Constructors Constructor Description Builder(String vaultBaseUrl, String certificateName)
The builder for constructingCreateCertificateRequest
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateCertificateRequest
build()
builds theCreateCertificateRequest
object.CreateCertificateRequest.Builder
withAttributes(Attributes attributes)
Set the attributes value.CreateCertificateRequest.Builder
withPolicy(CertificatePolicy certificatePolicy)
Set the certificatePolicy value.CreateCertificateRequest.Builder
withTags(Map<String,String> tags)
Set the tags value.
-
-
-
Constructor Detail
-
Builder
public Builder(String vaultBaseUrl, String certificateName)
The builder for constructingCreateCertificateRequest
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
-
withPolicy
public CreateCertificateRequest.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 CreateCertificateRequest.Builder withAttributes(Attributes attributes)
Set the attributes value.- Parameters:
attributes
- The attributes of the certificate.- Returns:
- the Builder object itself.
-
withTags
public CreateCertificateRequest.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 CreateCertificateRequest build()
builds theCreateCertificateRequest
object.- Returns:
- the
CreateCertificateRequest
object.
-
-