Class CertificateCreateOrUpdateParameters
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.batch.models.CertificateCreateOrUpdateParameters
public final class CertificateCreateOrUpdateParameters
extends com.azure.core.management.ProxyResource
Contains information about a certificate.
-
Constructor Summary
ConstructorDescriptionCreates an instance of CertificateCreateOrUpdateParameters class. -
Method Summary
Modifier and TypeMethodDescriptiondata()
Get the data property: The base64-encoded contents of the certificate.etag()
Get the etag property: The ETag of the resource, used for concurrency statements.format()
Get the format property: The format of the certificate - either Pfx or Cer.password()
Get the password property: The password to access the certificate's private key.Get the thumbprint property: The thumbprint of the certificate.Get the thumbprintAlgorithm property: The algorithm of the certificate thumbprint.void
validate()
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.core.management.ProxyResource
id, name, type
-
Constructor Details
-
CertificateCreateOrUpdateParameters
public CertificateCreateOrUpdateParameters()Creates an instance of CertificateCreateOrUpdateParameters class.
-
-
Method Details
-
etag
Get the etag property: The ETag of the resource, used for concurrency statements.- Returns:
- the etag value.
-
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 CertificateCreateOrUpdateParameters 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 CertificateCreateOrUpdateParameters object itself.
-
thumbprintAlgorithm
Get the thumbprintAlgorithm property: The algorithm of the certificate thumbprint.This must match the first portion of the certificate name. Currently required to be 'SHA1'.
- Returns:
- the thumbprintAlgorithm value.
-
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'.
- Parameters:
thumbprintAlgorithm
- the thumbprintAlgorithm value to set.- Returns:
- the CertificateCreateOrUpdateParameters object itself.
-
thumbprint
Get the thumbprint property: The thumbprint of the certificate.This must match the thumbprint from the name.
- Returns:
- the thumbprint value.
-
withThumbprint
Set the thumbprint property: The thumbprint of the certificate.This must match the thumbprint from the name.
- Parameters:
thumbprint
- the thumbprint value to set.- Returns:
- the CertificateCreateOrUpdateParameters object itself.
-
format
Get the format property: The format of the certificate - either Pfx or Cer. If omitted, the default is Pfx.- Returns:
- the format value.
-
withFormat
Set the format property: The format of the certificate - either Pfx or Cer. If omitted, the default is Pfx.- Parameters:
format
- the format value to set.- Returns:
- the CertificateCreateOrUpdateParameters object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-