/* * Copyright 2010-2014 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 email-2010-12-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.SimpleEmail.Model { /// /// Represents the raw data of the message. /// public partial class RawMessage { private MemoryStream _data; /// /// Empty constructor used to set properties independently even when a simple constructor is available /// public RawMessage() { } /// /// Instantiates RawMessage with the parameterized properties /// /// The raw data of the message. This data needs to base64-encoded if you are accessing Amazon SES directly through the HTTPS interface. If you are accessing Amazon SES using an AWS SDK, the SDK takes care of the base 64-encoding for you. In all cases, the client must ensure that the message format complies with Internet email standards regarding email header fields, MIME types, and MIME encoding. The To:, CC:, and BCC: headers in the raw message can contain a group list. If you are using SendRawEmail with sending authorization, you can include X-headers in the raw message to specify the "Source," "From," and "Return-Path" addresses. For more information, see the documentation for SendRawEmail. Do not include these X-headers in the DKIM signature, because they are removed by Amazon SES before sending the email. For more information, go to the Amazon SES Developer Guide. public RawMessage(MemoryStream data) { _data = data; } /// /// Gets and sets the property Data. /// /// The raw data of the message. This data needs to base64-encoded if you are accessing /// Amazon SES directly through the HTTPS interface. If you are accessing Amazon SES using /// an AWS SDK, the SDK takes care of the base 64-encoding for you. In all cases, the /// client must ensure that the message format complies with Internet email standards /// regarding email header fields, MIME types, and MIME encoding. /// /// /// /// The To:, CC:, and BCC: headers in the raw message can contain a group list. /// /// /// /// If you are using SendRawEmail with sending authorization, you can include /// X-headers in the raw message to specify the "Source," "From," and "Return-Path" addresses. /// For more information, see the documentation for SendRawEmail. /// /// /// /// Do not include these X-headers in the DKIM signature, because they are removed by /// Amazon SES before sending the email. /// /// /// /// For more information, go to the Amazon /// SES Developer Guide. /// /// [AWSProperty(Required=true)] public MemoryStream Data { get { return this._data; } set { this._data = value; } } // Check to see if Data property is set internal bool IsSetData() { return this._data != null; } } }