public EmailContent withSubject(String subject) {
        setSubject(subject);
        return this;
    }
<p>
The subject of the email.
</p>

@param subject
       The subject of the email.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iotevents/src/main/java/com/amazonaws/services/iotevents/model/EmailContent.java