/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SESV2 { namespace Model { /** *

Represents the raw content of an email message.

See Also:

AWS * API Reference

*/ class RawMessage { public: AWS_SESV2_API RawMessage(); AWS_SESV2_API RawMessage(Aws::Utils::Json::JsonView jsonValue); AWS_SESV2_API RawMessage& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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.

  • Attachments must be in a file format that * the Amazon SES 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.

*/ inline const Aws::Utils::ByteBuffer& GetData() const{ return m_data; } /** *

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.

  • Attachments must be in a file format that * the Amazon SES 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.

*/ inline bool DataHasBeenSet() const { return m_dataHasBeenSet; } /** *

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.

  • Attachments must be in a file format that * the Amazon SES 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.

*/ inline void SetData(const Aws::Utils::ByteBuffer& value) { m_dataHasBeenSet = true; m_data = value; } /** *

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.

  • Attachments must be in a file format that * the Amazon SES 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.

*/ inline void SetData(Aws::Utils::ByteBuffer&& value) { m_dataHasBeenSet = true; m_data = std::move(value); } /** *

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.

  • Attachments must be in a file format that * the Amazon SES 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.

*/ inline RawMessage& WithData(const Aws::Utils::ByteBuffer& value) { SetData(value); return *this;} /** *

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.

  • Attachments must be in a file format that * the Amazon SES 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.

*/ inline RawMessage& WithData(Aws::Utils::ByteBuffer&& value) { SetData(std::move(value)); return *this;} private: Aws::Utils::ByteBuffer m_data; bool m_dataHasBeenSet = false; }; } // namespace Model } // namespace SESV2 } // namespace Aws