Class CertificateCreateOrUpdateProperties
java.lang.Object
com.azure.resourcemanager.batch.models.CertificateBaseProperties
com.azure.resourcemanager.batch.fluent.models.CertificateCreateOrUpdateProperties
Certificate properties for create operations.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CertificateCreateOrUpdateProperties class. -
Method Summary
Modifier and TypeMethodDescriptiondata()Get the data property: The base64-encoded contents of the certificate.password()Get the password property: The password to access the certificate's private key.voidvalidate()Validates the instance.Set the data property: The base64-encoded contents of the certificate.withFormat(CertificateFormat format) Set the format property: The format of the certificate - either Pfx or Cer.withPassword(String password) Set the password property: The password to access the certificate's private key.withThumbprint(String thumbprint) Set the thumbprint property: The thumbprint of the certificate.withThumbprintAlgorithm(String thumbprintAlgorithm) Set the thumbprintAlgorithm property: The algorithm of the certificate thumbprint.Methods inherited from class com.azure.resourcemanager.batch.models.CertificateBaseProperties
format, thumbprint, thumbprintAlgorithm
-
Constructor Details
-
CertificateCreateOrUpdateProperties
public CertificateCreateOrUpdateProperties()Creates an instance of CertificateCreateOrUpdateProperties class.
-
-
Method Details
-
data
Get the data property: The base64-encoded contents of the certificate. The maximum size is 10KB.- Returns:
- the data value.
-
withData
Set the data property: The base64-encoded contents of the certificate. The maximum size is 10KB.- Parameters:
data- the data value to set.- Returns:
- the CertificateCreateOrUpdateProperties object itself.
-
password
Get the password property: The password to access the certificate's private key. This must not be specified if the certificate format is Cer.- Returns:
- the password value.
-
withPassword
Set the password property: The password to access the certificate's private key. This must not be specified if the certificate format is Cer.- Parameters:
password- the password value to set.- Returns:
- the CertificateCreateOrUpdateProperties object itself.
-
withThumbprintAlgorithm
Set the thumbprintAlgorithm property: The algorithm of the certificate thumbprint. This must match the first portion of the certificate name. Currently required to be 'SHA1'.- Overrides:
withThumbprintAlgorithmin classCertificateBaseProperties- Parameters:
thumbprintAlgorithm- the thumbprintAlgorithm value to set.- Returns:
- the CertificateBaseProperties object itself.
-
withThumbprint
Set the thumbprint property: The thumbprint of the certificate. This must match the thumbprint from the name.- Overrides:
withThumbprintin classCertificateBaseProperties- Parameters:
thumbprint- the thumbprint value to set.- Returns:
- the CertificateBaseProperties object itself.
-
withFormat
Set the format property: The format of the certificate - either Pfx or Cer. If omitted, the default is Pfx.- Overrides:
withFormatin classCertificateBaseProperties- Parameters:
format- the format value to set.- Returns:
- the CertificateBaseProperties object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classCertificateBaseProperties- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-