/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.simpleemailv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* An object that defines the entire content of the email, including the message headers and the body content. You can * create a simple email message, in which you specify the subject and the text and HTML versions of the message body. * You can also create raw messages, in which you specify a complete MIME-formatted message. Raw messages can include * attachments and custom headers. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class EmailContent implements Serializable, Cloneable, StructuredPojo { /** *

* The simple email message. The message consists of a subject and a message body. *

*/ private Message simple; /** *

* The raw email message. The message has to meet the following criteria: *

* */ private RawMessage raw; /** *

* The template to use for the email message. *

*/ private Template template; /** *

* The simple email message. The message consists of a subject and a message body. *

* * @param simple * The simple email message. The message consists of a subject and a message body. */ public void setSimple(Message simple) { this.simple = simple; } /** *

* The simple email message. The message consists of a subject and a message body. *

* * @return The simple email message. The message consists of a subject and a message body. */ public Message getSimple() { return this.simple; } /** *

* The simple email message. The message consists of a subject and a message body. *

* * @param simple * The simple email message. The message consists of a subject and a message body. * @return Returns a reference to this object so that method calls can be chained together. */ public EmailContent withSimple(Message simple) { setSimple(simple); return this; } /** *

* The raw email message. The message has to meet the following criteria: *

* * * @param raw * The raw email message. The message has to meet the following criteria:

*