Class CertificateProperties

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

public final class CertificateProperties extends CertificateBaseProperties
Certificate properties.
  • Constructor Details

    • CertificateProperties

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

    • provisioningState

      public CertificateProvisioningState provisioningState()
      Get the provisioningState property: The provisioningState property.
      Returns:
      the provisioningState value.
    • provisioningStateTransitionTime

      public OffsetDateTime provisioningStateTransitionTime()
      Get the provisioningStateTransitionTime property: The time at which the certificate entered its current state.
      Returns:
      the provisioningStateTransitionTime value.
    • previousProvisioningState

      public CertificateProvisioningState previousProvisioningState()
      Get the previousProvisioningState property: The previous provisioned state of the resource.
      Returns:
      the previousProvisioningState value.
    • previousProvisioningStateTransitionTime

      public OffsetDateTime previousProvisioningStateTransitionTime()
      Get the previousProvisioningStateTransitionTime property: The time at which the certificate entered its previous state.
      Returns:
      the previousProvisioningStateTransitionTime value.
    • publicData

      public String publicData()
      Get the publicData property: The public key of the certificate.
      Returns:
      the publicData value.
    • deleteCertificateError

      public DeleteCertificateError deleteCertificateError()
      Get the deleteCertificateError property: This is only returned when the certificate provisioningState is 'Failed'.
      Returns:
      the deleteCertificateError value.
    • withThumbprintAlgorithm

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

      public CertificateProperties withFormat(CertificateFormat format)
      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.