/* * Copyright 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. */ /* * Do not modify this file. This file is generated from the pinpoint-email-2018-07-26.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.PinpointEmail.Model { /// /// 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. /// public partial class EmailContent { private RawMessage _raw; private Message _simple; private Template _template; /// /// Gets and sets the property Raw. /// /// The raw email message. The message has to meet the following criteria: /// /// /// public RawMessage Raw { get { return this._raw; } set { this._raw = value; } } // Check to see if Raw property is set internal bool IsSetRaw() { return this._raw != null; } /// /// Gets and sets the property Simple. /// /// The simple email message. The message consists of a subject and a message body. /// /// public Message Simple { get { return this._simple; } set { this._simple = value; } } // Check to see if Simple property is set internal bool IsSetSimple() { return this._simple != null; } /// /// Gets and sets the property Template. /// /// The template to use for the email message. /// /// public Template Template { get { return this._template; } set { this._template = value; } } // Check to see if Template property is set internal bool IsSetTemplate() { return this._template != null; } } }