All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.oracle.bmc.database.DatabasePaginators Maven / Gradle / Ivy

Go to download

This project contains the SDK used for Oracle Cloud Infrastructure Database Service

The newest version!
/**
 * Copyright (c) 2016, 2024, Oracle and/or its affiliates.  All rights reserved.
 * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
 */
package com.oracle.bmc.database;

import com.oracle.bmc.database.requests.*;
import com.oracle.bmc.database.responses.*;

/**
 * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface
 * to any list operations of Database 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 {@link * java.lang.Iterable} returned by calling a ResponseIterator method would iterate over the * ListUsersResponse objects returned by each ListUsers call, whereas the {@link java.lang.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. */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") public class DatabasePaginators { private final Database client; public DatabasePaginators(Database client) { this.client = client; } /** * Creates a new iterable which will iterate over the responses received from the * listApplicationVips operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listApplicationVipsResponseIterator( final ListApplicationVipsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListApplicationVipsRequest.Builder, ListApplicationVipsRequest, ListApplicationVipsResponse>( new java.util.function.Supplier() { @Override public ListApplicationVipsRequest.Builder get() { return ListApplicationVipsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListApplicationVipsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListApplicationVipsRequest.Builder>, ListApplicationVipsRequest>() { @Override public ListApplicationVipsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListApplicationVipsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListApplicationVipsRequest, ListApplicationVipsResponse>() { @Override public ListApplicationVipsResponse apply(ListApplicationVipsRequest request) { return client.listApplicationVips(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.ApplicationVipSummary} objects contained in responses from the * listApplicationVips operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.ApplicationVipSummary} objects contained in responses * received from the service. */ public Iterable listApplicationVipsRecordIterator(final ListApplicationVipsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListApplicationVipsRequest.Builder, ListApplicationVipsRequest, ListApplicationVipsResponse, com.oracle.bmc.database.model.ApplicationVipSummary>( new java.util.function.Supplier() { @Override public ListApplicationVipsRequest.Builder get() { return ListApplicationVipsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListApplicationVipsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListApplicationVipsRequest.Builder>, ListApplicationVipsRequest>() { @Override public ListApplicationVipsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListApplicationVipsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListApplicationVipsRequest, ListApplicationVipsResponse>() { @Override public ListApplicationVipsResponse apply(ListApplicationVipsRequest request) { return client.listApplicationVips(request); } }, new java.util.function.Function< ListApplicationVipsResponse, java.util.List>() { @Override public java.util.List apply(ListApplicationVipsResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listAutonomousContainerDatabaseDataguardAssociations operation. This iterable will fetch more * data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listAutonomousContainerDatabaseDataguardAssociationsResponseIterator( final ListAutonomousContainerDatabaseDataguardAssociationsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListAutonomousContainerDatabaseDataguardAssociationsRequest.Builder, ListAutonomousContainerDatabaseDataguardAssociationsRequest, ListAutonomousContainerDatabaseDataguardAssociationsResponse>( new java.util.function.Supplier< ListAutonomousContainerDatabaseDataguardAssociationsRequest.Builder>() { @Override public ListAutonomousContainerDatabaseDataguardAssociationsRequest.Builder get() { return ListAutonomousContainerDatabaseDataguardAssociationsRequest.builder() .copy(request); } }, new java.util.function.Function< ListAutonomousContainerDatabaseDataguardAssociationsResponse, String>() { @Override public String apply( ListAutonomousContainerDatabaseDataguardAssociationsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousContainerDatabaseDataguardAssociationsRequest .Builder>, ListAutonomousContainerDatabaseDataguardAssociationsRequest>() { @Override public ListAutonomousContainerDatabaseDataguardAssociationsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousContainerDatabaseDataguardAssociationsRequest .Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListAutonomousContainerDatabaseDataguardAssociationsRequest, ListAutonomousContainerDatabaseDataguardAssociationsResponse>() { @Override public ListAutonomousContainerDatabaseDataguardAssociationsResponse apply( ListAutonomousContainerDatabaseDataguardAssociationsRequest request) { return client.listAutonomousContainerDatabaseDataguardAssociations(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.AutonomousContainerDatabaseDataguardAssociation} objects * contained in responses from the listAutonomousContainerDatabaseDataguardAssociations * operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.AutonomousContainerDatabaseDataguardAssociation} objects * contained in responses received from the service. */ public Iterable listAutonomousContainerDatabaseDataguardAssociationsRecordIterator( final ListAutonomousContainerDatabaseDataguardAssociationsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListAutonomousContainerDatabaseDataguardAssociationsRequest.Builder, ListAutonomousContainerDatabaseDataguardAssociationsRequest, ListAutonomousContainerDatabaseDataguardAssociationsResponse, com.oracle.bmc.database.model.AutonomousContainerDatabaseDataguardAssociation>( new java.util.function.Supplier< ListAutonomousContainerDatabaseDataguardAssociationsRequest.Builder>() { @Override public ListAutonomousContainerDatabaseDataguardAssociationsRequest.Builder get() { return ListAutonomousContainerDatabaseDataguardAssociationsRequest.builder() .copy(request); } }, new java.util.function.Function< ListAutonomousContainerDatabaseDataguardAssociationsResponse, String>() { @Override public String apply( ListAutonomousContainerDatabaseDataguardAssociationsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousContainerDatabaseDataguardAssociationsRequest .Builder>, ListAutonomousContainerDatabaseDataguardAssociationsRequest>() { @Override public ListAutonomousContainerDatabaseDataguardAssociationsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousContainerDatabaseDataguardAssociationsRequest .Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListAutonomousContainerDatabaseDataguardAssociationsRequest, ListAutonomousContainerDatabaseDataguardAssociationsResponse>() { @Override public ListAutonomousContainerDatabaseDataguardAssociationsResponse apply( ListAutonomousContainerDatabaseDataguardAssociationsRequest request) { return client.listAutonomousContainerDatabaseDataguardAssociations(request); } }, new java.util.function.Function< ListAutonomousContainerDatabaseDataguardAssociationsResponse, java.util.List< com.oracle.bmc.database.model .AutonomousContainerDatabaseDataguardAssociation>>() { @Override public java.util.List< com.oracle.bmc.database.model .AutonomousContainerDatabaseDataguardAssociation> apply( ListAutonomousContainerDatabaseDataguardAssociationsResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listAutonomousContainerDatabaseVersions operation. This iterable will fetch more data from * the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listAutonomousContainerDatabaseVersionsResponseIterator( final ListAutonomousContainerDatabaseVersionsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListAutonomousContainerDatabaseVersionsRequest.Builder, ListAutonomousContainerDatabaseVersionsRequest, ListAutonomousContainerDatabaseVersionsResponse>( new java.util.function.Supplier< ListAutonomousContainerDatabaseVersionsRequest.Builder>() { @Override public ListAutonomousContainerDatabaseVersionsRequest.Builder get() { return ListAutonomousContainerDatabaseVersionsRequest.builder() .copy(request); } }, new java.util.function.Function< ListAutonomousContainerDatabaseVersionsResponse, String>() { @Override public String apply(ListAutonomousContainerDatabaseVersionsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousContainerDatabaseVersionsRequest.Builder>, ListAutonomousContainerDatabaseVersionsRequest>() { @Override public ListAutonomousContainerDatabaseVersionsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousContainerDatabaseVersionsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListAutonomousContainerDatabaseVersionsRequest, ListAutonomousContainerDatabaseVersionsResponse>() { @Override public ListAutonomousContainerDatabaseVersionsResponse apply( ListAutonomousContainerDatabaseVersionsRequest request) { return client.listAutonomousContainerDatabaseVersions(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.AutonomousContainerDatabaseVersionSummary} objects contained in * responses from the listAutonomousContainerDatabaseVersions operation. This iterable will * fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.AutonomousContainerDatabaseVersionSummary} objects * contained in responses received from the service. */ public Iterable listAutonomousContainerDatabaseVersionsRecordIterator( final ListAutonomousContainerDatabaseVersionsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListAutonomousContainerDatabaseVersionsRequest.Builder, ListAutonomousContainerDatabaseVersionsRequest, ListAutonomousContainerDatabaseVersionsResponse, com.oracle.bmc.database.model.AutonomousContainerDatabaseVersionSummary>( new java.util.function.Supplier< ListAutonomousContainerDatabaseVersionsRequest.Builder>() { @Override public ListAutonomousContainerDatabaseVersionsRequest.Builder get() { return ListAutonomousContainerDatabaseVersionsRequest.builder() .copy(request); } }, new java.util.function.Function< ListAutonomousContainerDatabaseVersionsResponse, String>() { @Override public String apply(ListAutonomousContainerDatabaseVersionsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousContainerDatabaseVersionsRequest.Builder>, ListAutonomousContainerDatabaseVersionsRequest>() { @Override public ListAutonomousContainerDatabaseVersionsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousContainerDatabaseVersionsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListAutonomousContainerDatabaseVersionsRequest, ListAutonomousContainerDatabaseVersionsResponse>() { @Override public ListAutonomousContainerDatabaseVersionsResponse apply( ListAutonomousContainerDatabaseVersionsRequest request) { return client.listAutonomousContainerDatabaseVersions(request); } }, new java.util.function.Function< ListAutonomousContainerDatabaseVersionsResponse, java.util.List< com.oracle.bmc.database.model .AutonomousContainerDatabaseVersionSummary>>() { @Override public java.util.List< com.oracle.bmc.database.model .AutonomousContainerDatabaseVersionSummary> apply(ListAutonomousContainerDatabaseVersionsResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listAutonomousContainerDatabases operation. This iterable will fetch more data from the * server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listAutonomousContainerDatabasesResponseIterator( final ListAutonomousContainerDatabasesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListAutonomousContainerDatabasesRequest.Builder, ListAutonomousContainerDatabasesRequest, ListAutonomousContainerDatabasesResponse>( new java.util.function.Supplier() { @Override public ListAutonomousContainerDatabasesRequest.Builder get() { return ListAutonomousContainerDatabasesRequest.builder().copy(request); } }, new java.util.function.Function< ListAutonomousContainerDatabasesResponse, String>() { @Override public String apply(ListAutonomousContainerDatabasesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousContainerDatabasesRequest.Builder>, ListAutonomousContainerDatabasesRequest>() { @Override public ListAutonomousContainerDatabasesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousContainerDatabasesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListAutonomousContainerDatabasesRequest, ListAutonomousContainerDatabasesResponse>() { @Override public ListAutonomousContainerDatabasesResponse apply( ListAutonomousContainerDatabasesRequest request) { return client.listAutonomousContainerDatabases(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.AutonomousContainerDatabaseSummary} objects contained in * responses from the listAutonomousContainerDatabases operation. This iterable will fetch more * data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.AutonomousContainerDatabaseSummary} objects contained in * responses received from the service. */ public Iterable listAutonomousContainerDatabasesRecordIterator( final ListAutonomousContainerDatabasesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListAutonomousContainerDatabasesRequest.Builder, ListAutonomousContainerDatabasesRequest, ListAutonomousContainerDatabasesResponse, com.oracle.bmc.database.model.AutonomousContainerDatabaseSummary>( new java.util.function.Supplier() { @Override public ListAutonomousContainerDatabasesRequest.Builder get() { return ListAutonomousContainerDatabasesRequest.builder().copy(request); } }, new java.util.function.Function< ListAutonomousContainerDatabasesResponse, String>() { @Override public String apply(ListAutonomousContainerDatabasesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousContainerDatabasesRequest.Builder>, ListAutonomousContainerDatabasesRequest>() { @Override public ListAutonomousContainerDatabasesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousContainerDatabasesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListAutonomousContainerDatabasesRequest, ListAutonomousContainerDatabasesResponse>() { @Override public ListAutonomousContainerDatabasesResponse apply( ListAutonomousContainerDatabasesRequest request) { return client.listAutonomousContainerDatabases(request); } }, new java.util.function.Function< ListAutonomousContainerDatabasesResponse, java.util.List< com.oracle.bmc.database.model .AutonomousContainerDatabaseSummary>>() { @Override public java.util.List< com.oracle.bmc.database.model .AutonomousContainerDatabaseSummary> apply(ListAutonomousContainerDatabasesResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listAutonomousDatabaseBackups operation. This iterable will fetch more data from the server * as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listAutonomousDatabaseBackupsResponseIterator( final ListAutonomousDatabaseBackupsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListAutonomousDatabaseBackupsRequest.Builder, ListAutonomousDatabaseBackupsRequest, ListAutonomousDatabaseBackupsResponse>( new java.util.function.Supplier() { @Override public ListAutonomousDatabaseBackupsRequest.Builder get() { return ListAutonomousDatabaseBackupsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListAutonomousDatabaseBackupsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousDatabaseBackupsRequest.Builder>, ListAutonomousDatabaseBackupsRequest>() { @Override public ListAutonomousDatabaseBackupsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousDatabaseBackupsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListAutonomousDatabaseBackupsRequest, ListAutonomousDatabaseBackupsResponse>() { @Override public ListAutonomousDatabaseBackupsResponse apply( ListAutonomousDatabaseBackupsRequest request) { return client.listAutonomousDatabaseBackups(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.AutonomousDatabaseBackupSummary} objects contained in responses * from the listAutonomousDatabaseBackups operation. This iterable will fetch more data from the * server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.AutonomousDatabaseBackupSummary} objects contained in * responses received from the service. */ public Iterable listAutonomousDatabaseBackupsRecordIterator( final ListAutonomousDatabaseBackupsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListAutonomousDatabaseBackupsRequest.Builder, ListAutonomousDatabaseBackupsRequest, ListAutonomousDatabaseBackupsResponse, com.oracle.bmc.database.model.AutonomousDatabaseBackupSummary>( new java.util.function.Supplier() { @Override public ListAutonomousDatabaseBackupsRequest.Builder get() { return ListAutonomousDatabaseBackupsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListAutonomousDatabaseBackupsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousDatabaseBackupsRequest.Builder>, ListAutonomousDatabaseBackupsRequest>() { @Override public ListAutonomousDatabaseBackupsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousDatabaseBackupsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListAutonomousDatabaseBackupsRequest, ListAutonomousDatabaseBackupsResponse>() { @Override public ListAutonomousDatabaseBackupsResponse apply( ListAutonomousDatabaseBackupsRequest request) { return client.listAutonomousDatabaseBackups(request); } }, new java.util.function.Function< ListAutonomousDatabaseBackupsResponse, java.util.List< com.oracle.bmc.database.model.AutonomousDatabaseBackupSummary>>() { @Override public java.util.List< com.oracle.bmc.database.model.AutonomousDatabaseBackupSummary> apply(ListAutonomousDatabaseBackupsResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listAutonomousDatabaseClones operation. This iterable will fetch more data from the server as * needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listAutonomousDatabaseClonesResponseIterator( final ListAutonomousDatabaseClonesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListAutonomousDatabaseClonesRequest.Builder, ListAutonomousDatabaseClonesRequest, ListAutonomousDatabaseClonesResponse>( new java.util.function.Supplier() { @Override public ListAutonomousDatabaseClonesRequest.Builder get() { return ListAutonomousDatabaseClonesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListAutonomousDatabaseClonesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousDatabaseClonesRequest.Builder>, ListAutonomousDatabaseClonesRequest>() { @Override public ListAutonomousDatabaseClonesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousDatabaseClonesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListAutonomousDatabaseClonesRequest, ListAutonomousDatabaseClonesResponse>() { @Override public ListAutonomousDatabaseClonesResponse apply( ListAutonomousDatabaseClonesRequest request) { return client.listAutonomousDatabaseClones(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.AutonomousDatabaseSummary} objects contained in responses from * the listAutonomousDatabaseClones operation. This iterable will fetch more data from the * server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.AutonomousDatabaseSummary} objects contained in responses * received from the service. */ public Iterable listAutonomousDatabaseClonesRecordIterator( final ListAutonomousDatabaseClonesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListAutonomousDatabaseClonesRequest.Builder, ListAutonomousDatabaseClonesRequest, ListAutonomousDatabaseClonesResponse, com.oracle.bmc.database.model.AutonomousDatabaseSummary>( new java.util.function.Supplier() { @Override public ListAutonomousDatabaseClonesRequest.Builder get() { return ListAutonomousDatabaseClonesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListAutonomousDatabaseClonesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousDatabaseClonesRequest.Builder>, ListAutonomousDatabaseClonesRequest>() { @Override public ListAutonomousDatabaseClonesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousDatabaseClonesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListAutonomousDatabaseClonesRequest, ListAutonomousDatabaseClonesResponse>() { @Override public ListAutonomousDatabaseClonesResponse apply( ListAutonomousDatabaseClonesRequest request) { return client.listAutonomousDatabaseClones(request); } }, new java.util.function.Function< ListAutonomousDatabaseClonesResponse, java.util.List>() { @Override public java.util.List apply(ListAutonomousDatabaseClonesResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listAutonomousDatabaseDataguardAssociations operation. This iterable will fetch more data * from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listAutonomousDatabaseDataguardAssociationsResponseIterator( final ListAutonomousDatabaseDataguardAssociationsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListAutonomousDatabaseDataguardAssociationsRequest.Builder, ListAutonomousDatabaseDataguardAssociationsRequest, ListAutonomousDatabaseDataguardAssociationsResponse>( new java.util.function.Supplier< ListAutonomousDatabaseDataguardAssociationsRequest.Builder>() { @Override public ListAutonomousDatabaseDataguardAssociationsRequest.Builder get() { return ListAutonomousDatabaseDataguardAssociationsRequest.builder() .copy(request); } }, new java.util.function.Function< ListAutonomousDatabaseDataguardAssociationsResponse, String>() { @Override public String apply( ListAutonomousDatabaseDataguardAssociationsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousDatabaseDataguardAssociationsRequest.Builder>, ListAutonomousDatabaseDataguardAssociationsRequest>() { @Override public ListAutonomousDatabaseDataguardAssociationsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousDatabaseDataguardAssociationsRequest .Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListAutonomousDatabaseDataguardAssociationsRequest, ListAutonomousDatabaseDataguardAssociationsResponse>() { @Override public ListAutonomousDatabaseDataguardAssociationsResponse apply( ListAutonomousDatabaseDataguardAssociationsRequest request) { return client.listAutonomousDatabaseDataguardAssociations(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.AutonomousDatabaseDataguardAssociation} objects contained in * responses from the listAutonomousDatabaseDataguardAssociations operation. This iterable will * fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.AutonomousDatabaseDataguardAssociation} objects contained * in responses received from the service. */ public Iterable listAutonomousDatabaseDataguardAssociationsRecordIterator( final ListAutonomousDatabaseDataguardAssociationsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListAutonomousDatabaseDataguardAssociationsRequest.Builder, ListAutonomousDatabaseDataguardAssociationsRequest, ListAutonomousDatabaseDataguardAssociationsResponse, com.oracle.bmc.database.model.AutonomousDatabaseDataguardAssociation>( new java.util.function.Supplier< ListAutonomousDatabaseDataguardAssociationsRequest.Builder>() { @Override public ListAutonomousDatabaseDataguardAssociationsRequest.Builder get() { return ListAutonomousDatabaseDataguardAssociationsRequest.builder() .copy(request); } }, new java.util.function.Function< ListAutonomousDatabaseDataguardAssociationsResponse, String>() { @Override public String apply( ListAutonomousDatabaseDataguardAssociationsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousDatabaseDataguardAssociationsRequest.Builder>, ListAutonomousDatabaseDataguardAssociationsRequest>() { @Override public ListAutonomousDatabaseDataguardAssociationsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousDatabaseDataguardAssociationsRequest .Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListAutonomousDatabaseDataguardAssociationsRequest, ListAutonomousDatabaseDataguardAssociationsResponse>() { @Override public ListAutonomousDatabaseDataguardAssociationsResponse apply( ListAutonomousDatabaseDataguardAssociationsRequest request) { return client.listAutonomousDatabaseDataguardAssociations(request); } }, new java.util.function.Function< ListAutonomousDatabaseDataguardAssociationsResponse, java.util.List< com.oracle.bmc.database.model .AutonomousDatabaseDataguardAssociation>>() { @Override public java.util.List< com.oracle.bmc.database.model .AutonomousDatabaseDataguardAssociation> apply(ListAutonomousDatabaseDataguardAssociationsResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listAutonomousDatabasePeers operation. This iterable will fetch more data from the server as * needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listAutonomousDatabasePeersResponseIterator( final ListAutonomousDatabasePeersRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListAutonomousDatabasePeersRequest.Builder, ListAutonomousDatabasePeersRequest, ListAutonomousDatabasePeersResponse>( new java.util.function.Supplier() { @Override public ListAutonomousDatabasePeersRequest.Builder get() { return ListAutonomousDatabasePeersRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListAutonomousDatabasePeersResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousDatabasePeersRequest.Builder>, ListAutonomousDatabasePeersRequest>() { @Override public ListAutonomousDatabasePeersRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousDatabasePeersRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListAutonomousDatabasePeersRequest, ListAutonomousDatabasePeersResponse>() { @Override public ListAutonomousDatabasePeersResponse apply( ListAutonomousDatabasePeersRequest request) { return client.listAutonomousDatabasePeers(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.AutonomousDatabasePeerSummary} objects contained in responses * from the listAutonomousDatabasePeers operation. This iterable will fetch more data from the * server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.AutonomousDatabasePeerSummary} objects contained in * responses received from the service. */ public Iterable listAutonomousDatabasePeersRecordIterator( final ListAutonomousDatabasePeersRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListAutonomousDatabasePeersRequest.Builder, ListAutonomousDatabasePeersRequest, ListAutonomousDatabasePeersResponse, com.oracle.bmc.database.model.AutonomousDatabasePeerSummary>( new java.util.function.Supplier() { @Override public ListAutonomousDatabasePeersRequest.Builder get() { return ListAutonomousDatabasePeersRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListAutonomousDatabasePeersResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousDatabasePeersRequest.Builder>, ListAutonomousDatabasePeersRequest>() { @Override public ListAutonomousDatabasePeersRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousDatabasePeersRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListAutonomousDatabasePeersRequest, ListAutonomousDatabasePeersResponse>() { @Override public ListAutonomousDatabasePeersResponse apply( ListAutonomousDatabasePeersRequest request) { return client.listAutonomousDatabasePeers(request); } }, new java.util.function.Function< ListAutonomousDatabasePeersResponse, java.util.List< com.oracle.bmc.database.model.AutonomousDatabasePeerSummary>>() { @Override public java.util.List< com.oracle.bmc.database.model.AutonomousDatabasePeerSummary> apply(ListAutonomousDatabasePeersResponse response) { return response.getAutonomousDatabasePeerCollection().getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listAutonomousDatabaseRefreshableClones operation. This iterable will fetch more data from * the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listAutonomousDatabaseRefreshableClonesResponseIterator( final ListAutonomousDatabaseRefreshableClonesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListAutonomousDatabaseRefreshableClonesRequest.Builder, ListAutonomousDatabaseRefreshableClonesRequest, ListAutonomousDatabaseRefreshableClonesResponse>( new java.util.function.Supplier< ListAutonomousDatabaseRefreshableClonesRequest.Builder>() { @Override public ListAutonomousDatabaseRefreshableClonesRequest.Builder get() { return ListAutonomousDatabaseRefreshableClonesRequest.builder() .copy(request); } }, new java.util.function.Function< ListAutonomousDatabaseRefreshableClonesResponse, String>() { @Override public String apply(ListAutonomousDatabaseRefreshableClonesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousDatabaseRefreshableClonesRequest.Builder>, ListAutonomousDatabaseRefreshableClonesRequest>() { @Override public ListAutonomousDatabaseRefreshableClonesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousDatabaseRefreshableClonesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListAutonomousDatabaseRefreshableClonesRequest, ListAutonomousDatabaseRefreshableClonesResponse>() { @Override public ListAutonomousDatabaseRefreshableClonesResponse apply( ListAutonomousDatabaseRefreshableClonesRequest request) { return client.listAutonomousDatabaseRefreshableClones(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.RefreshableCloneSummary} objects contained in responses from * the listAutonomousDatabaseRefreshableClones operation. This iterable will fetch more data * from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.RefreshableCloneSummary} objects contained in responses * received from the service. */ public Iterable listAutonomousDatabaseRefreshableClonesRecordIterator( final ListAutonomousDatabaseRefreshableClonesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListAutonomousDatabaseRefreshableClonesRequest.Builder, ListAutonomousDatabaseRefreshableClonesRequest, ListAutonomousDatabaseRefreshableClonesResponse, com.oracle.bmc.database.model.RefreshableCloneSummary>( new java.util.function.Supplier< ListAutonomousDatabaseRefreshableClonesRequest.Builder>() { @Override public ListAutonomousDatabaseRefreshableClonesRequest.Builder get() { return ListAutonomousDatabaseRefreshableClonesRequest.builder() .copy(request); } }, new java.util.function.Function< ListAutonomousDatabaseRefreshableClonesResponse, String>() { @Override public String apply(ListAutonomousDatabaseRefreshableClonesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousDatabaseRefreshableClonesRequest.Builder>, ListAutonomousDatabaseRefreshableClonesRequest>() { @Override public ListAutonomousDatabaseRefreshableClonesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousDatabaseRefreshableClonesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListAutonomousDatabaseRefreshableClonesRequest, ListAutonomousDatabaseRefreshableClonesResponse>() { @Override public ListAutonomousDatabaseRefreshableClonesResponse apply( ListAutonomousDatabaseRefreshableClonesRequest request) { return client.listAutonomousDatabaseRefreshableClones(request); } }, new java.util.function.Function< ListAutonomousDatabaseRefreshableClonesResponse, java.util.List>() { @Override public java.util.List apply(ListAutonomousDatabaseRefreshableClonesResponse response) { return response.getRefreshableCloneCollection().getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listAutonomousDatabaseSoftwareImages operation. This iterable will fetch more data from the * server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listAutonomousDatabaseSoftwareImagesResponseIterator( final ListAutonomousDatabaseSoftwareImagesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListAutonomousDatabaseSoftwareImagesRequest.Builder, ListAutonomousDatabaseSoftwareImagesRequest, ListAutonomousDatabaseSoftwareImagesResponse>( new java.util.function.Supplier< ListAutonomousDatabaseSoftwareImagesRequest.Builder>() { @Override public ListAutonomousDatabaseSoftwareImagesRequest.Builder get() { return ListAutonomousDatabaseSoftwareImagesRequest.builder().copy(request); } }, new java.util.function.Function< ListAutonomousDatabaseSoftwareImagesResponse, String>() { @Override public String apply(ListAutonomousDatabaseSoftwareImagesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousDatabaseSoftwareImagesRequest.Builder>, ListAutonomousDatabaseSoftwareImagesRequest>() { @Override public ListAutonomousDatabaseSoftwareImagesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousDatabaseSoftwareImagesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListAutonomousDatabaseSoftwareImagesRequest, ListAutonomousDatabaseSoftwareImagesResponse>() { @Override public ListAutonomousDatabaseSoftwareImagesResponse apply( ListAutonomousDatabaseSoftwareImagesRequest request) { return client.listAutonomousDatabaseSoftwareImages(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.AutonomousDatabaseSoftwareImageSummary} objects contained in * responses from the listAutonomousDatabaseSoftwareImages operation. This iterable will fetch * more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.AutonomousDatabaseSoftwareImageSummary} objects contained * in responses received from the service. */ public Iterable listAutonomousDatabaseSoftwareImagesRecordIterator( final ListAutonomousDatabaseSoftwareImagesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListAutonomousDatabaseSoftwareImagesRequest.Builder, ListAutonomousDatabaseSoftwareImagesRequest, ListAutonomousDatabaseSoftwareImagesResponse, com.oracle.bmc.database.model.AutonomousDatabaseSoftwareImageSummary>( new java.util.function.Supplier< ListAutonomousDatabaseSoftwareImagesRequest.Builder>() { @Override public ListAutonomousDatabaseSoftwareImagesRequest.Builder get() { return ListAutonomousDatabaseSoftwareImagesRequest.builder().copy(request); } }, new java.util.function.Function< ListAutonomousDatabaseSoftwareImagesResponse, String>() { @Override public String apply(ListAutonomousDatabaseSoftwareImagesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousDatabaseSoftwareImagesRequest.Builder>, ListAutonomousDatabaseSoftwareImagesRequest>() { @Override public ListAutonomousDatabaseSoftwareImagesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousDatabaseSoftwareImagesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListAutonomousDatabaseSoftwareImagesRequest, ListAutonomousDatabaseSoftwareImagesResponse>() { @Override public ListAutonomousDatabaseSoftwareImagesResponse apply( ListAutonomousDatabaseSoftwareImagesRequest request) { return client.listAutonomousDatabaseSoftwareImages(request); } }, new java.util.function.Function< ListAutonomousDatabaseSoftwareImagesResponse, java.util.List< com.oracle.bmc.database.model .AutonomousDatabaseSoftwareImageSummary>>() { @Override public java.util.List< com.oracle.bmc.database.model .AutonomousDatabaseSoftwareImageSummary> apply(ListAutonomousDatabaseSoftwareImagesResponse response) { return response.getAutonomousDatabaseSoftwareImageCollection().getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listAutonomousDatabases operation. This iterable will fetch more data from the server as * needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listAutonomousDatabasesResponseIterator( final ListAutonomousDatabasesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListAutonomousDatabasesRequest.Builder, ListAutonomousDatabasesRequest, ListAutonomousDatabasesResponse>( new java.util.function.Supplier() { @Override public ListAutonomousDatabasesRequest.Builder get() { return ListAutonomousDatabasesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListAutonomousDatabasesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousDatabasesRequest.Builder>, ListAutonomousDatabasesRequest>() { @Override public ListAutonomousDatabasesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousDatabasesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListAutonomousDatabasesRequest, ListAutonomousDatabasesResponse>() { @Override public ListAutonomousDatabasesResponse apply( ListAutonomousDatabasesRequest request) { return client.listAutonomousDatabases(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.AutonomousDatabaseSummary} objects contained in responses from * the listAutonomousDatabases operation. This iterable will fetch more data from the server as * needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.AutonomousDatabaseSummary} objects contained in responses * received from the service. */ public Iterable listAutonomousDatabasesRecordIterator(final ListAutonomousDatabasesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListAutonomousDatabasesRequest.Builder, ListAutonomousDatabasesRequest, ListAutonomousDatabasesResponse, com.oracle.bmc.database.model.AutonomousDatabaseSummary>( new java.util.function.Supplier() { @Override public ListAutonomousDatabasesRequest.Builder get() { return ListAutonomousDatabasesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListAutonomousDatabasesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousDatabasesRequest.Builder>, ListAutonomousDatabasesRequest>() { @Override public ListAutonomousDatabasesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousDatabasesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListAutonomousDatabasesRequest, ListAutonomousDatabasesResponse>() { @Override public ListAutonomousDatabasesResponse apply( ListAutonomousDatabasesRequest request) { return client.listAutonomousDatabases(request); } }, new java.util.function.Function< ListAutonomousDatabasesResponse, java.util.List>() { @Override public java.util.List apply(ListAutonomousDatabasesResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listAutonomousDbPreviewVersions operation. This iterable will fetch more data from the server * as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listAutonomousDbPreviewVersionsResponseIterator( final ListAutonomousDbPreviewVersionsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListAutonomousDbPreviewVersionsRequest.Builder, ListAutonomousDbPreviewVersionsRequest, ListAutonomousDbPreviewVersionsResponse>( new java.util.function.Supplier() { @Override public ListAutonomousDbPreviewVersionsRequest.Builder get() { return ListAutonomousDbPreviewVersionsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListAutonomousDbPreviewVersionsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousDbPreviewVersionsRequest.Builder>, ListAutonomousDbPreviewVersionsRequest>() { @Override public ListAutonomousDbPreviewVersionsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousDbPreviewVersionsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListAutonomousDbPreviewVersionsRequest, ListAutonomousDbPreviewVersionsResponse>() { @Override public ListAutonomousDbPreviewVersionsResponse apply( ListAutonomousDbPreviewVersionsRequest request) { return client.listAutonomousDbPreviewVersions(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.AutonomousDbPreviewVersionSummary} objects contained in * responses from the listAutonomousDbPreviewVersions operation. This iterable will fetch more * data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.AutonomousDbPreviewVersionSummary} objects contained in * responses received from the service. */ public Iterable listAutonomousDbPreviewVersionsRecordIterator( final ListAutonomousDbPreviewVersionsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListAutonomousDbPreviewVersionsRequest.Builder, ListAutonomousDbPreviewVersionsRequest, ListAutonomousDbPreviewVersionsResponse, com.oracle.bmc.database.model.AutonomousDbPreviewVersionSummary>( new java.util.function.Supplier() { @Override public ListAutonomousDbPreviewVersionsRequest.Builder get() { return ListAutonomousDbPreviewVersionsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListAutonomousDbPreviewVersionsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousDbPreviewVersionsRequest.Builder>, ListAutonomousDbPreviewVersionsRequest>() { @Override public ListAutonomousDbPreviewVersionsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousDbPreviewVersionsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListAutonomousDbPreviewVersionsRequest, ListAutonomousDbPreviewVersionsResponse>() { @Override public ListAutonomousDbPreviewVersionsResponse apply( ListAutonomousDbPreviewVersionsRequest request) { return client.listAutonomousDbPreviewVersions(request); } }, new java.util.function.Function< ListAutonomousDbPreviewVersionsResponse, java.util.List< com.oracle.bmc.database.model .AutonomousDbPreviewVersionSummary>>() { @Override public java.util.List< com.oracle.bmc.database.model.AutonomousDbPreviewVersionSummary> apply(ListAutonomousDbPreviewVersionsResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listAutonomousDbVersions operation. This iterable will fetch more data from the server as * needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listAutonomousDbVersionsResponseIterator( final ListAutonomousDbVersionsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListAutonomousDbVersionsRequest.Builder, ListAutonomousDbVersionsRequest, ListAutonomousDbVersionsResponse>( new java.util.function.Supplier() { @Override public ListAutonomousDbVersionsRequest.Builder get() { return ListAutonomousDbVersionsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListAutonomousDbVersionsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousDbVersionsRequest.Builder>, ListAutonomousDbVersionsRequest>() { @Override public ListAutonomousDbVersionsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousDbVersionsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListAutonomousDbVersionsRequest, ListAutonomousDbVersionsResponse>() { @Override public ListAutonomousDbVersionsResponse apply( ListAutonomousDbVersionsRequest request) { return client.listAutonomousDbVersions(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.AutonomousDbVersionSummary} objects contained in responses from * the listAutonomousDbVersions operation. This iterable will fetch more data from the server as * needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.AutonomousDbVersionSummary} objects contained in responses * received from the service. */ public Iterable listAutonomousDbVersionsRecordIterator(final ListAutonomousDbVersionsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListAutonomousDbVersionsRequest.Builder, ListAutonomousDbVersionsRequest, ListAutonomousDbVersionsResponse, com.oracle.bmc.database.model.AutonomousDbVersionSummary>( new java.util.function.Supplier() { @Override public ListAutonomousDbVersionsRequest.Builder get() { return ListAutonomousDbVersionsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListAutonomousDbVersionsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousDbVersionsRequest.Builder>, ListAutonomousDbVersionsRequest>() { @Override public ListAutonomousDbVersionsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousDbVersionsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListAutonomousDbVersionsRequest, ListAutonomousDbVersionsResponse>() { @Override public ListAutonomousDbVersionsResponse apply( ListAutonomousDbVersionsRequest request) { return client.listAutonomousDbVersions(request); } }, new java.util.function.Function< ListAutonomousDbVersionsResponse, java.util.List< com.oracle.bmc.database.model.AutonomousDbVersionSummary>>() { @Override public java.util.List apply(ListAutonomousDbVersionsResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listAutonomousExadataInfrastructureShapes operation. This iterable will fetch more data from * the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listAutonomousExadataInfrastructureShapesResponseIterator( final ListAutonomousExadataInfrastructureShapesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListAutonomousExadataInfrastructureShapesRequest.Builder, ListAutonomousExadataInfrastructureShapesRequest, ListAutonomousExadataInfrastructureShapesResponse>( new java.util.function.Supplier< ListAutonomousExadataInfrastructureShapesRequest.Builder>() { @Override public ListAutonomousExadataInfrastructureShapesRequest.Builder get() { return ListAutonomousExadataInfrastructureShapesRequest.builder() .copy(request); } }, new java.util.function.Function< ListAutonomousExadataInfrastructureShapesResponse, String>() { @Override public String apply( ListAutonomousExadataInfrastructureShapesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousExadataInfrastructureShapesRequest.Builder>, ListAutonomousExadataInfrastructureShapesRequest>() { @Override public ListAutonomousExadataInfrastructureShapesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousExadataInfrastructureShapesRequest .Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListAutonomousExadataInfrastructureShapesRequest, ListAutonomousExadataInfrastructureShapesResponse>() { @Override public ListAutonomousExadataInfrastructureShapesResponse apply( ListAutonomousExadataInfrastructureShapesRequest request) { return client.listAutonomousExadataInfrastructureShapes(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.AutonomousExadataInfrastructureShapeSummary} objects contained * in responses from the listAutonomousExadataInfrastructureShapes operation. This iterable will * fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.AutonomousExadataInfrastructureShapeSummary} objects * contained in responses received from the service. */ public Iterable listAutonomousExadataInfrastructureShapesRecordIterator( final ListAutonomousExadataInfrastructureShapesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListAutonomousExadataInfrastructureShapesRequest.Builder, ListAutonomousExadataInfrastructureShapesRequest, ListAutonomousExadataInfrastructureShapesResponse, com.oracle.bmc.database.model.AutonomousExadataInfrastructureShapeSummary>( new java.util.function.Supplier< ListAutonomousExadataInfrastructureShapesRequest.Builder>() { @Override public ListAutonomousExadataInfrastructureShapesRequest.Builder get() { return ListAutonomousExadataInfrastructureShapesRequest.builder() .copy(request); } }, new java.util.function.Function< ListAutonomousExadataInfrastructureShapesResponse, String>() { @Override public String apply( ListAutonomousExadataInfrastructureShapesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousExadataInfrastructureShapesRequest.Builder>, ListAutonomousExadataInfrastructureShapesRequest>() { @Override public ListAutonomousExadataInfrastructureShapesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousExadataInfrastructureShapesRequest .Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListAutonomousExadataInfrastructureShapesRequest, ListAutonomousExadataInfrastructureShapesResponse>() { @Override public ListAutonomousExadataInfrastructureShapesResponse apply( ListAutonomousExadataInfrastructureShapesRequest request) { return client.listAutonomousExadataInfrastructureShapes(request); } }, new java.util.function.Function< ListAutonomousExadataInfrastructureShapesResponse, java.util.List< com.oracle.bmc.database.model .AutonomousExadataInfrastructureShapeSummary>>() { @Override public java.util.List< com.oracle.bmc.database.model .AutonomousExadataInfrastructureShapeSummary> apply(ListAutonomousExadataInfrastructureShapesResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listAutonomousExadataInfrastructures operation. This iterable will fetch more data from the * server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listAutonomousExadataInfrastructuresResponseIterator( final ListAutonomousExadataInfrastructuresRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListAutonomousExadataInfrastructuresRequest.Builder, ListAutonomousExadataInfrastructuresRequest, ListAutonomousExadataInfrastructuresResponse>( new java.util.function.Supplier< ListAutonomousExadataInfrastructuresRequest.Builder>() { @Override public ListAutonomousExadataInfrastructuresRequest.Builder get() { return ListAutonomousExadataInfrastructuresRequest.builder().copy(request); } }, new java.util.function.Function< ListAutonomousExadataInfrastructuresResponse, String>() { @Override public String apply(ListAutonomousExadataInfrastructuresResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousExadataInfrastructuresRequest.Builder>, ListAutonomousExadataInfrastructuresRequest>() { @Override public ListAutonomousExadataInfrastructuresRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousExadataInfrastructuresRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListAutonomousExadataInfrastructuresRequest, ListAutonomousExadataInfrastructuresResponse>() { @Override public ListAutonomousExadataInfrastructuresResponse apply( ListAutonomousExadataInfrastructuresRequest request) { return client.listAutonomousExadataInfrastructures(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.AutonomousExadataInfrastructureSummary} objects contained in * responses from the listAutonomousExadataInfrastructures operation. This iterable will fetch * more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.AutonomousExadataInfrastructureSummary} objects contained * in responses received from the service. */ public Iterable listAutonomousExadataInfrastructuresRecordIterator( final ListAutonomousExadataInfrastructuresRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListAutonomousExadataInfrastructuresRequest.Builder, ListAutonomousExadataInfrastructuresRequest, ListAutonomousExadataInfrastructuresResponse, com.oracle.bmc.database.model.AutonomousExadataInfrastructureSummary>( new java.util.function.Supplier< ListAutonomousExadataInfrastructuresRequest.Builder>() { @Override public ListAutonomousExadataInfrastructuresRequest.Builder get() { return ListAutonomousExadataInfrastructuresRequest.builder().copy(request); } }, new java.util.function.Function< ListAutonomousExadataInfrastructuresResponse, String>() { @Override public String apply(ListAutonomousExadataInfrastructuresResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousExadataInfrastructuresRequest.Builder>, ListAutonomousExadataInfrastructuresRequest>() { @Override public ListAutonomousExadataInfrastructuresRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousExadataInfrastructuresRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListAutonomousExadataInfrastructuresRequest, ListAutonomousExadataInfrastructuresResponse>() { @Override public ListAutonomousExadataInfrastructuresResponse apply( ListAutonomousExadataInfrastructuresRequest request) { return client.listAutonomousExadataInfrastructures(request); } }, new java.util.function.Function< ListAutonomousExadataInfrastructuresResponse, java.util.List< com.oracle.bmc.database.model .AutonomousExadataInfrastructureSummary>>() { @Override public java.util.List< com.oracle.bmc.database.model .AutonomousExadataInfrastructureSummary> apply(ListAutonomousExadataInfrastructuresResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listAutonomousVirtualMachines operation. This iterable will fetch more data from the server * as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listAutonomousVirtualMachinesResponseIterator( final ListAutonomousVirtualMachinesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListAutonomousVirtualMachinesRequest.Builder, ListAutonomousVirtualMachinesRequest, ListAutonomousVirtualMachinesResponse>( new java.util.function.Supplier() { @Override public ListAutonomousVirtualMachinesRequest.Builder get() { return ListAutonomousVirtualMachinesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListAutonomousVirtualMachinesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousVirtualMachinesRequest.Builder>, ListAutonomousVirtualMachinesRequest>() { @Override public ListAutonomousVirtualMachinesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousVirtualMachinesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListAutonomousVirtualMachinesRequest, ListAutonomousVirtualMachinesResponse>() { @Override public ListAutonomousVirtualMachinesResponse apply( ListAutonomousVirtualMachinesRequest request) { return client.listAutonomousVirtualMachines(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.AutonomousVirtualMachineSummary} objects contained in responses * from the listAutonomousVirtualMachines operation. This iterable will fetch more data from the * server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.AutonomousVirtualMachineSummary} objects contained in * responses received from the service. */ public Iterable listAutonomousVirtualMachinesRecordIterator( final ListAutonomousVirtualMachinesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListAutonomousVirtualMachinesRequest.Builder, ListAutonomousVirtualMachinesRequest, ListAutonomousVirtualMachinesResponse, com.oracle.bmc.database.model.AutonomousVirtualMachineSummary>( new java.util.function.Supplier() { @Override public ListAutonomousVirtualMachinesRequest.Builder get() { return ListAutonomousVirtualMachinesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListAutonomousVirtualMachinesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousVirtualMachinesRequest.Builder>, ListAutonomousVirtualMachinesRequest>() { @Override public ListAutonomousVirtualMachinesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousVirtualMachinesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListAutonomousVirtualMachinesRequest, ListAutonomousVirtualMachinesResponse>() { @Override public ListAutonomousVirtualMachinesResponse apply( ListAutonomousVirtualMachinesRequest request) { return client.listAutonomousVirtualMachines(request); } }, new java.util.function.Function< ListAutonomousVirtualMachinesResponse, java.util.List< com.oracle.bmc.database.model.AutonomousVirtualMachineSummary>>() { @Override public java.util.List< com.oracle.bmc.database.model.AutonomousVirtualMachineSummary> apply(ListAutonomousVirtualMachinesResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listAutonomousVmClusterAcdResourceUsage operation. This iterable will fetch more data from * the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listAutonomousVmClusterAcdResourceUsageResponseIterator( final ListAutonomousVmClusterAcdResourceUsageRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListAutonomousVmClusterAcdResourceUsageRequest.Builder, ListAutonomousVmClusterAcdResourceUsageRequest, ListAutonomousVmClusterAcdResourceUsageResponse>( new java.util.function.Supplier< ListAutonomousVmClusterAcdResourceUsageRequest.Builder>() { @Override public ListAutonomousVmClusterAcdResourceUsageRequest.Builder get() { return ListAutonomousVmClusterAcdResourceUsageRequest.builder() .copy(request); } }, new java.util.function.Function< ListAutonomousVmClusterAcdResourceUsageResponse, String>() { @Override public String apply(ListAutonomousVmClusterAcdResourceUsageResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousVmClusterAcdResourceUsageRequest.Builder>, ListAutonomousVmClusterAcdResourceUsageRequest>() { @Override public ListAutonomousVmClusterAcdResourceUsageRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousVmClusterAcdResourceUsageRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListAutonomousVmClusterAcdResourceUsageRequest, ListAutonomousVmClusterAcdResourceUsageResponse>() { @Override public ListAutonomousVmClusterAcdResourceUsageResponse apply( ListAutonomousVmClusterAcdResourceUsageRequest request) { return client.listAutonomousVmClusterAcdResourceUsage(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.AutonomousContainerDatabaseResourceUsage} objects contained in * responses from the listAutonomousVmClusterAcdResourceUsage operation. This iterable will * fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.AutonomousContainerDatabaseResourceUsage} objects contained * in responses received from the service. */ public Iterable listAutonomousVmClusterAcdResourceUsageRecordIterator( final ListAutonomousVmClusterAcdResourceUsageRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListAutonomousVmClusterAcdResourceUsageRequest.Builder, ListAutonomousVmClusterAcdResourceUsageRequest, ListAutonomousVmClusterAcdResourceUsageResponse, com.oracle.bmc.database.model.AutonomousContainerDatabaseResourceUsage>( new java.util.function.Supplier< ListAutonomousVmClusterAcdResourceUsageRequest.Builder>() { @Override public ListAutonomousVmClusterAcdResourceUsageRequest.Builder get() { return ListAutonomousVmClusterAcdResourceUsageRequest.builder() .copy(request); } }, new java.util.function.Function< ListAutonomousVmClusterAcdResourceUsageResponse, String>() { @Override public String apply(ListAutonomousVmClusterAcdResourceUsageResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousVmClusterAcdResourceUsageRequest.Builder>, ListAutonomousVmClusterAcdResourceUsageRequest>() { @Override public ListAutonomousVmClusterAcdResourceUsageRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousVmClusterAcdResourceUsageRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListAutonomousVmClusterAcdResourceUsageRequest, ListAutonomousVmClusterAcdResourceUsageResponse>() { @Override public ListAutonomousVmClusterAcdResourceUsageResponse apply( ListAutonomousVmClusterAcdResourceUsageRequest request) { return client.listAutonomousVmClusterAcdResourceUsage(request); } }, new java.util.function.Function< ListAutonomousVmClusterAcdResourceUsageResponse, java.util.List< com.oracle.bmc.database.model .AutonomousContainerDatabaseResourceUsage>>() { @Override public java.util.List< com.oracle.bmc.database.model .AutonomousContainerDatabaseResourceUsage> apply(ListAutonomousVmClusterAcdResourceUsageResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listAutonomousVmClusters operation. This iterable will fetch more data from the server as * needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listAutonomousVmClustersResponseIterator( final ListAutonomousVmClustersRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListAutonomousVmClustersRequest.Builder, ListAutonomousVmClustersRequest, ListAutonomousVmClustersResponse>( new java.util.function.Supplier() { @Override public ListAutonomousVmClustersRequest.Builder get() { return ListAutonomousVmClustersRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListAutonomousVmClustersResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousVmClustersRequest.Builder>, ListAutonomousVmClustersRequest>() { @Override public ListAutonomousVmClustersRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousVmClustersRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListAutonomousVmClustersRequest, ListAutonomousVmClustersResponse>() { @Override public ListAutonomousVmClustersResponse apply( ListAutonomousVmClustersRequest request) { return client.listAutonomousVmClusters(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.AutonomousVmClusterSummary} objects contained in responses from * the listAutonomousVmClusters operation. This iterable will fetch more data from the server as * needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.AutonomousVmClusterSummary} objects contained in responses * received from the service. */ public Iterable listAutonomousVmClustersRecordIterator(final ListAutonomousVmClustersRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListAutonomousVmClustersRequest.Builder, ListAutonomousVmClustersRequest, ListAutonomousVmClustersResponse, com.oracle.bmc.database.model.AutonomousVmClusterSummary>( new java.util.function.Supplier() { @Override public ListAutonomousVmClustersRequest.Builder get() { return ListAutonomousVmClustersRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListAutonomousVmClustersResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousVmClustersRequest.Builder>, ListAutonomousVmClustersRequest>() { @Override public ListAutonomousVmClustersRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListAutonomousVmClustersRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListAutonomousVmClustersRequest, ListAutonomousVmClustersResponse>() { @Override public ListAutonomousVmClustersResponse apply( ListAutonomousVmClustersRequest request) { return client.listAutonomousVmClusters(request); } }, new java.util.function.Function< ListAutonomousVmClustersResponse, java.util.List< com.oracle.bmc.database.model.AutonomousVmClusterSummary>>() { @Override public java.util.List apply(ListAutonomousVmClustersResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listBackupDestination operation. This iterable will fetch more data from the server as * needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listBackupDestinationResponseIterator( final ListBackupDestinationRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListBackupDestinationRequest.Builder, ListBackupDestinationRequest, ListBackupDestinationResponse>( new java.util.function.Supplier() { @Override public ListBackupDestinationRequest.Builder get() { return ListBackupDestinationRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListBackupDestinationResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListBackupDestinationRequest.Builder>, ListBackupDestinationRequest>() { @Override public ListBackupDestinationRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListBackupDestinationRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListBackupDestinationRequest, ListBackupDestinationResponse>() { @Override public ListBackupDestinationResponse apply( ListBackupDestinationRequest request) { return client.listBackupDestination(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.BackupDestinationSummary} objects contained in responses from * the listBackupDestination operation. This iterable will fetch more data from the server as * needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.BackupDestinationSummary} objects contained in responses * received from the service. */ public Iterable listBackupDestinationRecordIterator(final ListBackupDestinationRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListBackupDestinationRequest.Builder, ListBackupDestinationRequest, ListBackupDestinationResponse, com.oracle.bmc.database.model.BackupDestinationSummary>( new java.util.function.Supplier() { @Override public ListBackupDestinationRequest.Builder get() { return ListBackupDestinationRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListBackupDestinationResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListBackupDestinationRequest.Builder>, ListBackupDestinationRequest>() { @Override public ListBackupDestinationRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListBackupDestinationRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListBackupDestinationRequest, ListBackupDestinationResponse>() { @Override public ListBackupDestinationResponse apply( ListBackupDestinationRequest request) { return client.listBackupDestination(request); } }, new java.util.function.Function< ListBackupDestinationResponse, java.util.List>() { @Override public java.util.List apply(ListBackupDestinationResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the listBackups * operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listBackupsResponseIterator( final ListBackupsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListBackupsRequest.Builder, ListBackupsRequest, ListBackupsResponse>( new java.util.function.Supplier() { @Override public ListBackupsRequest.Builder get() { return ListBackupsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListBackupsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListBackupsRequest.Builder>, ListBackupsRequest>() { @Override public ListBackupsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListBackupsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function() { @Override public ListBackupsResponse apply(ListBackupsRequest request) { return client.listBackups(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.BackupSummary} objects contained in responses from the * listBackups operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.BackupSummary} objects contained in responses received from * the service. */ public Iterable listBackupsRecordIterator( final ListBackupsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListBackupsRequest.Builder, ListBackupsRequest, ListBackupsResponse, com.oracle.bmc.database.model.BackupSummary>( new java.util.function.Supplier() { @Override public ListBackupsRequest.Builder get() { return ListBackupsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListBackupsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListBackupsRequest.Builder>, ListBackupsRequest>() { @Override public ListBackupsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListBackupsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function() { @Override public ListBackupsResponse apply(ListBackupsRequest request) { return client.listBackups(request); } }, new java.util.function.Function< ListBackupsResponse, java.util.List>() { @Override public java.util.List apply( ListBackupsResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listCloudAutonomousVmClusterAcdResourceUsage operation. This iterable will fetch more data * from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listCloudAutonomousVmClusterAcdResourceUsageResponseIterator( final ListCloudAutonomousVmClusterAcdResourceUsageRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListCloudAutonomousVmClusterAcdResourceUsageRequest.Builder, ListCloudAutonomousVmClusterAcdResourceUsageRequest, ListCloudAutonomousVmClusterAcdResourceUsageResponse>( new java.util.function.Supplier< ListCloudAutonomousVmClusterAcdResourceUsageRequest.Builder>() { @Override public ListCloudAutonomousVmClusterAcdResourceUsageRequest.Builder get() { return ListCloudAutonomousVmClusterAcdResourceUsageRequest.builder() .copy(request); } }, new java.util.function.Function< ListCloudAutonomousVmClusterAcdResourceUsageResponse, String>() { @Override public String apply( ListCloudAutonomousVmClusterAcdResourceUsageResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListCloudAutonomousVmClusterAcdResourceUsageRequest.Builder>, ListCloudAutonomousVmClusterAcdResourceUsageRequest>() { @Override public ListCloudAutonomousVmClusterAcdResourceUsageRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListCloudAutonomousVmClusterAcdResourceUsageRequest .Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListCloudAutonomousVmClusterAcdResourceUsageRequest, ListCloudAutonomousVmClusterAcdResourceUsageResponse>() { @Override public ListCloudAutonomousVmClusterAcdResourceUsageResponse apply( ListCloudAutonomousVmClusterAcdResourceUsageRequest request) { return client.listCloudAutonomousVmClusterAcdResourceUsage(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.AutonomousContainerDatabaseResourceUsage} objects contained in * responses from the listCloudAutonomousVmClusterAcdResourceUsage operation. This iterable will * fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.AutonomousContainerDatabaseResourceUsage} objects contained * in responses received from the service. */ public Iterable listCloudAutonomousVmClusterAcdResourceUsageRecordIterator( final ListCloudAutonomousVmClusterAcdResourceUsageRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListCloudAutonomousVmClusterAcdResourceUsageRequest.Builder, ListCloudAutonomousVmClusterAcdResourceUsageRequest, ListCloudAutonomousVmClusterAcdResourceUsageResponse, com.oracle.bmc.database.model.AutonomousContainerDatabaseResourceUsage>( new java.util.function.Supplier< ListCloudAutonomousVmClusterAcdResourceUsageRequest.Builder>() { @Override public ListCloudAutonomousVmClusterAcdResourceUsageRequest.Builder get() { return ListCloudAutonomousVmClusterAcdResourceUsageRequest.builder() .copy(request); } }, new java.util.function.Function< ListCloudAutonomousVmClusterAcdResourceUsageResponse, String>() { @Override public String apply( ListCloudAutonomousVmClusterAcdResourceUsageResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListCloudAutonomousVmClusterAcdResourceUsageRequest.Builder>, ListCloudAutonomousVmClusterAcdResourceUsageRequest>() { @Override public ListCloudAutonomousVmClusterAcdResourceUsageRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListCloudAutonomousVmClusterAcdResourceUsageRequest .Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListCloudAutonomousVmClusterAcdResourceUsageRequest, ListCloudAutonomousVmClusterAcdResourceUsageResponse>() { @Override public ListCloudAutonomousVmClusterAcdResourceUsageResponse apply( ListCloudAutonomousVmClusterAcdResourceUsageRequest request) { return client.listCloudAutonomousVmClusterAcdResourceUsage(request); } }, new java.util.function.Function< ListCloudAutonomousVmClusterAcdResourceUsageResponse, java.util.List< com.oracle.bmc.database.model .AutonomousContainerDatabaseResourceUsage>>() { @Override public java.util.List< com.oracle.bmc.database.model .AutonomousContainerDatabaseResourceUsage> apply(ListCloudAutonomousVmClusterAcdResourceUsageResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listCloudAutonomousVmClusters operation. This iterable will fetch more data from the server * as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listCloudAutonomousVmClustersResponseIterator( final ListCloudAutonomousVmClustersRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListCloudAutonomousVmClustersRequest.Builder, ListCloudAutonomousVmClustersRequest, ListCloudAutonomousVmClustersResponse>( new java.util.function.Supplier() { @Override public ListCloudAutonomousVmClustersRequest.Builder get() { return ListCloudAutonomousVmClustersRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListCloudAutonomousVmClustersResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListCloudAutonomousVmClustersRequest.Builder>, ListCloudAutonomousVmClustersRequest>() { @Override public ListCloudAutonomousVmClustersRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListCloudAutonomousVmClustersRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListCloudAutonomousVmClustersRequest, ListCloudAutonomousVmClustersResponse>() { @Override public ListCloudAutonomousVmClustersResponse apply( ListCloudAutonomousVmClustersRequest request) { return client.listCloudAutonomousVmClusters(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.CloudAutonomousVmClusterSummary} objects contained in responses * from the listCloudAutonomousVmClusters operation. This iterable will fetch more data from the * server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.CloudAutonomousVmClusterSummary} objects contained in * responses received from the service. */ public Iterable listCloudAutonomousVmClustersRecordIterator( final ListCloudAutonomousVmClustersRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListCloudAutonomousVmClustersRequest.Builder, ListCloudAutonomousVmClustersRequest, ListCloudAutonomousVmClustersResponse, com.oracle.bmc.database.model.CloudAutonomousVmClusterSummary>( new java.util.function.Supplier() { @Override public ListCloudAutonomousVmClustersRequest.Builder get() { return ListCloudAutonomousVmClustersRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListCloudAutonomousVmClustersResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListCloudAutonomousVmClustersRequest.Builder>, ListCloudAutonomousVmClustersRequest>() { @Override public ListCloudAutonomousVmClustersRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListCloudAutonomousVmClustersRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListCloudAutonomousVmClustersRequest, ListCloudAutonomousVmClustersResponse>() { @Override public ListCloudAutonomousVmClustersResponse apply( ListCloudAutonomousVmClustersRequest request) { return client.listCloudAutonomousVmClusters(request); } }, new java.util.function.Function< ListCloudAutonomousVmClustersResponse, java.util.List< com.oracle.bmc.database.model.CloudAutonomousVmClusterSummary>>() { @Override public java.util.List< com.oracle.bmc.database.model.CloudAutonomousVmClusterSummary> apply(ListCloudAutonomousVmClustersResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listCloudExadataInfrastructures operation. This iterable will fetch more data from the server * as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listCloudExadataInfrastructuresResponseIterator( final ListCloudExadataInfrastructuresRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListCloudExadataInfrastructuresRequest.Builder, ListCloudExadataInfrastructuresRequest, ListCloudExadataInfrastructuresResponse>( new java.util.function.Supplier() { @Override public ListCloudExadataInfrastructuresRequest.Builder get() { return ListCloudExadataInfrastructuresRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListCloudExadataInfrastructuresResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListCloudExadataInfrastructuresRequest.Builder>, ListCloudExadataInfrastructuresRequest>() { @Override public ListCloudExadataInfrastructuresRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListCloudExadataInfrastructuresRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListCloudExadataInfrastructuresRequest, ListCloudExadataInfrastructuresResponse>() { @Override public ListCloudExadataInfrastructuresResponse apply( ListCloudExadataInfrastructuresRequest request) { return client.listCloudExadataInfrastructures(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.CloudExadataInfrastructureSummary} objects contained in * responses from the listCloudExadataInfrastructures operation. This iterable will fetch more * data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.CloudExadataInfrastructureSummary} objects contained in * responses received from the service. */ public Iterable listCloudExadataInfrastructuresRecordIterator( final ListCloudExadataInfrastructuresRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListCloudExadataInfrastructuresRequest.Builder, ListCloudExadataInfrastructuresRequest, ListCloudExadataInfrastructuresResponse, com.oracle.bmc.database.model.CloudExadataInfrastructureSummary>( new java.util.function.Supplier() { @Override public ListCloudExadataInfrastructuresRequest.Builder get() { return ListCloudExadataInfrastructuresRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListCloudExadataInfrastructuresResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListCloudExadataInfrastructuresRequest.Builder>, ListCloudExadataInfrastructuresRequest>() { @Override public ListCloudExadataInfrastructuresRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListCloudExadataInfrastructuresRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListCloudExadataInfrastructuresRequest, ListCloudExadataInfrastructuresResponse>() { @Override public ListCloudExadataInfrastructuresResponse apply( ListCloudExadataInfrastructuresRequest request) { return client.listCloudExadataInfrastructures(request); } }, new java.util.function.Function< ListCloudExadataInfrastructuresResponse, java.util.List< com.oracle.bmc.database.model .CloudExadataInfrastructureSummary>>() { @Override public java.util.List< com.oracle.bmc.database.model.CloudExadataInfrastructureSummary> apply(ListCloudExadataInfrastructuresResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listCloudVmClusterUpdateHistoryEntries operation. This iterable will fetch more data from the * server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listCloudVmClusterUpdateHistoryEntriesResponseIterator( final ListCloudVmClusterUpdateHistoryEntriesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListCloudVmClusterUpdateHistoryEntriesRequest.Builder, ListCloudVmClusterUpdateHistoryEntriesRequest, ListCloudVmClusterUpdateHistoryEntriesResponse>( new java.util.function.Supplier< ListCloudVmClusterUpdateHistoryEntriesRequest.Builder>() { @Override public ListCloudVmClusterUpdateHistoryEntriesRequest.Builder get() { return ListCloudVmClusterUpdateHistoryEntriesRequest.builder() .copy(request); } }, new java.util.function.Function< ListCloudVmClusterUpdateHistoryEntriesResponse, String>() { @Override public String apply(ListCloudVmClusterUpdateHistoryEntriesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListCloudVmClusterUpdateHistoryEntriesRequest.Builder>, ListCloudVmClusterUpdateHistoryEntriesRequest>() { @Override public ListCloudVmClusterUpdateHistoryEntriesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListCloudVmClusterUpdateHistoryEntriesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListCloudVmClusterUpdateHistoryEntriesRequest, ListCloudVmClusterUpdateHistoryEntriesResponse>() { @Override public ListCloudVmClusterUpdateHistoryEntriesResponse apply( ListCloudVmClusterUpdateHistoryEntriesRequest request) { return client.listCloudVmClusterUpdateHistoryEntries(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.UpdateHistoryEntrySummary} objects contained in responses from * the listCloudVmClusterUpdateHistoryEntries operation. This iterable will fetch more data from * the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.UpdateHistoryEntrySummary} objects contained in responses * received from the service. */ public Iterable listCloudVmClusterUpdateHistoryEntriesRecordIterator( final ListCloudVmClusterUpdateHistoryEntriesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListCloudVmClusterUpdateHistoryEntriesRequest.Builder, ListCloudVmClusterUpdateHistoryEntriesRequest, ListCloudVmClusterUpdateHistoryEntriesResponse, com.oracle.bmc.database.model.UpdateHistoryEntrySummary>( new java.util.function.Supplier< ListCloudVmClusterUpdateHistoryEntriesRequest.Builder>() { @Override public ListCloudVmClusterUpdateHistoryEntriesRequest.Builder get() { return ListCloudVmClusterUpdateHistoryEntriesRequest.builder() .copy(request); } }, new java.util.function.Function< ListCloudVmClusterUpdateHistoryEntriesResponse, String>() { @Override public String apply(ListCloudVmClusterUpdateHistoryEntriesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListCloudVmClusterUpdateHistoryEntriesRequest.Builder>, ListCloudVmClusterUpdateHistoryEntriesRequest>() { @Override public ListCloudVmClusterUpdateHistoryEntriesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListCloudVmClusterUpdateHistoryEntriesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListCloudVmClusterUpdateHistoryEntriesRequest, ListCloudVmClusterUpdateHistoryEntriesResponse>() { @Override public ListCloudVmClusterUpdateHistoryEntriesResponse apply( ListCloudVmClusterUpdateHistoryEntriesRequest request) { return client.listCloudVmClusterUpdateHistoryEntries(request); } }, new java.util.function.Function< ListCloudVmClusterUpdateHistoryEntriesResponse, java.util.List>() { @Override public java.util.List apply(ListCloudVmClusterUpdateHistoryEntriesResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listCloudVmClusterUpdates operation. This iterable will fetch more data from the server as * needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listCloudVmClusterUpdatesResponseIterator( final ListCloudVmClusterUpdatesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListCloudVmClusterUpdatesRequest.Builder, ListCloudVmClusterUpdatesRequest, ListCloudVmClusterUpdatesResponse>( new java.util.function.Supplier() { @Override public ListCloudVmClusterUpdatesRequest.Builder get() { return ListCloudVmClusterUpdatesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListCloudVmClusterUpdatesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListCloudVmClusterUpdatesRequest.Builder>, ListCloudVmClusterUpdatesRequest>() { @Override public ListCloudVmClusterUpdatesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListCloudVmClusterUpdatesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListCloudVmClusterUpdatesRequest, ListCloudVmClusterUpdatesResponse>() { @Override public ListCloudVmClusterUpdatesResponse apply( ListCloudVmClusterUpdatesRequest request) { return client.listCloudVmClusterUpdates(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.UpdateSummary} objects contained in responses from the * listCloudVmClusterUpdates operation. This iterable will fetch more data from the server as * needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.UpdateSummary} objects contained in responses received from * the service. */ public Iterable listCloudVmClusterUpdatesRecordIterator( final ListCloudVmClusterUpdatesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListCloudVmClusterUpdatesRequest.Builder, ListCloudVmClusterUpdatesRequest, ListCloudVmClusterUpdatesResponse, com.oracle.bmc.database.model.UpdateSummary>( new java.util.function.Supplier() { @Override public ListCloudVmClusterUpdatesRequest.Builder get() { return ListCloudVmClusterUpdatesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListCloudVmClusterUpdatesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListCloudVmClusterUpdatesRequest.Builder>, ListCloudVmClusterUpdatesRequest>() { @Override public ListCloudVmClusterUpdatesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListCloudVmClusterUpdatesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListCloudVmClusterUpdatesRequest, ListCloudVmClusterUpdatesResponse>() { @Override public ListCloudVmClusterUpdatesResponse apply( ListCloudVmClusterUpdatesRequest request) { return client.listCloudVmClusterUpdates(request); } }, new java.util.function.Function< ListCloudVmClusterUpdatesResponse, java.util.List>() { @Override public java.util.List apply( ListCloudVmClusterUpdatesResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listCloudVmClusters operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listCloudVmClustersResponseIterator( final ListCloudVmClustersRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListCloudVmClustersRequest.Builder, ListCloudVmClustersRequest, ListCloudVmClustersResponse>( new java.util.function.Supplier() { @Override public ListCloudVmClustersRequest.Builder get() { return ListCloudVmClustersRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListCloudVmClustersResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListCloudVmClustersRequest.Builder>, ListCloudVmClustersRequest>() { @Override public ListCloudVmClustersRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListCloudVmClustersRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListCloudVmClustersRequest, ListCloudVmClustersResponse>() { @Override public ListCloudVmClustersResponse apply(ListCloudVmClustersRequest request) { return client.listCloudVmClusters(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.CloudVmClusterSummary} objects contained in responses from the * listCloudVmClusters operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.CloudVmClusterSummary} objects contained in responses * received from the service. */ public Iterable listCloudVmClustersRecordIterator(final ListCloudVmClustersRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListCloudVmClustersRequest.Builder, ListCloudVmClustersRequest, ListCloudVmClustersResponse, com.oracle.bmc.database.model.CloudVmClusterSummary>( new java.util.function.Supplier() { @Override public ListCloudVmClustersRequest.Builder get() { return ListCloudVmClustersRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListCloudVmClustersResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListCloudVmClustersRequest.Builder>, ListCloudVmClustersRequest>() { @Override public ListCloudVmClustersRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListCloudVmClustersRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListCloudVmClustersRequest, ListCloudVmClustersResponse>() { @Override public ListCloudVmClustersResponse apply(ListCloudVmClustersRequest request) { return client.listCloudVmClusters(request); } }, new java.util.function.Function< ListCloudVmClustersResponse, java.util.List>() { @Override public java.util.List apply(ListCloudVmClustersResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listConsoleHistories operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listConsoleHistoriesResponseIterator( final ListConsoleHistoriesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListConsoleHistoriesRequest.Builder, ListConsoleHistoriesRequest, ListConsoleHistoriesResponse>( new java.util.function.Supplier() { @Override public ListConsoleHistoriesRequest.Builder get() { return ListConsoleHistoriesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListConsoleHistoriesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListConsoleHistoriesRequest.Builder>, ListConsoleHistoriesRequest>() { @Override public ListConsoleHistoriesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListConsoleHistoriesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListConsoleHistoriesRequest, ListConsoleHistoriesResponse>() { @Override public ListConsoleHistoriesResponse apply(ListConsoleHistoriesRequest request) { return client.listConsoleHistories(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.ConsoleHistorySummary} objects contained in responses from the * listConsoleHistories operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.ConsoleHistorySummary} objects contained in responses * received from the service. */ public Iterable listConsoleHistoriesRecordIterator(final ListConsoleHistoriesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListConsoleHistoriesRequest.Builder, ListConsoleHistoriesRequest, ListConsoleHistoriesResponse, com.oracle.bmc.database.model.ConsoleHistorySummary>( new java.util.function.Supplier() { @Override public ListConsoleHistoriesRequest.Builder get() { return ListConsoleHistoriesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListConsoleHistoriesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListConsoleHistoriesRequest.Builder>, ListConsoleHistoriesRequest>() { @Override public ListConsoleHistoriesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListConsoleHistoriesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListConsoleHistoriesRequest, ListConsoleHistoriesResponse>() { @Override public ListConsoleHistoriesResponse apply(ListConsoleHistoriesRequest request) { return client.listConsoleHistories(request); } }, new java.util.function.Function< ListConsoleHistoriesResponse, java.util.List>() { @Override public java.util.List apply(ListConsoleHistoriesResponse response) { return response.getConsoleHistoryCollection().getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listContainerDatabasePatches operation. This iterable will fetch more data from the server as * needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listContainerDatabasePatchesResponseIterator( final ListContainerDatabasePatchesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListContainerDatabasePatchesRequest.Builder, ListContainerDatabasePatchesRequest, ListContainerDatabasePatchesResponse>( new java.util.function.Supplier() { @Override public ListContainerDatabasePatchesRequest.Builder get() { return ListContainerDatabasePatchesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListContainerDatabasePatchesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListContainerDatabasePatchesRequest.Builder>, ListContainerDatabasePatchesRequest>() { @Override public ListContainerDatabasePatchesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListContainerDatabasePatchesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListContainerDatabasePatchesRequest, ListContainerDatabasePatchesResponse>() { @Override public ListContainerDatabasePatchesResponse apply( ListContainerDatabasePatchesRequest request) { return client.listContainerDatabasePatches(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.AutonomousPatchSummary} objects contained in responses from the * listContainerDatabasePatches operation. This iterable will fetch more data from the server as * needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.AutonomousPatchSummary} objects contained in responses * received from the service. */ public Iterable listContainerDatabasePatchesRecordIterator( final ListContainerDatabasePatchesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListContainerDatabasePatchesRequest.Builder, ListContainerDatabasePatchesRequest, ListContainerDatabasePatchesResponse, com.oracle.bmc.database.model.AutonomousPatchSummary>( new java.util.function.Supplier() { @Override public ListContainerDatabasePatchesRequest.Builder get() { return ListContainerDatabasePatchesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListContainerDatabasePatchesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListContainerDatabasePatchesRequest.Builder>, ListContainerDatabasePatchesRequest>() { @Override public ListContainerDatabasePatchesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListContainerDatabasePatchesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListContainerDatabasePatchesRequest, ListContainerDatabasePatchesResponse>() { @Override public ListContainerDatabasePatchesResponse apply( ListContainerDatabasePatchesRequest request) { return client.listContainerDatabasePatches(request); } }, new java.util.function.Function< ListContainerDatabasePatchesResponse, java.util.List>() { @Override public java.util.List apply(ListContainerDatabasePatchesResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listDataGuardAssociations operation. This iterable will fetch more data from the server as * needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listDataGuardAssociationsResponseIterator( final ListDataGuardAssociationsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListDataGuardAssociationsRequest.Builder, ListDataGuardAssociationsRequest, ListDataGuardAssociationsResponse>( new java.util.function.Supplier() { @Override public ListDataGuardAssociationsRequest.Builder get() { return ListDataGuardAssociationsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListDataGuardAssociationsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDataGuardAssociationsRequest.Builder>, ListDataGuardAssociationsRequest>() { @Override public ListDataGuardAssociationsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDataGuardAssociationsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListDataGuardAssociationsRequest, ListDataGuardAssociationsResponse>() { @Override public ListDataGuardAssociationsResponse apply( ListDataGuardAssociationsRequest request) { return client.listDataGuardAssociations(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.DataGuardAssociationSummary} objects contained in responses * from the listDataGuardAssociations operation. This iterable will fetch more data from the * server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.DataGuardAssociationSummary} objects contained in responses * received from the service. */ public Iterable listDataGuardAssociationsRecordIterator( final ListDataGuardAssociationsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListDataGuardAssociationsRequest.Builder, ListDataGuardAssociationsRequest, ListDataGuardAssociationsResponse, com.oracle.bmc.database.model.DataGuardAssociationSummary>( new java.util.function.Supplier() { @Override public ListDataGuardAssociationsRequest.Builder get() { return ListDataGuardAssociationsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListDataGuardAssociationsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDataGuardAssociationsRequest.Builder>, ListDataGuardAssociationsRequest>() { @Override public ListDataGuardAssociationsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDataGuardAssociationsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListDataGuardAssociationsRequest, ListDataGuardAssociationsResponse>() { @Override public ListDataGuardAssociationsResponse apply( ListDataGuardAssociationsRequest request) { return client.listDataGuardAssociations(request); } }, new java.util.function.Function< ListDataGuardAssociationsResponse, java.util.List< com.oracle.bmc.database.model.DataGuardAssociationSummary>>() { @Override public java.util.List apply(ListDataGuardAssociationsResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listDatabaseSoftwareImages operation. This iterable will fetch more data from the server as * needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listDatabaseSoftwareImagesResponseIterator( final ListDatabaseSoftwareImagesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListDatabaseSoftwareImagesRequest.Builder, ListDatabaseSoftwareImagesRequest, ListDatabaseSoftwareImagesResponse>( new java.util.function.Supplier() { @Override public ListDatabaseSoftwareImagesRequest.Builder get() { return ListDatabaseSoftwareImagesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListDatabaseSoftwareImagesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDatabaseSoftwareImagesRequest.Builder>, ListDatabaseSoftwareImagesRequest>() { @Override public ListDatabaseSoftwareImagesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDatabaseSoftwareImagesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListDatabaseSoftwareImagesRequest, ListDatabaseSoftwareImagesResponse>() { @Override public ListDatabaseSoftwareImagesResponse apply( ListDatabaseSoftwareImagesRequest request) { return client.listDatabaseSoftwareImages(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.DatabaseSoftwareImageSummary} objects contained in responses * from the listDatabaseSoftwareImages operation. This iterable will fetch more data from the * server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.DatabaseSoftwareImageSummary} objects contained in * responses received from the service. */ public Iterable listDatabaseSoftwareImagesRecordIterator( final ListDatabaseSoftwareImagesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListDatabaseSoftwareImagesRequest.Builder, ListDatabaseSoftwareImagesRequest, ListDatabaseSoftwareImagesResponse, com.oracle.bmc.database.model.DatabaseSoftwareImageSummary>( new java.util.function.Supplier() { @Override public ListDatabaseSoftwareImagesRequest.Builder get() { return ListDatabaseSoftwareImagesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListDatabaseSoftwareImagesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDatabaseSoftwareImagesRequest.Builder>, ListDatabaseSoftwareImagesRequest>() { @Override public ListDatabaseSoftwareImagesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDatabaseSoftwareImagesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListDatabaseSoftwareImagesRequest, ListDatabaseSoftwareImagesResponse>() { @Override public ListDatabaseSoftwareImagesResponse apply( ListDatabaseSoftwareImagesRequest request) { return client.listDatabaseSoftwareImages(request); } }, new java.util.function.Function< ListDatabaseSoftwareImagesResponse, java.util.List< com.oracle.bmc.database.model.DatabaseSoftwareImageSummary>>() { @Override public java.util.List< com.oracle.bmc.database.model.DatabaseSoftwareImageSummary> apply(ListDatabaseSoftwareImagesResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listDatabaseUpgradeHistoryEntries operation. This iterable will fetch more data from the * server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listDatabaseUpgradeHistoryEntriesResponseIterator( final ListDatabaseUpgradeHistoryEntriesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListDatabaseUpgradeHistoryEntriesRequest.Builder, ListDatabaseUpgradeHistoryEntriesRequest, ListDatabaseUpgradeHistoryEntriesResponse>( new java.util.function.Supplier< ListDatabaseUpgradeHistoryEntriesRequest.Builder>() { @Override public ListDatabaseUpgradeHistoryEntriesRequest.Builder get() { return ListDatabaseUpgradeHistoryEntriesRequest.builder().copy(request); } }, new java.util.function.Function< ListDatabaseUpgradeHistoryEntriesResponse, String>() { @Override public String apply(ListDatabaseUpgradeHistoryEntriesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDatabaseUpgradeHistoryEntriesRequest.Builder>, ListDatabaseUpgradeHistoryEntriesRequest>() { @Override public ListDatabaseUpgradeHistoryEntriesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDatabaseUpgradeHistoryEntriesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListDatabaseUpgradeHistoryEntriesRequest, ListDatabaseUpgradeHistoryEntriesResponse>() { @Override public ListDatabaseUpgradeHistoryEntriesResponse apply( ListDatabaseUpgradeHistoryEntriesRequest request) { return client.listDatabaseUpgradeHistoryEntries(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.DatabaseUpgradeHistoryEntrySummary} objects contained in * responses from the listDatabaseUpgradeHistoryEntries operation. This iterable will fetch more * data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.DatabaseUpgradeHistoryEntrySummary} objects contained in * responses received from the service. */ public Iterable listDatabaseUpgradeHistoryEntriesRecordIterator( final ListDatabaseUpgradeHistoryEntriesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListDatabaseUpgradeHistoryEntriesRequest.Builder, ListDatabaseUpgradeHistoryEntriesRequest, ListDatabaseUpgradeHistoryEntriesResponse, com.oracle.bmc.database.model.DatabaseUpgradeHistoryEntrySummary>( new java.util.function.Supplier< ListDatabaseUpgradeHistoryEntriesRequest.Builder>() { @Override public ListDatabaseUpgradeHistoryEntriesRequest.Builder get() { return ListDatabaseUpgradeHistoryEntriesRequest.builder().copy(request); } }, new java.util.function.Function< ListDatabaseUpgradeHistoryEntriesResponse, String>() { @Override public String apply(ListDatabaseUpgradeHistoryEntriesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDatabaseUpgradeHistoryEntriesRequest.Builder>, ListDatabaseUpgradeHistoryEntriesRequest>() { @Override public ListDatabaseUpgradeHistoryEntriesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDatabaseUpgradeHistoryEntriesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListDatabaseUpgradeHistoryEntriesRequest, ListDatabaseUpgradeHistoryEntriesResponse>() { @Override public ListDatabaseUpgradeHistoryEntriesResponse apply( ListDatabaseUpgradeHistoryEntriesRequest request) { return client.listDatabaseUpgradeHistoryEntries(request); } }, new java.util.function.Function< ListDatabaseUpgradeHistoryEntriesResponse, java.util.List< com.oracle.bmc.database.model .DatabaseUpgradeHistoryEntrySummary>>() { @Override public java.util.List< com.oracle.bmc.database.model .DatabaseUpgradeHistoryEntrySummary> apply(ListDatabaseUpgradeHistoryEntriesResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the listDatabases * operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listDatabasesResponseIterator( final ListDatabasesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListDatabasesRequest.Builder, ListDatabasesRequest, ListDatabasesResponse>( new java.util.function.Supplier() { @Override public ListDatabasesRequest.Builder get() { return ListDatabasesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListDatabasesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDatabasesRequest.Builder>, ListDatabasesRequest>() { @Override public ListDatabasesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDatabasesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function() { @Override public ListDatabasesResponse apply(ListDatabasesRequest request) { return client.listDatabases(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.DatabaseSummary} objects contained in responses from the * listDatabases operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.DatabaseSummary} objects contained in responses received * from the service. */ public Iterable listDatabasesRecordIterator( final ListDatabasesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListDatabasesRequest.Builder, ListDatabasesRequest, ListDatabasesResponse, com.oracle.bmc.database.model.DatabaseSummary>( new java.util.function.Supplier() { @Override public ListDatabasesRequest.Builder get() { return ListDatabasesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListDatabasesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDatabasesRequest.Builder>, ListDatabasesRequest>() { @Override public ListDatabasesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDatabasesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function() { @Override public ListDatabasesResponse apply(ListDatabasesRequest request) { return client.listDatabases(request); } }, new java.util.function.Function< ListDatabasesResponse, java.util.List>() { @Override public java.util.List apply( ListDatabasesResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listDbHomePatchHistoryEntries operation. This iterable will fetch more data from the server * as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listDbHomePatchHistoryEntriesResponseIterator( final ListDbHomePatchHistoryEntriesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListDbHomePatchHistoryEntriesRequest.Builder, ListDbHomePatchHistoryEntriesRequest, ListDbHomePatchHistoryEntriesResponse>( new java.util.function.Supplier() { @Override public ListDbHomePatchHistoryEntriesRequest.Builder get() { return ListDbHomePatchHistoryEntriesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListDbHomePatchHistoryEntriesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbHomePatchHistoryEntriesRequest.Builder>, ListDbHomePatchHistoryEntriesRequest>() { @Override public ListDbHomePatchHistoryEntriesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbHomePatchHistoryEntriesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListDbHomePatchHistoryEntriesRequest, ListDbHomePatchHistoryEntriesResponse>() { @Override public ListDbHomePatchHistoryEntriesResponse apply( ListDbHomePatchHistoryEntriesRequest request) { return client.listDbHomePatchHistoryEntries(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.PatchHistoryEntrySummary} objects contained in responses from * the listDbHomePatchHistoryEntries operation. This iterable will fetch more data from the * server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.PatchHistoryEntrySummary} objects contained in responses * received from the service. */ public Iterable listDbHomePatchHistoryEntriesRecordIterator( final ListDbHomePatchHistoryEntriesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListDbHomePatchHistoryEntriesRequest.Builder, ListDbHomePatchHistoryEntriesRequest, ListDbHomePatchHistoryEntriesResponse, com.oracle.bmc.database.model.PatchHistoryEntrySummary>( new java.util.function.Supplier() { @Override public ListDbHomePatchHistoryEntriesRequest.Builder get() { return ListDbHomePatchHistoryEntriesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListDbHomePatchHistoryEntriesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbHomePatchHistoryEntriesRequest.Builder>, ListDbHomePatchHistoryEntriesRequest>() { @Override public ListDbHomePatchHistoryEntriesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbHomePatchHistoryEntriesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListDbHomePatchHistoryEntriesRequest, ListDbHomePatchHistoryEntriesResponse>() { @Override public ListDbHomePatchHistoryEntriesResponse apply( ListDbHomePatchHistoryEntriesRequest request) { return client.listDbHomePatchHistoryEntries(request); } }, new java.util.function.Function< ListDbHomePatchHistoryEntriesResponse, java.util.List>() { @Override public java.util.List apply(ListDbHomePatchHistoryEntriesResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listDbHomePatches operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listDbHomePatchesResponseIterator( final ListDbHomePatchesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListDbHomePatchesRequest.Builder, ListDbHomePatchesRequest, ListDbHomePatchesResponse>( new java.util.function.Supplier() { @Override public ListDbHomePatchesRequest.Builder get() { return ListDbHomePatchesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListDbHomePatchesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbHomePatchesRequest.Builder>, ListDbHomePatchesRequest>() { @Override public ListDbHomePatchesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbHomePatchesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListDbHomePatchesRequest, ListDbHomePatchesResponse>() { @Override public ListDbHomePatchesResponse apply(ListDbHomePatchesRequest request) { return client.listDbHomePatches(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.PatchSummary} objects contained in responses from the * listDbHomePatches operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.PatchSummary} objects contained in responses received from * the service. */ public Iterable listDbHomePatchesRecordIterator( final ListDbHomePatchesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListDbHomePatchesRequest.Builder, ListDbHomePatchesRequest, ListDbHomePatchesResponse, com.oracle.bmc.database.model.PatchSummary>( new java.util.function.Supplier() { @Override public ListDbHomePatchesRequest.Builder get() { return ListDbHomePatchesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListDbHomePatchesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbHomePatchesRequest.Builder>, ListDbHomePatchesRequest>() { @Override public ListDbHomePatchesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbHomePatchesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListDbHomePatchesRequest, ListDbHomePatchesResponse>() { @Override public ListDbHomePatchesResponse apply(ListDbHomePatchesRequest request) { return client.listDbHomePatches(request); } }, new java.util.function.Function< ListDbHomePatchesResponse, java.util.List>() { @Override public java.util.List apply( ListDbHomePatchesResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the listDbHomes * operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listDbHomesResponseIterator( final ListDbHomesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListDbHomesRequest.Builder, ListDbHomesRequest, ListDbHomesResponse>( new java.util.function.Supplier() { @Override public ListDbHomesRequest.Builder get() { return ListDbHomesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListDbHomesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbHomesRequest.Builder>, ListDbHomesRequest>() { @Override public ListDbHomesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbHomesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function() { @Override public ListDbHomesResponse apply(ListDbHomesRequest request) { return client.listDbHomes(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.DbHomeSummary} objects contained in responses from the * listDbHomes operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.DbHomeSummary} objects contained in responses received from * the service. */ public Iterable listDbHomesRecordIterator( final ListDbHomesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListDbHomesRequest.Builder, ListDbHomesRequest, ListDbHomesResponse, com.oracle.bmc.database.model.DbHomeSummary>( new java.util.function.Supplier() { @Override public ListDbHomesRequest.Builder get() { return ListDbHomesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListDbHomesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbHomesRequest.Builder>, ListDbHomesRequest>() { @Override public ListDbHomesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbHomesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function() { @Override public ListDbHomesResponse apply(ListDbHomesRequest request) { return client.listDbHomes(request); } }, new java.util.function.Function< ListDbHomesResponse, java.util.List>() { @Override public java.util.List apply( ListDbHomesResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the listDbNodes * operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listDbNodesResponseIterator( final ListDbNodesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListDbNodesRequest.Builder, ListDbNodesRequest, ListDbNodesResponse>( new java.util.function.Supplier() { @Override public ListDbNodesRequest.Builder get() { return ListDbNodesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListDbNodesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbNodesRequest.Builder>, ListDbNodesRequest>() { @Override public ListDbNodesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbNodesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function() { @Override public ListDbNodesResponse apply(ListDbNodesRequest request) { return client.listDbNodes(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.DbNodeSummary} objects contained in responses from the * listDbNodes operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.DbNodeSummary} objects contained in responses received from * the service. */ public Iterable listDbNodesRecordIterator( final ListDbNodesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListDbNodesRequest.Builder, ListDbNodesRequest, ListDbNodesResponse, com.oracle.bmc.database.model.DbNodeSummary>( new java.util.function.Supplier() { @Override public ListDbNodesRequest.Builder get() { return ListDbNodesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListDbNodesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbNodesRequest.Builder>, ListDbNodesRequest>() { @Override public ListDbNodesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbNodesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function() { @Override public ListDbNodesResponse apply(ListDbNodesRequest request) { return client.listDbNodes(request); } }, new java.util.function.Function< ListDbNodesResponse, java.util.List>() { @Override public java.util.List apply( ListDbNodesResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the listDbServers * operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listDbServersResponseIterator( final ListDbServersRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListDbServersRequest.Builder, ListDbServersRequest, ListDbServersResponse>( new java.util.function.Supplier() { @Override public ListDbServersRequest.Builder get() { return ListDbServersRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListDbServersResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbServersRequest.Builder>, ListDbServersRequest>() { @Override public ListDbServersRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbServersRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function() { @Override public ListDbServersResponse apply(ListDbServersRequest request) { return client.listDbServers(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.DbServerSummary} objects contained in responses from the * listDbServers operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.DbServerSummary} objects contained in responses received * from the service. */ public Iterable listDbServersRecordIterator( final ListDbServersRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListDbServersRequest.Builder, ListDbServersRequest, ListDbServersResponse, com.oracle.bmc.database.model.DbServerSummary>( new java.util.function.Supplier() { @Override public ListDbServersRequest.Builder get() { return ListDbServersRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListDbServersResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbServersRequest.Builder>, ListDbServersRequest>() { @Override public ListDbServersRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbServersRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function() { @Override public ListDbServersResponse apply(ListDbServersRequest request) { return client.listDbServers(request); } }, new java.util.function.Function< ListDbServersResponse, java.util.List>() { @Override public java.util.List apply( ListDbServersResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listDbSystemPatchHistoryEntries operation. This iterable will fetch more data from the server * as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listDbSystemPatchHistoryEntriesResponseIterator( final ListDbSystemPatchHistoryEntriesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListDbSystemPatchHistoryEntriesRequest.Builder, ListDbSystemPatchHistoryEntriesRequest, ListDbSystemPatchHistoryEntriesResponse>( new java.util.function.Supplier() { @Override public ListDbSystemPatchHistoryEntriesRequest.Builder get() { return ListDbSystemPatchHistoryEntriesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListDbSystemPatchHistoryEntriesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbSystemPatchHistoryEntriesRequest.Builder>, ListDbSystemPatchHistoryEntriesRequest>() { @Override public ListDbSystemPatchHistoryEntriesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbSystemPatchHistoryEntriesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListDbSystemPatchHistoryEntriesRequest, ListDbSystemPatchHistoryEntriesResponse>() { @Override public ListDbSystemPatchHistoryEntriesResponse apply( ListDbSystemPatchHistoryEntriesRequest request) { return client.listDbSystemPatchHistoryEntries(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.PatchHistoryEntrySummary} objects contained in responses from * the listDbSystemPatchHistoryEntries operation. This iterable will fetch more data from the * server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.PatchHistoryEntrySummary} objects contained in responses * received from the service. */ public Iterable listDbSystemPatchHistoryEntriesRecordIterator( final ListDbSystemPatchHistoryEntriesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListDbSystemPatchHistoryEntriesRequest.Builder, ListDbSystemPatchHistoryEntriesRequest, ListDbSystemPatchHistoryEntriesResponse, com.oracle.bmc.database.model.PatchHistoryEntrySummary>( new java.util.function.Supplier() { @Override public ListDbSystemPatchHistoryEntriesRequest.Builder get() { return ListDbSystemPatchHistoryEntriesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListDbSystemPatchHistoryEntriesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbSystemPatchHistoryEntriesRequest.Builder>, ListDbSystemPatchHistoryEntriesRequest>() { @Override public ListDbSystemPatchHistoryEntriesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbSystemPatchHistoryEntriesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListDbSystemPatchHistoryEntriesRequest, ListDbSystemPatchHistoryEntriesResponse>() { @Override public ListDbSystemPatchHistoryEntriesResponse apply( ListDbSystemPatchHistoryEntriesRequest request) { return client.listDbSystemPatchHistoryEntries(request); } }, new java.util.function.Function< ListDbSystemPatchHistoryEntriesResponse, java.util.List>() { @Override public java.util.List apply(ListDbSystemPatchHistoryEntriesResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listDbSystemPatches operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listDbSystemPatchesResponseIterator( final ListDbSystemPatchesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListDbSystemPatchesRequest.Builder, ListDbSystemPatchesRequest, ListDbSystemPatchesResponse>( new java.util.function.Supplier() { @Override public ListDbSystemPatchesRequest.Builder get() { return ListDbSystemPatchesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListDbSystemPatchesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbSystemPatchesRequest.Builder>, ListDbSystemPatchesRequest>() { @Override public ListDbSystemPatchesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbSystemPatchesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListDbSystemPatchesRequest, ListDbSystemPatchesResponse>() { @Override public ListDbSystemPatchesResponse apply(ListDbSystemPatchesRequest request) { return client.listDbSystemPatches(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.PatchSummary} objects contained in responses from the * listDbSystemPatches operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.PatchSummary} objects contained in responses received from * the service. */ public Iterable listDbSystemPatchesRecordIterator( final ListDbSystemPatchesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListDbSystemPatchesRequest.Builder, ListDbSystemPatchesRequest, ListDbSystemPatchesResponse, com.oracle.bmc.database.model.PatchSummary>( new java.util.function.Supplier() { @Override public ListDbSystemPatchesRequest.Builder get() { return ListDbSystemPatchesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListDbSystemPatchesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbSystemPatchesRequest.Builder>, ListDbSystemPatchesRequest>() { @Override public ListDbSystemPatchesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbSystemPatchesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListDbSystemPatchesRequest, ListDbSystemPatchesResponse>() { @Override public ListDbSystemPatchesResponse apply(ListDbSystemPatchesRequest request) { return client.listDbSystemPatches(request); } }, new java.util.function.Function< ListDbSystemPatchesResponse, java.util.List>() { @Override public java.util.List apply( ListDbSystemPatchesResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listDbSystemShapes operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listDbSystemShapesResponseIterator( final ListDbSystemShapesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListDbSystemShapesRequest.Builder, ListDbSystemShapesRequest, ListDbSystemShapesResponse>( new java.util.function.Supplier() { @Override public ListDbSystemShapesRequest.Builder get() { return ListDbSystemShapesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListDbSystemShapesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbSystemShapesRequest.Builder>, ListDbSystemShapesRequest>() { @Override public ListDbSystemShapesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbSystemShapesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListDbSystemShapesRequest, ListDbSystemShapesResponse>() { @Override public ListDbSystemShapesResponse apply(ListDbSystemShapesRequest request) { return client.listDbSystemShapes(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.DbSystemShapeSummary} objects contained in responses from the * listDbSystemShapes operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.DbSystemShapeSummary} objects contained in responses * received from the service. */ public Iterable listDbSystemShapesRecordIterator(final ListDbSystemShapesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListDbSystemShapesRequest.Builder, ListDbSystemShapesRequest, ListDbSystemShapesResponse, com.oracle.bmc.database.model.DbSystemShapeSummary>( new java.util.function.Supplier() { @Override public ListDbSystemShapesRequest.Builder get() { return ListDbSystemShapesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListDbSystemShapesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbSystemShapesRequest.Builder>, ListDbSystemShapesRequest>() { @Override public ListDbSystemShapesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbSystemShapesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListDbSystemShapesRequest, ListDbSystemShapesResponse>() { @Override public ListDbSystemShapesResponse apply(ListDbSystemShapesRequest request) { return client.listDbSystemShapes(request); } }, new java.util.function.Function< ListDbSystemShapesResponse, java.util.List>() { @Override public java.util.List apply( ListDbSystemShapesResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listDbSystemUpgradeHistoryEntries operation. This iterable will fetch more data from the * server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listDbSystemUpgradeHistoryEntriesResponseIterator( final ListDbSystemUpgradeHistoryEntriesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListDbSystemUpgradeHistoryEntriesRequest.Builder, ListDbSystemUpgradeHistoryEntriesRequest, ListDbSystemUpgradeHistoryEntriesResponse>( new java.util.function.Supplier< ListDbSystemUpgradeHistoryEntriesRequest.Builder>() { @Override public ListDbSystemUpgradeHistoryEntriesRequest.Builder get() { return ListDbSystemUpgradeHistoryEntriesRequest.builder().copy(request); } }, new java.util.function.Function< ListDbSystemUpgradeHistoryEntriesResponse, String>() { @Override public String apply(ListDbSystemUpgradeHistoryEntriesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbSystemUpgradeHistoryEntriesRequest.Builder>, ListDbSystemUpgradeHistoryEntriesRequest>() { @Override public ListDbSystemUpgradeHistoryEntriesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbSystemUpgradeHistoryEntriesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListDbSystemUpgradeHistoryEntriesRequest, ListDbSystemUpgradeHistoryEntriesResponse>() { @Override public ListDbSystemUpgradeHistoryEntriesResponse apply( ListDbSystemUpgradeHistoryEntriesRequest request) { return client.listDbSystemUpgradeHistoryEntries(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.DbSystemUpgradeHistoryEntrySummary} objects contained in * responses from the listDbSystemUpgradeHistoryEntries operation. This iterable will fetch more * data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.DbSystemUpgradeHistoryEntrySummary} objects contained in * responses received from the service. */ public Iterable listDbSystemUpgradeHistoryEntriesRecordIterator( final ListDbSystemUpgradeHistoryEntriesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListDbSystemUpgradeHistoryEntriesRequest.Builder, ListDbSystemUpgradeHistoryEntriesRequest, ListDbSystemUpgradeHistoryEntriesResponse, com.oracle.bmc.database.model.DbSystemUpgradeHistoryEntrySummary>( new java.util.function.Supplier< ListDbSystemUpgradeHistoryEntriesRequest.Builder>() { @Override public ListDbSystemUpgradeHistoryEntriesRequest.Builder get() { return ListDbSystemUpgradeHistoryEntriesRequest.builder().copy(request); } }, new java.util.function.Function< ListDbSystemUpgradeHistoryEntriesResponse, String>() { @Override public String apply(ListDbSystemUpgradeHistoryEntriesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbSystemUpgradeHistoryEntriesRequest.Builder>, ListDbSystemUpgradeHistoryEntriesRequest>() { @Override public ListDbSystemUpgradeHistoryEntriesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbSystemUpgradeHistoryEntriesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListDbSystemUpgradeHistoryEntriesRequest, ListDbSystemUpgradeHistoryEntriesResponse>() { @Override public ListDbSystemUpgradeHistoryEntriesResponse apply( ListDbSystemUpgradeHistoryEntriesRequest request) { return client.listDbSystemUpgradeHistoryEntries(request); } }, new java.util.function.Function< ListDbSystemUpgradeHistoryEntriesResponse, java.util.List< com.oracle.bmc.database.model .DbSystemUpgradeHistoryEntrySummary>>() { @Override public java.util.List< com.oracle.bmc.database.model .DbSystemUpgradeHistoryEntrySummary> apply(ListDbSystemUpgradeHistoryEntriesResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the listDbSystems * operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listDbSystemsResponseIterator( final ListDbSystemsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListDbSystemsRequest.Builder, ListDbSystemsRequest, ListDbSystemsResponse>( new java.util.function.Supplier() { @Override public ListDbSystemsRequest.Builder get() { return ListDbSystemsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListDbSystemsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbSystemsRequest.Builder>, ListDbSystemsRequest>() { @Override public ListDbSystemsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbSystemsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function() { @Override public ListDbSystemsResponse apply(ListDbSystemsRequest request) { return client.listDbSystems(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.DbSystemSummary} objects contained in responses from the * listDbSystems operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.DbSystemSummary} objects contained in responses received * from the service. */ public Iterable listDbSystemsRecordIterator( final ListDbSystemsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListDbSystemsRequest.Builder, ListDbSystemsRequest, ListDbSystemsResponse, com.oracle.bmc.database.model.DbSystemSummary>( new java.util.function.Supplier() { @Override public ListDbSystemsRequest.Builder get() { return ListDbSystemsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListDbSystemsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbSystemsRequest.Builder>, ListDbSystemsRequest>() { @Override public ListDbSystemsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbSystemsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function() { @Override public ListDbSystemsResponse apply(ListDbSystemsRequest request) { return client.listDbSystems(request); } }, new java.util.function.Function< ListDbSystemsResponse, java.util.List>() { @Override public java.util.List apply( ListDbSystemsResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the listDbVersions * operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listDbVersionsResponseIterator( final ListDbVersionsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListDbVersionsRequest.Builder, ListDbVersionsRequest, ListDbVersionsResponse>( new java.util.function.Supplier() { @Override public ListDbVersionsRequest.Builder get() { return ListDbVersionsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListDbVersionsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbVersionsRequest.Builder>, ListDbVersionsRequest>() { @Override public ListDbVersionsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbVersionsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function() { @Override public ListDbVersionsResponse apply(ListDbVersionsRequest request) { return client.listDbVersions(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.DbVersionSummary} objects contained in responses from the * listDbVersions operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.DbVersionSummary} objects contained in responses received * from the service. */ public Iterable listDbVersionsRecordIterator( final ListDbVersionsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListDbVersionsRequest.Builder, ListDbVersionsRequest, ListDbVersionsResponse, com.oracle.bmc.database.model.DbVersionSummary>( new java.util.function.Supplier() { @Override public ListDbVersionsRequest.Builder get() { return ListDbVersionsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListDbVersionsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbVersionsRequest.Builder>, ListDbVersionsRequest>() { @Override public ListDbVersionsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListDbVersionsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function() { @Override public ListDbVersionsResponse apply(ListDbVersionsRequest request) { return client.listDbVersions(request); } }, new java.util.function.Function< ListDbVersionsResponse, java.util.List>() { @Override public java.util.List apply( ListDbVersionsResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listExadataInfrastructures operation. This iterable will fetch more data from the server as * needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listExadataInfrastructuresResponseIterator( final ListExadataInfrastructuresRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListExadataInfrastructuresRequest.Builder, ListExadataInfrastructuresRequest, ListExadataInfrastructuresResponse>( new java.util.function.Supplier() { @Override public ListExadataInfrastructuresRequest.Builder get() { return ListExadataInfrastructuresRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListExadataInfrastructuresResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExadataInfrastructuresRequest.Builder>, ListExadataInfrastructuresRequest>() { @Override public ListExadataInfrastructuresRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExadataInfrastructuresRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListExadataInfrastructuresRequest, ListExadataInfrastructuresResponse>() { @Override public ListExadataInfrastructuresResponse apply( ListExadataInfrastructuresRequest request) { return client.listExadataInfrastructures(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.ExadataInfrastructureSummary} objects contained in responses * from the listExadataInfrastructures operation. This iterable will fetch more data from the * server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.ExadataInfrastructureSummary} objects contained in * responses received from the service. */ public Iterable listExadataInfrastructuresRecordIterator( final ListExadataInfrastructuresRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListExadataInfrastructuresRequest.Builder, ListExadataInfrastructuresRequest, ListExadataInfrastructuresResponse, com.oracle.bmc.database.model.ExadataInfrastructureSummary>( new java.util.function.Supplier() { @Override public ListExadataInfrastructuresRequest.Builder get() { return ListExadataInfrastructuresRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListExadataInfrastructuresResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExadataInfrastructuresRequest.Builder>, ListExadataInfrastructuresRequest>() { @Override public ListExadataInfrastructuresRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExadataInfrastructuresRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListExadataInfrastructuresRequest, ListExadataInfrastructuresResponse>() { @Override public ListExadataInfrastructuresResponse apply( ListExadataInfrastructuresRequest request) { return client.listExadataInfrastructures(request); } }, new java.util.function.Function< ListExadataInfrastructuresResponse, java.util.List< com.oracle.bmc.database.model.ExadataInfrastructureSummary>>() { @Override public java.util.List< com.oracle.bmc.database.model.ExadataInfrastructureSummary> apply(ListExadataInfrastructuresResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listExadbVmClusterUpdateHistoryEntries operation. This iterable will fetch more data from the * server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listExadbVmClusterUpdateHistoryEntriesResponseIterator( final ListExadbVmClusterUpdateHistoryEntriesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListExadbVmClusterUpdateHistoryEntriesRequest.Builder, ListExadbVmClusterUpdateHistoryEntriesRequest, ListExadbVmClusterUpdateHistoryEntriesResponse>( new java.util.function.Supplier< ListExadbVmClusterUpdateHistoryEntriesRequest.Builder>() { @Override public ListExadbVmClusterUpdateHistoryEntriesRequest.Builder get() { return ListExadbVmClusterUpdateHistoryEntriesRequest.builder() .copy(request); } }, new java.util.function.Function< ListExadbVmClusterUpdateHistoryEntriesResponse, String>() { @Override public String apply(ListExadbVmClusterUpdateHistoryEntriesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExadbVmClusterUpdateHistoryEntriesRequest.Builder>, ListExadbVmClusterUpdateHistoryEntriesRequest>() { @Override public ListExadbVmClusterUpdateHistoryEntriesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExadbVmClusterUpdateHistoryEntriesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListExadbVmClusterUpdateHistoryEntriesRequest, ListExadbVmClusterUpdateHistoryEntriesResponse>() { @Override public ListExadbVmClusterUpdateHistoryEntriesResponse apply( ListExadbVmClusterUpdateHistoryEntriesRequest request) { return client.listExadbVmClusterUpdateHistoryEntries(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.ExadbVmClusterUpdateHistoryEntrySummary} objects contained in * responses from the listExadbVmClusterUpdateHistoryEntries operation. This iterable will fetch * more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.ExadbVmClusterUpdateHistoryEntrySummary} objects contained * in responses received from the service. */ public Iterable listExadbVmClusterUpdateHistoryEntriesRecordIterator( final ListExadbVmClusterUpdateHistoryEntriesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListExadbVmClusterUpdateHistoryEntriesRequest.Builder, ListExadbVmClusterUpdateHistoryEntriesRequest, ListExadbVmClusterUpdateHistoryEntriesResponse, com.oracle.bmc.database.model.ExadbVmClusterUpdateHistoryEntrySummary>( new java.util.function.Supplier< ListExadbVmClusterUpdateHistoryEntriesRequest.Builder>() { @Override public ListExadbVmClusterUpdateHistoryEntriesRequest.Builder get() { return ListExadbVmClusterUpdateHistoryEntriesRequest.builder() .copy(request); } }, new java.util.function.Function< ListExadbVmClusterUpdateHistoryEntriesResponse, String>() { @Override public String apply(ListExadbVmClusterUpdateHistoryEntriesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExadbVmClusterUpdateHistoryEntriesRequest.Builder>, ListExadbVmClusterUpdateHistoryEntriesRequest>() { @Override public ListExadbVmClusterUpdateHistoryEntriesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExadbVmClusterUpdateHistoryEntriesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListExadbVmClusterUpdateHistoryEntriesRequest, ListExadbVmClusterUpdateHistoryEntriesResponse>() { @Override public ListExadbVmClusterUpdateHistoryEntriesResponse apply( ListExadbVmClusterUpdateHistoryEntriesRequest request) { return client.listExadbVmClusterUpdateHistoryEntries(request); } }, new java.util.function.Function< ListExadbVmClusterUpdateHistoryEntriesResponse, java.util.List< com.oracle.bmc.database.model .ExadbVmClusterUpdateHistoryEntrySummary>>() { @Override public java.util.List< com.oracle.bmc.database.model .ExadbVmClusterUpdateHistoryEntrySummary> apply(ListExadbVmClusterUpdateHistoryEntriesResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listExadbVmClusterUpdates operation. This iterable will fetch more data from the server as * needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listExadbVmClusterUpdatesResponseIterator( final ListExadbVmClusterUpdatesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListExadbVmClusterUpdatesRequest.Builder, ListExadbVmClusterUpdatesRequest, ListExadbVmClusterUpdatesResponse>( new java.util.function.Supplier() { @Override public ListExadbVmClusterUpdatesRequest.Builder get() { return ListExadbVmClusterUpdatesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListExadbVmClusterUpdatesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExadbVmClusterUpdatesRequest.Builder>, ListExadbVmClusterUpdatesRequest>() { @Override public ListExadbVmClusterUpdatesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExadbVmClusterUpdatesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListExadbVmClusterUpdatesRequest, ListExadbVmClusterUpdatesResponse>() { @Override public ListExadbVmClusterUpdatesResponse apply( ListExadbVmClusterUpdatesRequest request) { return client.listExadbVmClusterUpdates(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.ExadbVmClusterUpdateSummary} objects contained in responses * from the listExadbVmClusterUpdates operation. This iterable will fetch more data from the * server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.ExadbVmClusterUpdateSummary} objects contained in responses * received from the service. */ public Iterable listExadbVmClusterUpdatesRecordIterator( final ListExadbVmClusterUpdatesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListExadbVmClusterUpdatesRequest.Builder, ListExadbVmClusterUpdatesRequest, ListExadbVmClusterUpdatesResponse, com.oracle.bmc.database.model.ExadbVmClusterUpdateSummary>( new java.util.function.Supplier() { @Override public ListExadbVmClusterUpdatesRequest.Builder get() { return ListExadbVmClusterUpdatesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListExadbVmClusterUpdatesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExadbVmClusterUpdatesRequest.Builder>, ListExadbVmClusterUpdatesRequest>() { @Override public ListExadbVmClusterUpdatesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExadbVmClusterUpdatesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListExadbVmClusterUpdatesRequest, ListExadbVmClusterUpdatesResponse>() { @Override public ListExadbVmClusterUpdatesResponse apply( ListExadbVmClusterUpdatesRequest request) { return client.listExadbVmClusterUpdates(request); } }, new java.util.function.Function< ListExadbVmClusterUpdatesResponse, java.util.List< com.oracle.bmc.database.model.ExadbVmClusterUpdateSummary>>() { @Override public java.util.List apply(ListExadbVmClusterUpdatesResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listExadbVmClusters operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listExadbVmClustersResponseIterator( final ListExadbVmClustersRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListExadbVmClustersRequest.Builder, ListExadbVmClustersRequest, ListExadbVmClustersResponse>( new java.util.function.Supplier() { @Override public ListExadbVmClustersRequest.Builder get() { return ListExadbVmClustersRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListExadbVmClustersResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExadbVmClustersRequest.Builder>, ListExadbVmClustersRequest>() { @Override public ListExadbVmClustersRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExadbVmClustersRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListExadbVmClustersRequest, ListExadbVmClustersResponse>() { @Override public ListExadbVmClustersResponse apply(ListExadbVmClustersRequest request) { return client.listExadbVmClusters(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.ExadbVmClusterSummary} objects contained in responses from the * listExadbVmClusters operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.ExadbVmClusterSummary} objects contained in responses * received from the service. */ public Iterable listExadbVmClustersRecordIterator(final ListExadbVmClustersRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListExadbVmClustersRequest.Builder, ListExadbVmClustersRequest, ListExadbVmClustersResponse, com.oracle.bmc.database.model.ExadbVmClusterSummary>( new java.util.function.Supplier() { @Override public ListExadbVmClustersRequest.Builder get() { return ListExadbVmClustersRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListExadbVmClustersResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExadbVmClustersRequest.Builder>, ListExadbVmClustersRequest>() { @Override public ListExadbVmClustersRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExadbVmClustersRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListExadbVmClustersRequest, ListExadbVmClustersResponse>() { @Override public ListExadbVmClustersResponse apply(ListExadbVmClustersRequest request) { return client.listExadbVmClusters(request); } }, new java.util.function.Function< ListExadbVmClustersResponse, java.util.List>() { @Override public java.util.List apply(ListExadbVmClustersResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listExascaleDbStorageVaults operation. This iterable will fetch more data from the server as * needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listExascaleDbStorageVaultsResponseIterator( final ListExascaleDbStorageVaultsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListExascaleDbStorageVaultsRequest.Builder, ListExascaleDbStorageVaultsRequest, ListExascaleDbStorageVaultsResponse>( new java.util.function.Supplier() { @Override public ListExascaleDbStorageVaultsRequest.Builder get() { return ListExascaleDbStorageVaultsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListExascaleDbStorageVaultsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExascaleDbStorageVaultsRequest.Builder>, ListExascaleDbStorageVaultsRequest>() { @Override public ListExascaleDbStorageVaultsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExascaleDbStorageVaultsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListExascaleDbStorageVaultsRequest, ListExascaleDbStorageVaultsResponse>() { @Override public ListExascaleDbStorageVaultsResponse apply( ListExascaleDbStorageVaultsRequest request) { return client.listExascaleDbStorageVaults(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.ExascaleDbStorageVaultSummary} objects contained in responses * from the listExascaleDbStorageVaults operation. This iterable will fetch more data from the * server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.ExascaleDbStorageVaultSummary} objects contained in * responses received from the service. */ public Iterable listExascaleDbStorageVaultsRecordIterator( final ListExascaleDbStorageVaultsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListExascaleDbStorageVaultsRequest.Builder, ListExascaleDbStorageVaultsRequest, ListExascaleDbStorageVaultsResponse, com.oracle.bmc.database.model.ExascaleDbStorageVaultSummary>( new java.util.function.Supplier() { @Override public ListExascaleDbStorageVaultsRequest.Builder get() { return ListExascaleDbStorageVaultsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListExascaleDbStorageVaultsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExascaleDbStorageVaultsRequest.Builder>, ListExascaleDbStorageVaultsRequest>() { @Override public ListExascaleDbStorageVaultsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExascaleDbStorageVaultsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListExascaleDbStorageVaultsRequest, ListExascaleDbStorageVaultsResponse>() { @Override public ListExascaleDbStorageVaultsResponse apply( ListExascaleDbStorageVaultsRequest request) { return client.listExascaleDbStorageVaults(request); } }, new java.util.function.Function< ListExascaleDbStorageVaultsResponse, java.util.List< com.oracle.bmc.database.model.ExascaleDbStorageVaultSummary>>() { @Override public java.util.List< com.oracle.bmc.database.model.ExascaleDbStorageVaultSummary> apply(ListExascaleDbStorageVaultsResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listExecutionActions operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listExecutionActionsResponseIterator( final ListExecutionActionsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListExecutionActionsRequest.Builder, ListExecutionActionsRequest, ListExecutionActionsResponse>( new java.util.function.Supplier() { @Override public ListExecutionActionsRequest.Builder get() { return ListExecutionActionsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListExecutionActionsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExecutionActionsRequest.Builder>, ListExecutionActionsRequest>() { @Override public ListExecutionActionsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExecutionActionsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListExecutionActionsRequest, ListExecutionActionsResponse>() { @Override public ListExecutionActionsResponse apply(ListExecutionActionsRequest request) { return client.listExecutionActions(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.ExecutionActionSummary} objects contained in responses from the * listExecutionActions operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.ExecutionActionSummary} objects contained in responses * received from the service. */ public Iterable listExecutionActionsRecordIterator(final ListExecutionActionsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListExecutionActionsRequest.Builder, ListExecutionActionsRequest, ListExecutionActionsResponse, com.oracle.bmc.database.model.ExecutionActionSummary>( new java.util.function.Supplier() { @Override public ListExecutionActionsRequest.Builder get() { return ListExecutionActionsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListExecutionActionsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExecutionActionsRequest.Builder>, ListExecutionActionsRequest>() { @Override public ListExecutionActionsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExecutionActionsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListExecutionActionsRequest, ListExecutionActionsResponse>() { @Override public ListExecutionActionsResponse apply(ListExecutionActionsRequest request) { return client.listExecutionActions(request); } }, new java.util.function.Function< ListExecutionActionsResponse, java.util.List>() { @Override public java.util.List apply(ListExecutionActionsResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listExecutionWindows operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listExecutionWindowsResponseIterator( final ListExecutionWindowsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListExecutionWindowsRequest.Builder, ListExecutionWindowsRequest, ListExecutionWindowsResponse>( new java.util.function.Supplier() { @Override public ListExecutionWindowsRequest.Builder get() { return ListExecutionWindowsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListExecutionWindowsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExecutionWindowsRequest.Builder>, ListExecutionWindowsRequest>() { @Override public ListExecutionWindowsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExecutionWindowsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListExecutionWindowsRequest, ListExecutionWindowsResponse>() { @Override public ListExecutionWindowsResponse apply(ListExecutionWindowsRequest request) { return client.listExecutionWindows(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.ExecutionWindowSummary} objects contained in responses from the * listExecutionWindows operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.ExecutionWindowSummary} objects contained in responses * received from the service. */ public Iterable listExecutionWindowsRecordIterator(final ListExecutionWindowsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListExecutionWindowsRequest.Builder, ListExecutionWindowsRequest, ListExecutionWindowsResponse, com.oracle.bmc.database.model.ExecutionWindowSummary>( new java.util.function.Supplier() { @Override public ListExecutionWindowsRequest.Builder get() { return ListExecutionWindowsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListExecutionWindowsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExecutionWindowsRequest.Builder>, ListExecutionWindowsRequest>() { @Override public ListExecutionWindowsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExecutionWindowsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListExecutionWindowsRequest, ListExecutionWindowsResponse>() { @Override public ListExecutionWindowsResponse apply(ListExecutionWindowsRequest request) { return client.listExecutionWindows(request); } }, new java.util.function.Function< ListExecutionWindowsResponse, java.util.List>() { @Override public java.util.List apply(ListExecutionWindowsResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listExternalContainerDatabases operation. This iterable will fetch more data from the server * as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listExternalContainerDatabasesResponseIterator( final ListExternalContainerDatabasesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListExternalContainerDatabasesRequest.Builder, ListExternalContainerDatabasesRequest, ListExternalContainerDatabasesResponse>( new java.util.function.Supplier() { @Override public ListExternalContainerDatabasesRequest.Builder get() { return ListExternalContainerDatabasesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListExternalContainerDatabasesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExternalContainerDatabasesRequest.Builder>, ListExternalContainerDatabasesRequest>() { @Override public ListExternalContainerDatabasesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExternalContainerDatabasesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListExternalContainerDatabasesRequest, ListExternalContainerDatabasesResponse>() { @Override public ListExternalContainerDatabasesResponse apply( ListExternalContainerDatabasesRequest request) { return client.listExternalContainerDatabases(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.ExternalContainerDatabaseSummary} objects contained in * responses from the listExternalContainerDatabases operation. This iterable will fetch more * data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.ExternalContainerDatabaseSummary} objects contained in * responses received from the service. */ public Iterable listExternalContainerDatabasesRecordIterator( final ListExternalContainerDatabasesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListExternalContainerDatabasesRequest.Builder, ListExternalContainerDatabasesRequest, ListExternalContainerDatabasesResponse, com.oracle.bmc.database.model.ExternalContainerDatabaseSummary>( new java.util.function.Supplier() { @Override public ListExternalContainerDatabasesRequest.Builder get() { return ListExternalContainerDatabasesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListExternalContainerDatabasesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExternalContainerDatabasesRequest.Builder>, ListExternalContainerDatabasesRequest>() { @Override public ListExternalContainerDatabasesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExternalContainerDatabasesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListExternalContainerDatabasesRequest, ListExternalContainerDatabasesResponse>() { @Override public ListExternalContainerDatabasesResponse apply( ListExternalContainerDatabasesRequest request) { return client.listExternalContainerDatabases(request); } }, new java.util.function.Function< ListExternalContainerDatabasesResponse, java.util.List< com.oracle.bmc.database.model.ExternalContainerDatabaseSummary>>() { @Override public java.util.List< com.oracle.bmc.database.model.ExternalContainerDatabaseSummary> apply(ListExternalContainerDatabasesResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listExternalDatabaseConnectors operation. This iterable will fetch more data from the server * as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listExternalDatabaseConnectorsResponseIterator( final ListExternalDatabaseConnectorsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListExternalDatabaseConnectorsRequest.Builder, ListExternalDatabaseConnectorsRequest, ListExternalDatabaseConnectorsResponse>( new java.util.function.Supplier() { @Override public ListExternalDatabaseConnectorsRequest.Builder get() { return ListExternalDatabaseConnectorsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListExternalDatabaseConnectorsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExternalDatabaseConnectorsRequest.Builder>, ListExternalDatabaseConnectorsRequest>() { @Override public ListExternalDatabaseConnectorsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExternalDatabaseConnectorsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListExternalDatabaseConnectorsRequest, ListExternalDatabaseConnectorsResponse>() { @Override public ListExternalDatabaseConnectorsResponse apply( ListExternalDatabaseConnectorsRequest request) { return client.listExternalDatabaseConnectors(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.ExternalDatabaseConnectorSummary} objects contained in * responses from the listExternalDatabaseConnectors operation. This iterable will fetch more * data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.ExternalDatabaseConnectorSummary} objects contained in * responses received from the service. */ public Iterable listExternalDatabaseConnectorsRecordIterator( final ListExternalDatabaseConnectorsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListExternalDatabaseConnectorsRequest.Builder, ListExternalDatabaseConnectorsRequest, ListExternalDatabaseConnectorsResponse, com.oracle.bmc.database.model.ExternalDatabaseConnectorSummary>( new java.util.function.Supplier() { @Override public ListExternalDatabaseConnectorsRequest.Builder get() { return ListExternalDatabaseConnectorsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListExternalDatabaseConnectorsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExternalDatabaseConnectorsRequest.Builder>, ListExternalDatabaseConnectorsRequest>() { @Override public ListExternalDatabaseConnectorsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExternalDatabaseConnectorsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListExternalDatabaseConnectorsRequest, ListExternalDatabaseConnectorsResponse>() { @Override public ListExternalDatabaseConnectorsResponse apply( ListExternalDatabaseConnectorsRequest request) { return client.listExternalDatabaseConnectors(request); } }, new java.util.function.Function< ListExternalDatabaseConnectorsResponse, java.util.List< com.oracle.bmc.database.model.ExternalDatabaseConnectorSummary>>() { @Override public java.util.List< com.oracle.bmc.database.model.ExternalDatabaseConnectorSummary> apply(ListExternalDatabaseConnectorsResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listExternalNonContainerDatabases operation. This iterable will fetch more data from the * server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listExternalNonContainerDatabasesResponseIterator( final ListExternalNonContainerDatabasesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListExternalNonContainerDatabasesRequest.Builder, ListExternalNonContainerDatabasesRequest, ListExternalNonContainerDatabasesResponse>( new java.util.function.Supplier< ListExternalNonContainerDatabasesRequest.Builder>() { @Override public ListExternalNonContainerDatabasesRequest.Builder get() { return ListExternalNonContainerDatabasesRequest.builder().copy(request); } }, new java.util.function.Function< ListExternalNonContainerDatabasesResponse, String>() { @Override public String apply(ListExternalNonContainerDatabasesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExternalNonContainerDatabasesRequest.Builder>, ListExternalNonContainerDatabasesRequest>() { @Override public ListExternalNonContainerDatabasesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExternalNonContainerDatabasesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListExternalNonContainerDatabasesRequest, ListExternalNonContainerDatabasesResponse>() { @Override public ListExternalNonContainerDatabasesResponse apply( ListExternalNonContainerDatabasesRequest request) { return client.listExternalNonContainerDatabases(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.ExternalNonContainerDatabaseSummary} objects contained in * responses from the listExternalNonContainerDatabases operation. This iterable will fetch more * data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.ExternalNonContainerDatabaseSummary} objects contained in * responses received from the service. */ public Iterable listExternalNonContainerDatabasesRecordIterator( final ListExternalNonContainerDatabasesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListExternalNonContainerDatabasesRequest.Builder, ListExternalNonContainerDatabasesRequest, ListExternalNonContainerDatabasesResponse, com.oracle.bmc.database.model.ExternalNonContainerDatabaseSummary>( new java.util.function.Supplier< ListExternalNonContainerDatabasesRequest.Builder>() { @Override public ListExternalNonContainerDatabasesRequest.Builder get() { return ListExternalNonContainerDatabasesRequest.builder().copy(request); } }, new java.util.function.Function< ListExternalNonContainerDatabasesResponse, String>() { @Override public String apply(ListExternalNonContainerDatabasesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExternalNonContainerDatabasesRequest.Builder>, ListExternalNonContainerDatabasesRequest>() { @Override public ListExternalNonContainerDatabasesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExternalNonContainerDatabasesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListExternalNonContainerDatabasesRequest, ListExternalNonContainerDatabasesResponse>() { @Override public ListExternalNonContainerDatabasesResponse apply( ListExternalNonContainerDatabasesRequest request) { return client.listExternalNonContainerDatabases(request); } }, new java.util.function.Function< ListExternalNonContainerDatabasesResponse, java.util.List< com.oracle.bmc.database.model .ExternalNonContainerDatabaseSummary>>() { @Override public java.util.List< com.oracle.bmc.database.model .ExternalNonContainerDatabaseSummary> apply(ListExternalNonContainerDatabasesResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listExternalPluggableDatabases operation. This iterable will fetch more data from the server * as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listExternalPluggableDatabasesResponseIterator( final ListExternalPluggableDatabasesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListExternalPluggableDatabasesRequest.Builder, ListExternalPluggableDatabasesRequest, ListExternalPluggableDatabasesResponse>( new java.util.function.Supplier() { @Override public ListExternalPluggableDatabasesRequest.Builder get() { return ListExternalPluggableDatabasesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListExternalPluggableDatabasesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExternalPluggableDatabasesRequest.Builder>, ListExternalPluggableDatabasesRequest>() { @Override public ListExternalPluggableDatabasesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExternalPluggableDatabasesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListExternalPluggableDatabasesRequest, ListExternalPluggableDatabasesResponse>() { @Override public ListExternalPluggableDatabasesResponse apply( ListExternalPluggableDatabasesRequest request) { return client.listExternalPluggableDatabases(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.ExternalPluggableDatabaseSummary} objects contained in * responses from the listExternalPluggableDatabases operation. This iterable will fetch more * data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.ExternalPluggableDatabaseSummary} objects contained in * responses received from the service. */ public Iterable listExternalPluggableDatabasesRecordIterator( final ListExternalPluggableDatabasesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListExternalPluggableDatabasesRequest.Builder, ListExternalPluggableDatabasesRequest, ListExternalPluggableDatabasesResponse, com.oracle.bmc.database.model.ExternalPluggableDatabaseSummary>( new java.util.function.Supplier() { @Override public ListExternalPluggableDatabasesRequest.Builder get() { return ListExternalPluggableDatabasesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListExternalPluggableDatabasesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExternalPluggableDatabasesRequest.Builder>, ListExternalPluggableDatabasesRequest>() { @Override public ListExternalPluggableDatabasesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListExternalPluggableDatabasesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListExternalPluggableDatabasesRequest, ListExternalPluggableDatabasesResponse>() { @Override public ListExternalPluggableDatabasesResponse apply( ListExternalPluggableDatabasesRequest request) { return client.listExternalPluggableDatabases(request); } }, new java.util.function.Function< ListExternalPluggableDatabasesResponse, java.util.List< com.oracle.bmc.database.model.ExternalPluggableDatabaseSummary>>() { @Override public java.util.List< com.oracle.bmc.database.model.ExternalPluggableDatabaseSummary> apply(ListExternalPluggableDatabasesResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listFlexComponents operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listFlexComponentsResponseIterator( final ListFlexComponentsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListFlexComponentsRequest.Builder, ListFlexComponentsRequest, ListFlexComponentsResponse>( new java.util.function.Supplier() { @Override public ListFlexComponentsRequest.Builder get() { return ListFlexComponentsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListFlexComponentsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListFlexComponentsRequest.Builder>, ListFlexComponentsRequest>() { @Override public ListFlexComponentsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListFlexComponentsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListFlexComponentsRequest, ListFlexComponentsResponse>() { @Override public ListFlexComponentsResponse apply(ListFlexComponentsRequest request) { return client.listFlexComponents(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.FlexComponentSummary} objects contained in responses from the * listFlexComponents operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.FlexComponentSummary} objects contained in responses * received from the service. */ public Iterable listFlexComponentsRecordIterator(final ListFlexComponentsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListFlexComponentsRequest.Builder, ListFlexComponentsRequest, ListFlexComponentsResponse, com.oracle.bmc.database.model.FlexComponentSummary>( new java.util.function.Supplier() { @Override public ListFlexComponentsRequest.Builder get() { return ListFlexComponentsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListFlexComponentsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListFlexComponentsRequest.Builder>, ListFlexComponentsRequest>() { @Override public ListFlexComponentsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListFlexComponentsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListFlexComponentsRequest, ListFlexComponentsResponse>() { @Override public ListFlexComponentsResponse apply(ListFlexComponentsRequest request) { return client.listFlexComponents(request); } }, new java.util.function.Function< ListFlexComponentsResponse, java.util.List>() { @Override public java.util.List apply( ListFlexComponentsResponse response) { return response.getFlexComponentCollection().getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listGiVersionMinorVersions operation. This iterable will fetch more data from the server as * needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listGiVersionMinorVersionsResponseIterator( final ListGiVersionMinorVersionsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListGiVersionMinorVersionsRequest.Builder, ListGiVersionMinorVersionsRequest, ListGiVersionMinorVersionsResponse>( new java.util.function.Supplier() { @Override public ListGiVersionMinorVersionsRequest.Builder get() { return ListGiVersionMinorVersionsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListGiVersionMinorVersionsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListGiVersionMinorVersionsRequest.Builder>, ListGiVersionMinorVersionsRequest>() { @Override public ListGiVersionMinorVersionsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListGiVersionMinorVersionsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListGiVersionMinorVersionsRequest, ListGiVersionMinorVersionsResponse>() { @Override public ListGiVersionMinorVersionsResponse apply( ListGiVersionMinorVersionsRequest request) { return client.listGiVersionMinorVersions(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.GiMinorVersionSummary} objects contained in responses from the * listGiVersionMinorVersions operation. This iterable will fetch more data from the server as * needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.GiMinorVersionSummary} objects contained in responses * received from the service. */ public Iterable listGiVersionMinorVersionsRecordIterator( final ListGiVersionMinorVersionsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListGiVersionMinorVersionsRequest.Builder, ListGiVersionMinorVersionsRequest, ListGiVersionMinorVersionsResponse, com.oracle.bmc.database.model.GiMinorVersionSummary>( new java.util.function.Supplier() { @Override public ListGiVersionMinorVersionsRequest.Builder get() { return ListGiVersionMinorVersionsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListGiVersionMinorVersionsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListGiVersionMinorVersionsRequest.Builder>, ListGiVersionMinorVersionsRequest>() { @Override public ListGiVersionMinorVersionsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListGiVersionMinorVersionsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListGiVersionMinorVersionsRequest, ListGiVersionMinorVersionsResponse>() { @Override public ListGiVersionMinorVersionsResponse apply( ListGiVersionMinorVersionsRequest request) { return client.listGiVersionMinorVersions(request); } }, new java.util.function.Function< ListGiVersionMinorVersionsResponse, java.util.List>() { @Override public java.util.List apply(ListGiVersionMinorVersionsResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the listGiVersions * operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listGiVersionsResponseIterator( final ListGiVersionsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListGiVersionsRequest.Builder, ListGiVersionsRequest, ListGiVersionsResponse>( new java.util.function.Supplier() { @Override public ListGiVersionsRequest.Builder get() { return ListGiVersionsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListGiVersionsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListGiVersionsRequest.Builder>, ListGiVersionsRequest>() { @Override public ListGiVersionsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListGiVersionsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function() { @Override public ListGiVersionsResponse apply(ListGiVersionsRequest request) { return client.listGiVersions(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.GiVersionSummary} objects contained in responses from the * listGiVersions operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.GiVersionSummary} objects contained in responses received * from the service. */ public Iterable listGiVersionsRecordIterator( final ListGiVersionsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListGiVersionsRequest.Builder, ListGiVersionsRequest, ListGiVersionsResponse, com.oracle.bmc.database.model.GiVersionSummary>( new java.util.function.Supplier() { @Override public ListGiVersionsRequest.Builder get() { return ListGiVersionsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListGiVersionsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListGiVersionsRequest.Builder>, ListGiVersionsRequest>() { @Override public ListGiVersionsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListGiVersionsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function() { @Override public ListGiVersionsResponse apply(ListGiVersionsRequest request) { return client.listGiVersions(request); } }, new java.util.function.Function< ListGiVersionsResponse, java.util.List>() { @Override public java.util.List apply( ListGiVersionsResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the listKeyStores * operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listKeyStoresResponseIterator( final ListKeyStoresRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListKeyStoresRequest.Builder, ListKeyStoresRequest, ListKeyStoresResponse>( new java.util.function.Supplier() { @Override public ListKeyStoresRequest.Builder get() { return ListKeyStoresRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListKeyStoresResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListKeyStoresRequest.Builder>, ListKeyStoresRequest>() { @Override public ListKeyStoresRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListKeyStoresRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function() { @Override public ListKeyStoresResponse apply(ListKeyStoresRequest request) { return client.listKeyStores(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.KeyStoreSummary} objects contained in responses from the * listKeyStores operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.KeyStoreSummary} objects contained in responses received * from the service. */ public Iterable listKeyStoresRecordIterator( final ListKeyStoresRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListKeyStoresRequest.Builder, ListKeyStoresRequest, ListKeyStoresResponse, com.oracle.bmc.database.model.KeyStoreSummary>( new java.util.function.Supplier() { @Override public ListKeyStoresRequest.Builder get() { return ListKeyStoresRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListKeyStoresResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListKeyStoresRequest.Builder>, ListKeyStoresRequest>() { @Override public ListKeyStoresRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListKeyStoresRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function() { @Override public ListKeyStoresResponse apply(ListKeyStoresRequest request) { return client.listKeyStores(request); } }, new java.util.function.Function< ListKeyStoresResponse, java.util.List>() { @Override public java.util.List apply( ListKeyStoresResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listMaintenanceRunHistory operation. This iterable will fetch more data from the server as * needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listMaintenanceRunHistoryResponseIterator( final ListMaintenanceRunHistoryRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListMaintenanceRunHistoryRequest.Builder, ListMaintenanceRunHistoryRequest, ListMaintenanceRunHistoryResponse>( new java.util.function.Supplier() { @Override public ListMaintenanceRunHistoryRequest.Builder get() { return ListMaintenanceRunHistoryRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListMaintenanceRunHistoryResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListMaintenanceRunHistoryRequest.Builder>, ListMaintenanceRunHistoryRequest>() { @Override public ListMaintenanceRunHistoryRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListMaintenanceRunHistoryRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListMaintenanceRunHistoryRequest, ListMaintenanceRunHistoryResponse>() { @Override public ListMaintenanceRunHistoryResponse apply( ListMaintenanceRunHistoryRequest request) { return client.listMaintenanceRunHistory(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.MaintenanceRunHistorySummary} objects contained in responses * from the listMaintenanceRunHistory operation. This iterable will fetch more data from the * server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.MaintenanceRunHistorySummary} objects contained in * responses received from the service. */ public Iterable listMaintenanceRunHistoryRecordIterator( final ListMaintenanceRunHistoryRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListMaintenanceRunHistoryRequest.Builder, ListMaintenanceRunHistoryRequest, ListMaintenanceRunHistoryResponse, com.oracle.bmc.database.model.MaintenanceRunHistorySummary>( new java.util.function.Supplier() { @Override public ListMaintenanceRunHistoryRequest.Builder get() { return ListMaintenanceRunHistoryRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListMaintenanceRunHistoryResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListMaintenanceRunHistoryRequest.Builder>, ListMaintenanceRunHistoryRequest>() { @Override public ListMaintenanceRunHistoryRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListMaintenanceRunHistoryRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListMaintenanceRunHistoryRequest, ListMaintenanceRunHistoryResponse>() { @Override public ListMaintenanceRunHistoryResponse apply( ListMaintenanceRunHistoryRequest request) { return client.listMaintenanceRunHistory(request); } }, new java.util.function.Function< ListMaintenanceRunHistoryResponse, java.util.List< com.oracle.bmc.database.model.MaintenanceRunHistorySummary>>() { @Override public java.util.List< com.oracle.bmc.database.model.MaintenanceRunHistorySummary> apply(ListMaintenanceRunHistoryResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listMaintenanceRuns operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listMaintenanceRunsResponseIterator( final ListMaintenanceRunsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListMaintenanceRunsRequest.Builder, ListMaintenanceRunsRequest, ListMaintenanceRunsResponse>( new java.util.function.Supplier() { @Override public ListMaintenanceRunsRequest.Builder get() { return ListMaintenanceRunsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListMaintenanceRunsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListMaintenanceRunsRequest.Builder>, ListMaintenanceRunsRequest>() { @Override public ListMaintenanceRunsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListMaintenanceRunsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListMaintenanceRunsRequest, ListMaintenanceRunsResponse>() { @Override public ListMaintenanceRunsResponse apply(ListMaintenanceRunsRequest request) { return client.listMaintenanceRuns(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.MaintenanceRunSummary} objects contained in responses from the * listMaintenanceRuns operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.MaintenanceRunSummary} objects contained in responses * received from the service. */ public Iterable listMaintenanceRunsRecordIterator(final ListMaintenanceRunsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListMaintenanceRunsRequest.Builder, ListMaintenanceRunsRequest, ListMaintenanceRunsResponse, com.oracle.bmc.database.model.MaintenanceRunSummary>( new java.util.function.Supplier() { @Override public ListMaintenanceRunsRequest.Builder get() { return ListMaintenanceRunsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListMaintenanceRunsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListMaintenanceRunsRequest.Builder>, ListMaintenanceRunsRequest>() { @Override public ListMaintenanceRunsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListMaintenanceRunsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListMaintenanceRunsRequest, ListMaintenanceRunsResponse>() { @Override public ListMaintenanceRunsResponse apply(ListMaintenanceRunsRequest request) { return client.listMaintenanceRuns(request); } }, new java.util.function.Function< ListMaintenanceRunsResponse, java.util.List>() { @Override public java.util.List apply(ListMaintenanceRunsResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listOneoffPatches operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listOneoffPatchesResponseIterator( final ListOneoffPatchesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListOneoffPatchesRequest.Builder, ListOneoffPatchesRequest, ListOneoffPatchesResponse>( new java.util.function.Supplier() { @Override public ListOneoffPatchesRequest.Builder get() { return ListOneoffPatchesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListOneoffPatchesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListOneoffPatchesRequest.Builder>, ListOneoffPatchesRequest>() { @Override public ListOneoffPatchesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListOneoffPatchesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListOneoffPatchesRequest, ListOneoffPatchesResponse>() { @Override public ListOneoffPatchesResponse apply(ListOneoffPatchesRequest request) { return client.listOneoffPatches(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.OneoffPatchSummary} objects contained in responses from the * listOneoffPatches operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.OneoffPatchSummary} objects contained in responses received * from the service. */ public Iterable listOneoffPatchesRecordIterator(final ListOneoffPatchesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListOneoffPatchesRequest.Builder, ListOneoffPatchesRequest, ListOneoffPatchesResponse, com.oracle.bmc.database.model.OneoffPatchSummary>( new java.util.function.Supplier() { @Override public ListOneoffPatchesRequest.Builder get() { return ListOneoffPatchesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListOneoffPatchesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListOneoffPatchesRequest.Builder>, ListOneoffPatchesRequest>() { @Override public ListOneoffPatchesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListOneoffPatchesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListOneoffPatchesRequest, ListOneoffPatchesResponse>() { @Override public ListOneoffPatchesResponse apply(ListOneoffPatchesRequest request) { return client.listOneoffPatches(request); } }, new java.util.function.Function< ListOneoffPatchesResponse, java.util.List>() { @Override public java.util.List apply( ListOneoffPatchesResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listParamsForActionType operation. This iterable will fetch more data from the server as * needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listParamsForActionTypeResponseIterator( final ListParamsForActionTypeRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListParamsForActionTypeRequest.Builder, ListParamsForActionTypeRequest, ListParamsForActionTypeResponse>( new java.util.function.Supplier() { @Override public ListParamsForActionTypeRequest.Builder get() { return ListParamsForActionTypeRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListParamsForActionTypeResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListParamsForActionTypeRequest.Builder>, ListParamsForActionTypeRequest>() { @Override public ListParamsForActionTypeRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListParamsForActionTypeRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListParamsForActionTypeRequest, ListParamsForActionTypeResponse>() { @Override public ListParamsForActionTypeResponse apply( ListParamsForActionTypeRequest request) { return client.listParamsForActionType(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.ActionParamValuesSummary} objects contained in responses from * the listParamsForActionType operation. This iterable will fetch more data from the server as * needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.ActionParamValuesSummary} objects contained in responses * received from the service. */ public Iterable listParamsForActionTypeRecordIterator(final ListParamsForActionTypeRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListParamsForActionTypeRequest.Builder, ListParamsForActionTypeRequest, ListParamsForActionTypeResponse, com.oracle.bmc.database.model.ActionParamValuesSummary>( new java.util.function.Supplier() { @Override public ListParamsForActionTypeRequest.Builder get() { return ListParamsForActionTypeRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListParamsForActionTypeResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListParamsForActionTypeRequest.Builder>, ListParamsForActionTypeRequest>() { @Override public ListParamsForActionTypeRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListParamsForActionTypeRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListParamsForActionTypeRequest, ListParamsForActionTypeResponse>() { @Override public ListParamsForActionTypeResponse apply( ListParamsForActionTypeRequest request) { return client.listParamsForActionType(request); } }, new java.util.function.Function< ListParamsForActionTypeResponse, java.util.List>() { @Override public java.util.List apply(ListParamsForActionTypeResponse response) { return response.getActionParamValuesCollection().getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listPdbConversionHistoryEntries operation. This iterable will fetch more data from the server * as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listPdbConversionHistoryEntriesResponseIterator( final ListPdbConversionHistoryEntriesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListPdbConversionHistoryEntriesRequest.Builder, ListPdbConversionHistoryEntriesRequest, ListPdbConversionHistoryEntriesResponse>( new java.util.function.Supplier() { @Override public ListPdbConversionHistoryEntriesRequest.Builder get() { return ListPdbConversionHistoryEntriesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListPdbConversionHistoryEntriesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListPdbConversionHistoryEntriesRequest.Builder>, ListPdbConversionHistoryEntriesRequest>() { @Override public ListPdbConversionHistoryEntriesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListPdbConversionHistoryEntriesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListPdbConversionHistoryEntriesRequest, ListPdbConversionHistoryEntriesResponse>() { @Override public ListPdbConversionHistoryEntriesResponse apply( ListPdbConversionHistoryEntriesRequest request) { return client.listPdbConversionHistoryEntries(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.PdbConversionHistoryEntrySummary} objects contained in * responses from the listPdbConversionHistoryEntries operation. This iterable will fetch more * data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.PdbConversionHistoryEntrySummary} objects contained in * responses received from the service. */ public Iterable listPdbConversionHistoryEntriesRecordIterator( final ListPdbConversionHistoryEntriesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListPdbConversionHistoryEntriesRequest.Builder, ListPdbConversionHistoryEntriesRequest, ListPdbConversionHistoryEntriesResponse, com.oracle.bmc.database.model.PdbConversionHistoryEntrySummary>( new java.util.function.Supplier() { @Override public ListPdbConversionHistoryEntriesRequest.Builder get() { return ListPdbConversionHistoryEntriesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListPdbConversionHistoryEntriesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListPdbConversionHistoryEntriesRequest.Builder>, ListPdbConversionHistoryEntriesRequest>() { @Override public ListPdbConversionHistoryEntriesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListPdbConversionHistoryEntriesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListPdbConversionHistoryEntriesRequest, ListPdbConversionHistoryEntriesResponse>() { @Override public ListPdbConversionHistoryEntriesResponse apply( ListPdbConversionHistoryEntriesRequest request) { return client.listPdbConversionHistoryEntries(request); } }, new java.util.function.Function< ListPdbConversionHistoryEntriesResponse, java.util.List< com.oracle.bmc.database.model.PdbConversionHistoryEntrySummary>>() { @Override public java.util.List< com.oracle.bmc.database.model.PdbConversionHistoryEntrySummary> apply(ListPdbConversionHistoryEntriesResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listPluggableDatabases operation. This iterable will fetch more data from the server as * needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listPluggableDatabasesResponseIterator( final ListPluggableDatabasesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListPluggableDatabasesRequest.Builder, ListPluggableDatabasesRequest, ListPluggableDatabasesResponse>( new java.util.function.Supplier() { @Override public ListPluggableDatabasesRequest.Builder get() { return ListPluggableDatabasesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListPluggableDatabasesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListPluggableDatabasesRequest.Builder>, ListPluggableDatabasesRequest>() { @Override public ListPluggableDatabasesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListPluggableDatabasesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListPluggableDatabasesRequest, ListPluggableDatabasesResponse>() { @Override public ListPluggableDatabasesResponse apply( ListPluggableDatabasesRequest request) { return client.listPluggableDatabases(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.PluggableDatabaseSummary} objects contained in responses from * the listPluggableDatabases operation. This iterable will fetch more data from the server as * needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.PluggableDatabaseSummary} objects contained in responses * received from the service. */ public Iterable listPluggableDatabasesRecordIterator(final ListPluggableDatabasesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListPluggableDatabasesRequest.Builder, ListPluggableDatabasesRequest, ListPluggableDatabasesResponse, com.oracle.bmc.database.model.PluggableDatabaseSummary>( new java.util.function.Supplier() { @Override public ListPluggableDatabasesRequest.Builder get() { return ListPluggableDatabasesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListPluggableDatabasesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListPluggableDatabasesRequest.Builder>, ListPluggableDatabasesRequest>() { @Override public ListPluggableDatabasesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListPluggableDatabasesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListPluggableDatabasesRequest, ListPluggableDatabasesResponse>() { @Override public ListPluggableDatabasesResponse apply( ListPluggableDatabasesRequest request) { return client.listPluggableDatabases(request); } }, new java.util.function.Function< ListPluggableDatabasesResponse, java.util.List>() { @Override public java.util.List apply(ListPluggableDatabasesResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listRecommendedScheduledActions operation. This iterable will fetch more data from the server * as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listRecommendedScheduledActionsResponseIterator( final ListRecommendedScheduledActionsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListRecommendedScheduledActionsRequest.Builder, ListRecommendedScheduledActionsRequest, ListRecommendedScheduledActionsResponse>( new java.util.function.Supplier() { @Override public ListRecommendedScheduledActionsRequest.Builder get() { return ListRecommendedScheduledActionsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListRecommendedScheduledActionsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListRecommendedScheduledActionsRequest.Builder>, ListRecommendedScheduledActionsRequest>() { @Override public ListRecommendedScheduledActionsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListRecommendedScheduledActionsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListRecommendedScheduledActionsRequest, ListRecommendedScheduledActionsResponse>() { @Override public ListRecommendedScheduledActionsResponse apply( ListRecommendedScheduledActionsRequest request) { return client.listRecommendedScheduledActions(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.RecommendedScheduledActionSummary} objects contained in * responses from the listRecommendedScheduledActions operation. This iterable will fetch more * data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.RecommendedScheduledActionSummary} objects contained in * responses received from the service. */ public Iterable listRecommendedScheduledActionsRecordIterator( final ListRecommendedScheduledActionsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListRecommendedScheduledActionsRequest.Builder, ListRecommendedScheduledActionsRequest, ListRecommendedScheduledActionsResponse, com.oracle.bmc.database.model.RecommendedScheduledActionSummary>( new java.util.function.Supplier() { @Override public ListRecommendedScheduledActionsRequest.Builder get() { return ListRecommendedScheduledActionsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListRecommendedScheduledActionsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListRecommendedScheduledActionsRequest.Builder>, ListRecommendedScheduledActionsRequest>() { @Override public ListRecommendedScheduledActionsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListRecommendedScheduledActionsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListRecommendedScheduledActionsRequest, ListRecommendedScheduledActionsResponse>() { @Override public ListRecommendedScheduledActionsResponse apply( ListRecommendedScheduledActionsRequest request) { return client.listRecommendedScheduledActions(request); } }, new java.util.function.Function< ListRecommendedScheduledActionsResponse, java.util.List< com.oracle.bmc.database.model .RecommendedScheduledActionSummary>>() { @Override public java.util.List< com.oracle.bmc.database.model.RecommendedScheduledActionSummary> apply(ListRecommendedScheduledActionsResponse response) { return response.getRecommendedScheduledActionsCollection().getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listScheduledActions operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listScheduledActionsResponseIterator( final ListScheduledActionsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListScheduledActionsRequest.Builder, ListScheduledActionsRequest, ListScheduledActionsResponse>( new java.util.function.Supplier() { @Override public ListScheduledActionsRequest.Builder get() { return ListScheduledActionsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListScheduledActionsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListScheduledActionsRequest.Builder>, ListScheduledActionsRequest>() { @Override public ListScheduledActionsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListScheduledActionsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListScheduledActionsRequest, ListScheduledActionsResponse>() { @Override public ListScheduledActionsResponse apply(ListScheduledActionsRequest request) { return client.listScheduledActions(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.ScheduledActionSummary} objects contained in responses from the * listScheduledActions operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.ScheduledActionSummary} objects contained in responses * received from the service. */ public Iterable listScheduledActionsRecordIterator(final ListScheduledActionsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListScheduledActionsRequest.Builder, ListScheduledActionsRequest, ListScheduledActionsResponse, com.oracle.bmc.database.model.ScheduledActionSummary>( new java.util.function.Supplier() { @Override public ListScheduledActionsRequest.Builder get() { return ListScheduledActionsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListScheduledActionsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListScheduledActionsRequest.Builder>, ListScheduledActionsRequest>() { @Override public ListScheduledActionsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListScheduledActionsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListScheduledActionsRequest, ListScheduledActionsResponse>() { @Override public ListScheduledActionsResponse apply(ListScheduledActionsRequest request) { return client.listScheduledActions(request); } }, new java.util.function.Function< ListScheduledActionsResponse, java.util.List>() { @Override public java.util.List apply(ListScheduledActionsResponse response) { return response.getScheduledActionCollection().getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listSchedulingPlans operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listSchedulingPlansResponseIterator( final ListSchedulingPlansRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListSchedulingPlansRequest.Builder, ListSchedulingPlansRequest, ListSchedulingPlansResponse>( new java.util.function.Supplier() { @Override public ListSchedulingPlansRequest.Builder get() { return ListSchedulingPlansRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListSchedulingPlansResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListSchedulingPlansRequest.Builder>, ListSchedulingPlansRequest>() { @Override public ListSchedulingPlansRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListSchedulingPlansRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListSchedulingPlansRequest, ListSchedulingPlansResponse>() { @Override public ListSchedulingPlansResponse apply(ListSchedulingPlansRequest request) { return client.listSchedulingPlans(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.SchedulingPlanSummary} objects contained in responses from the * listSchedulingPlans operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.SchedulingPlanSummary} objects contained in responses * received from the service. */ public Iterable listSchedulingPlansRecordIterator(final ListSchedulingPlansRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListSchedulingPlansRequest.Builder, ListSchedulingPlansRequest, ListSchedulingPlansResponse, com.oracle.bmc.database.model.SchedulingPlanSummary>( new java.util.function.Supplier() { @Override public ListSchedulingPlansRequest.Builder get() { return ListSchedulingPlansRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListSchedulingPlansResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListSchedulingPlansRequest.Builder>, ListSchedulingPlansRequest>() { @Override public ListSchedulingPlansRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListSchedulingPlansRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListSchedulingPlansRequest, ListSchedulingPlansResponse>() { @Override public ListSchedulingPlansResponse apply(ListSchedulingPlansRequest request) { return client.listSchedulingPlans(request); } }, new java.util.function.Function< ListSchedulingPlansResponse, java.util.List>() { @Override public java.util.List apply(ListSchedulingPlansResponse response) { return response.getSchedulingPlanCollection().getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listSchedulingPolicies operation. This iterable will fetch more data from the server as * needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listSchedulingPoliciesResponseIterator( final ListSchedulingPoliciesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListSchedulingPoliciesRequest.Builder, ListSchedulingPoliciesRequest, ListSchedulingPoliciesResponse>( new java.util.function.Supplier() { @Override public ListSchedulingPoliciesRequest.Builder get() { return ListSchedulingPoliciesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListSchedulingPoliciesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListSchedulingPoliciesRequest.Builder>, ListSchedulingPoliciesRequest>() { @Override public ListSchedulingPoliciesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListSchedulingPoliciesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListSchedulingPoliciesRequest, ListSchedulingPoliciesResponse>() { @Override public ListSchedulingPoliciesResponse apply( ListSchedulingPoliciesRequest request) { return client.listSchedulingPolicies(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.SchedulingPolicySummary} objects contained in responses from * the listSchedulingPolicies operation. This iterable will fetch more data from the server as * needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.SchedulingPolicySummary} objects contained in responses * received from the service. */ public Iterable listSchedulingPoliciesRecordIterator(final ListSchedulingPoliciesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListSchedulingPoliciesRequest.Builder, ListSchedulingPoliciesRequest, ListSchedulingPoliciesResponse, com.oracle.bmc.database.model.SchedulingPolicySummary>( new java.util.function.Supplier() { @Override public ListSchedulingPoliciesRequest.Builder get() { return ListSchedulingPoliciesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListSchedulingPoliciesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListSchedulingPoliciesRequest.Builder>, ListSchedulingPoliciesRequest>() { @Override public ListSchedulingPoliciesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListSchedulingPoliciesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListSchedulingPoliciesRequest, ListSchedulingPoliciesResponse>() { @Override public ListSchedulingPoliciesResponse apply( ListSchedulingPoliciesRequest request) { return client.listSchedulingPolicies(request); } }, new java.util.function.Function< ListSchedulingPoliciesResponse, java.util.List>() { @Override public java.util.List apply(ListSchedulingPoliciesResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listSchedulingWindows operation. This iterable will fetch more data from the server as * needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listSchedulingWindowsResponseIterator( final ListSchedulingWindowsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListSchedulingWindowsRequest.Builder, ListSchedulingWindowsRequest, ListSchedulingWindowsResponse>( new java.util.function.Supplier() { @Override public ListSchedulingWindowsRequest.Builder get() { return ListSchedulingWindowsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListSchedulingWindowsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListSchedulingWindowsRequest.Builder>, ListSchedulingWindowsRequest>() { @Override public ListSchedulingWindowsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListSchedulingWindowsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListSchedulingWindowsRequest, ListSchedulingWindowsResponse>() { @Override public ListSchedulingWindowsResponse apply( ListSchedulingWindowsRequest request) { return client.listSchedulingWindows(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.SchedulingWindowSummary} objects contained in responses from * the listSchedulingWindows operation. This iterable will fetch more data from the server as * needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.SchedulingWindowSummary} objects contained in responses * received from the service. */ public Iterable listSchedulingWindowsRecordIterator(final ListSchedulingWindowsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListSchedulingWindowsRequest.Builder, ListSchedulingWindowsRequest, ListSchedulingWindowsResponse, com.oracle.bmc.database.model.SchedulingWindowSummary>( new java.util.function.Supplier() { @Override public ListSchedulingWindowsRequest.Builder get() { return ListSchedulingWindowsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListSchedulingWindowsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListSchedulingWindowsRequest.Builder>, ListSchedulingWindowsRequest>() { @Override public ListSchedulingWindowsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListSchedulingWindowsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListSchedulingWindowsRequest, ListSchedulingWindowsResponse>() { @Override public ListSchedulingWindowsResponse apply( ListSchedulingWindowsRequest request) { return client.listSchedulingWindows(request); } }, new java.util.function.Function< ListSchedulingWindowsResponse, java.util.List>() { @Override public java.util.List apply(ListSchedulingWindowsResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listSystemVersions operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listSystemVersionsResponseIterator( final ListSystemVersionsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListSystemVersionsRequest.Builder, ListSystemVersionsRequest, ListSystemVersionsResponse>( new java.util.function.Supplier() { @Override public ListSystemVersionsRequest.Builder get() { return ListSystemVersionsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListSystemVersionsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListSystemVersionsRequest.Builder>, ListSystemVersionsRequest>() { @Override public ListSystemVersionsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListSystemVersionsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListSystemVersionsRequest, ListSystemVersionsResponse>() { @Override public ListSystemVersionsResponse apply(ListSystemVersionsRequest request) { return client.listSystemVersions(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.SystemVersionSummary} objects contained in responses from the * listSystemVersions operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.SystemVersionSummary} objects contained in responses * received from the service. */ public Iterable listSystemVersionsRecordIterator(final ListSystemVersionsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListSystemVersionsRequest.Builder, ListSystemVersionsRequest, ListSystemVersionsResponse, com.oracle.bmc.database.model.SystemVersionSummary>( new java.util.function.Supplier() { @Override public ListSystemVersionsRequest.Builder get() { return ListSystemVersionsRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListSystemVersionsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListSystemVersionsRequest.Builder>, ListSystemVersionsRequest>() { @Override public ListSystemVersionsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListSystemVersionsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListSystemVersionsRequest, ListSystemVersionsResponse>() { @Override public ListSystemVersionsResponse apply(ListSystemVersionsRequest request) { return client.listSystemVersions(request); } }, new java.util.function.Function< ListSystemVersionsResponse, java.util.List>() { @Override public java.util.List apply( ListSystemVersionsResponse response) { return response.getSystemVersionCollection().getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listVmClusterNetworks operation. This iterable will fetch more data from the server as * needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listVmClusterNetworksResponseIterator( final ListVmClusterNetworksRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListVmClusterNetworksRequest.Builder, ListVmClusterNetworksRequest, ListVmClusterNetworksResponse>( new java.util.function.Supplier() { @Override public ListVmClusterNetworksRequest.Builder get() { return ListVmClusterNetworksRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListVmClusterNetworksResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListVmClusterNetworksRequest.Builder>, ListVmClusterNetworksRequest>() { @Override public ListVmClusterNetworksRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListVmClusterNetworksRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListVmClusterNetworksRequest, ListVmClusterNetworksResponse>() { @Override public ListVmClusterNetworksResponse apply( ListVmClusterNetworksRequest request) { return client.listVmClusterNetworks(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.VmClusterNetworkSummary} objects contained in responses from * the listVmClusterNetworks operation. This iterable will fetch more data from the server as * needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.VmClusterNetworkSummary} objects contained in responses * received from the service. */ public Iterable listVmClusterNetworksRecordIterator(final ListVmClusterNetworksRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListVmClusterNetworksRequest.Builder, ListVmClusterNetworksRequest, ListVmClusterNetworksResponse, com.oracle.bmc.database.model.VmClusterNetworkSummary>( new java.util.function.Supplier() { @Override public ListVmClusterNetworksRequest.Builder get() { return ListVmClusterNetworksRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListVmClusterNetworksResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListVmClusterNetworksRequest.Builder>, ListVmClusterNetworksRequest>() { @Override public ListVmClusterNetworksRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListVmClusterNetworksRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListVmClusterNetworksRequest, ListVmClusterNetworksResponse>() { @Override public ListVmClusterNetworksResponse apply( ListVmClusterNetworksRequest request) { return client.listVmClusterNetworks(request); } }, new java.util.function.Function< ListVmClusterNetworksResponse, java.util.List>() { @Override public java.util.List apply(ListVmClusterNetworksResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listVmClusterPatchHistoryEntries operation. This iterable will fetch more data from the * server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listVmClusterPatchHistoryEntriesResponseIterator( final ListVmClusterPatchHistoryEntriesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListVmClusterPatchHistoryEntriesRequest.Builder, ListVmClusterPatchHistoryEntriesRequest, ListVmClusterPatchHistoryEntriesResponse>( new java.util.function.Supplier() { @Override public ListVmClusterPatchHistoryEntriesRequest.Builder get() { return ListVmClusterPatchHistoryEntriesRequest.builder().copy(request); } }, new java.util.function.Function< ListVmClusterPatchHistoryEntriesResponse, String>() { @Override public String apply(ListVmClusterPatchHistoryEntriesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListVmClusterPatchHistoryEntriesRequest.Builder>, ListVmClusterPatchHistoryEntriesRequest>() { @Override public ListVmClusterPatchHistoryEntriesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListVmClusterPatchHistoryEntriesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListVmClusterPatchHistoryEntriesRequest, ListVmClusterPatchHistoryEntriesResponse>() { @Override public ListVmClusterPatchHistoryEntriesResponse apply( ListVmClusterPatchHistoryEntriesRequest request) { return client.listVmClusterPatchHistoryEntries(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.PatchHistoryEntrySummary} objects contained in responses from * the listVmClusterPatchHistoryEntries operation. This iterable will fetch more data from the * server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.PatchHistoryEntrySummary} objects contained in responses * received from the service. */ public Iterable listVmClusterPatchHistoryEntriesRecordIterator( final ListVmClusterPatchHistoryEntriesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListVmClusterPatchHistoryEntriesRequest.Builder, ListVmClusterPatchHistoryEntriesRequest, ListVmClusterPatchHistoryEntriesResponse, com.oracle.bmc.database.model.PatchHistoryEntrySummary>( new java.util.function.Supplier() { @Override public ListVmClusterPatchHistoryEntriesRequest.Builder get() { return ListVmClusterPatchHistoryEntriesRequest.builder().copy(request); } }, new java.util.function.Function< ListVmClusterPatchHistoryEntriesResponse, String>() { @Override public String apply(ListVmClusterPatchHistoryEntriesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListVmClusterPatchHistoryEntriesRequest.Builder>, ListVmClusterPatchHistoryEntriesRequest>() { @Override public ListVmClusterPatchHistoryEntriesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListVmClusterPatchHistoryEntriesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListVmClusterPatchHistoryEntriesRequest, ListVmClusterPatchHistoryEntriesResponse>() { @Override public ListVmClusterPatchHistoryEntriesResponse apply( ListVmClusterPatchHistoryEntriesRequest request) { return client.listVmClusterPatchHistoryEntries(request); } }, new java.util.function.Function< ListVmClusterPatchHistoryEntriesResponse, java.util.List>() { @Override public java.util.List apply(ListVmClusterPatchHistoryEntriesResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listVmClusterPatches operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listVmClusterPatchesResponseIterator( final ListVmClusterPatchesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListVmClusterPatchesRequest.Builder, ListVmClusterPatchesRequest, ListVmClusterPatchesResponse>( new java.util.function.Supplier() { @Override public ListVmClusterPatchesRequest.Builder get() { return ListVmClusterPatchesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListVmClusterPatchesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListVmClusterPatchesRequest.Builder>, ListVmClusterPatchesRequest>() { @Override public ListVmClusterPatchesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListVmClusterPatchesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListVmClusterPatchesRequest, ListVmClusterPatchesResponse>() { @Override public ListVmClusterPatchesResponse apply(ListVmClusterPatchesRequest request) { return client.listVmClusterPatches(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.PatchSummary} objects contained in responses from the * listVmClusterPatches operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.PatchSummary} objects contained in responses received from * the service. */ public Iterable listVmClusterPatchesRecordIterator( final ListVmClusterPatchesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListVmClusterPatchesRequest.Builder, ListVmClusterPatchesRequest, ListVmClusterPatchesResponse, com.oracle.bmc.database.model.PatchSummary>( new java.util.function.Supplier() { @Override public ListVmClusterPatchesRequest.Builder get() { return ListVmClusterPatchesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListVmClusterPatchesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListVmClusterPatchesRequest.Builder>, ListVmClusterPatchesRequest>() { @Override public ListVmClusterPatchesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListVmClusterPatchesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListVmClusterPatchesRequest, ListVmClusterPatchesResponse>() { @Override public ListVmClusterPatchesResponse apply(ListVmClusterPatchesRequest request) { return client.listVmClusterPatches(request); } }, new java.util.function.Function< ListVmClusterPatchesResponse, java.util.List>() { @Override public java.util.List apply( ListVmClusterPatchesResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listVmClusterUpdateHistoryEntries operation. This iterable will fetch more data from the * server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listVmClusterUpdateHistoryEntriesResponseIterator( final ListVmClusterUpdateHistoryEntriesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListVmClusterUpdateHistoryEntriesRequest.Builder, ListVmClusterUpdateHistoryEntriesRequest, ListVmClusterUpdateHistoryEntriesResponse>( new java.util.function.Supplier< ListVmClusterUpdateHistoryEntriesRequest.Builder>() { @Override public ListVmClusterUpdateHistoryEntriesRequest.Builder get() { return ListVmClusterUpdateHistoryEntriesRequest.builder().copy(request); } }, new java.util.function.Function< ListVmClusterUpdateHistoryEntriesResponse, String>() { @Override public String apply(ListVmClusterUpdateHistoryEntriesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListVmClusterUpdateHistoryEntriesRequest.Builder>, ListVmClusterUpdateHistoryEntriesRequest>() { @Override public ListVmClusterUpdateHistoryEntriesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListVmClusterUpdateHistoryEntriesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListVmClusterUpdateHistoryEntriesRequest, ListVmClusterUpdateHistoryEntriesResponse>() { @Override public ListVmClusterUpdateHistoryEntriesResponse apply( ListVmClusterUpdateHistoryEntriesRequest request) { return client.listVmClusterUpdateHistoryEntries(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.VmClusterUpdateHistoryEntrySummary} objects contained in * responses from the listVmClusterUpdateHistoryEntries operation. This iterable will fetch more * data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.VmClusterUpdateHistoryEntrySummary} objects contained in * responses received from the service. */ public Iterable listVmClusterUpdateHistoryEntriesRecordIterator( final ListVmClusterUpdateHistoryEntriesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListVmClusterUpdateHistoryEntriesRequest.Builder, ListVmClusterUpdateHistoryEntriesRequest, ListVmClusterUpdateHistoryEntriesResponse, com.oracle.bmc.database.model.VmClusterUpdateHistoryEntrySummary>( new java.util.function.Supplier< ListVmClusterUpdateHistoryEntriesRequest.Builder>() { @Override public ListVmClusterUpdateHistoryEntriesRequest.Builder get() { return ListVmClusterUpdateHistoryEntriesRequest.builder().copy(request); } }, new java.util.function.Function< ListVmClusterUpdateHistoryEntriesResponse, String>() { @Override public String apply(ListVmClusterUpdateHistoryEntriesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListVmClusterUpdateHistoryEntriesRequest.Builder>, ListVmClusterUpdateHistoryEntriesRequest>() { @Override public ListVmClusterUpdateHistoryEntriesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListVmClusterUpdateHistoryEntriesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListVmClusterUpdateHistoryEntriesRequest, ListVmClusterUpdateHistoryEntriesResponse>() { @Override public ListVmClusterUpdateHistoryEntriesResponse apply( ListVmClusterUpdateHistoryEntriesRequest request) { return client.listVmClusterUpdateHistoryEntries(request); } }, new java.util.function.Function< ListVmClusterUpdateHistoryEntriesResponse, java.util.List< com.oracle.bmc.database.model .VmClusterUpdateHistoryEntrySummary>>() { @Override public java.util.List< com.oracle.bmc.database.model .VmClusterUpdateHistoryEntrySummary> apply(ListVmClusterUpdateHistoryEntriesResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the * listVmClusterUpdates operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listVmClusterUpdatesResponseIterator( final ListVmClusterUpdatesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListVmClusterUpdatesRequest.Builder, ListVmClusterUpdatesRequest, ListVmClusterUpdatesResponse>( new java.util.function.Supplier() { @Override public ListVmClusterUpdatesRequest.Builder get() { return ListVmClusterUpdatesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListVmClusterUpdatesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListVmClusterUpdatesRequest.Builder>, ListVmClusterUpdatesRequest>() { @Override public ListVmClusterUpdatesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListVmClusterUpdatesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListVmClusterUpdatesRequest, ListVmClusterUpdatesResponse>() { @Override public ListVmClusterUpdatesResponse apply(ListVmClusterUpdatesRequest request) { return client.listVmClusterUpdates(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.VmClusterUpdateSummary} objects contained in responses from the * listVmClusterUpdates operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.VmClusterUpdateSummary} objects contained in responses * received from the service. */ public Iterable listVmClusterUpdatesRecordIterator(final ListVmClusterUpdatesRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListVmClusterUpdatesRequest.Builder, ListVmClusterUpdatesRequest, ListVmClusterUpdatesResponse, com.oracle.bmc.database.model.VmClusterUpdateSummary>( new java.util.function.Supplier() { @Override public ListVmClusterUpdatesRequest.Builder get() { return ListVmClusterUpdatesRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListVmClusterUpdatesResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListVmClusterUpdatesRequest.Builder>, ListVmClusterUpdatesRequest>() { @Override public ListVmClusterUpdatesRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListVmClusterUpdatesRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function< ListVmClusterUpdatesRequest, ListVmClusterUpdatesResponse>() { @Override public ListVmClusterUpdatesResponse apply(ListVmClusterUpdatesRequest request) { return client.listVmClusterUpdates(request); } }, new java.util.function.Function< ListVmClusterUpdatesResponse, java.util.List>() { @Override public java.util.List apply(ListVmClusterUpdatesResponse response) { return response.getItems(); } }); } /** * Creates a new iterable which will iterate over the responses received from the listVmClusters * operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses * received from the service. */ public Iterable listVmClustersResponseIterator( final ListVmClustersRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< ListVmClustersRequest.Builder, ListVmClustersRequest, ListVmClustersResponse>( new java.util.function.Supplier() { @Override public ListVmClustersRequest.Builder get() { return ListVmClustersRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListVmClustersResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListVmClustersRequest.Builder>, ListVmClustersRequest>() { @Override public ListVmClustersRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListVmClustersRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function() { @Override public ListVmClustersResponse apply(ListVmClustersRequest request) { return client.listVmClusters(request); } }); } /** * Creates a new iterable which will iterate over the {@link * com.oracle.bmc.database.model.VmClusterSummary} objects contained in responses from the * listVmClusters operation. This iterable will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link * com.oracle.bmc.database.model.VmClusterSummary} objects contained in responses received * from the service. */ public Iterable listVmClustersRecordIterator( final ListVmClustersRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< ListVmClustersRequest.Builder, ListVmClustersRequest, ListVmClustersResponse, com.oracle.bmc.database.model.VmClusterSummary>( new java.util.function.Supplier() { @Override public ListVmClustersRequest.Builder get() { return ListVmClustersRequest.builder().copy(request); } }, new java.util.function.Function() { @Override public String apply(ListVmClustersResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListVmClustersRequest.Builder>, ListVmClustersRequest>() { @Override public ListVmClustersRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< ListVmClustersRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); } else { return input.getRequestBuilder() .page(input.getNextPageToken().orElse(null)) .build(); } } }, new java.util.function.Function() { @Override public ListVmClustersResponse apply(ListVmClustersRequest request) { return client.listVmClusters(request); } }, new java.util.function.Function< ListVmClustersResponse, java.util.List>() { @Override public java.util.List apply( ListVmClustersResponse response) { return response.getItems(); } }); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy