Class SameTokenSyncResponseClassSpec
- java.lang.Object
-
- software.amazon.awssdk.codegen.poet.paginators.PaginatorsClassSpec
-
- software.amazon.awssdk.codegen.poet.paginators.SyncResponseClassSpec
-
- software.amazon.awssdk.codegen.poet.paginators.customizations.SameTokenSyncResponseClassSpec
-
- All Implemented Interfaces:
ClassSpec
public class SameTokenSyncResponseClassSpec extends SyncResponseClassSpec
Customized response class spec for sync paginated operations that indicate the last page by returning the same token passed in the request object. See Cloudwatch logs GetLogEvents API for example, https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_GetLogEvents.html
-
-
Field Summary
-
Fields inherited from class software.amazon.awssdk.codegen.poet.paginators.SyncResponseClassSpec
ITERATOR_METHOD
-
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 SameTokenSyncResponseClassSpec(IntermediateModel model, String c2jOperationName, PaginatorDefinition paginatorDefinition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.squareup.javapoet.MethodSpec
constructor()
protected Stream<com.squareup.javapoet.FieldSpec>
fields()
protected com.squareup.javapoet.CodeBlock
hasNextPageMethodBody()
protected String
nextPageFetcherArgument()
protected com.squareup.javapoet.TypeSpec.Builder
nextPageFetcherClass()
Generates a inner class that implementsSyncPageFetcher
.protected com.squareup.javapoet.CodeBlock
nextPageMethodBody()
-
Methods inherited from class software.amazon.awssdk.codegen.poet.paginators.SyncResponseClassSpec
className, getClientInterfaceName, iteratorMethod, poetSpec, syncClientInterfaceField
-
Methods inherited from class software.amazon.awssdk.codegen.poet.paginators.PaginatorsClassSpec
codeToGetNextPageIfOldResponseIsNotNull, constructRequestFromLastPage, fluentGetterMethodForResponseMember, fluentGetterMethodsForOutputToken, getIteratorLambdaBlock, getTypeForResultKey, memberModelForResponseMember, nextPageFetcherClassName, 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
-
-
-
-
Constructor Detail
-
SameTokenSyncResponseClassSpec
public SameTokenSyncResponseClassSpec(IntermediateModel model, String c2jOperationName, PaginatorDefinition paginatorDefinition)
-
-
Method Detail
-
fields
protected Stream<com.squareup.javapoet.FieldSpec> fields()
- Overrides:
fields
in classSyncResponseClassSpec
-
constructor
protected com.squareup.javapoet.MethodSpec constructor()
- Overrides:
constructor
in classSyncResponseClassSpec
-
nextPageFetcherArgument
protected String nextPageFetcherArgument()
- Overrides:
nextPageFetcherArgument
in classSyncResponseClassSpec
-
nextPageFetcherClass
protected com.squareup.javapoet.TypeSpec.Builder nextPageFetcherClass()
Description copied from class:SyncResponseClassSpec
Generates a inner class that implementsSyncPageFetcher
. An instance of this class is passed toPaginatedResponsesIterator
to be used while iterating through pages.- Overrides:
nextPageFetcherClass
in classSyncResponseClassSpec
-
hasNextPageMethodBody
protected com.squareup.javapoet.CodeBlock hasNextPageMethodBody()
- Overrides:
hasNextPageMethodBody
in classPaginatorsClassSpec
-
nextPageMethodBody
protected com.squareup.javapoet.CodeBlock nextPageMethodBody()
- Overrides:
nextPageMethodBody
in classPaginatorsClassSpec
-
-