public final class AsyncClientClass extends AsyncClientInterface
clientPackageName, EVENT_PUBLISHER_PARAM_NAME, STREAMING_TYPE_VARIABLE
Constructor and Description |
---|
AsyncClientClass(GeneratorTaskParams dependencies) |
Modifier and Type | Method and Description |
---|---|
com.squareup.javapoet.ClassName |
className() |
protected com.squareup.javapoet.MethodSpec.Builder |
operationBody(com.squareup.javapoet.MethodSpec.Builder builder,
OperationModel opModel)
Add the implementation body.
|
protected com.squareup.javapoet.MethodSpec.Builder |
paginatedMethodBody(com.squareup.javapoet.MethodSpec.Builder builder,
OperationModel opModel) |
com.squareup.javapoet.TypeSpec |
poetSpec() |
Iterable<StaticImport> |
staticImports()
An optional hook to allow inclusion of static imports for example converting:
|
operations
public AsyncClientClass(GeneratorTaskParams dependencies)
public com.squareup.javapoet.TypeSpec poetSpec()
poetSpec
in interface ClassSpec
poetSpec
in class AsyncClientInterface
PoetSpec.builder()...
implementationprotected 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.protected com.squareup.javapoet.MethodSpec.Builder paginatedMethodBody(com.squareup.javapoet.MethodSpec.Builder builder, OperationModel opModel)
paginatedMethodBody
in class AsyncClientInterface
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))...
Copyright © 2020. All rights reserved.