Package com.ibm.cloud.is.vpc.v1.model
Class BareMetalServerProfilesPager
- java.lang.Object
-
- com.ibm.cloud.is.vpc.v1.model.BareMetalServerProfilesPager
-
public class BareMetalServerProfilesPager extends Object
BareMetalServerProfilesPager can be used to simplify the use of the "listBareMetalServerProfiles" method.
-
-
Constructor Summary
Constructors Constructor Description BareMetalServerProfilesPager(Vpc client, ListBareMetalServerProfilesOptions options)
Constructs a new BareMetalServerProfilesPager instance with the specified client and options model instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<BareMetalServerProfile>
getAll()
Returns all results by invoking getNext() repeatedly until all pages of results have been retrieved.List<BareMetalServerProfile>
getNext()
Returns the next page of results.boolean
hasNext()
Returns true if there are more results to be retrieved.
-
-
-
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" methodoptions
- 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
-
-