Class AsyncClientClass
- java.lang.Object
-
- software.amazon.awssdk.codegen.poet.client.AsyncClientInterface
-
- software.amazon.awssdk.codegen.poet.client.AsyncClientClass
-
- All Implemented Interfaces:
ClassSpec
public final class AsyncClientClass extends AsyncClientInterface
-
-
Field Summary
-
Fields inherited from class software.amazon.awssdk.codegen.poet.client.AsyncClientInterface
clientPackageName, STREAMING_TYPE_VARIABLE
-
-
Constructor Summary
Constructors Constructor Description AsyncClientClass(GeneratorTaskParams dependencies)
-
Method Summary
All Methods Static 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
addBatchManagerMethod(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)
protected void
addWaiterMethod(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()
Iterable<StaticImport>
staticImports()
An optional hook to allow inclusion of static imports for example converting:protected static com.squareup.javapoet.MethodSpec
updateSdkClientConfigurationMethod(com.squareup.javapoet.TypeName serviceClientConfigurationBuilderClassName)
protected com.squareup.javapoet.MethodSpec
utilitiesMethod()
-
Methods inherited from class software.amazon.awssdk.codegen.poet.client.AsyncClientInterface
batchManagerOperationBody, paginatedMethodBody, paginatedTraditionalMethod, poetSpec, traditionalMethod, utilitiesOperationBody, waiterOperationBody
-
-
-
-
Constructor Detail
-
AsyncClientClass
public AsyncClientClass(GeneratorTaskParams dependencies)
-
-
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
-
addWaiterMethod
protected void addWaiterMethod(com.squareup.javapoet.TypeSpec.Builder type)
- Overrides:
addWaiterMethod
in classAsyncClientInterface
-
operations
protected List<com.squareup.javapoet.MethodSpec> operations()
- Overrides:
operations
in classAsyncClientInterface
- Returns:
- List generated of methods for all operations.
-
serviceClientConfigMethod
protected com.squareup.javapoet.MethodSpec serviceClientConfigMethod()
- Overrides:
serviceClientConfigMethod
in classAsyncClientInterface
-
updateSdkClientConfigurationMethod
protected static com.squareup.javapoet.MethodSpec updateSdkClientConfigurationMethod(com.squareup.javapoet.TypeName serviceClientConfigurationBuilderClassName)
-
addCloseMethod
protected void addCloseMethod(com.squareup.javapoet.TypeSpec.Builder type)
- Overrides:
addCloseMethod
in classAsyncClientInterface
-
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.
-
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
-
staticImports
public Iterable<StaticImport> staticImports()
Description copied from interface:ClassSpec
An optional hook to allow inclusion of static imports for example converting:
toimport software.amazon.awssdk.utils.StringUtils; //... if(StringUtils.isBlank(value))...
import software.amazon.awssdk.utils.StringUtils.isBlank; //... if(isBlank(value))...
- Returns:
- the static imports to include
-
utilitiesMethod
protected com.squareup.javapoet.MethodSpec utilitiesMethod()
- Overrides:
utilitiesMethod
in classAsyncClientInterface
-
addBatchManagerMethod
protected void addBatchManagerMethod(com.squareup.javapoet.TypeSpec.Builder type)
- Overrides:
addBatchManagerMethod
in classAsyncClientInterface
-
-