code: public HostingEnvironmentDiagnosticsInner getDiagnosticsItem(String resourceGroupName, String name, String diagnosticsName) {
          return getDiagnosticsItemWithServiceResponseAsync(resourceGroupName, name, diagnosticsName).toBlocking().single().body();
      }
docs: Get a diagnostics item for an App Service Environment.
  Get a diagnostics item for an App Service Environment.
  
  @param resourceGroupName Name of the resource group to which the resource belongs.
  @param name Name of the App Service Environment.
  @param diagnosticsName Name of the diagnostics item.
  @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 HostingEnvironmentDiagnosticsInner object if successful.