public class PoetExtensions extends Object
Constructor and Description |
---|
PoetExtensions(IntermediateModel model) |
Modifier and Type | Method and Description |
---|---|
com.squareup.javapoet.ClassName |
eventStreamResponseHandlerBuilderType(OperationModel operation) |
com.squareup.javapoet.ClassName |
eventStreamResponseHandlerType(OperationModel operation) |
com.squareup.javapoet.ClassName |
eventStreamResponseHandlerVisitorBuilderType(OperationModel operation) |
com.squareup.javapoet.ClassName |
eventStreamResponseHandlerVisitorType(OperationModel operation) |
String |
getApiName(OperationModel operation) |
com.squareup.javapoet.ClassName |
getClientClass(String className) |
com.squareup.javapoet.ClassName |
getModelClass(String className) |
com.squareup.javapoet.ClassName |
getModelClassFromShape(ShapeModel shapeModel) |
com.squareup.javapoet.ClassName |
getRequestTransformClass(String className) |
com.squareup.javapoet.ClassName |
getResponseClassForPaginatedAsyncOperation(String operationName) |
com.squareup.javapoet.ClassName |
getResponseClassForPaginatedSyncOperation(String operationName) |
com.squareup.javapoet.ClassName |
getResponseMetadataClass() |
com.squareup.javapoet.ClassName |
getTransformClass(String className) |
com.squareup.javapoet.ClassName |
responsePojoType(OperationModel operation) |
public PoetExtensions(IntermediateModel model)
public com.squareup.javapoet.ClassName getModelClass(String className)
className
- Simple name of class in model package.ClassName
for the given class in the model package.public com.squareup.javapoet.ClassName getTransformClass(String className)
className
- Simple name of class in transform package.ClassName
for the given class in the transform package.public com.squareup.javapoet.ClassName getRequestTransformClass(String className)
className
- Simple name of class in transform package.ClassName
for the given class in the transform package.public com.squareup.javapoet.ClassName getClientClass(String className)
className
- Simple name of class in base service package (i.e. software.amazon.awssdk.services.dynamodb).ClassName
for the given class in the base service package.public com.squareup.javapoet.ClassName getResponseClassForPaginatedSyncOperation(String operationName)
operationName
- Name of the operationClassName
for the response type of a paginated operation in the base service package.
Example: If operationName is "ListTables", then the response type of the paginated operation
will be "ListTablesIterable" class.public com.squareup.javapoet.ClassName getResponseClassForPaginatedAsyncOperation(String operationName)
operationName
- Name of the operationClassName
for the response type of a async paginated operation in the base service package.
Example: If operationName is "ListTables", then the async response type of the paginated operation
will be "ListTablesPublisher" class.public com.squareup.javapoet.ClassName getResponseMetadataClass()
public String getApiName(OperationModel operation)
public com.squareup.javapoet.ClassName responsePojoType(OperationModel operation)
ClassName
for the response pojo.public com.squareup.javapoet.ClassName eventStreamResponseHandlerType(OperationModel operation)
ClassName
for generated event stream response handler interface.public com.squareup.javapoet.ClassName eventStreamResponseHandlerBuilderType(OperationModel operation)
ClassName
for the builder interface for the response handler interfacepublic com.squareup.javapoet.ClassName eventStreamResponseHandlerVisitorType(OperationModel operation)
ClassName
for the event stream visitor interface.public com.squareup.javapoet.ClassName eventStreamResponseHandlerVisitorBuilderType(OperationModel operation)
ClassName
for the builder interface for the event stream visitor interface.public com.squareup.javapoet.ClassName getModelClassFromShape(ShapeModel shapeModel)
shapeModel
- shape model for the class in model packageClassName
for the shape represented by the given ShapeModel
.Copyright © 2019. All rights reserved.