/** * 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 Pinpoint { namespace Model { /** *

Specifies the subject or body of an email message, represented as textual * email data and the applicable character set.

See Also:

AWS * API Reference

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

The applicable character set for the message content.

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

The applicable character set for the message content.

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

The applicable character set for the message content.

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

The applicable character set for the message content.

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

The applicable character set for the message content.

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

The applicable character set for the message content.

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

The applicable character set for the message content.

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

The applicable character set for the message content.

*/ inline SimpleEmailPart& WithCharset(const char* value) { SetCharset(value); return *this;} /** *

The textual data of the message content.

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

The textual data of the message content.

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

The textual data of the message content.

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

The textual data of the message content.

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

The textual data of the message content.

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

The textual data of the message content.

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

The textual data of the message content.

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

The textual data of the message content.

*/ inline SimpleEmailPart& WithData(const char* value) { SetData(value); return *this;} private: Aws::String m_charset; bool m_charsetHasBeenSet = false; Aws::String m_data; bool m_dataHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws