code: public void beginStop(String resourceGroupName, String accountName, String liveEventName, Boolean removeOutputsOnStop) {
          beginStopWithServiceResponseAsync(resourceGroupName, accountName, liveEventName, removeOutputsOnStop).toBlocking().single().body();
      }
docs: Stop Live Event.
  Stops an existing Live Event.
  
  @param resourceGroupName The name of the resource group within the Azure subscription.
  @param accountName The Media Services account name.
  @param liveEventName The name of the Live Event.
  @param removeOutputsOnStop The flag indicates if remove LiveOutputs on Stop.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws ApiErrorException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent