code: public void validate(String resourceGroupName, String location, String workflowName, WorkflowInner workflow) {
          validateWithServiceResponseAsync(resourceGroupName, location, workflowName, workflow).toBlocking().single().body();
      }
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.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws CloudException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent