public CampaignEmailMessage withHeaders(MessageHeader... headers) {
        if (this.headers == null) {
            setHeaders(new java.util.ArrayList<MessageHeader>(headers.length));
        }
        for (MessageHeader ele : headers) {
            this.headers.add(ele);
        }
        return this;
    }
<p>
The list of <a href=
"https://docs.aws.amazon.com/pinpoint/latest/apireference/apps-application-id-campaigns-campaign-id.html#apps-application-id-campaigns-campaign-id-model-messageheader"
>MessageHeaders</a> for the email. You can have up to 15 MessageHeaders for each email.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setHeaders(java.util.Collection)} or {@link #withHeaders(java.util.Collection)} if you want to override
the existing values.
</p>

@param headers
       The list of <a href=
       "https://docs.aws.amazon.com/pinpoint/latest/apireference/apps-application-id-campaigns-campaign-id.html#apps-application-id-campaigns-campaign-id-model-messageheader"
       >MessageHeaders</a> for the email. You can have up to 15 MessageHeaders for each email.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/CampaignEmailMessage.java