code: public TroubleshootingResultInner getTroubleshooting(String resourceGroupName, String networkWatcherName, TroubleshootingParameters parameters) {
          return getTroubleshootingWithServiceResponseAsync(resourceGroupName, networkWatcherName, parameters).toBlocking().last().body();
      }
docs: Initiate troubleshooting on a specified resource.
  
  @param resourceGroupName The name of the resource group.
  @param networkWatcherName The name of the network watcher resource.
  @param parameters Parameters that define the resource to troubleshoot.
  @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
  @return the TroubleshootingResultInner object if successful.