public EmailContent withTemplate(Template template) {
        setTemplate(template);
        return this;
    }
<p>
The template to use for the email message.
</p>

@param template
       The template to use for the email message.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sesv2/src/main/java/com/amazonaws/services/simpleemailv2/model/EmailContent.java