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 voidaddAdditionalMethods(com.squareup.javapoet.TypeSpec.Builder type)protected voidaddAnnotations(com.squareup.javapoet.TypeSpec.Builder type)protected voidaddCloseMethod(com.squareup.javapoet.TypeSpec.Builder type)protected voidaddFields(com.squareup.javapoet.TypeSpec.Builder type)protected voidaddInterfaceClass(com.squareup.javapoet.TypeSpec.Builder type)protected voidaddModifiers(com.squareup.javapoet.TypeSpec.Builder type)protected com.squareup.javapoet.MethodSpec.BuilderbatchManagerOperationBody(com.squareup.javapoet.MethodSpec.Builder builder)com.squareup.javapoet.ClassNameclassName()protected com.squareup.javapoet.TypeSpec.BuildercreateTypeSpec()protected com.squareup.javapoet.MethodSpec.BuilderoperationBody(com.squareup.javapoet.MethodSpec.Builder builder, OperationModel opModel)Add the implementation body.protected List<com.squareup.javapoet.MethodSpec>operations()protected com.squareup.javapoet.MethodSpecserviceClientConfigMethod()protected com.squareup.javapoet.MethodSpec.BuilderutilitiesOperationBody(com.squareup.javapoet.MethodSpec.Builder builder)protected com.squareup.javapoet.MethodSpec.BuilderwaiterOperationBody(com.squareup.javapoet.MethodSpec.Builder builder)-
Methods inherited from class software.amazon.awssdk.codegen.poet.client.AsyncClientInterface
addBatchManagerMethod, 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:
createTypeSpecin classAsyncClientInterface
-
addInterfaceClass
protected void addInterfaceClass(com.squareup.javapoet.TypeSpec.Builder type)
- Overrides:
addInterfaceClassin classAsyncClientInterface
-
addAnnotations
protected void addAnnotations(com.squareup.javapoet.TypeSpec.Builder type)
- Overrides:
addAnnotationsin classAsyncClientInterface
-
addModifiers
protected void addModifiers(com.squareup.javapoet.TypeSpec.Builder type)
- Overrides:
addModifiersin classAsyncClientInterface
-
addFields
protected void addFields(com.squareup.javapoet.TypeSpec.Builder type)
- Overrides:
addFieldsin classAsyncClientInterface
-
addAdditionalMethods
protected void addAdditionalMethods(com.squareup.javapoet.TypeSpec.Builder type)
- Overrides:
addAdditionalMethodsin classAsyncClientInterface
-
serviceClientConfigMethod
protected com.squareup.javapoet.MethodSpec serviceClientConfigMethod()
- Overrides:
serviceClientConfigMethodin classAsyncClientInterface
-
addCloseMethod
protected void addCloseMethod(com.squareup.javapoet.TypeSpec.Builder type)
- Overrides:
addCloseMethodin classAsyncClientInterface
-
operations
protected List<com.squareup.javapoet.MethodSpec> operations()
- Overrides:
operationsin classAsyncClientInterface- Returns:
- List generated of methods for all operations.
-
className
public com.squareup.javapoet.ClassName className()
- Specified by:
classNamein interfaceClassSpec- Overrides:
classNamein 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:AsyncClientInterfaceAdd the implementation body. The interface implements all methods by throwing anUnsupportedOperationExceptionexcept for simple method overloads which just delegate to the traditional request/response method. This is overridden inAsyncClientClassto add an actual implementation.- Overrides:
operationBodyin classAsyncClientInterface- Parameters:
builder- CurrentMethodSpec.Builderto 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:
utilitiesOperationBodyin classAsyncClientInterface
-
waiterOperationBody
protected com.squareup.javapoet.MethodSpec.Builder waiterOperationBody(com.squareup.javapoet.MethodSpec.Builder builder)
- Overrides:
waiterOperationBodyin classAsyncClientInterface
-
batchManagerOperationBody
protected com.squareup.javapoet.MethodSpec.Builder batchManagerOperationBody(com.squareup.javapoet.MethodSpec.Builder builder)
- Overrides:
batchManagerOperationBodyin classAsyncClientInterface
-
-