@Override public GetDomainNamesRequest build() { return new GetDomainNamesRequest(this); } }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof GetDomainNamesRequest)) { return false; } GetDomainNamesRequest other = (GetDomainNamesRequest) obj; return Objects.equals(position(), other.position()) && Objects.equals(limit(), other.limit()); }
/** * <p> * Represents a collection of <a>DomainName</a> resources. * </p> * * @return A Java Future containing the result of the GetDomainNames operation returned by the service.<br/> * The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. * <ul> * <li>BadRequestException The submitted request is not valid, for example, the input is incomplete or * incorrect. See the accompanying error message for details.</li> * <li>UnauthorizedException The request is denied because the caller has insufficient permissions.</li> * <li>TooManyRequestsException The request has reached its throttling limit. Retry after the specified time * period.</li> * <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.</li> * <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.</li> * <li>ApiGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.</li> * </ul> * @sample ApiGatewayAsyncClient.GetDomainNames */ default CompletableFuture<GetDomainNamesResponse> getDomainNames() { return getDomainNames(GetDomainNamesRequest.builder().build()); }
@Override public GetDomainNamesResponse nextPage(GetDomainNamesResponse previousPage) { if (previousPage == null) { return client.getDomainNames(firstRequest); } return client.getDomainNames(firstRequest.toBuilder().position(previousPage.position()).build()); } }
/** * <p> * Represents a collection of <a>DomainName</a> resources. * </p> * * @return Result of the GetDomainNames operation returned by the service. * @throws BadRequestException * The submitted request is not valid, for example, the input is incomplete or incorrect. See the * accompanying error message for details. * @throws UnauthorizedException * The request is denied because the caller has insufficient permissions. * @throws TooManyRequestsException * The request has reached its throttling limit. Retry after the specified time period. * @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 ApiGatewayException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ApiGatewayClient.GetDomainNames * @see #getDomainNames(GetDomainNamesRequest) */ default GetDomainNamesResponse getDomainNames() throws BadRequestException, UnauthorizedException, TooManyRequestsException, AwsServiceException, SdkClientException, ApiGatewayException { return getDomainNames(GetDomainNamesRequest.builder().build()); }
@Override public CompletableFuture<GetDomainNamesResponse> nextPage(final GetDomainNamesResponse previousPage) { if (previousPage == null) { return client.getDomainNames(firstRequest); } return client.getDomainNames(firstRequest.toBuilder().position(previousPage.position()).build()); } }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof GetDomainNamesRequest)) { return false; } GetDomainNamesRequest other = (GetDomainNamesRequest) obj; return Objects.equals(position(), other.position()) && Objects.equals(limit(), other.limit()); }
/** * <p> * Represents a collection of <a>DomainName</a> resources. * </p> * * @return A Java Future containing the result of the GetDomainNames operation returned by the service.<br/> * The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. * <ul> * <li>BadRequestException The submitted request is not valid, for example, the input is incomplete or * incorrect. See the accompanying error message for details.</li> * <li>UnauthorizedException The request is denied because the caller has insufficient permissions.</li> * <li>TooManyRequestsException The request has reached its throttling limit. Retry after the specified time * period.</li> * <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.</li> * <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.</li> * <li>ApiGatewayException Base class for all service exceptions. Unknown exceptions will be thrown as an * instance of this type.</li> * </ul> * @sample ApiGatewayAsyncClient.GetDomainNames */ default CompletableFuture<GetDomainNamesResponse> getDomainNames() { return getDomainNames(GetDomainNamesRequest.builder().build()); }
@Override public GetDomainNamesRequest build() { return new GetDomainNamesRequest(this); }
/** * <p> * A helper method to resume the pages in case of unexpected failures. The method takes the last successful response * page as input and returns an instance of {@link GetDomainNamesIterable} that can be used to retrieve the * consecutive pages that follows the input page. * </p> */ private final GetDomainNamesIterable resume(GetDomainNamesResponse lastSuccessfulPage) { if (nextPageFetcher.hasNextPage(lastSuccessfulPage)) { return new GetDomainNamesIterable(client, firstRequest.toBuilder().position(lastSuccessfulPage.position()).build()); } return new GetDomainNamesIterable(client, firstRequest) { @Override public Iterator<GetDomainNamesResponse> iterator() { return Collections.emptyIterator(); } }; }
return getDomainNamesPaginator(GetDomainNamesRequest.builder().build());
/** * <p> * A helper method to resume the pages in case of unexpected failures. The method takes the last successful response * page as input and returns an instance of {@link GetDomainNamesPublisher} that can be used to retrieve the * consecutive pages that follows the input page. * </p> */ private final GetDomainNamesPublisher resume(GetDomainNamesResponse lastSuccessfulPage) { if (nextPageFetcher.hasNextPage(lastSuccessfulPage)) { return new GetDomainNamesPublisher(client, firstRequest.toBuilder().position(lastSuccessfulPage.position()).build()); } return new GetDomainNamesPublisher(client, firstRequest, true) { @Override public void subscribe(Subscriber<? super GetDomainNamesResponse> subscriber) { subscriber.onSubscribe(new EmptySubscription(subscriber)); } }; }
return getDomainNamesPaginator(GetDomainNamesRequest.builder().build());
return getDomainNamesPaginator(GetDomainNamesRequest.builder().build());
throws BadRequestException, UnauthorizedException, TooManyRequestsException, AwsServiceException, SdkClientException, ApiGatewayException { return getDomainNames(GetDomainNamesRequest.builder().applyMutation(getDomainNamesRequest).build());
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. */ @Override public String toString() { return ToString.builder("GetDomainNamesRequest").add("Position", position()).add("Limit", limit()).build(); }