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

Contains the subject and message of an email.

See Also:

AWS * API Reference

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

The subject of the email.

*/ inline const Aws::String& GetSubject() const{ return m_subject; } /** *

The subject of the email.

*/ inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; } /** *

The subject of the email.

*/ inline void SetSubject(const Aws::String& value) { m_subjectHasBeenSet = true; m_subject = value; } /** *

The subject of the email.

*/ inline void SetSubject(Aws::String&& value) { m_subjectHasBeenSet = true; m_subject = std::move(value); } /** *

The subject of the email.

*/ inline void SetSubject(const char* value) { m_subjectHasBeenSet = true; m_subject.assign(value); } /** *

The subject of the email.

*/ inline EmailContent& WithSubject(const Aws::String& value) { SetSubject(value); return *this;} /** *

The subject of the email.

*/ inline EmailContent& WithSubject(Aws::String&& value) { SetSubject(std::move(value)); return *this;} /** *

The subject of the email.

*/ inline EmailContent& WithSubject(const char* value) { SetSubject(value); return *this;} /** *

The message that you want to send. The message can be up to 200 * characters.

*/ inline const Aws::String& GetAdditionalMessage() const{ return m_additionalMessage; } /** *

The message that you want to send. The message can be up to 200 * characters.

*/ inline bool AdditionalMessageHasBeenSet() const { return m_additionalMessageHasBeenSet; } /** *

The message that you want to send. The message can be up to 200 * characters.

*/ inline void SetAdditionalMessage(const Aws::String& value) { m_additionalMessageHasBeenSet = true; m_additionalMessage = value; } /** *

The message that you want to send. The message can be up to 200 * characters.

*/ inline void SetAdditionalMessage(Aws::String&& value) { m_additionalMessageHasBeenSet = true; m_additionalMessage = std::move(value); } /** *

The message that you want to send. The message can be up to 200 * characters.

*/ inline void SetAdditionalMessage(const char* value) { m_additionalMessageHasBeenSet = true; m_additionalMessage.assign(value); } /** *

The message that you want to send. The message can be up to 200 * characters.

*/ inline EmailContent& WithAdditionalMessage(const Aws::String& value) { SetAdditionalMessage(value); return *this;} /** *

The message that you want to send. The message can be up to 200 * characters.

*/ inline EmailContent& WithAdditionalMessage(Aws::String&& value) { SetAdditionalMessage(std::move(value)); return *this;} /** *

The message that you want to send. The message can be up to 200 * characters.

*/ inline EmailContent& WithAdditionalMessage(const char* value) { SetAdditionalMessage(value); return *this;} private: Aws::String m_subject; bool m_subjectHasBeenSet = false; Aws::String m_additionalMessage; bool m_additionalMessageHasBeenSet = false; }; } // namespace Model } // namespace IoTEvents } // namespace Aws