/** * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer} * and then applies that consumer to each response returned by the service. */ public final SdkPublisher<ClusterParameterGroup> parameterGroups() { Function<DescribeClusterParameterGroupsResponse, Iterator<ClusterParameterGroup>> getIterator = response -> { if (response != null && response.parameterGroups() != null) { return response.parameterGroups().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsPublisher.builder().nextPageFetcher(new DescribeClusterParameterGroupsResponseFetcher()) .iteratorFunction(getIterator).isLastPage(isLastPage).build(); }
/** * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer} * and then applies that consumer to each response returned by the service. */ public final SdkPublisher<OptionGroup> optionGroupsList() { Function<DescribeOptionGroupsResponse, Iterator<OptionGroup>> getIterator = response -> { if (response != null && response.optionGroupsList() != null) { return response.optionGroupsList().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsPublisher.builder().nextPageFetcher(new DescribeOptionGroupsResponseFetcher()) .iteratorFunction(getIterator).isLastPage(isLastPage).build(); }
/** * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer} * and then applies that consumer to each response returned by the service. */ public final SdkPublisher<JobTemplate> jobTemplates() { Function<ListJobTemplatesResponse, Iterator<JobTemplate>> getIterator = response -> { if (response != null && response.jobTemplates() != null) { return response.jobTemplates().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsPublisher.builder().nextPageFetcher(new ListJobTemplatesResponseFetcher()) .iteratorFunction(getIterator).isLastPage(isLastPage).build(); }
/** * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer} * and then applies that consumer to each response returned by the service. */ public final SdkPublisher<String> serviceArns() { Function<ListServicesResponse, Iterator<String>> getIterator = response -> { if (response != null && response.serviceArns() != null) { return response.serviceArns().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsPublisher.builder().nextPageFetcher(new ListServicesResponseFetcher()).iteratorFunction(getIterator) .isLastPage(isLastPage).build(); }
/** * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer} * and then applies that consumer to each response returned by the service. */ public final SdkPublisher<DevicePool> devicePools() { Function<ListDevicePoolsResponse, Iterator<DevicePool>> getIterator = response -> { if (response != null && response.devicePools() != null) { return response.devicePools().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsPublisher.builder().nextPageFetcher(new ListDevicePoolsResponseFetcher()) .iteratorFunction(getIterator).isLastPage(isLastPage).build(); }
/** * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer} * and then applies that consumer to each response returned by the service. */ public final SdkPublisher<Address> addresses() { Function<DescribeAddressesResponse, Iterator<Address>> getIterator = response -> { if (response != null && response.addresses() != null) { return response.addresses().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsPublisher.builder().nextPageFetcher(new DescribeAddressesResponseFetcher()) .iteratorFunction(getIterator).isLastPage(isLastPage).build(); }
/** * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer} * and then applies that consumer to each response returned by the service. */ public final SdkPublisher<ReservedDBInstancesOffering> reservedDBInstancesOfferings() { Function<DescribeReservedDbInstancesOfferingsResponse, Iterator<ReservedDBInstancesOffering>> getIterator = response -> { if (response != null && response.reservedDBInstancesOfferings() != null) { return response.reservedDBInstancesOfferings().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsPublisher.builder().nextPageFetcher(new DescribeReservedDbInstancesOfferingsResponseFetcher()) .iteratorFunction(getIterator).isLastPage(isLastPage).build(); }
/** * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer} * and then applies that consumer to each response returned by the service. */ public final SdkPublisher<Parameter> parameters() { Function<DescribeEngineDefaultParametersResponse, Iterator<Parameter>> getIterator = response -> { if (response != null && response.engineDefaults() != null && response.engineDefaults().parameters() != null) { return response.engineDefaults().parameters().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsPublisher.builder().nextPageFetcher(new DescribeEngineDefaultParametersResponseFetcher()) .iteratorFunction(getIterator).isLastPage(isLastPage).build(); }
/** * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer} * and then applies that consumer to each response returned by the service. */ public final SdkPublisher<DBInstance> dbInstances() { Function<DescribeDbInstancesResponse, Iterator<DBInstance>> getIterator = response -> { if (response != null && response.dbInstances() != null) { return response.dbInstances().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsPublisher.builder().nextPageFetcher(new DescribeDbInstancesResponseFetcher()) .iteratorFunction(getIterator).isLastPage(isLastPage).build(); }
/** * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer} * and then applies that consumer to each response returned by the service. */ public final SdkPublisher<FunctionConfiguration> functions() { Function<ListFunctionsResponse, Iterator<FunctionConfiguration>> getIterator = response -> { if (response != null && response.functions() != null) { return response.functions().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsPublisher.builder().nextPageFetcher(new ListFunctionsResponseFetcher()) .iteratorFunction(getIterator).isLastPage(isLastPage).build(); }
/** * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer} * and then applies that consumer to each response returned by the service. */ public final SdkPublisher<String> policyNames() { Function<ListKeyPoliciesResponse, Iterator<String>> getIterator = response -> { if (response != null && response.policyNames() != null) { return response.policyNames().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsPublisher.builder().nextPageFetcher(new ListKeyPoliciesResponseFetcher()) .iteratorFunction(getIterator).isLastPage(isLastPage).build(); }
/** * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer} * and then applies that consumer to each response returned by the service. */ public final SdkPublisher<SigningCertificate> certificates() { Function<ListSigningCertificatesResponse, Iterator<SigningCertificate>> getIterator = response -> { if (response != null && response.certificates() != null) { return response.certificates().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsPublisher.builder().nextPageFetcher(new ListSigningCertificatesResponseFetcher()) .iteratorFunction(getIterator).isLastPage(isLastPage).build(); }
/** * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer} * and then applies that consumer to each response returned by the service. */ public final SdkPublisher<AttachedPolicy> attachedPolicies() { Function<ListAttachedGroupPoliciesResponse, Iterator<AttachedPolicy>> getIterator = response -> { if (response != null && response.attachedPolicies() != null) { return response.attachedPolicies().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsPublisher.builder().nextPageFetcher(new ListAttachedGroupPoliciesResponseFetcher()) .iteratorFunction(getIterator).isLastPage(isLastPage).build(); }
/** * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer} * and then applies that consumer to each response returned by the service. */ public final SdkPublisher<Command> bootstrapActions() { Function<ListBootstrapActionsResponse, Iterator<Command>> getIterator = response -> { if (response != null && response.bootstrapActions() != null) { return response.bootstrapActions().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsPublisher.builder().nextPageFetcher(new ListBootstrapActionsResponseFetcher()) .iteratorFunction(getIterator).isLastPage(isLastPage).build(); }
/** * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer} * and then applies that consumer to each response returned by the service. */ public final SdkPublisher<Pipeline> pipelines() { Function<ListPipelinesResponse, Iterator<Pipeline>> getIterator = response -> { if (response != null && response.pipelines() != null) { return response.pipelines().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsPublisher.builder().nextPageFetcher(new ListPipelinesResponseFetcher()) .iteratorFunction(getIterator).isLastPage(isLastPage).build(); }
/** * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer} * and then applies that consumer to each response returned by the service. */ public final SdkPublisher<Listener> listeners() { Function<DescribeListenersResponse, Iterator<Listener>> getIterator = response -> { if (response != null && response.listeners() != null) { return response.listeners().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsPublisher.builder().nextPageFetcher(new DescribeListenersResponseFetcher()) .iteratorFunction(getIterator).isLastPage(isLastPage).build(); }
/** * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer} * and then applies that consumer to each response returned by the service. */ public final SdkPublisher<CacheSubnetGroup> cacheSubnetGroups() { Function<DescribeCacheSubnetGroupsResponse, Iterator<CacheSubnetGroup>> getIterator = response -> { if (response != null && response.cacheSubnetGroups() != null) { return response.cacheSubnetGroups().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsPublisher.builder().nextPageFetcher(new DescribeCacheSubnetGroupsResponseFetcher()) .iteratorFunction(getIterator).isLastPage(isLastPage).build(); }
/** * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer} * and then applies that consumer to each response returned by the service. */ public final SdkPublisher<DBSubnetGroup> dbSubnetGroups() { Function<DescribeDbSubnetGroupsResponse, Iterator<DBSubnetGroup>> getIterator = response -> { if (response != null && response.dbSubnetGroups() != null) { return response.dbSubnetGroups().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsPublisher.builder().nextPageFetcher(new DescribeDbSubnetGroupsResponseFetcher()) .iteratorFunction(getIterator).isLastPage(isLastPage).build(); }
/** * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer} * and then applies that consumer to each response returned by the service. */ public final SdkPublisher<HsmClientCertificate> hsmClientCertificates() { Function<DescribeHsmClientCertificatesResponse, Iterator<HsmClientCertificate>> getIterator = response -> { if (response != null && response.hsmClientCertificates() != null) { return response.hsmClientCertificates().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsPublisher.builder().nextPageFetcher(new DescribeHsmClientCertificatesResponseFetcher()) .iteratorFunction(getIterator).isLastPage(isLastPage).build(); }
/** * Returns a publisher that can be used to get a stream of data. You need to subscribe to the publisher to request * the stream of data. The publisher has a helper forEach method that takes in a {@link java.util.function.Consumer} * and then applies that consumer to each response returned by the service. */ public final SdkPublisher<OrderableDBInstanceOption> orderableDBInstanceOptions() { Function<DescribeOrderableDbInstanceOptionsResponse, Iterator<OrderableDBInstanceOption>> getIterator = response -> { if (response != null && response.orderableDBInstanceOptions() != null) { return response.orderableDBInstanceOptions().iterator(); } return Collections.emptyIterator(); }; return PaginatedItemsPublisher.builder().nextPageFetcher(new DescribeOrderableDbInstanceOptionsResponseFetcher()) .iteratorFunction(getIterator).isLastPage(isLastPage).build(); }