Class BareMetalServerProfilesPager


  • public class BareMetalServerProfilesPager
    extends Object
    BareMetalServerProfilesPager can be used to simplify the use of the "listBareMetalServerProfiles" method.
    • Constructor Detail

      • BareMetalServerProfilesPager

        public BareMetalServerProfilesPager​(Vpc client,
                                            ListBareMetalServerProfilesOptions options)
        Constructs a new BareMetalServerProfilesPager instance with the specified client and options model instance.
        Parameters:
        client - the Vpc instance to be used to invoke the "listBareMetalServerProfiles" method
        options - the ListBareMetalServerProfilesOptions instance to be used to invoke the "listBareMetalServerProfiles" method
    • Method Detail

      • hasNext

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

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

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