
macros.common.ConstructorDefinitionMacro.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 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()#if>);
#list>
}
#list>
#macro>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy