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 |
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() |
paginatedMethodBody, paginatedTraditionalMethod, poetSpec, traditionalMethod, utilitiesOperationBody, waiterOperationBody
public AsyncClientClass(GeneratorTaskParams dependencies)
protected com.squareup.javapoet.TypeSpec.Builder createTypeSpec()
createTypeSpec
in class AsyncClientInterface
protected void addInterfaceClass(com.squareup.javapoet.TypeSpec.Builder type)
addInterfaceClass
in class AsyncClientInterface
protected void addAnnotations(com.squareup.javapoet.TypeSpec.Builder type)
addAnnotations
in class AsyncClientInterface
protected void addModifiers(com.squareup.javapoet.TypeSpec.Builder type)
addModifiers
in class AsyncClientInterface
protected void addFields(com.squareup.javapoet.TypeSpec.Builder type)
addFields
in class AsyncClientInterface
protected void addAdditionalMethods(com.squareup.javapoet.TypeSpec.Builder type)
addAdditionalMethods
in class AsyncClientInterface
protected void addWaiterMethod(com.squareup.javapoet.TypeSpec.Builder type)
addWaiterMethod
in class AsyncClientInterface
protected List<com.squareup.javapoet.MethodSpec> operations()
operations
in class AsyncClientInterface
protected com.squareup.javapoet.MethodSpec serviceClientConfigMethod()
serviceClientConfigMethod
in class AsyncClientInterface
protected static com.squareup.javapoet.MethodSpec updateSdkClientConfigurationMethod(com.squareup.javapoet.TypeName serviceClientConfigurationBuilderClassName)
protected void addCloseMethod(com.squareup.javapoet.TypeSpec.Builder type)
addCloseMethod
in class AsyncClientInterface
protected com.squareup.javapoet.MethodSpec.Builder operationBody(com.squareup.javapoet.MethodSpec.Builder builder, OperationModel opModel)
AsyncClientInterface
UnsupportedOperationException
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 AsyncClientInterface
builder
- Current MethodSpec.Builder
to add implementation to.opModel
- Operation to generate method body for.public com.squareup.javapoet.ClassName className()
className
in interface ClassSpec
className
in class AsyncClientInterface
public 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 AsyncClientInterface
Copyright © 2023. All rights reserved.