com.oracle.bmc.database.DatabasePaginators Maven / Gradle / Ivy
Show all versions of oci-java-sdk-database Show documentation
/**
* 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