code: public AppServiceCertificateResourceInner createOrUpdateCertificate(String resourceGroupName, String certificateOrderName, String name, AppServiceCertificateResourceInner keyVaultCertificate) {
          return createOrUpdateCertificateWithServiceResponseAsync(resourceGroupName, certificateOrderName, name, keyVaultCertificate).toBlocking().last().body();
      }
docs: Creates or updates a certificate and associates with key vault secret.
  Creates or updates a certificate and associates with key vault secret.
  
  @param resourceGroupName Name of the resource group to which the resource belongs.
  @param certificateOrderName Name of the certificate order.
  @param name Name of the certificate.
  @param keyVaultCertificate Key vault certificate resource Id.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws DefaultErrorResponseException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the AppServiceCertificateResourceInner object if successful.