Class AsyncResponseClassSpec
- java.lang.Object
-
- software.amazon.awssdk.codegen.poet.paginators.PaginatorsClassSpec
-
- software.amazon.awssdk.codegen.poet.paginators.AsyncResponseClassSpec
-
- All Implemented Interfaces:
ClassSpec
- Direct Known Subclasses:
SameTokenAsyncResponseClassSpec
public class AsyncResponseClassSpec extends PaginatorsClassSpec
Java poetClassSpec
to generate the response class for async paginated operations.
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
LAST_PAGE_FIELD
-
Fields inherited from class software.amazon.awssdk.codegen.poet.paginators.PaginatorsClassSpec
c2jOperationName, CLIENT_MEMBER, HAS_NEXT_PAGE_METHOD, LAST_SUCCESSFUL_PAGE_LITERAL, model, NEXT_PAGE_FETCHER_MEMBER, NEXT_PAGE_METHOD, operationModel, paginationDocs, paginatorDefinition, poetExtensions, PREVIOUS_PAGE_METHOD_ARGUMENT, REQUEST_MEMBER, RESPONSE_LITERAL, RESUME_METHOD, typeProvider
-
-
Constructor Summary
Constructors Constructor Description AsyncResponseClassSpec(IntermediateModel model, String c2jOperationName, PaginatorDefinition paginatorDefinition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.squareup.javapoet.FieldSpec
asyncClientInterfaceField()
com.squareup.javapoet.ClassName
className()
protected Stream<com.squareup.javapoet.FieldSpec>
fields()
protected com.squareup.javapoet.ClassName
getAsyncClientInterfaceName()
protected com.squareup.javapoet.FieldSpec
lastPageField()
protected String
nextPageFetcherArgument()
protected com.squareup.javapoet.TypeSpec.Builder
nextPageFetcherClass()
aW Generates a inner class that implementsAsyncPageFetcher
.com.squareup.javapoet.TypeSpec
poetSpec()
protected com.squareup.javapoet.MethodSpec
privateConstructor()
protected com.squareup.javapoet.MethodSpec
publicConstructor()
-
Methods inherited from class software.amazon.awssdk.codegen.poet.paginators.PaginatorsClassSpec
codeToGetNextPageIfOldResponseIsNotNull, constructRequestFromLastPage, fluentGetterMethodForResponseMember, fluentGetterMethodsForOutputToken, getIteratorLambdaBlock, getTypeForResultKey, hasNextPageMethodBody, memberModelForResponseMember, nextPageFetcherClassName, nextPageMethodBody, requestClassField, requestType, responseType, resumeMethodBuilder
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.codegen.poet.ClassSpec
staticImports
-
-
-
-
Field Detail
-
LAST_PAGE_FIELD
protected static final String LAST_PAGE_FIELD
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AsyncResponseClassSpec
public AsyncResponseClassSpec(IntermediateModel model, String c2jOperationName, PaginatorDefinition paginatorDefinition)
-
-
Method Detail
-
poetSpec
public com.squareup.javapoet.TypeSpec poetSpec()
- Returns:
- The actual class specification generated from a
PoetSpec.builder()...
implementation
-
className
public com.squareup.javapoet.ClassName className()
- Returns:
- The Poet representation of the class being generated, this may be used by other classes
-
getAsyncClientInterfaceName
protected com.squareup.javapoet.ClassName getAsyncClientInterfaceName()
- Returns:
- A Poet
ClassName
for the async client interface
-
fields
protected Stream<com.squareup.javapoet.FieldSpec> fields()
-
asyncClientInterfaceField
protected com.squareup.javapoet.FieldSpec asyncClientInterfaceField()
-
lastPageField
protected com.squareup.javapoet.FieldSpec lastPageField()
-
publicConstructor
protected com.squareup.javapoet.MethodSpec publicConstructor()
-
privateConstructor
protected com.squareup.javapoet.MethodSpec privateConstructor()
-
nextPageFetcherArgument
protected String nextPageFetcherArgument()
-
nextPageFetcherClass
protected com.squareup.javapoet.TypeSpec.Builder nextPageFetcherClass()
aW Generates a inner class that implementsAsyncPageFetcher
. This is a helper class that can be used to find if there are more pages in the response and to get the next page if exists.
-
-