@Override public DescribeEndpointsResponse nextPage(DescribeEndpointsResponse previousPage) { if (previousPage == null) { return client.describeEndpoints(firstRequest); } return client.describeEndpoints(firstRequest.toBuilder().marker(previousPage.marker()).build()); } }
@Override public DescribeEndpointsResponse nextPage(DescribeEndpointsResponse previousPage) { if (previousPage == null) { return client.describeEndpoints(firstRequest); } return client.describeEndpoints(firstRequest.toBuilder().marker(previousPage.marker()).build()); } }
@Override public DescribeEndpointsResponse nextPage(DescribeEndpointsResponse previousPage) { if (previousPage == null) { return client.describeEndpoints(firstRequest); } return client.describeEndpoints(firstRequest.toBuilder().marker(previousPage.marker()).build()); } }
/** * <p> * Returns information about the endpoints for your account in the current region. * </p> * * @return Result of the DescribeEndpoints operation returned by the service. * @throws ResourceNotFoundException * The resource could not be found. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws DatabaseMigrationException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DatabaseMigrationClient.DescribeEndpoints * @see #describeEndpoints(DescribeEndpointsRequest) * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeEndpoints" target="_top">AWS API * Documentation</a> */ default DescribeEndpointsResponse describeEndpoints() throws ResourceNotFoundException, AwsServiceException, SdkClientException, DatabaseMigrationException { return describeEndpoints(DescribeEndpointsRequest.builder().build()); }
/** * <p> * Returns information about the endpoints for your account in the current region. * </p> * * @return Result of the DescribeEndpoints operation returned by the service. * @throws ResourceNotFoundException * The resource could not be found. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws DatabaseMigrationException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DatabaseMigrationClient.DescribeEndpoints * @see #describeEndpoints(DescribeEndpointsRequest) * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeEndpoints" target="_top">AWS API * Documentation</a> */ default DescribeEndpointsResponse describeEndpoints() throws ResourceNotFoundException, AwsServiceException, SdkClientException, DatabaseMigrationException { return describeEndpoints(DescribeEndpointsRequest.builder().build()); }
/** * <p> * Returns information about the endpoints for your account in the current region. * </p> * * @return Result of the DescribeEndpoints operation returned by the service. * @throws ResourceNotFoundException * The resource could not be found. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws DatabaseMigrationException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DatabaseMigrationClient.DescribeEndpoints * @see #describeEndpoints(DescribeEndpointsRequest) * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeEndpoints" target="_top">AWS API * Documentation</a> */ default DescribeEndpointsResponse describeEndpoints() throws ResourceNotFoundException, AwsServiceException, SdkClientException, DatabaseMigrationException { return describeEndpoints(DescribeEndpointsRequest.builder().build()); }
/** * <p> * Returns information about the endpoints for your account in the current region. * </p> * <br/> * <p> * This is a convenience which creates an instance of the {@link DescribeEndpointsRequest.Builder} avoiding the need * to create one manually via {@link DescribeEndpointsRequest#builder()} * </p> * * @param describeEndpointsRequest * A {@link Consumer} that will call methods on {@link DescribeEndpointsMessage.Builder} to create a request. * @return Result of the DescribeEndpoints operation returned by the service. * @throws ResourceNotFoundException * The resource could not be found. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws DatabaseMigrationException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DatabaseMigrationClient.DescribeEndpoints * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeEndpoints" target="_top">AWS API * Documentation</a> */ default DescribeEndpointsResponse describeEndpoints(Consumer<DescribeEndpointsRequest.Builder> describeEndpointsRequest) throws ResourceNotFoundException, AwsServiceException, SdkClientException, DatabaseMigrationException { return describeEndpoints(DescribeEndpointsRequest.builder().applyMutation(describeEndpointsRequest).build()); }
/** * <p> * Returns information about the endpoints for your account in the current region. * </p> * <br/> * <p> * This is a convenience which creates an instance of the {@link DescribeEndpointsRequest.Builder} avoiding the need * to create one manually via {@link DescribeEndpointsRequest#builder()} * </p> * * @param describeEndpointsRequest * A {@link Consumer} that will call methods on {@link DescribeEndpointsMessage.Builder} to create a request. * @return Result of the DescribeEndpoints operation returned by the service. * @throws ResourceNotFoundException * The resource could not be found. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws DatabaseMigrationException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DatabaseMigrationClient.DescribeEndpoints * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeEndpoints" target="_top">AWS API * Documentation</a> */ default DescribeEndpointsResponse describeEndpoints(Consumer<DescribeEndpointsRequest.Builder> describeEndpointsRequest) throws ResourceNotFoundException, AwsServiceException, SdkClientException, DatabaseMigrationException { return describeEndpoints(DescribeEndpointsRequest.builder().applyMutation(describeEndpointsRequest).build()); }
/** * <p> * Returns information about the endpoints for your account in the current region. * </p> * <br/> * <p> * This is a convenience which creates an instance of the {@link DescribeEndpointsRequest.Builder} avoiding the need * to create one manually via {@link DescribeEndpointsRequest#builder()} * </p> * * @param describeEndpointsRequest * A {@link Consumer} that will call methods on {@link DescribeEndpointsMessage.Builder} to create a request. * @return Result of the DescribeEndpoints operation returned by the service. * @throws ResourceNotFoundException * The resource could not be found. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws DatabaseMigrationException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample DatabaseMigrationClient.DescribeEndpoints * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeEndpoints" target="_top">AWS API * Documentation</a> */ default DescribeEndpointsResponse describeEndpoints(Consumer<DescribeEndpointsRequest.Builder> describeEndpointsRequest) throws ResourceNotFoundException, AwsServiceException, SdkClientException, DatabaseMigrationException { return describeEndpoints(DescribeEndpointsRequest.builder().applyMutation(describeEndpointsRequest).build()); }