Class ResourceKeysForInstancePager


  • public class ResourceKeysForInstancePager
    extends java.lang.Object
    ResourceKeysForInstancePager can be used to simplify the use of the "listResourceKeysForInstance" method.
    • Constructor Detail

      • ResourceKeysForInstancePager

        public ResourceKeysForInstancePager​(ResourceController client,
                                            ListResourceKeysForInstanceOptions options)
        Constructs a new ResourceKeysForInstancePager instance with the specified client and options model instance.
        Parameters:
        client - the ResourceController instance to be used to invoke the "listResourceKeysForInstance" method
        options - the ListResourceKeysForInstanceOptions instance to be used to invoke the "listResourceKeysForInstance" method
    • Method Detail

      • hasNext

        public boolean hasNext()
        Returns true if there are more results to be retrieved.
        Returns:
        boolean
      • getNext

        public java.util.List<ResourceKey> getNext()
        Returns the next page of results.
        Returns:
        a List<ResourceKey> that contains the next page of results
      • getAll

        public java.util.List<ResourceKey> getAll()
        Returns all results by invoking getNext() repeatedly until all pages of results have been retrieved.
        Returns:
        a List<ResourceKey> containing all results returned by the "listResourceKeysForInstance" method