Class CertificateCreateOrUpdateProperties

java.lang.Object
com.azure.resourcemanager.batch.models.CertificateBaseProperties
com.azure.resourcemanager.batch.fluent.models.CertificateCreateOrUpdateProperties

public final class CertificateCreateOrUpdateProperties extends CertificateBaseProperties
Certificate properties for create operations.
  • Constructor Details

    • CertificateCreateOrUpdateProperties

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

    • 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 CertificateCreateOrUpdateProperties 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 CertificateCreateOrUpdateProperties 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 CertificateCreateOrUpdateProperties object itself.
    • withThumbprintAlgorithm

      public CertificateCreateOrUpdateProperties 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'.

      Overrides:
      withThumbprintAlgorithm in class CertificateBaseProperties
      Parameters:
      thumbprintAlgorithm - the thumbprintAlgorithm value to set.
      Returns:
      the CertificateBaseProperties object itself.
    • withThumbprint

      public CertificateCreateOrUpdateProperties withThumbprint(String thumbprint)
      Set the thumbprint property: The thumbprint of the certificate.

      This must match the thumbprint from the name.

      Overrides:
      withThumbprint in class CertificateBaseProperties
      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:
      withFormat in class CertificateBaseProperties
      Parameters:
      format - the format value to set.
      Returns:
      the CertificateBaseProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class CertificateBaseProperties
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.