public class StructureVariablesPageIterator extends Object implements PageIterator<StructureResource>
DEFAULT_PAGE_NUMBER, DEFAULT_PAGE_SIZE| Modifier | Constructor and Description |
|---|---|
protected |
StructureVariablesPageIterator(AssetStructureClient structureClient,
String id,
Integer pageNumber,
Integer pageSize) |
| Modifier and Type | Method and Description |
|---|---|
static StructureVariablesPageIterator |
getInstance(AssetStructureClient structureClient,
String id)
Returns an StructureVariablesPageIterator instance initialized with the structureClient
|
static StructureVariablesPageIterator |
getInstance(AssetStructureClient structureClient,
String id,
Integer pageSize)
Returns an StructureVariablesPageIterator instance initialized with the structureClient
|
static StructureVariablesPageIterator |
getInstance(AssetStructureClient structureClient,
String id,
Integer pageSize,
Integer pageNumber)
Returns an StructureVariablesPageIterator instance initialized with the structureClient
|
StructureVariables |
getPage(int pageNumber)
Returns the Structure Variables at a requested page number
|
StructureVariables |
next()
Returns the next page of Structure Variables
|
StructureVariables |
previous()
Returns the previous page of Structure Variables
|
protected StructureVariablesPageIterator(AssetStructureClient structureClient, String id, Integer pageNumber, Integer pageSize) throws MindsphereClientException
MindsphereClientExceptionpublic static StructureVariablesPageIterator getInstance(AssetStructureClient structureClient, String id, Integer pageSize, Integer pageNumber) throws MindsphereClientException
structureClient - structureClient that will be used to make API calls to fetch the structure variablespageSize - number of records that should be available in each page. Default is 2000pageNumber - Page number to be fetched. Default is -1id - Unique identifierMindsphereClientException - thrown if an error occurs while creating an instance with invalid page sizepublic static StructureVariablesPageIterator getInstance(AssetStructureClient structureClient, String id, Integer pageSize) throws MindsphereClientException
structureClient - structureClient that will be used to make API calls to fetch the structure variablespageSize - number of records that should be available in each page. Default is 2000id - Unique identifierMindsphereClientException - thrown if an error occurs while creating an instance with invalid page sizepublic static StructureVariablesPageIterator getInstance(AssetStructureClient structureClient, String id) throws MindsphereClientException
structureClient - structureClient that will be used to make API calls to fetch the structure variablesid - Unique identifierMindsphereClientException - thrown if an error occurs while creating an instancepublic StructureVariables next() throws MindsphereException
next in interface PageIterator<StructureResource>MindsphereException - thrown if an error occurs while attempting to invoke the APIpublic StructureVariables previous() throws MindsphereException
previous in interface PageIterator<StructureResource>MindsphereException - thrown if an error occurs while attempting to invoke the APIpublic StructureVariables getPage(int pageNumber) throws MindsphereException
getPage in interface PageIterator<StructureResource>MindsphereException - thrown if an error occurs while attempting to invoke the API