public final class AsyncClientClass extends AsyncClientInterface
clientPackageName, STREAMING_TYPE_VARIABLE| Constructor and Description |
|---|
AsyncClientClass(GeneratorTaskParams dependencies) |
| Modifier and Type | Method and 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) |
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.Builder |
paginatedMethodBody(com.squareup.javapoet.MethodSpec.Builder builder,
OperationModel opModel) |
protected com.squareup.javapoet.MethodSpec |
serviceClientConfigMethod() |
Iterable<StaticImport> |
staticImports()
An optional hook to allow inclusion of static imports for example converting:
|
protected com.squareup.javapoet.MethodSpec |
utilitiesMethod() |
paginatedTraditionalMethod, poetSpec, traditionalMethod, utilitiesOperationBody, waiterOperationBodypublic AsyncClientClass(GeneratorTaskParams dependencies)
protected com.squareup.javapoet.TypeSpec.Builder createTypeSpec()
createTypeSpec in class AsyncClientInterfaceprotected void addInterfaceClass(com.squareup.javapoet.TypeSpec.Builder type)
addInterfaceClass in class AsyncClientInterfaceprotected void addAnnotations(com.squareup.javapoet.TypeSpec.Builder type)
addAnnotations in class AsyncClientInterfaceprotected void addModifiers(com.squareup.javapoet.TypeSpec.Builder type)
addModifiers in class AsyncClientInterfaceprotected void addFields(com.squareup.javapoet.TypeSpec.Builder type)
addFields in class AsyncClientInterfaceprotected void addAdditionalMethods(com.squareup.javapoet.TypeSpec.Builder type)
addAdditionalMethods in class AsyncClientInterfaceprotected void addWaiterMethod(com.squareup.javapoet.TypeSpec.Builder type)
addWaiterMethod in class AsyncClientInterfaceprotected List<com.squareup.javapoet.MethodSpec> operations()
operations in class AsyncClientInterfaceprotected com.squareup.javapoet.MethodSpec serviceClientConfigMethod()
serviceClientConfigMethod in class AsyncClientInterfaceprotected void addCloseMethod(com.squareup.javapoet.TypeSpec.Builder type)
addCloseMethod in class AsyncClientInterfaceprotected com.squareup.javapoet.MethodSpec.Builder operationBody(com.squareup.javapoet.MethodSpec.Builder builder,
OperationModel opModel)
AsyncClientInterfaceUnsupportedOperationException
except for simple method overloads which just delegate to the traditional request/response method. This is overridden
in AsyncClientClass to add an actual implementation.operationBody in class AsyncClientInterfacebuilder - Current MethodSpec.Builder to add implementation to.opModel - Operation to generate method body for.protected com.squareup.javapoet.MethodSpec.Builder paginatedMethodBody(com.squareup.javapoet.MethodSpec.Builder builder,
OperationModel opModel)
paginatedMethodBody in class AsyncClientInterfacepublic com.squareup.javapoet.ClassName className()
className in interface ClassSpecclassName in class AsyncClientInterfacepublic Iterable<StaticImport> staticImports()
ClassSpec
import software.amazon.awssdk.utils.StringUtils;
//...
if(StringUtils.isBlank(value))...
to
import software.amazon.awssdk.utils.StringUtils.isBlank;
//...
if(isBlank(value))...
protected com.squareup.javapoet.MethodSpec utilitiesMethod()
utilitiesMethod in class AsyncClientInterfaceCopyright © 2023. All rights reserved.