public DescribeEventsRequest withTemplateName(String templateName) {
        setTemplateName(templateName);
        return this;
    }
<p>
If specified, AWS Elastic Beanstalk restricts the returned descriptions to those that are associated with this
environment configuration.
</p>

@param templateName
       If specified, AWS Elastic Beanstalk restricts the returned descriptions to those that are associated with
       this environment configuration.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-elasticbeanstalk/src/main/java/com/amazonaws/services/elasticbeanstalk/model/DescribeEventsRequest.java