/** * 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 { /** *

An object that represents the content of the email, and optionally a * character set specification.

See Also:

AWS API * Reference

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

The content of the message itself.

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

The content of the message itself.

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

The content of the message itself.

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

The content of the message itself.

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

The content of the message itself.

*/ inline void SetData(const char* value) { m_dataHasBeenSet = true; m_data.assign(value); } /** *

The content of the message itself.

*/ inline Content& WithData(const Aws::String& value) { SetData(value); return *this;} /** *

The content of the message itself.

*/ inline Content& WithData(Aws::String&& value) { SetData(std::move(value)); return *this;} /** *

The content of the message itself.

*/ inline Content& WithData(const char* value) { SetData(value); return *this;} /** *

The character set for the content. Because of the constraints of the SMTP * protocol, Amazon SES uses 7-bit ASCII by default. If the text includes * characters outside of the ASCII range, you have to specify a character set. For * example, you could specify UTF-8, ISO-8859-1, or * Shift_JIS.

*/ inline const Aws::String& GetCharset() const{ return m_charset; } /** *

The character set for the content. Because of the constraints of the SMTP * protocol, Amazon SES uses 7-bit ASCII by default. If the text includes * characters outside of the ASCII range, you have to specify a character set. For * example, you could specify UTF-8, ISO-8859-1, or * Shift_JIS.

*/ inline bool CharsetHasBeenSet() const { return m_charsetHasBeenSet; } /** *

The character set for the content. Because of the constraints of the SMTP * protocol, Amazon SES uses 7-bit ASCII by default. If the text includes * characters outside of the ASCII range, you have to specify a character set. For * example, you could specify UTF-8, ISO-8859-1, or * Shift_JIS.

*/ inline void SetCharset(const Aws::String& value) { m_charsetHasBeenSet = true; m_charset = value; } /** *

The character set for the content. Because of the constraints of the SMTP * protocol, Amazon SES uses 7-bit ASCII by default. If the text includes * characters outside of the ASCII range, you have to specify a character set. For * example, you could specify UTF-8, ISO-8859-1, or * Shift_JIS.

*/ inline void SetCharset(Aws::String&& value) { m_charsetHasBeenSet = true; m_charset = std::move(value); } /** *

The character set for the content. Because of the constraints of the SMTP * protocol, Amazon SES uses 7-bit ASCII by default. If the text includes * characters outside of the ASCII range, you have to specify a character set. For * example, you could specify UTF-8, ISO-8859-1, or * Shift_JIS.

*/ inline void SetCharset(const char* value) { m_charsetHasBeenSet = true; m_charset.assign(value); } /** *

The character set for the content. Because of the constraints of the SMTP * protocol, Amazon SES uses 7-bit ASCII by default. If the text includes * characters outside of the ASCII range, you have to specify a character set. For * example, you could specify UTF-8, ISO-8859-1, or * Shift_JIS.

*/ inline Content& WithCharset(const Aws::String& value) { SetCharset(value); return *this;} /** *

The character set for the content. Because of the constraints of the SMTP * protocol, Amazon SES uses 7-bit ASCII by default. If the text includes * characters outside of the ASCII range, you have to specify a character set. For * example, you could specify UTF-8, ISO-8859-1, or * Shift_JIS.

*/ inline Content& WithCharset(Aws::String&& value) { SetCharset(std::move(value)); return *this;} /** *

The character set for the content. Because of the constraints of the SMTP * protocol, Amazon SES uses 7-bit ASCII by default. If the text includes * characters outside of the ASCII range, you have to specify a character set. For * example, you could specify UTF-8, ISO-8859-1, or * Shift_JIS.

*/ inline Content& WithCharset(const char* value) { SetCharset(value); return *this;} private: Aws::String m_data; bool m_dataHasBeenSet = false; Aws::String m_charset; bool m_charsetHasBeenSet = false; }; } // namespace Model } // namespace SESV2 } // namespace Aws