All Downloads are FREE. Search and download functionalities are using the official Maven repository.

macros.syncclientclass.json.AdditionalSyncClientFields.ftl Maven / Gradle / Ivy

Go to download

The AWS SDK for Java - Code Generator module holds the classes and templates required to generate the AWS Java SDK clients for AWS services.

There is a newer version: 1.11.8
Show newest version
<#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}")
        
        <#list serviceModelRoot.shapes?values as shapeModel>
            <#if shapeModel.type == "Exception">
                .addErrorMetadata(new JsonErrorShapeMetadata()
                    .withErrorCode("${shapeModel.errorCode}")
                    .withModeledClass(${serviceModelRoot.metadata.packageName}.model.${shapeModel.shapeName}.class))
            
        
        .withBaseServiceExceptionClass(${serviceModelRoot.sdkModeledExceptionBaseFqcn}.class)
        );





© 2015 - 2025 Weber Informatics LLC | Privacy Policy