code: public ServiceFuture<Void> validateAsync(String resourceGroupName, String location, String workflowName, WorkflowInner workflow, final ServiceCallback<Void> serviceCallback) {
          return ServiceFuture.fromResponse(validateWithServiceResponseAsync(resourceGroupName, location, workflowName, workflow), serviceCallback);
      }
docs: Validates the workflow definition.
  
  @param resourceGroupName The resource group name.
  @param location The workflow location.
  @param workflowName The workflow name.
  @param workflow The workflow definition.
  @param serviceCallback the async ServiceCallback to handle successful and failed responses.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the {@link ServiceFuture} object