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.MethodSpecconstructor()protected Stream<com.squareup.javapoet.FieldSpec>fields()protected com.squareup.javapoet.CodeBlockhasNextPageMethodBody()protected StringnextPageFetcherArgument()protected com.squareup.javapoet.TypeSpec.BuildernextPageFetcherClass()Generates a inner class that implementsSyncPageFetcher.protected com.squareup.javapoet.CodeBlocknextPageMethodBody()-
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:
fieldsin classSyncResponseClassSpec
-
constructor
protected com.squareup.javapoet.MethodSpec constructor()
- Overrides:
constructorin classSyncResponseClassSpec
-
nextPageFetcherArgument
protected String nextPageFetcherArgument()
- Overrides:
nextPageFetcherArgumentin classSyncResponseClassSpec
-
nextPageFetcherClass
protected com.squareup.javapoet.TypeSpec.Builder nextPageFetcherClass()
Description copied from class:SyncResponseClassSpecGenerates a inner class that implementsSyncPageFetcher. An instance of this class is passed toPaginatedResponsesIteratorto be used while iterating through pages.- Overrides:
nextPageFetcherClassin classSyncResponseClassSpec
-
hasNextPageMethodBody
protected com.squareup.javapoet.CodeBlock hasNextPageMethodBody()
- Overrides:
hasNextPageMethodBodyin classPaginatorsClassSpec
-
nextPageMethodBody
protected com.squareup.javapoet.CodeBlock nextPageMethodBody()
- Overrides:
nextPageMethodBodyin classPaginatorsClassSpec
-
-