Class DelegatingAsyncClientClass
- java.lang.Object
-
- software.amazon.awssdk.codegen.poet.client.AsyncClientInterface
-
- software.amazon.awssdk.codegen.poet.client.DelegatingAsyncClientClass
-
- All Implemented Interfaces:
ClassSpec
public class DelegatingAsyncClientClass extends AsyncClientInterface
-
-
Field Summary
-
Fields inherited from class software.amazon.awssdk.codegen.poet.client.AsyncClientInterface
clientPackageName, STREAMING_TYPE_VARIABLE
-
-
Constructor Summary
Constructors Constructor Description DelegatingAsyncClientClass(IntermediateModel model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addAdditionalMethods(com.squareup.javapoet.TypeSpec.Builder type)
protected void
addAnnotations(com.squareup.javapoet.TypeSpec.Builder type)
protected void
addCloseMethod(com.squareup.javapoet.TypeSpec.Builder type)
protected void
addFields(com.squareup.javapoet.TypeSpec.Builder type)
protected void
addInterfaceClass(com.squareup.javapoet.TypeSpec.Builder type)
protected void
addModifiers(com.squareup.javapoet.TypeSpec.Builder type)
com.squareup.javapoet.ClassName
className()
protected com.squareup.javapoet.TypeSpec.Builder
createTypeSpec()
protected com.squareup.javapoet.MethodSpec.Builder
operationBody(com.squareup.javapoet.MethodSpec.Builder builder, OperationModel opModel)
Add the implementation body.protected List<com.squareup.javapoet.MethodSpec>
operations()
protected com.squareup.javapoet.MethodSpec
serviceClientConfigMethod()
protected com.squareup.javapoet.MethodSpec.Builder
utilitiesOperationBody(com.squareup.javapoet.MethodSpec.Builder builder)
protected com.squareup.javapoet.MethodSpec.Builder
waiterOperationBody(com.squareup.javapoet.MethodSpec.Builder builder)
-
Methods inherited from class software.amazon.awssdk.codegen.poet.client.AsyncClientInterface
addWaiterMethod, paginatedMethodBody, paginatedTraditionalMethod, poetSpec, traditionalMethod, utilitiesMethod
-
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
-
DelegatingAsyncClientClass
public DelegatingAsyncClientClass(IntermediateModel model)
-
-
Method Detail
-
createTypeSpec
protected com.squareup.javapoet.TypeSpec.Builder createTypeSpec()
- Overrides:
createTypeSpec
in classAsyncClientInterface
-
addInterfaceClass
protected void addInterfaceClass(com.squareup.javapoet.TypeSpec.Builder type)
- Overrides:
addInterfaceClass
in classAsyncClientInterface
-
addAnnotations
protected void addAnnotations(com.squareup.javapoet.TypeSpec.Builder type)
- Overrides:
addAnnotations
in classAsyncClientInterface
-
addModifiers
protected void addModifiers(com.squareup.javapoet.TypeSpec.Builder type)
- Overrides:
addModifiers
in classAsyncClientInterface
-
addFields
protected void addFields(com.squareup.javapoet.TypeSpec.Builder type)
- Overrides:
addFields
in classAsyncClientInterface
-
addAdditionalMethods
protected void addAdditionalMethods(com.squareup.javapoet.TypeSpec.Builder type)
- Overrides:
addAdditionalMethods
in classAsyncClientInterface
-
serviceClientConfigMethod
protected com.squareup.javapoet.MethodSpec serviceClientConfigMethod()
- Overrides:
serviceClientConfigMethod
in classAsyncClientInterface
-
addCloseMethod
protected void addCloseMethod(com.squareup.javapoet.TypeSpec.Builder type)
- Overrides:
addCloseMethod
in classAsyncClientInterface
-
operations
protected List<com.squareup.javapoet.MethodSpec> operations()
- Overrides:
operations
in classAsyncClientInterface
- Returns:
- List generated of methods for all operations.
-
className
public com.squareup.javapoet.ClassName className()
- Specified by:
className
in interfaceClassSpec
- Overrides:
className
in classAsyncClientInterface
- Returns:
- The Poet representation of the class being generated, this may be used by other classes
-
operationBody
protected com.squareup.javapoet.MethodSpec.Builder operationBody(com.squareup.javapoet.MethodSpec.Builder builder, OperationModel opModel)
Description copied from class:AsyncClientInterface
Add the implementation body. The interface implements all methods by throwing anUnsupportedOperationException
except for simple method overloads which just delegate to the traditional request/response method. This is overridden inAsyncClientClass
to add an actual implementation.- Overrides:
operationBody
in classAsyncClientInterface
- Parameters:
builder
- CurrentMethodSpec.Builder
to add implementation to.opModel
- Operation to generate method body for.- Returns:
- Builder with method body added.
-
utilitiesOperationBody
protected com.squareup.javapoet.MethodSpec.Builder utilitiesOperationBody(com.squareup.javapoet.MethodSpec.Builder builder)
- Overrides:
utilitiesOperationBody
in classAsyncClientInterface
-
waiterOperationBody
protected com.squareup.javapoet.MethodSpec.Builder waiterOperationBody(com.squareup.javapoet.MethodSpec.Builder builder)
- Overrides:
waiterOperationBody
in classAsyncClientInterface
-
-