code: public ApplicationInsightsComponentFavoriteInner add(String resourceGroupName, String resourceName, String favoriteId, ApplicationInsightsComponentFavoriteInner favoriteProperties) {
          return addWithServiceResponseAsync(resourceGroupName, resourceName, favoriteId, favoriteProperties).toBlocking().single().body();
      }
docs: Adds a new favorites to an Application Insights component.
  
  @param resourceGroupName The name of the resource group.
  @param resourceName The name of the Application Insights component resource.
  @param favoriteId The Id of a specific favorite defined in the Application Insights component
  @param favoriteProperties Properties that need to be specified to create a new favorite and add it to an Application Insights component.
  @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 ApplicationInsightsComponentFavoriteInner object if successful.