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

macros.common.ConstructorDefinitionMacro.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>

/**
 * Default constructor for ${shape.shapeName} object. Callers should use the setter or fluent setter (with...) methods to
 * initialize the object after creating it.
 */
public ${shape.shapeName}() { }

<#list shape.additionalConstructors as constructor>

    ${constructor.documentation}
    public ${shape.shapeName}(${constructor.argumentsDeclaration}) {
    <#list constructor.arguments as argument>
        <#local memberName = shape.getMemberByVariableName(argument.name).name />
        set${memberName}(${argument.name}<#if argument.isEnumArg>.toString());
    
    }







© 2015 - 2025 Weber Informatics LLC | Privacy Policy