
macros.syncclientclass.json.AdditionalSyncClientFields.ftl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-code-generator Show documentation
Show all versions of aws-java-sdk-code-generator Show documentation
The AWS SDK for Java - Code Generator module holds the classes and templates required to generate the AWS Java SDK clients for AWS services.
<#macro content serviceModelRoot>
private final SdkJsonProtocolFactory protocolFactory = new SdkJsonProtocolFactory(new JsonClientMetadata()
.withProtocolVersion("${serviceModelRoot.metadata.jsonVersion}")
.withSupportsCbor(${serviceModelRoot.metadata.cborProtocol?c})
.withSupportsIon(${serviceModelRoot.metadata.ionProtocol?c})
<#if serviceModelRoot.metadata.contentType??>
.withContentTypeOverride("${serviceModelRoot.metadata.contentType}")
#if>
<#list serviceModelRoot.shapes?values as shapeModel>
<#if shapeModel.type == "Exception">
.addErrorMetadata(new JsonErrorShapeMetadata()
.withErrorCode("${shapeModel.errorCode}")
.withModeledClass(${serviceModelRoot.metadata.packageName}.model.${shapeModel.shapeName}.class))
#if>
#list>
.withBaseServiceExceptionClass(${serviceModelRoot.sdkModeledExceptionBaseFqcn}.class)
);
#macro>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy