/** * 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("DescribeContinuousExportsResponse").add("Descriptions", descriptions()) .add("NextToken", nextToken()).build(); }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "descriptions": return Optional.ofNullable(clazz.cast(descriptions())); case "nextToken": return Optional.ofNullable(clazz.cast(nextToken())); default: return Optional.empty(); } }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(descriptions()); hashCode = 31 * hashCode + Objects.hashCode(nextToken()); return hashCode; }
@Override public boolean hasNextPage(final DescribeContinuousExportsResponse previousPage) { return PaginatorUtils.isOutputTokenAvailable(previousPage.nextToken()); }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(descriptions()); hashCode = 31 * hashCode + Objects.hashCode(nextToken()); return hashCode; }
/** * 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("DescribeContinuousExportsResponse").add("Descriptions", descriptions()) .add("NextToken", nextToken()).build(); }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "descriptions": return Optional.ofNullable(clazz.cast(descriptions())); case "nextToken": return Optional.ofNullable(clazz.cast(nextToken())); default: return Optional.empty(); } }
@Override public boolean hasNextPage(DescribeContinuousExportsResponse previousPage) { return PaginatorUtils.isOutputTokenAvailable(previousPage.nextToken()); }
@Override public boolean hasNextPage(final DescribeContinuousExportsResponse previousPage) { return PaginatorUtils.isOutputTokenAvailable(previousPage.nextToken()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof DescribeContinuousExportsResponse)) { return false; } DescribeContinuousExportsResponse other = (DescribeContinuousExportsResponse) obj; return Objects.equals(descriptions(), other.descriptions()) && Objects.equals(nextToken(), other.nextToken()); }
@Override public boolean hasNextPage(DescribeContinuousExportsResponse previousPage) { return PaginatorUtils.isOutputTokenAvailable(previousPage.nextToken()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof DescribeContinuousExportsResponse)) { return false; } DescribeContinuousExportsResponse other = (DescribeContinuousExportsResponse) obj; return Objects.equals(descriptions(), other.descriptions()) && Objects.equals(nextToken(), other.nextToken()); }
@Override public CompletableFuture<DescribeContinuousExportsResponse> nextPage(final DescribeContinuousExportsResponse previousPage) { if (previousPage == null) { return client.describeContinuousExports(firstRequest); } return client.describeContinuousExports(firstRequest.toBuilder().nextToken(previousPage.nextToken()).build()); } }
@Override public CompletableFuture<DescribeContinuousExportsResponse> nextPage(final DescribeContinuousExportsResponse previousPage) { if (previousPage == null) { return client.describeContinuousExports(firstRequest); } return client.describeContinuousExports(firstRequest.toBuilder().nextToken(previousPage.nextToken()).build()); } }
@Override public DescribeContinuousExportsResponse nextPage(DescribeContinuousExportsResponse previousPage) { if (previousPage == null) { return client.describeContinuousExports(firstRequest); } return client.describeContinuousExports(firstRequest.toBuilder().nextToken(previousPage.nextToken()).build()); } }
@Override public DescribeContinuousExportsResponse nextPage(DescribeContinuousExportsResponse previousPage) { if (previousPage == null) { return client.describeContinuousExports(firstRequest); } return client.describeContinuousExports(firstRequest.toBuilder().nextToken(previousPage.nextToken()).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 DescribeContinuousExportsPublisher} that can be used to retrieve * the consecutive pages that follows the input page. * </p> */ private final DescribeContinuousExportsPublisher resume(DescribeContinuousExportsResponse lastSuccessfulPage) { if (nextPageFetcher.hasNextPage(lastSuccessfulPage)) { return new DescribeContinuousExportsPublisher(client, firstRequest.toBuilder() .nextToken(lastSuccessfulPage.nextToken()).build()); } return new DescribeContinuousExportsPublisher(client, firstRequest, true) { @Override public void subscribe(Subscriber<? super DescribeContinuousExportsResponse> subscriber) { subscriber.onSubscribe(new EmptySubscription(subscriber)); } }; }
/** * <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 DescribeContinuousExportsIterable} that can be used to retrieve * the consecutive pages that follows the input page. * </p> */ private final DescribeContinuousExportsIterable resume(DescribeContinuousExportsResponse lastSuccessfulPage) { if (nextPageFetcher.hasNextPage(lastSuccessfulPage)) { return new DescribeContinuousExportsIterable(client, firstRequest.toBuilder() .nextToken(lastSuccessfulPage.nextToken()).build()); } return new DescribeContinuousExportsIterable(client, firstRequest) { @Override public Iterator<DescribeContinuousExportsResponse> iterator() { return Collections.emptyIterator(); } }; }
/** * <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 DescribeContinuousExportsPublisher} that can be used to retrieve * the consecutive pages that follows the input page. * </p> */ private final DescribeContinuousExportsPublisher resume(DescribeContinuousExportsResponse lastSuccessfulPage) { if (nextPageFetcher.hasNextPage(lastSuccessfulPage)) { return new DescribeContinuousExportsPublisher(client, firstRequest.toBuilder() .nextToken(lastSuccessfulPage.nextToken()).build()); } return new DescribeContinuousExportsPublisher(client, firstRequest, true) { @Override public void subscribe(Subscriber<? super DescribeContinuousExportsResponse> subscriber) { subscriber.onSubscribe(new EmptySubscription(subscriber)); } }; }
/** * <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 DescribeContinuousExportsIterable} that can be used to retrieve * the consecutive pages that follows the input page. * </p> */ private final DescribeContinuousExportsIterable resume(DescribeContinuousExportsResponse lastSuccessfulPage) { if (nextPageFetcher.hasNextPage(lastSuccessfulPage)) { return new DescribeContinuousExportsIterable(client, firstRequest.toBuilder() .nextToken(lastSuccessfulPage.nextToken()).build()); } return new DescribeContinuousExportsIterable(client, firstRequest) { @Override public Iterator<DescribeContinuousExportsResponse> iterator() { return Collections.emptyIterator(); } }; }