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

Represents textual data, plus an optional character set specification.

*

By default, the text must be 7-bit ASCII, due to the constraints of the SMTP * protocol. If the text must contain any other characters, then you must also * specify a character set. Examples include UTF-8, ISO-8859-1, and * Shift_JIS.

See Also:

AWS API * Reference

*/ class Content { public: AWS_SES_API Content(); AWS_SES_API Content(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_SES_API Content& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_SES_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_SES_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The textual data of the content.

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

The textual data of the content.

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

The textual data of the content.

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

The textual data of the content.

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

The textual data of the content.

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

The textual data of the content.

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

The textual data of the content.

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

The textual data of the content.

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

The character set of the content.

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

The character set of the content.

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

The character set of the content.

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

The character set of the content.

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

The character set of the content.

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

The character set of the content.

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

The character set of the content.

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

The character set of the content.

*/ 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 SES } // namespace Aws