code: public ConnectionInner createOrUpdate(String resourceGroupName, String automationAccountName, String connectionName, ConnectionCreateOrUpdateParameters parameters) {
          return createOrUpdateWithServiceResponseAsync(resourceGroupName, automationAccountName, connectionName, parameters).toBlocking().single().body();
      }
docs: Create or update a connection.
  
  @param resourceGroupName Name of an Azure Resource group.
  @param automationAccountName The name of the automation account.
  @param connectionName The parameters supplied to the create or update connection operation.
  @param parameters The parameters supplied to the create or update connection operation.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws ErrorResponseException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the ConnectionInner object if successful.