Class CapacityManagementPaginators


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20231107")
    public class CapacityManagementPaginators
    extends Object
    Collection of helper methods that can be used to provide an Iterable interface to any list operations of CapacityManagement where multiple pages of data may be fetched.

    Two styles of iteration are supported:

    • Iterating over the Response objects returned by the list operation. These are referred to as ResponseIterators, and the methods are suffixed with ResponseIterator. For example: listUsersResponseIterator
    • Iterating over the resources/records being listed. These are referred to as RecordIterators, and the methods are suffixed with RecordIterator. For example: listUsersRecordIterator

    These iterables abstract away the need to write code to manually handle pagination via looping and using the page tokens. They will automatically fetch more data from the service when required.

    As an example, if we were using the ListUsers operation in IdentityService, then the Iterable returned by calling a ResponseIterator method would iterate over the ListUsersResponse objects returned by each ListUsers call, whereas the Iterable returned by calling a RecordIterator method would iterate over the User records and we don't have to deal with ListUsersResponse objects at all. In either case, pagination will be automatically handled so we can iterate until there are no more responses or no more resources/records available.

    • Constructor Detail

      • CapacityManagementPaginators

        public CapacityManagementPaginators​(CapacityManagement client)
    • Method Detail

      • listInternalNamespaceOccOverviewsResponseIterator

        public Iterable<ListInternalNamespaceOccOverviewsResponse> listInternalNamespaceOccOverviewsResponseIterator​(ListInternalNamespaceOccOverviewsRequest request)
        Creates a new iterable which will iterate over the responses received from the listInternalNamespaceOccOverviews operation.

        This iterable will fetch more data from the server as needed.

        Parameters:
        request - a request which can be sent to the service operation
        Returns:
        an Iterable which can be used to iterate over the responses received from the service.
      • listInternalNamespaceOccOverviewsRecordIterator

        public Iterable<OccOverviewSummary> listInternalNamespaceOccOverviewsRecordIterator​(ListInternalNamespaceOccOverviewsRequest request)
        Creates a new iterable which will iterate over the OccOverviewSummary objects contained in responses from the listInternalNamespaceOccOverviews operation.

        This iterable will fetch more data from the server as needed.

        Parameters:
        request - a request which can be sent to the service operation
        Returns:
        an Iterable which can be used to iterate over the OccOverviewSummary objects contained in responses received from the service.
      • listInternalOccHandoverResourceBlockDetailsResponseIterator

        public Iterable<ListInternalOccHandoverResourceBlockDetailsResponse> listInternalOccHandoverResourceBlockDetailsResponseIterator​(ListInternalOccHandoverResourceBlockDetailsRequest request)
        Creates a new iterable which will iterate over the responses received from the listInternalOccHandoverResourceBlockDetails operation.

        This iterable will fetch more data from the server as needed.

        Parameters:
        request - a request which can be sent to the service operation
        Returns:
        an Iterable which can be used to iterate over the responses received from the service.
      • listInternalOccHandoverResourceBlocksResponseIterator

        public Iterable<ListInternalOccHandoverResourceBlocksResponse> listInternalOccHandoverResourceBlocksResponseIterator​(ListInternalOccHandoverResourceBlocksRequest request)
        Creates a new iterable which will iterate over the responses received from the listInternalOccHandoverResourceBlocks operation.

        This iterable will fetch more data from the server as needed.

        Parameters:
        request - a request which can be sent to the service operation
        Returns:
        an Iterable which can be used to iterate over the responses received from the service.
      • listOccAvailabilitiesResponseIterator

        public Iterable<ListOccAvailabilitiesResponse> listOccAvailabilitiesResponseIterator​(ListOccAvailabilitiesRequest request)
        Creates a new iterable which will iterate over the responses received from the listOccAvailabilities operation.

        This iterable will fetch more data from the server as needed.

        Parameters:
        request - a request which can be sent to the service operation
        Returns:
        an Iterable which can be used to iterate over the responses received from the service.
      • listOccAvailabilitiesRecordIterator

        public Iterable<OccAvailabilitySummary> listOccAvailabilitiesRecordIterator​(ListOccAvailabilitiesRequest request)
        Creates a new iterable which will iterate over the OccAvailabilitySummary objects contained in responses from the listOccAvailabilities operation.

        This iterable will fetch more data from the server as needed.

        Parameters:
        request - a request which can be sent to the service operation
        Returns:
        an Iterable which can be used to iterate over the OccAvailabilitySummary objects contained in responses received from the service.
      • listOccAvailabilityCatalogsResponseIterator

        public Iterable<ListOccAvailabilityCatalogsResponse> listOccAvailabilityCatalogsResponseIterator​(ListOccAvailabilityCatalogsRequest request)
        Creates a new iterable which will iterate over the responses received from the listOccAvailabilityCatalogs operation.

        This iterable will fetch more data from the server as needed.

        Parameters:
        request - a request which can be sent to the service operation
        Returns:
        an Iterable which can be used to iterate over the responses received from the service.
      • listOccAvailabilityCatalogsInternalResponseIterator

        public Iterable<ListOccAvailabilityCatalogsInternalResponse> listOccAvailabilityCatalogsInternalResponseIterator​(ListOccAvailabilityCatalogsInternalRequest request)
        Creates a new iterable which will iterate over the responses received from the listOccAvailabilityCatalogsInternal operation.

        This iterable will fetch more data from the server as needed.

        Parameters:
        request - a request which can be sent to the service operation
        Returns:
        an Iterable which can be used to iterate over the responses received from the service.
      • listOccCapacityRequestsResponseIterator

        public Iterable<ListOccCapacityRequestsResponse> listOccCapacityRequestsResponseIterator​(ListOccCapacityRequestsRequest request)
        Creates a new iterable which will iterate over the responses received from the listOccCapacityRequests operation.

        This iterable will fetch more data from the server as needed.

        Parameters:
        request - a request which can be sent to the service operation
        Returns:
        an Iterable which can be used to iterate over the responses received from the service.
      • listOccCapacityRequestsInternalResponseIterator

        public Iterable<ListOccCapacityRequestsInternalResponse> listOccCapacityRequestsInternalResponseIterator​(ListOccCapacityRequestsInternalRequest request)
        Creates a new iterable which will iterate over the responses received from the listOccCapacityRequestsInternal operation.

        This iterable will fetch more data from the server as needed.

        Parameters:
        request - a request which can be sent to the service operation
        Returns:
        an Iterable which can be used to iterate over the responses received from the service.
      • listOccCustomerGroupsResponseIterator

        public Iterable<ListOccCustomerGroupsResponse> listOccCustomerGroupsResponseIterator​(ListOccCustomerGroupsRequest request)
        Creates a new iterable which will iterate over the responses received from the listOccCustomerGroups operation.

        This iterable will fetch more data from the server as needed.

        Parameters:
        request - a request which can be sent to the service operation
        Returns:
        an Iterable which can be used to iterate over the responses received from the service.
      • listOccCustomerGroupsRecordIterator

        public Iterable<OccCustomerGroupSummary> listOccCustomerGroupsRecordIterator​(ListOccCustomerGroupsRequest request)
        Creates a new iterable which will iterate over the OccCustomerGroupSummary objects contained in responses from the listOccCustomerGroups operation.

        This iterable will fetch more data from the server as needed.

        Parameters:
        request - a request which can be sent to the service operation
        Returns:
        an Iterable which can be used to iterate over the OccCustomerGroupSummary objects contained in responses received from the service.
      • listOccHandoverResourceBlockDetailsResponseIterator

        public Iterable<ListOccHandoverResourceBlockDetailsResponse> listOccHandoverResourceBlockDetailsResponseIterator​(ListOccHandoverResourceBlockDetailsRequest request)
        Creates a new iterable which will iterate over the responses received from the listOccHandoverResourceBlockDetails operation.

        This iterable will fetch more data from the server as needed.

        Parameters:
        request - a request which can be sent to the service operation
        Returns:
        an Iterable which can be used to iterate over the responses received from the service.
      • listOccHandoverResourceBlocksResponseIterator

        public Iterable<ListOccHandoverResourceBlocksResponse> listOccHandoverResourceBlocksResponseIterator​(ListOccHandoverResourceBlocksRequest request)
        Creates a new iterable which will iterate over the responses received from the listOccHandoverResourceBlocks operation.

        This iterable will fetch more data from the server as needed.

        Parameters:
        request - a request which can be sent to the service operation
        Returns:
        an Iterable which can be used to iterate over the responses received from the service.
      • listOccOverviewsResponseIterator

        public Iterable<ListOccOverviewsResponse> listOccOverviewsResponseIterator​(ListOccOverviewsRequest request)
        Creates a new iterable which will iterate over the responses received from the listOccOverviews operation.

        This iterable will fetch more data from the server as needed.

        Parameters:
        request - a request which can be sent to the service operation
        Returns:
        an Iterable which can be used to iterate over the responses received from the service.
      • listOccOverviewsRecordIterator

        public Iterable<OccOverviewSummary> listOccOverviewsRecordIterator​(ListOccOverviewsRequest request)
        Creates a new iterable which will iterate over the OccOverviewSummary objects contained in responses from the listOccOverviews operation.

        This iterable will fetch more data from the server as needed.

        Parameters:
        request - a request which can be sent to the service operation
        Returns:
        an Iterable which can be used to iterate over the OccOverviewSummary objects contained in responses received from the service.