com.oracle.bmc.dataintegration.DataIntegrationPaginators Maven / Gradle / Ivy
Show all versions of oci-java-sdk-dataintegration Show documentation
/**
* Copyright (c) 2016, 2023, 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.dataintegration;
import com.oracle.bmc.dataintegration.requests.*;
import com.oracle.bmc.dataintegration.responses.*;
/**
* Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface
* to any list operations of DataIntegration 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: 20200430")
public class DataIntegrationPaginators {
private final DataIntegration client;
public DataIntegrationPaginators(DataIntegration client) {
this.client = client;
}
/**
* Creates a new iterable which will iterate over the responses received from the
* listApplications 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 listApplicationsResponseIterator(
final ListApplicationsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseIterable<
ListApplicationsRequest.Builder, ListApplicationsRequest, ListApplicationsResponse>(
new java.util.function.Supplier() {
@Override
public ListApplicationsRequest.Builder get() {
return ListApplicationsRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListApplicationsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListApplicationsRequest.Builder>,
ListApplicationsRequest>() {
@Override
public ListApplicationsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListApplicationsRequest.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<
ListApplicationsRequest, ListApplicationsResponse>() {
@Override
public ListApplicationsResponse apply(ListApplicationsRequest request) {
return client.listApplications(request);
}
});
}
/**
* Creates a new iterable which will iterate over the {@link
* com.oracle.bmc.dataintegration.model.ApplicationSummary} objects contained in responses from
* the listApplications 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.dataintegration.model.ApplicationSummary} objects contained in responses
* received from the service.
*/
public Iterable
listApplicationsRecordIterator(final ListApplicationsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseRecordIterable<
ListApplicationsRequest.Builder,
ListApplicationsRequest,
ListApplicationsResponse,
com.oracle.bmc.dataintegration.model.ApplicationSummary>(
new java.util.function.Supplier() {
@Override
public ListApplicationsRequest.Builder get() {
return ListApplicationsRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListApplicationsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListApplicationsRequest.Builder>,
ListApplicationsRequest>() {
@Override
public ListApplicationsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListApplicationsRequest.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<
ListApplicationsRequest, ListApplicationsResponse>() {
@Override
public ListApplicationsResponse apply(ListApplicationsRequest request) {
return client.listApplications(request);
}
},
new java.util.function.Function<
ListApplicationsResponse,
java.util.List>() {
@Override
public java.util.List
apply(ListApplicationsResponse response) {
return response.getApplicationSummaryCollection().getItems();
}
});
}
/**
* Creates a new iterable which will iterate over the responses received from the
* listConnectionValidations 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 listConnectionValidationsResponseIterator(
final ListConnectionValidationsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseIterable<
ListConnectionValidationsRequest.Builder,
ListConnectionValidationsRequest,
ListConnectionValidationsResponse>(
new java.util.function.Supplier() {
@Override
public ListConnectionValidationsRequest.Builder get() {
return ListConnectionValidationsRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListConnectionValidationsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListConnectionValidationsRequest.Builder>,
ListConnectionValidationsRequest>() {
@Override
public ListConnectionValidationsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListConnectionValidationsRequest.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<
ListConnectionValidationsRequest, ListConnectionValidationsResponse>() {
@Override
public ListConnectionValidationsResponse apply(
ListConnectionValidationsRequest request) {
return client.listConnectionValidations(request);
}
});
}
/**
* Creates a new iterable which will iterate over the {@link
* com.oracle.bmc.dataintegration.model.ConnectionValidationSummary} objects contained in
* responses from the listConnectionValidations 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.dataintegration.model.ConnectionValidationSummary} objects contained in
* responses received from the service.
*/
public Iterable
listConnectionValidationsRecordIterator(
final ListConnectionValidationsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseRecordIterable<
ListConnectionValidationsRequest.Builder,
ListConnectionValidationsRequest,
ListConnectionValidationsResponse,
com.oracle.bmc.dataintegration.model.ConnectionValidationSummary>(
new java.util.function.Supplier() {
@Override
public ListConnectionValidationsRequest.Builder get() {
return ListConnectionValidationsRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListConnectionValidationsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListConnectionValidationsRequest.Builder>,
ListConnectionValidationsRequest>() {
@Override
public ListConnectionValidationsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListConnectionValidationsRequest.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<
ListConnectionValidationsRequest, ListConnectionValidationsResponse>() {
@Override
public ListConnectionValidationsResponse apply(
ListConnectionValidationsRequest request) {
return client.listConnectionValidations(request);
}
},
new java.util.function.Function<
ListConnectionValidationsResponse,
java.util.List<
com.oracle.bmc.dataintegration.model
.ConnectionValidationSummary>>() {
@Override
public java.util.List<
com.oracle.bmc.dataintegration.model
.ConnectionValidationSummary>
apply(ListConnectionValidationsResponse response) {
return response.getConnectionValidationSummaryCollection().getItems();
}
});
}
/**
* Creates a new iterable which will iterate over the responses received from the
* listConnections 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 listConnectionsResponseIterator(
final ListConnectionsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseIterable<
ListConnectionsRequest.Builder, ListConnectionsRequest, ListConnectionsResponse>(
new java.util.function.Supplier() {
@Override
public ListConnectionsRequest.Builder get() {
return ListConnectionsRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListConnectionsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListConnectionsRequest.Builder>,
ListConnectionsRequest>() {
@Override
public ListConnectionsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListConnectionsRequest.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 ListConnectionsResponse apply(ListConnectionsRequest request) {
return client.listConnections(request);
}
});
}
/**
* Creates a new iterable which will iterate over the {@link
* com.oracle.bmc.dataintegration.model.ConnectionSummary} objects contained in responses from
* the listConnections 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.dataintegration.model.ConnectionSummary} objects contained in responses
* received from the service.
*/
public Iterable
listConnectionsRecordIterator(final ListConnectionsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseRecordIterable<
ListConnectionsRequest.Builder,
ListConnectionsRequest,
ListConnectionsResponse,
com.oracle.bmc.dataintegration.model.ConnectionSummary>(
new java.util.function.Supplier() {
@Override
public ListConnectionsRequest.Builder get() {
return ListConnectionsRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListConnectionsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListConnectionsRequest.Builder>,
ListConnectionsRequest>() {
@Override
public ListConnectionsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListConnectionsRequest.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 ListConnectionsResponse apply(ListConnectionsRequest request) {
return client.listConnections(request);
}
},
new java.util.function.Function<
ListConnectionsResponse,
java.util.List>() {
@Override
public java.util.List
apply(ListConnectionsResponse response) {
return response.getConnectionSummaryCollection().getItems();
}
});
}
/**
* Creates a new iterable which will iterate over the responses received from the
* listCopyObjectRequests 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 listCopyObjectRequestsResponseIterator(
final ListCopyObjectRequestsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseIterable<
ListCopyObjectRequestsRequest.Builder,
ListCopyObjectRequestsRequest,
ListCopyObjectRequestsResponse>(
new java.util.function.Supplier() {
@Override
public ListCopyObjectRequestsRequest.Builder get() {
return ListCopyObjectRequestsRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListCopyObjectRequestsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListCopyObjectRequestsRequest.Builder>,
ListCopyObjectRequestsRequest>() {
@Override
public ListCopyObjectRequestsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListCopyObjectRequestsRequest.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<
ListCopyObjectRequestsRequest, ListCopyObjectRequestsResponse>() {
@Override
public ListCopyObjectRequestsResponse apply(
ListCopyObjectRequestsRequest request) {
return client.listCopyObjectRequests(request);
}
});
}
/**
* Creates a new iterable which will iterate over the {@link
* com.oracle.bmc.dataintegration.model.CopyObjectRequestSummary} objects contained in responses
* from the listCopyObjectRequests 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.dataintegration.model.CopyObjectRequestSummary} objects contained in
* responses received from the service.
*/
public Iterable
listCopyObjectRequestsRecordIterator(final ListCopyObjectRequestsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseRecordIterable<
ListCopyObjectRequestsRequest.Builder,
ListCopyObjectRequestsRequest,
ListCopyObjectRequestsResponse,
com.oracle.bmc.dataintegration.model.CopyObjectRequestSummary>(
new java.util.function.Supplier() {
@Override
public ListCopyObjectRequestsRequest.Builder get() {
return ListCopyObjectRequestsRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListCopyObjectRequestsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListCopyObjectRequestsRequest.Builder>,
ListCopyObjectRequestsRequest>() {
@Override
public ListCopyObjectRequestsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListCopyObjectRequestsRequest.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<
ListCopyObjectRequestsRequest, ListCopyObjectRequestsResponse>() {
@Override
public ListCopyObjectRequestsResponse apply(
ListCopyObjectRequestsRequest request) {
return client.listCopyObjectRequests(request);
}
},
new java.util.function.Function<
ListCopyObjectRequestsResponse,
java.util.List<
com.oracle.bmc.dataintegration.model.CopyObjectRequestSummary>>() {
@Override
public java.util.List<
com.oracle.bmc.dataintegration.model.CopyObjectRequestSummary>
apply(ListCopyObjectRequestsResponse response) {
return response.getCopyObjectRequestSummaryCollection().getItems();
}
});
}
/**
* Creates a new iterable which will iterate over the responses received from the listDataAssets
* 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 listDataAssetsResponseIterator(
final ListDataAssetsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseIterable<
ListDataAssetsRequest.Builder, ListDataAssetsRequest, ListDataAssetsResponse>(
new java.util.function.Supplier() {
@Override
public ListDataAssetsRequest.Builder get() {
return ListDataAssetsRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListDataAssetsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListDataAssetsRequest.Builder>,
ListDataAssetsRequest>() {
@Override
public ListDataAssetsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListDataAssetsRequest.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 ListDataAssetsResponse apply(ListDataAssetsRequest request) {
return client.listDataAssets(request);
}
});
}
/**
* Creates a new iterable which will iterate over the {@link
* com.oracle.bmc.dataintegration.model.DataAssetSummary} objects contained in responses from
* the listDataAssets 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.dataintegration.model.DataAssetSummary} objects contained in responses
* received from the service.
*/
public Iterable
listDataAssetsRecordIterator(final ListDataAssetsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseRecordIterable<
ListDataAssetsRequest.Builder,
ListDataAssetsRequest,
ListDataAssetsResponse,
com.oracle.bmc.dataintegration.model.DataAssetSummary>(
new java.util.function.Supplier() {
@Override
public ListDataAssetsRequest.Builder get() {
return ListDataAssetsRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListDataAssetsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListDataAssetsRequest.Builder>,
ListDataAssetsRequest>() {
@Override
public ListDataAssetsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListDataAssetsRequest.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 ListDataAssetsResponse apply(ListDataAssetsRequest request) {
return client.listDataAssets(request);
}
},
new java.util.function.Function<
ListDataAssetsResponse,
java.util.List>() {
@Override
public java.util.List
apply(ListDataAssetsResponse response) {
return response.getDataAssetSummaryCollection().getItems();
}
});
}
/**
* Creates a new iterable which will iterate over the responses received from the
* listDataEntities 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 listDataEntitiesResponseIterator(
final ListDataEntitiesRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseIterable<
ListDataEntitiesRequest.Builder, ListDataEntitiesRequest, ListDataEntitiesResponse>(
new java.util.function.Supplier() {
@Override
public ListDataEntitiesRequest.Builder get() {
return ListDataEntitiesRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListDataEntitiesResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListDataEntitiesRequest.Builder>,
ListDataEntitiesRequest>() {
@Override
public ListDataEntitiesRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListDataEntitiesRequest.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<
ListDataEntitiesRequest, ListDataEntitiesResponse>() {
@Override
public ListDataEntitiesResponse apply(ListDataEntitiesRequest request) {
return client.listDataEntities(request);
}
});
}
/**
* Creates a new iterable which will iterate over the {@link
* com.oracle.bmc.dataintegration.model.DataEntitySummary} objects contained in responses from
* the listDataEntities 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.dataintegration.model.DataEntitySummary} objects contained in responses
* received from the service.
*/
public Iterable
listDataEntitiesRecordIterator(final ListDataEntitiesRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseRecordIterable<
ListDataEntitiesRequest.Builder,
ListDataEntitiesRequest,
ListDataEntitiesResponse,
com.oracle.bmc.dataintegration.model.DataEntitySummary>(
new java.util.function.Supplier() {
@Override
public ListDataEntitiesRequest.Builder get() {
return ListDataEntitiesRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListDataEntitiesResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListDataEntitiesRequest.Builder>,
ListDataEntitiesRequest>() {
@Override
public ListDataEntitiesRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListDataEntitiesRequest.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<
ListDataEntitiesRequest, ListDataEntitiesResponse>() {
@Override
public ListDataEntitiesResponse apply(ListDataEntitiesRequest request) {
return client.listDataEntities(request);
}
},
new java.util.function.Function<
ListDataEntitiesResponse,
java.util.List>() {
@Override
public java.util.List
apply(ListDataEntitiesResponse response) {
return response.getDataEntitySummaryCollection().getItems();
}
});
}
/**
* Creates a new iterable which will iterate over the responses received from the
* listDataFlowValidations 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 listDataFlowValidationsResponseIterator(
final ListDataFlowValidationsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseIterable<
ListDataFlowValidationsRequest.Builder,
ListDataFlowValidationsRequest,
ListDataFlowValidationsResponse>(
new java.util.function.Supplier() {
@Override
public ListDataFlowValidationsRequest.Builder get() {
return ListDataFlowValidationsRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListDataFlowValidationsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListDataFlowValidationsRequest.Builder>,
ListDataFlowValidationsRequest>() {
@Override
public ListDataFlowValidationsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListDataFlowValidationsRequest.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<
ListDataFlowValidationsRequest, ListDataFlowValidationsResponse>() {
@Override
public ListDataFlowValidationsResponse apply(
ListDataFlowValidationsRequest request) {
return client.listDataFlowValidations(request);
}
});
}
/**
* Creates a new iterable which will iterate over the {@link
* com.oracle.bmc.dataintegration.model.DataFlowValidationSummary} objects contained in
* responses from the listDataFlowValidations 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.dataintegration.model.DataFlowValidationSummary} objects contained in
* responses received from the service.
*/
public Iterable
listDataFlowValidationsRecordIterator(final ListDataFlowValidationsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseRecordIterable<
ListDataFlowValidationsRequest.Builder,
ListDataFlowValidationsRequest,
ListDataFlowValidationsResponse,
com.oracle.bmc.dataintegration.model.DataFlowValidationSummary>(
new java.util.function.Supplier() {
@Override
public ListDataFlowValidationsRequest.Builder get() {
return ListDataFlowValidationsRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListDataFlowValidationsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListDataFlowValidationsRequest.Builder>,
ListDataFlowValidationsRequest>() {
@Override
public ListDataFlowValidationsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListDataFlowValidationsRequest.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<
ListDataFlowValidationsRequest, ListDataFlowValidationsResponse>() {
@Override
public ListDataFlowValidationsResponse apply(
ListDataFlowValidationsRequest request) {
return client.listDataFlowValidations(request);
}
},
new java.util.function.Function<
ListDataFlowValidationsResponse,
java.util.List<
com.oracle.bmc.dataintegration.model.DataFlowValidationSummary>>() {
@Override
public java.util.List<
com.oracle.bmc.dataintegration.model.DataFlowValidationSummary>
apply(ListDataFlowValidationsResponse response) {
return response.getDataFlowValidationSummaryCollection().getItems();
}
});
}
/**
* Creates a new iterable which will iterate over the responses received from the listDataFlows
* 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 listDataFlowsResponseIterator(
final ListDataFlowsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseIterable<
ListDataFlowsRequest.Builder, ListDataFlowsRequest, ListDataFlowsResponse>(
new java.util.function.Supplier() {
@Override
public ListDataFlowsRequest.Builder get() {
return ListDataFlowsRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListDataFlowsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListDataFlowsRequest.Builder>,
ListDataFlowsRequest>() {
@Override
public ListDataFlowsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListDataFlowsRequest.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 ListDataFlowsResponse apply(ListDataFlowsRequest request) {
return client.listDataFlows(request);
}
});
}
/**
* Creates a new iterable which will iterate over the {@link
* com.oracle.bmc.dataintegration.model.DataFlowSummary} objects contained in responses from the
* listDataFlows 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.dataintegration.model.DataFlowSummary} objects contained in responses
* received from the service.
*/
public Iterable
listDataFlowsRecordIterator(final ListDataFlowsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseRecordIterable<
ListDataFlowsRequest.Builder,
ListDataFlowsRequest,
ListDataFlowsResponse,
com.oracle.bmc.dataintegration.model.DataFlowSummary>(
new java.util.function.Supplier() {
@Override
public ListDataFlowsRequest.Builder get() {
return ListDataFlowsRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListDataFlowsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListDataFlowsRequest.Builder>,
ListDataFlowsRequest>() {
@Override
public ListDataFlowsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListDataFlowsRequest.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 ListDataFlowsResponse apply(ListDataFlowsRequest request) {
return client.listDataFlows(request);
}
},
new java.util.function.Function<
ListDataFlowsResponse,
java.util.List>() {
@Override
public java.util.List
apply(ListDataFlowsResponse response) {
return response.getDataFlowSummaryCollection().getItems();
}
});
}
/**
* Creates a new iterable which will iterate over the responses received from the
* listDependentObjects 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 listDependentObjectsResponseIterator(
final ListDependentObjectsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseIterable<
ListDependentObjectsRequest.Builder,
ListDependentObjectsRequest,
ListDependentObjectsResponse>(
new java.util.function.Supplier() {
@Override
public ListDependentObjectsRequest.Builder get() {
return ListDependentObjectsRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListDependentObjectsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListDependentObjectsRequest.Builder>,
ListDependentObjectsRequest>() {
@Override
public ListDependentObjectsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListDependentObjectsRequest.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<
ListDependentObjectsRequest, ListDependentObjectsResponse>() {
@Override
public ListDependentObjectsResponse apply(ListDependentObjectsRequest request) {
return client.listDependentObjects(request);
}
});
}
/**
* Creates a new iterable which will iterate over the {@link
* com.oracle.bmc.dataintegration.model.DependentObjectSummary} objects contained in responses
* from the listDependentObjects 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.dataintegration.model.DependentObjectSummary} objects contained in
* responses received from the service.
*/
public Iterable
listDependentObjectsRecordIterator(final ListDependentObjectsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseRecordIterable<
ListDependentObjectsRequest.Builder,
ListDependentObjectsRequest,
ListDependentObjectsResponse,
com.oracle.bmc.dataintegration.model.DependentObjectSummary>(
new java.util.function.Supplier() {
@Override
public ListDependentObjectsRequest.Builder get() {
return ListDependentObjectsRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListDependentObjectsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListDependentObjectsRequest.Builder>,
ListDependentObjectsRequest>() {
@Override
public ListDependentObjectsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListDependentObjectsRequest.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<
ListDependentObjectsRequest, ListDependentObjectsResponse>() {
@Override
public ListDependentObjectsResponse apply(ListDependentObjectsRequest request) {
return client.listDependentObjects(request);
}
},
new java.util.function.Function<
ListDependentObjectsResponse,
java.util.List<
com.oracle.bmc.dataintegration.model.DependentObjectSummary>>() {
@Override
public java.util.List<
com.oracle.bmc.dataintegration.model.DependentObjectSummary>
apply(ListDependentObjectsResponse response) {
return response.getDependentObjectSummaryCollection().getItems();
}
});
}
/**
* Creates a new iterable which will iterate over the responses received from the
* listDisApplicationTaskRunLineages 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
listDisApplicationTaskRunLineagesResponseIterator(
final ListDisApplicationTaskRunLineagesRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseIterable<
ListDisApplicationTaskRunLineagesRequest.Builder,
ListDisApplicationTaskRunLineagesRequest,
ListDisApplicationTaskRunLineagesResponse>(
new java.util.function.Supplier<
ListDisApplicationTaskRunLineagesRequest.Builder>() {
@Override
public ListDisApplicationTaskRunLineagesRequest.Builder get() {
return ListDisApplicationTaskRunLineagesRequest.builder().copy(request);
}
},
new java.util.function.Function<
ListDisApplicationTaskRunLineagesResponse, String>() {
@Override
public String apply(ListDisApplicationTaskRunLineagesResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListDisApplicationTaskRunLineagesRequest.Builder>,
ListDisApplicationTaskRunLineagesRequest>() {
@Override
public ListDisApplicationTaskRunLineagesRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListDisApplicationTaskRunLineagesRequest.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<
ListDisApplicationTaskRunLineagesRequest,
ListDisApplicationTaskRunLineagesResponse>() {
@Override
public ListDisApplicationTaskRunLineagesResponse apply(
ListDisApplicationTaskRunLineagesRequest request) {
return client.listDisApplicationTaskRunLineages(request);
}
});
}
/**
* Creates a new iterable which will iterate over the {@link
* com.oracle.bmc.dataintegration.model.TaskRunLineageSummary} objects contained in responses
* from the listDisApplicationTaskRunLineages 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.dataintegration.model.TaskRunLineageSummary} objects contained in
* responses received from the service.
*/
public Iterable
listDisApplicationTaskRunLineagesRecordIterator(
final ListDisApplicationTaskRunLineagesRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseRecordIterable<
ListDisApplicationTaskRunLineagesRequest.Builder,
ListDisApplicationTaskRunLineagesRequest,
ListDisApplicationTaskRunLineagesResponse,
com.oracle.bmc.dataintegration.model.TaskRunLineageSummary>(
new java.util.function.Supplier<
ListDisApplicationTaskRunLineagesRequest.Builder>() {
@Override
public ListDisApplicationTaskRunLineagesRequest.Builder get() {
return ListDisApplicationTaskRunLineagesRequest.builder().copy(request);
}
},
new java.util.function.Function<
ListDisApplicationTaskRunLineagesResponse, String>() {
@Override
public String apply(ListDisApplicationTaskRunLineagesResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListDisApplicationTaskRunLineagesRequest.Builder>,
ListDisApplicationTaskRunLineagesRequest>() {
@Override
public ListDisApplicationTaskRunLineagesRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListDisApplicationTaskRunLineagesRequest.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<
ListDisApplicationTaskRunLineagesRequest,
ListDisApplicationTaskRunLineagesResponse>() {
@Override
public ListDisApplicationTaskRunLineagesResponse apply(
ListDisApplicationTaskRunLineagesRequest request) {
return client.listDisApplicationTaskRunLineages(request);
}
},
new java.util.function.Function<
ListDisApplicationTaskRunLineagesResponse,
java.util.List<
com.oracle.bmc.dataintegration.model.TaskRunLineageSummary>>() {
@Override
public java.util.List<
com.oracle.bmc.dataintegration.model.TaskRunLineageSummary>
apply(ListDisApplicationTaskRunLineagesResponse response) {
return response.getTaskRunLineageSummaryCollection().getItems();
}
});
}
/**
* Creates a new iterable which will iterate over the responses received from the
* listDisApplications 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 listDisApplicationsResponseIterator(
final ListDisApplicationsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseIterable<
ListDisApplicationsRequest.Builder,
ListDisApplicationsRequest,
ListDisApplicationsResponse>(
new java.util.function.Supplier() {
@Override
public ListDisApplicationsRequest.Builder get() {
return ListDisApplicationsRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListDisApplicationsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListDisApplicationsRequest.Builder>,
ListDisApplicationsRequest>() {
@Override
public ListDisApplicationsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListDisApplicationsRequest.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<
ListDisApplicationsRequest, ListDisApplicationsResponse>() {
@Override
public ListDisApplicationsResponse apply(ListDisApplicationsRequest request) {
return client.listDisApplications(request);
}
});
}
/**
* Creates a new iterable which will iterate over the {@link
* com.oracle.bmc.dataintegration.model.DisApplicationSummary} objects contained in responses
* from the listDisApplications 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.dataintegration.model.DisApplicationSummary} objects contained in
* responses received from the service.
*/
public Iterable
listDisApplicationsRecordIterator(final ListDisApplicationsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseRecordIterable<
ListDisApplicationsRequest.Builder,
ListDisApplicationsRequest,
ListDisApplicationsResponse,
com.oracle.bmc.dataintegration.model.DisApplicationSummary>(
new java.util.function.Supplier() {
@Override
public ListDisApplicationsRequest.Builder get() {
return ListDisApplicationsRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListDisApplicationsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListDisApplicationsRequest.Builder>,
ListDisApplicationsRequest>() {
@Override
public ListDisApplicationsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListDisApplicationsRequest.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<
ListDisApplicationsRequest, ListDisApplicationsResponse>() {
@Override
public ListDisApplicationsResponse apply(ListDisApplicationsRequest request) {
return client.listDisApplications(request);
}
},
new java.util.function.Function<
ListDisApplicationsResponse,
java.util.List<
com.oracle.bmc.dataintegration.model.DisApplicationSummary>>() {
@Override
public java.util.List<
com.oracle.bmc.dataintegration.model.DisApplicationSummary>
apply(ListDisApplicationsResponse response) {
return response.getDisApplicationSummaryCollection().getItems();
}
});
}
/**
* Creates a new iterable which will iterate over the responses received from the
* listExportRequests 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 listExportRequestsResponseIterator(
final ListExportRequestsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseIterable<
ListExportRequestsRequest.Builder,
ListExportRequestsRequest,
ListExportRequestsResponse>(
new java.util.function.Supplier() {
@Override
public ListExportRequestsRequest.Builder get() {
return ListExportRequestsRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListExportRequestsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListExportRequestsRequest.Builder>,
ListExportRequestsRequest>() {
@Override
public ListExportRequestsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListExportRequestsRequest.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<
ListExportRequestsRequest, ListExportRequestsResponse>() {
@Override
public ListExportRequestsResponse apply(ListExportRequestsRequest request) {
return client.listExportRequests(request);
}
});
}
/**
* Creates a new iterable which will iterate over the {@link
* com.oracle.bmc.dataintegration.model.ExportRequestSummary} objects contained in responses
* from the listExportRequests 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.dataintegration.model.ExportRequestSummary} objects contained in responses
* received from the service.
*/
public Iterable
listExportRequestsRecordIterator(final ListExportRequestsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseRecordIterable<
ListExportRequestsRequest.Builder,
ListExportRequestsRequest,
ListExportRequestsResponse,
com.oracle.bmc.dataintegration.model.ExportRequestSummary>(
new java.util.function.Supplier() {
@Override
public ListExportRequestsRequest.Builder get() {
return ListExportRequestsRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListExportRequestsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListExportRequestsRequest.Builder>,
ListExportRequestsRequest>() {
@Override
public ListExportRequestsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListExportRequestsRequest.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<
ListExportRequestsRequest, ListExportRequestsResponse>() {
@Override
public ListExportRequestsResponse apply(ListExportRequestsRequest request) {
return client.listExportRequests(request);
}
},
new java.util.function.Function<
ListExportRequestsResponse,
java.util.List<
com.oracle.bmc.dataintegration.model.ExportRequestSummary>>() {
@Override
public java.util.List
apply(ListExportRequestsResponse response) {
return response.getExportRequestSummaryCollection().getItems();
}
});
}
/**
* Creates a new iterable which will iterate over the responses received from the
* listExternalPublicationValidations 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
listExternalPublicationValidationsResponseIterator(
final ListExternalPublicationValidationsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseIterable<
ListExternalPublicationValidationsRequest.Builder,
ListExternalPublicationValidationsRequest,
ListExternalPublicationValidationsResponse>(
new java.util.function.Supplier<
ListExternalPublicationValidationsRequest.Builder>() {
@Override
public ListExternalPublicationValidationsRequest.Builder get() {
return ListExternalPublicationValidationsRequest.builder().copy(request);
}
},
new java.util.function.Function<
ListExternalPublicationValidationsResponse, String>() {
@Override
public String apply(ListExternalPublicationValidationsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListExternalPublicationValidationsRequest.Builder>,
ListExternalPublicationValidationsRequest>() {
@Override
public ListExternalPublicationValidationsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListExternalPublicationValidationsRequest.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<
ListExternalPublicationValidationsRequest,
ListExternalPublicationValidationsResponse>() {
@Override
public ListExternalPublicationValidationsResponse apply(
ListExternalPublicationValidationsRequest request) {
return client.listExternalPublicationValidations(request);
}
});
}
/**
* Creates a new iterable which will iterate over the {@link
* com.oracle.bmc.dataintegration.model.ExternalPublicationValidationSummary} objects contained
* in responses from the listExternalPublicationValidations 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.dataintegration.model.ExternalPublicationValidationSummary} objects
* contained in responses received from the service.
*/
public Iterable
listExternalPublicationValidationsRecordIterator(
final ListExternalPublicationValidationsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseRecordIterable<
ListExternalPublicationValidationsRequest.Builder,
ListExternalPublicationValidationsRequest,
ListExternalPublicationValidationsResponse,
com.oracle.bmc.dataintegration.model.ExternalPublicationValidationSummary>(
new java.util.function.Supplier<
ListExternalPublicationValidationsRequest.Builder>() {
@Override
public ListExternalPublicationValidationsRequest.Builder get() {
return ListExternalPublicationValidationsRequest.builder().copy(request);
}
},
new java.util.function.Function<
ListExternalPublicationValidationsResponse, String>() {
@Override
public String apply(ListExternalPublicationValidationsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListExternalPublicationValidationsRequest.Builder>,
ListExternalPublicationValidationsRequest>() {
@Override
public ListExternalPublicationValidationsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListExternalPublicationValidationsRequest.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<
ListExternalPublicationValidationsRequest,
ListExternalPublicationValidationsResponse>() {
@Override
public ListExternalPublicationValidationsResponse apply(
ListExternalPublicationValidationsRequest request) {
return client.listExternalPublicationValidations(request);
}
},
new java.util.function.Function<
ListExternalPublicationValidationsResponse,
java.util.List<
com.oracle.bmc.dataintegration.model
.ExternalPublicationValidationSummary>>() {
@Override
public java.util.List<
com.oracle.bmc.dataintegration.model
.ExternalPublicationValidationSummary>
apply(ListExternalPublicationValidationsResponse response) {
return response.getExternalPublicationValidationSummaryCollection()
.getItems();
}
});
}
/**
* Creates a new iterable which will iterate over the responses received from the
* listExternalPublications 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 listExternalPublicationsResponseIterator(
final ListExternalPublicationsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseIterable<
ListExternalPublicationsRequest.Builder,
ListExternalPublicationsRequest,
ListExternalPublicationsResponse>(
new java.util.function.Supplier() {
@Override
public ListExternalPublicationsRequest.Builder get() {
return ListExternalPublicationsRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListExternalPublicationsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListExternalPublicationsRequest.Builder>,
ListExternalPublicationsRequest>() {
@Override
public ListExternalPublicationsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListExternalPublicationsRequest.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<
ListExternalPublicationsRequest, ListExternalPublicationsResponse>() {
@Override
public ListExternalPublicationsResponse apply(
ListExternalPublicationsRequest request) {
return client.listExternalPublications(request);
}
});
}
/**
* Creates a new iterable which will iterate over the {@link
* com.oracle.bmc.dataintegration.model.ExternalPublicationSummary} objects contained in
* responses from the listExternalPublications 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.dataintegration.model.ExternalPublicationSummary} objects contained in
* responses received from the service.
*/
public Iterable
listExternalPublicationsRecordIterator(final ListExternalPublicationsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseRecordIterable<
ListExternalPublicationsRequest.Builder,
ListExternalPublicationsRequest,
ListExternalPublicationsResponse,
com.oracle.bmc.dataintegration.model.ExternalPublicationSummary>(
new java.util.function.Supplier() {
@Override
public ListExternalPublicationsRequest.Builder get() {
return ListExternalPublicationsRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListExternalPublicationsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListExternalPublicationsRequest.Builder>,
ListExternalPublicationsRequest>() {
@Override
public ListExternalPublicationsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListExternalPublicationsRequest.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<
ListExternalPublicationsRequest, ListExternalPublicationsResponse>() {
@Override
public ListExternalPublicationsResponse apply(
ListExternalPublicationsRequest request) {
return client.listExternalPublications(request);
}
},
new java.util.function.Function<
ListExternalPublicationsResponse,
java.util.List<
com.oracle.bmc.dataintegration.model
.ExternalPublicationSummary>>() {
@Override
public java.util.List<
com.oracle.bmc.dataintegration.model.ExternalPublicationSummary>
apply(ListExternalPublicationsResponse response) {
return response.getExternalPublicationSummaryCollection().getItems();
}
});
}
/**
* Creates a new iterable which will iterate over the responses received from the listFolders
* 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 listFoldersResponseIterator(
final ListFoldersRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseIterable<
ListFoldersRequest.Builder, ListFoldersRequest, ListFoldersResponse>(
new java.util.function.Supplier() {
@Override
public ListFoldersRequest.Builder get() {
return ListFoldersRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListFoldersResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListFoldersRequest.Builder>,
ListFoldersRequest>() {
@Override
public ListFoldersRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListFoldersRequest.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 ListFoldersResponse apply(ListFoldersRequest request) {
return client.listFolders(request);
}
});
}
/**
* Creates a new iterable which will iterate over the {@link
* com.oracle.bmc.dataintegration.model.FolderSummary} objects contained in responses from the
* listFolders 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.dataintegration.model.FolderSummary} objects contained in responses
* received from the service.
*/
public Iterable listFoldersRecordIterator(
final ListFoldersRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseRecordIterable<
ListFoldersRequest.Builder,
ListFoldersRequest,
ListFoldersResponse,
com.oracle.bmc.dataintegration.model.FolderSummary>(
new java.util.function.Supplier() {
@Override
public ListFoldersRequest.Builder get() {
return ListFoldersRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListFoldersResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListFoldersRequest.Builder>,
ListFoldersRequest>() {
@Override
public ListFoldersRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListFoldersRequest.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 ListFoldersResponse apply(ListFoldersRequest request) {
return client.listFolders(request);
}
},
new java.util.function.Function<
ListFoldersResponse,
java.util.List>() {
@Override
public java.util.List apply(
ListFoldersResponse response) {
return response.getFolderSummaryCollection().getItems();
}
});
}
/**
* Creates a new iterable which will iterate over the responses received from the
* listFunctionLibraries 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 listFunctionLibrariesResponseIterator(
final ListFunctionLibrariesRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseIterable<
ListFunctionLibrariesRequest.Builder,
ListFunctionLibrariesRequest,
ListFunctionLibrariesResponse>(
new java.util.function.Supplier() {
@Override
public ListFunctionLibrariesRequest.Builder get() {
return ListFunctionLibrariesRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListFunctionLibrariesResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListFunctionLibrariesRequest.Builder>,
ListFunctionLibrariesRequest>() {
@Override
public ListFunctionLibrariesRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListFunctionLibrariesRequest.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<
ListFunctionLibrariesRequest, ListFunctionLibrariesResponse>() {
@Override
public ListFunctionLibrariesResponse apply(
ListFunctionLibrariesRequest request) {
return client.listFunctionLibraries(request);
}
});
}
/**
* Creates a new iterable which will iterate over the {@link
* com.oracle.bmc.dataintegration.model.FunctionLibrarySummary} objects contained in responses
* from the listFunctionLibraries 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.dataintegration.model.FunctionLibrarySummary} objects contained in
* responses received from the service.
*/
public Iterable
listFunctionLibrariesRecordIterator(final ListFunctionLibrariesRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseRecordIterable<
ListFunctionLibrariesRequest.Builder,
ListFunctionLibrariesRequest,
ListFunctionLibrariesResponse,
com.oracle.bmc.dataintegration.model.FunctionLibrarySummary>(
new java.util.function.Supplier() {
@Override
public ListFunctionLibrariesRequest.Builder get() {
return ListFunctionLibrariesRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListFunctionLibrariesResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListFunctionLibrariesRequest.Builder>,
ListFunctionLibrariesRequest>() {
@Override
public ListFunctionLibrariesRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListFunctionLibrariesRequest.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<
ListFunctionLibrariesRequest, ListFunctionLibrariesResponse>() {
@Override
public ListFunctionLibrariesResponse apply(
ListFunctionLibrariesRequest request) {
return client.listFunctionLibraries(request);
}
},
new java.util.function.Function<
ListFunctionLibrariesResponse,
java.util.List<
com.oracle.bmc.dataintegration.model.FunctionLibrarySummary>>() {
@Override
public java.util.List<
com.oracle.bmc.dataintegration.model.FunctionLibrarySummary>
apply(ListFunctionLibrariesResponse response) {
return response.getFunctionLibrarySummaryCollection().getItems();
}
});
}
/**
* Creates a new iterable which will iterate over the responses received from the
* listImportRequests 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 listImportRequestsResponseIterator(
final ListImportRequestsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseIterable<
ListImportRequestsRequest.Builder,
ListImportRequestsRequest,
ListImportRequestsResponse>(
new java.util.function.Supplier() {
@Override
public ListImportRequestsRequest.Builder get() {
return ListImportRequestsRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListImportRequestsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListImportRequestsRequest.Builder>,
ListImportRequestsRequest>() {
@Override
public ListImportRequestsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListImportRequestsRequest.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<
ListImportRequestsRequest, ListImportRequestsResponse>() {
@Override
public ListImportRequestsResponse apply(ListImportRequestsRequest request) {
return client.listImportRequests(request);
}
});
}
/**
* Creates a new iterable which will iterate over the {@link
* com.oracle.bmc.dataintegration.model.ImportRequestSummary} objects contained in responses
* from the listImportRequests 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.dataintegration.model.ImportRequestSummary} objects contained in responses
* received from the service.
*/
public Iterable
listImportRequestsRecordIterator(final ListImportRequestsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseRecordIterable<
ListImportRequestsRequest.Builder,
ListImportRequestsRequest,
ListImportRequestsResponse,
com.oracle.bmc.dataintegration.model.ImportRequestSummary>(
new java.util.function.Supplier() {
@Override
public ListImportRequestsRequest.Builder get() {
return ListImportRequestsRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListImportRequestsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListImportRequestsRequest.Builder>,
ListImportRequestsRequest>() {
@Override
public ListImportRequestsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListImportRequestsRequest.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<
ListImportRequestsRequest, ListImportRequestsResponse>() {
@Override
public ListImportRequestsResponse apply(ListImportRequestsRequest request) {
return client.listImportRequests(request);
}
},
new java.util.function.Function<
ListImportRequestsResponse,
java.util.List<
com.oracle.bmc.dataintegration.model.ImportRequestSummary>>() {
@Override
public java.util.List
apply(ListImportRequestsResponse response) {
return response.getImportRequestSummaryCollection().getItems();
}
});
}
/**
* Creates a new iterable which will iterate over the responses received from the
* listPatchChanges 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 listPatchChangesResponseIterator(
final ListPatchChangesRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseIterable<
ListPatchChangesRequest.Builder, ListPatchChangesRequest, ListPatchChangesResponse>(
new java.util.function.Supplier() {
@Override
public ListPatchChangesRequest.Builder get() {
return ListPatchChangesRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListPatchChangesResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListPatchChangesRequest.Builder>,
ListPatchChangesRequest>() {
@Override
public ListPatchChangesRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListPatchChangesRequest.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<
ListPatchChangesRequest, ListPatchChangesResponse>() {
@Override
public ListPatchChangesResponse apply(ListPatchChangesRequest request) {
return client.listPatchChanges(request);
}
});
}
/**
* Creates a new iterable which will iterate over the {@link
* com.oracle.bmc.dataintegration.model.PatchChangeSummary} objects contained in responses from
* the listPatchChanges 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.dataintegration.model.PatchChangeSummary} objects contained in responses
* received from the service.
*/
public Iterable
listPatchChangesRecordIterator(final ListPatchChangesRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseRecordIterable<
ListPatchChangesRequest.Builder,
ListPatchChangesRequest,
ListPatchChangesResponse,
com.oracle.bmc.dataintegration.model.PatchChangeSummary>(
new java.util.function.Supplier() {
@Override
public ListPatchChangesRequest.Builder get() {
return ListPatchChangesRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListPatchChangesResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListPatchChangesRequest.Builder>,
ListPatchChangesRequest>() {
@Override
public ListPatchChangesRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListPatchChangesRequest.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<
ListPatchChangesRequest, ListPatchChangesResponse>() {
@Override
public ListPatchChangesResponse apply(ListPatchChangesRequest request) {
return client.listPatchChanges(request);
}
},
new java.util.function.Function<
ListPatchChangesResponse,
java.util.List>() {
@Override
public java.util.List
apply(ListPatchChangesResponse response) {
return response.getPatchChangeSummaryCollection().getItems();
}
});
}
/**
* Creates a new iterable which will iterate over the responses received from the listPatches
* 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 listPatchesResponseIterator(
final ListPatchesRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseIterable<
ListPatchesRequest.Builder, ListPatchesRequest, ListPatchesResponse>(
new java.util.function.Supplier() {
@Override
public ListPatchesRequest.Builder get() {
return ListPatchesRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListPatchesResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListPatchesRequest.Builder>,
ListPatchesRequest>() {
@Override
public ListPatchesRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListPatchesRequest.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 ListPatchesResponse apply(ListPatchesRequest request) {
return client.listPatches(request);
}
});
}
/**
* Creates a new iterable which will iterate over the {@link
* com.oracle.bmc.dataintegration.model.PatchSummary} objects contained in responses from the
* listPatches 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.dataintegration.model.PatchSummary} objects contained in responses
* received from the service.
*/
public Iterable listPatchesRecordIterator(
final ListPatchesRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseRecordIterable<
ListPatchesRequest.Builder,
ListPatchesRequest,
ListPatchesResponse,
com.oracle.bmc.dataintegration.model.PatchSummary>(
new java.util.function.Supplier() {
@Override
public ListPatchesRequest.Builder get() {
return ListPatchesRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListPatchesResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListPatchesRequest.Builder>,
ListPatchesRequest>() {
@Override
public ListPatchesRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListPatchesRequest.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 ListPatchesResponse apply(ListPatchesRequest request) {
return client.listPatches(request);
}
},
new java.util.function.Function<
ListPatchesResponse,
java.util.List>() {
@Override
public java.util.List apply(
ListPatchesResponse response) {
return response.getPatchSummaryCollection().getItems();
}
});
}
/**
* Creates a new iterable which will iterate over the responses received from the
* listPipelineValidations 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 listPipelineValidationsResponseIterator(
final ListPipelineValidationsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseIterable<
ListPipelineValidationsRequest.Builder,
ListPipelineValidationsRequest,
ListPipelineValidationsResponse>(
new java.util.function.Supplier() {
@Override
public ListPipelineValidationsRequest.Builder get() {
return ListPipelineValidationsRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListPipelineValidationsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListPipelineValidationsRequest.Builder>,
ListPipelineValidationsRequest>() {
@Override
public ListPipelineValidationsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListPipelineValidationsRequest.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<
ListPipelineValidationsRequest, ListPipelineValidationsResponse>() {
@Override
public ListPipelineValidationsResponse apply(
ListPipelineValidationsRequest request) {
return client.listPipelineValidations(request);
}
});
}
/**
* Creates a new iterable which will iterate over the {@link
* com.oracle.bmc.dataintegration.model.PipelineValidationSummary} objects contained in
* responses from the listPipelineValidations 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.dataintegration.model.PipelineValidationSummary} objects contained in
* responses received from the service.
*/
public Iterable
listPipelineValidationsRecordIterator(final ListPipelineValidationsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseRecordIterable<
ListPipelineValidationsRequest.Builder,
ListPipelineValidationsRequest,
ListPipelineValidationsResponse,
com.oracle.bmc.dataintegration.model.PipelineValidationSummary>(
new java.util.function.Supplier() {
@Override
public ListPipelineValidationsRequest.Builder get() {
return ListPipelineValidationsRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListPipelineValidationsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListPipelineValidationsRequest.Builder>,
ListPipelineValidationsRequest>() {
@Override
public ListPipelineValidationsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListPipelineValidationsRequest.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<
ListPipelineValidationsRequest, ListPipelineValidationsResponse>() {
@Override
public ListPipelineValidationsResponse apply(
ListPipelineValidationsRequest request) {
return client.listPipelineValidations(request);
}
},
new java.util.function.Function<
ListPipelineValidationsResponse,
java.util.List<
com.oracle.bmc.dataintegration.model.PipelineValidationSummary>>() {
@Override
public java.util.List<
com.oracle.bmc.dataintegration.model.PipelineValidationSummary>
apply(ListPipelineValidationsResponse response) {
return response.getPipelineValidationSummaryCollection().getItems();
}
});
}
/**
* Creates a new iterable which will iterate over the responses received from the listPipelines
* 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 listPipelinesResponseIterator(
final ListPipelinesRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseIterable<
ListPipelinesRequest.Builder, ListPipelinesRequest, ListPipelinesResponse>(
new java.util.function.Supplier() {
@Override
public ListPipelinesRequest.Builder get() {
return ListPipelinesRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListPipelinesResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListPipelinesRequest.Builder>,
ListPipelinesRequest>() {
@Override
public ListPipelinesRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListPipelinesRequest.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 ListPipelinesResponse apply(ListPipelinesRequest request) {
return client.listPipelines(request);
}
});
}
/**
* Creates a new iterable which will iterate over the {@link
* com.oracle.bmc.dataintegration.model.PipelineSummary} objects contained in responses from the
* listPipelines 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.dataintegration.model.PipelineSummary} objects contained in responses
* received from the service.
*/
public Iterable
listPipelinesRecordIterator(final ListPipelinesRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseRecordIterable<
ListPipelinesRequest.Builder,
ListPipelinesRequest,
ListPipelinesResponse,
com.oracle.bmc.dataintegration.model.PipelineSummary>(
new java.util.function.Supplier() {
@Override
public ListPipelinesRequest.Builder get() {
return ListPipelinesRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListPipelinesResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListPipelinesRequest.Builder>,
ListPipelinesRequest>() {
@Override
public ListPipelinesRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListPipelinesRequest.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 ListPipelinesResponse apply(ListPipelinesRequest request) {
return client.listPipelines(request);
}
},
new java.util.function.Function<
ListPipelinesResponse,
java.util.List>() {
@Override
public java.util.List
apply(ListPipelinesResponse response) {
return response.getPipelineSummaryCollection().getItems();
}
});
}
/**
* Creates a new iterable which will iterate over the responses received from the listProjects
* 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 listProjectsResponseIterator(
final ListProjectsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseIterable<
ListProjectsRequest.Builder, ListProjectsRequest, ListProjectsResponse>(
new java.util.function.Supplier() {
@Override
public ListProjectsRequest.Builder get() {
return ListProjectsRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListProjectsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListProjectsRequest.Builder>,
ListProjectsRequest>() {
@Override
public ListProjectsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListProjectsRequest.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 ListProjectsResponse apply(ListProjectsRequest request) {
return client.listProjects(request);
}
});
}
/**
* Creates a new iterable which will iterate over the {@link
* com.oracle.bmc.dataintegration.model.ProjectSummary} objects contained in responses from the
* listProjects 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.dataintegration.model.ProjectSummary} objects contained in responses
* received from the service.
*/
public Iterable listProjectsRecordIterator(
final ListProjectsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseRecordIterable<
ListProjectsRequest.Builder,
ListProjectsRequest,
ListProjectsResponse,
com.oracle.bmc.dataintegration.model.ProjectSummary>(
new java.util.function.Supplier() {
@Override
public ListProjectsRequest.Builder get() {
return ListProjectsRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListProjectsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListProjectsRequest.Builder>,
ListProjectsRequest>() {
@Override
public ListProjectsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListProjectsRequest.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 ListProjectsResponse apply(ListProjectsRequest request) {
return client.listProjects(request);
}
},
new java.util.function.Function<
ListProjectsResponse,
java.util.List>() {
@Override
public java.util.List
apply(ListProjectsResponse response) {
return response.getProjectSummaryCollection().getItems();
}
});
}
/**
* Creates a new iterable which will iterate over the responses received from the
* listPublishedObjects 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 listPublishedObjectsResponseIterator(
final ListPublishedObjectsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseIterable<
ListPublishedObjectsRequest.Builder,
ListPublishedObjectsRequest,
ListPublishedObjectsResponse>(
new java.util.function.Supplier() {
@Override
public ListPublishedObjectsRequest.Builder get() {
return ListPublishedObjectsRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListPublishedObjectsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListPublishedObjectsRequest.Builder>,
ListPublishedObjectsRequest>() {
@Override
public ListPublishedObjectsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListPublishedObjectsRequest.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<
ListPublishedObjectsRequest, ListPublishedObjectsResponse>() {
@Override
public ListPublishedObjectsResponse apply(ListPublishedObjectsRequest request) {
return client.listPublishedObjects(request);
}
});
}
/**
* Creates a new iterable which will iterate over the {@link
* com.oracle.bmc.dataintegration.model.PublishedObjectSummary} objects contained in responses
* from the listPublishedObjects 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.dataintegration.model.PublishedObjectSummary} objects contained in
* responses received from the service.
*/
public Iterable
listPublishedObjectsRecordIterator(final ListPublishedObjectsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseRecordIterable<
ListPublishedObjectsRequest.Builder,
ListPublishedObjectsRequest,
ListPublishedObjectsResponse,
com.oracle.bmc.dataintegration.model.PublishedObjectSummary>(
new java.util.function.Supplier() {
@Override
public ListPublishedObjectsRequest.Builder get() {
return ListPublishedObjectsRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListPublishedObjectsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListPublishedObjectsRequest.Builder>,
ListPublishedObjectsRequest>() {
@Override
public ListPublishedObjectsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListPublishedObjectsRequest.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<
ListPublishedObjectsRequest, ListPublishedObjectsResponse>() {
@Override
public ListPublishedObjectsResponse apply(ListPublishedObjectsRequest request) {
return client.listPublishedObjects(request);
}
},
new java.util.function.Function<
ListPublishedObjectsResponse,
java.util.List<
com.oracle.bmc.dataintegration.model.PublishedObjectSummary>>() {
@Override
public java.util.List<
com.oracle.bmc.dataintegration.model.PublishedObjectSummary>
apply(ListPublishedObjectsResponse response) {
return response.getPublishedObjectSummaryCollection().getItems();
}
});
}
/**
* Creates a new iterable which will iterate over the responses received from the listReferences
* 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 listReferencesResponseIterator(
final ListReferencesRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseIterable<
ListReferencesRequest.Builder, ListReferencesRequest, ListReferencesResponse>(
new java.util.function.Supplier() {
@Override
public ListReferencesRequest.Builder get() {
return ListReferencesRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListReferencesResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListReferencesRequest.Builder>,
ListReferencesRequest>() {
@Override
public ListReferencesRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListReferencesRequest.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 ListReferencesResponse apply(ListReferencesRequest request) {
return client.listReferences(request);
}
});
}
/**
* Creates a new iterable which will iterate over the {@link
* com.oracle.bmc.dataintegration.model.ReferenceSummary} objects contained in responses from
* the listReferences 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.dataintegration.model.ReferenceSummary} objects contained in responses
* received from the service.
*/
public Iterable
listReferencesRecordIterator(final ListReferencesRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseRecordIterable<
ListReferencesRequest.Builder,
ListReferencesRequest,
ListReferencesResponse,
com.oracle.bmc.dataintegration.model.ReferenceSummary>(
new java.util.function.Supplier() {
@Override
public ListReferencesRequest.Builder get() {
return ListReferencesRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListReferencesResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListReferencesRequest.Builder>,
ListReferencesRequest>() {
@Override
public ListReferencesRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListReferencesRequest.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 ListReferencesResponse apply(ListReferencesRequest request) {
return client.listReferences(request);
}
},
new java.util.function.Function<
ListReferencesResponse,
java.util.List>() {
@Override
public java.util.List
apply(ListReferencesResponse response) {
return response.getReferenceSummaryCollection().getItems();
}
});
}
/**
* Creates a new iterable which will iterate over the responses received from the
* listRuntimeOperators 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 listRuntimeOperatorsResponseIterator(
final ListRuntimeOperatorsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseIterable<
ListRuntimeOperatorsRequest.Builder,
ListRuntimeOperatorsRequest,
ListRuntimeOperatorsResponse>(
new java.util.function.Supplier() {
@Override
public ListRuntimeOperatorsRequest.Builder get() {
return ListRuntimeOperatorsRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListRuntimeOperatorsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListRuntimeOperatorsRequest.Builder>,
ListRuntimeOperatorsRequest>() {
@Override
public ListRuntimeOperatorsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListRuntimeOperatorsRequest.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<
ListRuntimeOperatorsRequest, ListRuntimeOperatorsResponse>() {
@Override
public ListRuntimeOperatorsResponse apply(ListRuntimeOperatorsRequest request) {
return client.listRuntimeOperators(request);
}
});
}
/**
* Creates a new iterable which will iterate over the {@link
* com.oracle.bmc.dataintegration.model.RuntimeOperatorSummary} objects contained in responses
* from the listRuntimeOperators 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.dataintegration.model.RuntimeOperatorSummary} objects contained in
* responses received from the service.
*/
public Iterable
listRuntimeOperatorsRecordIterator(final ListRuntimeOperatorsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseRecordIterable<
ListRuntimeOperatorsRequest.Builder,
ListRuntimeOperatorsRequest,
ListRuntimeOperatorsResponse,
com.oracle.bmc.dataintegration.model.RuntimeOperatorSummary>(
new java.util.function.Supplier() {
@Override
public ListRuntimeOperatorsRequest.Builder get() {
return ListRuntimeOperatorsRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListRuntimeOperatorsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListRuntimeOperatorsRequest.Builder>,
ListRuntimeOperatorsRequest>() {
@Override
public ListRuntimeOperatorsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListRuntimeOperatorsRequest.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<
ListRuntimeOperatorsRequest, ListRuntimeOperatorsResponse>() {
@Override
public ListRuntimeOperatorsResponse apply(ListRuntimeOperatorsRequest request) {
return client.listRuntimeOperators(request);
}
},
new java.util.function.Function<
ListRuntimeOperatorsResponse,
java.util.List<
com.oracle.bmc.dataintegration.model.RuntimeOperatorSummary>>() {
@Override
public java.util.List<
com.oracle.bmc.dataintegration.model.RuntimeOperatorSummary>
apply(ListRuntimeOperatorsResponse response) {
return response.getRuntimeOperatorSummaryCollection().getItems();
}
});
}
/**
* Creates a new iterable which will iterate over the responses received from the
* listRuntimePipelines 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 listRuntimePipelinesResponseIterator(
final ListRuntimePipelinesRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseIterable<
ListRuntimePipelinesRequest.Builder,
ListRuntimePipelinesRequest,
ListRuntimePipelinesResponse>(
new java.util.function.Supplier() {
@Override
public ListRuntimePipelinesRequest.Builder get() {
return ListRuntimePipelinesRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListRuntimePipelinesResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListRuntimePipelinesRequest.Builder>,
ListRuntimePipelinesRequest>() {
@Override
public ListRuntimePipelinesRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListRuntimePipelinesRequest.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<
ListRuntimePipelinesRequest, ListRuntimePipelinesResponse>() {
@Override
public ListRuntimePipelinesResponse apply(ListRuntimePipelinesRequest request) {
return client.listRuntimePipelines(request);
}
});
}
/**
* Creates a new iterable which will iterate over the {@link
* com.oracle.bmc.dataintegration.model.RuntimePipelineSummary} objects contained in responses
* from the listRuntimePipelines 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.dataintegration.model.RuntimePipelineSummary} objects contained in
* responses received from the service.
*/
public Iterable
listRuntimePipelinesRecordIterator(final ListRuntimePipelinesRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseRecordIterable<
ListRuntimePipelinesRequest.Builder,
ListRuntimePipelinesRequest,
ListRuntimePipelinesResponse,
com.oracle.bmc.dataintegration.model.RuntimePipelineSummary>(
new java.util.function.Supplier() {
@Override
public ListRuntimePipelinesRequest.Builder get() {
return ListRuntimePipelinesRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListRuntimePipelinesResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListRuntimePipelinesRequest.Builder>,
ListRuntimePipelinesRequest>() {
@Override
public ListRuntimePipelinesRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListRuntimePipelinesRequest.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<
ListRuntimePipelinesRequest, ListRuntimePipelinesResponse>() {
@Override
public ListRuntimePipelinesResponse apply(ListRuntimePipelinesRequest request) {
return client.listRuntimePipelines(request);
}
},
new java.util.function.Function<
ListRuntimePipelinesResponse,
java.util.List<
com.oracle.bmc.dataintegration.model.RuntimePipelineSummary>>() {
@Override
public java.util.List<
com.oracle.bmc.dataintegration.model.RuntimePipelineSummary>
apply(ListRuntimePipelinesResponse response) {
return response.getRuntimePipelineSummaryCollection().getItems();
}
});
}
/**
* Creates a new iterable which will iterate over the responses received from the listSchedules
* 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 listSchedulesResponseIterator(
final ListSchedulesRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseIterable<
ListSchedulesRequest.Builder, ListSchedulesRequest, ListSchedulesResponse>(
new java.util.function.Supplier() {
@Override
public ListSchedulesRequest.Builder get() {
return ListSchedulesRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListSchedulesResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListSchedulesRequest.Builder>,
ListSchedulesRequest>() {
@Override
public ListSchedulesRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListSchedulesRequest.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 ListSchedulesResponse apply(ListSchedulesRequest request) {
return client.listSchedules(request);
}
});
}
/**
* Creates a new iterable which will iterate over the {@link
* com.oracle.bmc.dataintegration.model.ScheduleSummary} objects contained in responses from the
* listSchedules 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.dataintegration.model.ScheduleSummary} objects contained in responses
* received from the service.
*/
public Iterable
listSchedulesRecordIterator(final ListSchedulesRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseRecordIterable<
ListSchedulesRequest.Builder,
ListSchedulesRequest,
ListSchedulesResponse,
com.oracle.bmc.dataintegration.model.ScheduleSummary>(
new java.util.function.Supplier() {
@Override
public ListSchedulesRequest.Builder get() {
return ListSchedulesRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListSchedulesResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListSchedulesRequest.Builder>,
ListSchedulesRequest>() {
@Override
public ListSchedulesRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListSchedulesRequest.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 ListSchedulesResponse apply(ListSchedulesRequest request) {
return client.listSchedules(request);
}
},
new java.util.function.Function<
ListSchedulesResponse,
java.util.List>() {
@Override
public java.util.List
apply(ListSchedulesResponse response) {
return response.getScheduleSummaryCollection().getItems();
}
});
}
/**
* Creates a new iterable which will iterate over the responses received from the listSchemas
* 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 listSchemasResponseIterator(
final ListSchemasRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseIterable<
ListSchemasRequest.Builder, ListSchemasRequest, ListSchemasResponse>(
new java.util.function.Supplier() {
@Override
public ListSchemasRequest.Builder get() {
return ListSchemasRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListSchemasResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListSchemasRequest.Builder>,
ListSchemasRequest>() {
@Override
public ListSchemasRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListSchemasRequest.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 ListSchemasResponse apply(ListSchemasRequest request) {
return client.listSchemas(request);
}
});
}
/**
* Creates a new iterable which will iterate over the {@link
* com.oracle.bmc.dataintegration.model.SchemaSummary} objects contained in responses from the
* listSchemas 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.dataintegration.model.SchemaSummary} objects contained in responses
* received from the service.
*/
public Iterable listSchemasRecordIterator(
final ListSchemasRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseRecordIterable<
ListSchemasRequest.Builder,
ListSchemasRequest,
ListSchemasResponse,
com.oracle.bmc.dataintegration.model.SchemaSummary>(
new java.util.function.Supplier() {
@Override
public ListSchemasRequest.Builder get() {
return ListSchemasRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListSchemasResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListSchemasRequest.Builder>,
ListSchemasRequest>() {
@Override
public ListSchemasRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListSchemasRequest.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 ListSchemasResponse apply(ListSchemasRequest request) {
return client.listSchemas(request);
}
},
new java.util.function.Function<
ListSchemasResponse,
java.util.List>() {
@Override
public java.util.List apply(
ListSchemasResponse response) {
return response.getSchemaSummaryCollection().getItems();
}
});
}
/**
* Creates a new iterable which will iterate over the responses received from the
* listTaskRunLineages 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 listTaskRunLineagesResponseIterator(
final ListTaskRunLineagesRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseIterable<
ListTaskRunLineagesRequest.Builder,
ListTaskRunLineagesRequest,
ListTaskRunLineagesResponse>(
new java.util.function.Supplier() {
@Override
public ListTaskRunLineagesRequest.Builder get() {
return ListTaskRunLineagesRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListTaskRunLineagesResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListTaskRunLineagesRequest.Builder>,
ListTaskRunLineagesRequest>() {
@Override
public ListTaskRunLineagesRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListTaskRunLineagesRequest.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<
ListTaskRunLineagesRequest, ListTaskRunLineagesResponse>() {
@Override
public ListTaskRunLineagesResponse apply(ListTaskRunLineagesRequest request) {
return client.listTaskRunLineages(request);
}
});
}
/**
* Creates a new iterable which will iterate over the {@link
* com.oracle.bmc.dataintegration.model.TaskRunLineageSummary} objects contained in responses
* from the listTaskRunLineages 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.dataintegration.model.TaskRunLineageSummary} objects contained in
* responses received from the service.
*/
public Iterable
listTaskRunLineagesRecordIterator(final ListTaskRunLineagesRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseRecordIterable<
ListTaskRunLineagesRequest.Builder,
ListTaskRunLineagesRequest,
ListTaskRunLineagesResponse,
com.oracle.bmc.dataintegration.model.TaskRunLineageSummary>(
new java.util.function.Supplier() {
@Override
public ListTaskRunLineagesRequest.Builder get() {
return ListTaskRunLineagesRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListTaskRunLineagesResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListTaskRunLineagesRequest.Builder>,
ListTaskRunLineagesRequest>() {
@Override
public ListTaskRunLineagesRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListTaskRunLineagesRequest.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<
ListTaskRunLineagesRequest, ListTaskRunLineagesResponse>() {
@Override
public ListTaskRunLineagesResponse apply(ListTaskRunLineagesRequest request) {
return client.listTaskRunLineages(request);
}
},
new java.util.function.Function<
ListTaskRunLineagesResponse,
java.util.List<
com.oracle.bmc.dataintegration.model.TaskRunLineageSummary>>() {
@Override
public java.util.List<
com.oracle.bmc.dataintegration.model.TaskRunLineageSummary>
apply(ListTaskRunLineagesResponse response) {
return response.getTaskRunLineageSummaryCollection().getItems();
}
});
}
/**
* Creates a new iterable which will iterate over the responses received from the
* listTaskRunLogs 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 listTaskRunLogsResponseIterator(
final ListTaskRunLogsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseIterable<
ListTaskRunLogsRequest.Builder, ListTaskRunLogsRequest, ListTaskRunLogsResponse>(
new java.util.function.Supplier() {
@Override
public ListTaskRunLogsRequest.Builder get() {
return ListTaskRunLogsRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListTaskRunLogsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListTaskRunLogsRequest.Builder>,
ListTaskRunLogsRequest>() {
@Override
public ListTaskRunLogsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListTaskRunLogsRequest.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 ListTaskRunLogsResponse apply(ListTaskRunLogsRequest request) {
return client.listTaskRunLogs(request);
}
});
}
/**
* Creates a new iterable which will iterate over the {@link
* com.oracle.bmc.dataintegration.model.TaskRunLogSummary} objects contained in responses from
* the listTaskRunLogs 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.dataintegration.model.TaskRunLogSummary} objects contained in responses
* received from the service.
*/
public Iterable
listTaskRunLogsRecordIterator(final ListTaskRunLogsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseRecordIterable<
ListTaskRunLogsRequest.Builder,
ListTaskRunLogsRequest,
ListTaskRunLogsResponse,
com.oracle.bmc.dataintegration.model.TaskRunLogSummary>(
new java.util.function.Supplier() {
@Override
public ListTaskRunLogsRequest.Builder get() {
return ListTaskRunLogsRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListTaskRunLogsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListTaskRunLogsRequest.Builder>,
ListTaskRunLogsRequest>() {
@Override
public ListTaskRunLogsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListTaskRunLogsRequest.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 ListTaskRunLogsResponse apply(ListTaskRunLogsRequest request) {
return client.listTaskRunLogs(request);
}
},
new java.util.function.Function<
ListTaskRunLogsResponse,
java.util.List>() {
@Override
public java.util.List
apply(ListTaskRunLogsResponse response) {
return response.getItems();
}
});
}
/**
* Creates a new iterable which will iterate over the responses received from the listTaskRuns
* 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 listTaskRunsResponseIterator(
final ListTaskRunsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseIterable<
ListTaskRunsRequest.Builder, ListTaskRunsRequest, ListTaskRunsResponse>(
new java.util.function.Supplier() {
@Override
public ListTaskRunsRequest.Builder get() {
return ListTaskRunsRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListTaskRunsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListTaskRunsRequest.Builder>,
ListTaskRunsRequest>() {
@Override
public ListTaskRunsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListTaskRunsRequest.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 ListTaskRunsResponse apply(ListTaskRunsRequest request) {
return client.listTaskRuns(request);
}
});
}
/**
* Creates a new iterable which will iterate over the {@link
* com.oracle.bmc.dataintegration.model.TaskRunSummary} objects contained in responses from the
* listTaskRuns 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.dataintegration.model.TaskRunSummary} objects contained in responses
* received from the service.
*/
public Iterable listTaskRunsRecordIterator(
final ListTaskRunsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseRecordIterable<
ListTaskRunsRequest.Builder,
ListTaskRunsRequest,
ListTaskRunsResponse,
com.oracle.bmc.dataintegration.model.TaskRunSummary>(
new java.util.function.Supplier() {
@Override
public ListTaskRunsRequest.Builder get() {
return ListTaskRunsRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListTaskRunsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListTaskRunsRequest.Builder>,
ListTaskRunsRequest>() {
@Override
public ListTaskRunsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListTaskRunsRequest.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 ListTaskRunsResponse apply(ListTaskRunsRequest request) {
return client.listTaskRuns(request);
}
},
new java.util.function.Function<
ListTaskRunsResponse,
java.util.List>() {
@Override
public java.util.List
apply(ListTaskRunsResponse response) {
return response.getTaskRunSummaryCollection().getItems();
}
});
}
/**
* Creates a new iterable which will iterate over the responses received from the
* listTaskSchedules 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 listTaskSchedulesResponseIterator(
final ListTaskSchedulesRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseIterable<
ListTaskSchedulesRequest.Builder,
ListTaskSchedulesRequest,
ListTaskSchedulesResponse>(
new java.util.function.Supplier() {
@Override
public ListTaskSchedulesRequest.Builder get() {
return ListTaskSchedulesRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListTaskSchedulesResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListTaskSchedulesRequest.Builder>,
ListTaskSchedulesRequest>() {
@Override
public ListTaskSchedulesRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListTaskSchedulesRequest.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<
ListTaskSchedulesRequest, ListTaskSchedulesResponse>() {
@Override
public ListTaskSchedulesResponse apply(ListTaskSchedulesRequest request) {
return client.listTaskSchedules(request);
}
});
}
/**
* Creates a new iterable which will iterate over the {@link
* com.oracle.bmc.dataintegration.model.TaskScheduleSummary} objects contained in responses from
* the listTaskSchedules 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.dataintegration.model.TaskScheduleSummary} objects contained in responses
* received from the service.
*/
public Iterable
listTaskSchedulesRecordIterator(final ListTaskSchedulesRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseRecordIterable<
ListTaskSchedulesRequest.Builder,
ListTaskSchedulesRequest,
ListTaskSchedulesResponse,
com.oracle.bmc.dataintegration.model.TaskScheduleSummary>(
new java.util.function.Supplier() {
@Override
public ListTaskSchedulesRequest.Builder get() {
return ListTaskSchedulesRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListTaskSchedulesResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListTaskSchedulesRequest.Builder>,
ListTaskSchedulesRequest>() {
@Override
public ListTaskSchedulesRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListTaskSchedulesRequest.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<
ListTaskSchedulesRequest, ListTaskSchedulesResponse>() {
@Override
public ListTaskSchedulesResponse apply(ListTaskSchedulesRequest request) {
return client.listTaskSchedules(request);
}
},
new java.util.function.Function<
ListTaskSchedulesResponse,
java.util.List<
com.oracle.bmc.dataintegration.model.TaskScheduleSummary>>() {
@Override
public java.util.List
apply(ListTaskSchedulesResponse response) {
return response.getTaskScheduleSummaryCollection().getItems();
}
});
}
/**
* Creates a new iterable which will iterate over the responses received from the
* listTaskValidations 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 listTaskValidationsResponseIterator(
final ListTaskValidationsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseIterable<
ListTaskValidationsRequest.Builder,
ListTaskValidationsRequest,
ListTaskValidationsResponse>(
new java.util.function.Supplier() {
@Override
public ListTaskValidationsRequest.Builder get() {
return ListTaskValidationsRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListTaskValidationsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListTaskValidationsRequest.Builder>,
ListTaskValidationsRequest>() {
@Override
public ListTaskValidationsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListTaskValidationsRequest.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<
ListTaskValidationsRequest, ListTaskValidationsResponse>() {
@Override
public ListTaskValidationsResponse apply(ListTaskValidationsRequest request) {
return client.listTaskValidations(request);
}
});
}
/**
* Creates a new iterable which will iterate over the {@link
* com.oracle.bmc.dataintegration.model.TaskValidationSummary} objects contained in responses
* from the listTaskValidations 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.dataintegration.model.TaskValidationSummary} objects contained in
* responses received from the service.
*/
public Iterable
listTaskValidationsRecordIterator(final ListTaskValidationsRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseRecordIterable<
ListTaskValidationsRequest.Builder,
ListTaskValidationsRequest,
ListTaskValidationsResponse,
com.oracle.bmc.dataintegration.model.TaskValidationSummary>(
new java.util.function.Supplier() {
@Override
public ListTaskValidationsRequest.Builder get() {
return ListTaskValidationsRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListTaskValidationsResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListTaskValidationsRequest.Builder>,
ListTaskValidationsRequest>() {
@Override
public ListTaskValidationsRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListTaskValidationsRequest.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<
ListTaskValidationsRequest, ListTaskValidationsResponse>() {
@Override
public ListTaskValidationsResponse apply(ListTaskValidationsRequest request) {
return client.listTaskValidations(request);
}
},
new java.util.function.Function<
ListTaskValidationsResponse,
java.util.List<
com.oracle.bmc.dataintegration.model.TaskValidationSummary>>() {
@Override
public java.util.List<
com.oracle.bmc.dataintegration.model.TaskValidationSummary>
apply(ListTaskValidationsResponse response) {
return response.getTaskValidationSummaryCollection().getItems();
}
});
}
/**
* Creates a new iterable which will iterate over the responses received from the listTasks
* 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 listTasksResponseIterator(final ListTasksRequest request) {
return new com.oracle.bmc.paginator.internal.ResponseIterable<
ListTasksRequest.Builder, ListTasksRequest, ListTasksResponse>(
new java.util.function.Supplier() {
@Override
public ListTasksRequest.Builder get() {
return ListTasksRequest.builder().copy(request);
}
},
new java.util.function.Function() {
@Override
public String apply(ListTasksResponse response) {
return response.getOpcNextPage();
}
},
new java.util.function.Function<
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListTasksRequest.Builder>,
ListTasksRequest>() {
@Override
public ListTasksRequest apply(
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
ListTasksRequest.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