Class ResourceAliasesForInstancePager


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

      • ResourceAliasesForInstancePager

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

      • hasNext

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

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

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