/*
* 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 sesv2-2019-09-27.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.SimpleEmailV2.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:
///
/// -
///
/// The message has to contain a header and a body, separated by one blank line.
///
///
-
///
/// All of the required header fields must be present in the message.
///
///
-
///
/// Each part of a multipart MIME message must be formatted properly.
///
///
-
///
/// If you include attachments, they must be in a file format that the Amazon SES API
/// v2 supports.
///
///
-
///
/// The entire message must be Base64 encoded.
///
///
-
///
/// If any of the MIME parts in your message contain content that is outside of the 7-bit
/// ASCII character range, you should encode that content to ensure that recipients' email
/// clients render the message properly.
///
///
-
///
/// The length of any single line of text in the message can't exceed 1,000 characters.
/// This restriction is defined in RFC 5321.
///
///
///
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;
}
}
}