public List<ApplicationInsightsComponentFavoriteInner> list(String resourceGroupName, String resourceName) {
        return listWithServiceResponseAsync(resourceGroupName, resourceName).toBlocking().single().body();
    }
public List < ApplicationInsightsComponentFavoriteInner > list ( String resourceGroupName , String resourceName ) { return listWithServiceResponseAsync ( resourceGroupName , resourceName ) . toBlocking ( ) . single ( ) . body ( ) ; }
Gets a list of favorites defined within an Application Insights component.

@param resourceGroupName The name of the resource group.
@param resourceName The name of the Application Insights component resource.
@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 List&lt;ApplicationInsightsComponentFavoriteInner&gt; object if successful.