code: public void cancelDeleteCertificate(String thumbprintAlgorithm, String thumbprint, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException {
          CertificateCancelDeletionOptions options = new CertificateCancelDeletionOptions();
          BehaviorManager bhMgr = new BehaviorManager(this.customBehaviors(), additionalBehaviors);
          bhMgr.applyRequestBehaviors(options);
  
          this.parentBatchClient.protocolLayer().certificates().cancelDeletion(thumbprintAlgorithm, thumbprint, options);
      }
docs: Cancels a failed deletion of the specified certificate. This operation can be performed only when
  the certificate is in the {@link com.microsoft.azure.batch.protocol.models.CertificateState#DELETE_FAILED Delete Failed} state, and restores
  the certificate to the {@link com.microsoft.azure.batch.protocol.models.CertificateState#ACTIVE Active} state.
  
  @param thumbprintAlgorithm The algorithm used to derive the thumbprint parameter. This must be sha1.
  @param thumbprint The thumbprint of the certificate that failed to delete.
  @param additionalBehaviors A collection of {@link BatchClientBehavior} instances that are applied to the Batch service request.
  @throws BatchErrorException Exception thrown when an error response is received from the Batch service.
  @throws IOException Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.