public PagedList<ManagedInstanceKeyInner> listByInstance(final String resourceGroupName, final String managedInstanceName, final String filter) {
        ServiceResponse<Page<ManagedInstanceKeyInner>> response = listByInstanceSinglePageAsync(resourceGroupName, managedInstanceName, filter).toBlocking().single();
        return new PagedList<ManagedInstanceKeyInner>(response.body()) {
            @Override
            public Page<ManagedInstanceKeyInner> nextPage(String nextPageLink) {
                return listByInstanceNextSinglePageAsync(nextPageLink).toBlocking().single().body();
            }
        };
    }
public PagedList < ManagedInstanceKeyInner > listByInstance ( final String resourceGroupName , final String managedInstanceName , final String filter ) { ServiceResponse < Page < ManagedInstanceKeyInner > > response = listByInstanceSinglePageAsync ( resourceGroupName , managedInstanceName , filter ) . toBlocking ( ) . single ( ) ; return new PagedList < ManagedInstanceKeyInner > ( response . body ( ) ) { @ Override public Page < ManagedInstanceKeyInner > nextPage ( String nextPageLink ) { return listByInstanceNextSinglePageAsync ( nextPageLink ) . toBlocking ( ) . single ( ) . body ( ) ; } } ; }
Gets a list of managed instance keys.

@param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
@param managedInstanceName The name of the managed instance.
@param filter An OData filter expression that filters elements in the collection.
@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 PagedList&lt;ManagedInstanceKeyInner&gt; object if successful.