code: public ServiceFuture<List<DetectorDefinitionInner>> getSiteDetectorSlotAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory, final String detectorName, final String slot, final ListOperationCallback<DetectorDefinitionInner> serviceCallback) {
          return AzureServiceFuture.fromPageResponse(
              getSiteDetectorSlotSinglePageAsync(resourceGroupName, siteName, diagnosticCategory, detectorName, slot),
              new Func1<String, Observable<ServiceResponse<Page<DetectorDefinitionInner>>>>() {
                  @Override
                  public Observable<ServiceResponse<Page<DetectorDefinitionInner>>> call(String nextPageLink) {
                      return getSiteDetectorSlotNextSinglePageAsync(nextPageLink);
                  }
              },
              serviceCallback);
      }
docs: Get Detector.
  Get Detector.
  
  @param resourceGroupName Name of the resource group to which the resource belongs.
  @param siteName Site Name
  @param diagnosticCategory Diagnostic Category
  @param detectorName Detector Name
  @param slot Slot Name
  @param serviceCallback the async ServiceCallback to handle successful and failed responses.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the {@link ServiceFuture} object