public RecommendationRuleInner getRuleDetailsByWebApp(String resourceGroupName, String siteName, String name, Boolean updateSeen, String recommendationId) {
        return getRuleDetailsByWebAppWithServiceResponseAsync(resourceGroupName, siteName, name, updateSeen, recommendationId).toBlocking().single().body();
    }
public RecommendationRuleInner getRuleDetailsByWebApp ( String resourceGroupName , String siteName , String name , Boolean updateSeen , String recommendationId ) { return getRuleDetailsByWebAppWithServiceResponseAsync ( resourceGroupName , siteName , name , updateSeen , recommendationId ) . toBlocking ( ) . single ( ) . body ( ) ; }
Get a recommendation rule for an app.
Get a recommendation rule for an app.

@param resourceGroupName Name of the resource group to which the resource belongs.
@param siteName Name of the app.
@param name Name of the recommendation.
@param updateSeen Specify &lt;code&gt;true&lt;/code&gt; to update the last-seen timestamp of the recommendation object.
@param recommendationId The GUID of the recommedation object if you query an expired one. You don't need to specify it to query an active entry.
@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 RecommendationRuleInner object if successful.