Class RequestCompressionTrait
java.lang.Object
software.amazon.awssdk.codegen.poet.client.traits.RequestCompressionTrait
The logic for handling the "requestCompression" trait within the code generator.
- 
Method Summary
Modifier and TypeMethodDescriptionstatic com.squareup.javapoet.CodeBlockcreate(OperationModel operationModel, IntermediateModel model) Generate a ".putExecutionAttribute(...)" code-block for the provided operation model. 
- 
Method Details
- 
create
public static com.squareup.javapoet.CodeBlock create(OperationModel operationModel, IntermediateModel model) Generate a ".putExecutionAttribute(...)" code-block for the provided operation model. This should be used within the context of initializingClientExecutionParams. If request compression is not required by the operation, this will return an empty code-block. 
 -