public PagedList<DetectorDefinitionInner> listSiteDetectorsSlot(final String resourceGroupName, final String siteName, final String diagnosticCategory, final String slot) {
        ServiceResponse<Page<DetectorDefinitionInner>> response = listSiteDetectorsSlotSinglePageAsync(resourceGroupName, siteName, diagnosticCategory, slot).toBlocking().single();
        return new PagedList<DetectorDefinitionInner>(response.body()) {
            @Override
            public Page<DetectorDefinitionInner> nextPage(String nextPageLink) {
                return listSiteDetectorsSlotNextSinglePageAsync(nextPageLink).toBlocking().single().body();
            }
        };
    }
public PagedList < DetectorDefinitionInner > listSiteDetectorsSlot ( final String resourceGroupName , final String siteName , final String diagnosticCategory , final String slot ) { ServiceResponse < Page < DetectorDefinitionInner > > response = listSiteDetectorsSlotSinglePageAsync ( resourceGroupName , siteName , diagnosticCategory , slot ) . toBlocking ( ) . single ( ) ; return new PagedList < DetectorDefinitionInner > ( response . body ( ) ) { @ Override public Page < DetectorDefinitionInner > nextPage ( String nextPageLink ) { return listSiteDetectorsSlotNextSinglePageAsync ( nextPageLink ) . toBlocking ( ) . single ( ) . body ( ) ; } } ; }
Get Detectors.
Get Detectors.

@param resourceGroupName Name of the resource group to which the resource belongs.
@param siteName Site Name
@param diagnosticCategory Diagnostic Category
@param slot Slot Name
@throws IllegalArgumentException thrown if parameters fail the validation
@throws DefaultErrorResponseException thrown if the request is rejected by server
@throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
@return the PagedList&lt;DetectorDefinitionInner&gt; object if successful.