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

macros.marshaller.rest.UriMemberMarshallerMacro.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 shape getterFunctionPrefix>

    <#local resourcePath = (shape.marshaller.requestUri)!""/>

    String uriResourcePath = "${resourcePath}";

    <#if resourcePath?contains("?")>
        uriResourcePath = com.amazonaws.util.UriResourcePathUtils.addStaticQueryParamtersToRequest(request, uriResourcePath);
    

    <#if shape.members?has_content>
        <#list shape.members as member>
        <#if member.http.isUri() >
            <#local getMember = getterFunctionPrefix + ".get" + member.name />
            <#if member.idempotencyToken>
                uriResourcePath = uriResourcePath.replace("{${member.http.marshallLocationName}}", <@IdempotencyTokenMacro.content getMember member.variable.simpleType/>);
            <#else>
                uriResourcePath = uriResourcePath.replace("{${member.http.marshallLocationName}}", (${getMember}() != null ) ? SdkHttpUtils.urlEncode(StringUtils.from${member.variable.simpleType}(${getMember}()), false) : "");
            
        
        
     
     request.setResourcePath(uriResourcePath);





© 2015 - 2025 Weber Informatics LLC | Privacy Policy