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 Details

    • CertificateCreateOrUpdateParameters

      public CertificateCreateOrUpdateParameters()
      Creates an instance of CertificateCreateOrUpdateParameters class.
  • Method Details

    • etag

      public String etag()
      Get the etag property: The ETag of the resource, used for concurrency statements.
      Returns:
      the etag value.
    • data

      public String 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

      public String 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

      public CertificateCreateOrUpdateParameters withPassword(String password)
      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

      public String 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

      public CertificateCreateOrUpdateParameters withThumbprintAlgorithm(String thumbprintAlgorithm)
      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

      public String thumbprint()
      Get the thumbprint property: The thumbprint of the certificate.

      This must match the thumbprint from the name.

      Returns:
      the thumbprint value.
    • withThumbprint

      public CertificateCreateOrUpdateParameters withThumbprint(String thumbprint)
      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

      public CertificateFormat 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.