/** * 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 Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SESV2 { namespace Model { /** *

Represents the email message that you're sending. The Message * object consists of a subject line and a message body.

See Also:

* AWS * API Reference

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

The subject line of the email. The subject line can only contain 7-bit ASCII * characters. However, you can specify non-ASCII characters in the subject line by * using encoded-word syntax, as described in RFC 2047.

*/ inline const Content& GetSubject() const{ return m_subject; } /** *

The subject line of the email. The subject line can only contain 7-bit ASCII * characters. However, you can specify non-ASCII characters in the subject line by * using encoded-word syntax, as described in RFC 2047.

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

The subject line of the email. The subject line can only contain 7-bit ASCII * characters. However, you can specify non-ASCII characters in the subject line by * using encoded-word syntax, as described in RFC 2047.

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

The subject line of the email. The subject line can only contain 7-bit ASCII * characters. However, you can specify non-ASCII characters in the subject line by * using encoded-word syntax, as described in RFC 2047.

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

The subject line of the email. The subject line can only contain 7-bit ASCII * characters. However, you can specify non-ASCII characters in the subject line by * using encoded-word syntax, as described in RFC 2047.

*/ inline Message& WithSubject(const Content& value) { SetSubject(value); return *this;} /** *

The subject line of the email. The subject line can only contain 7-bit ASCII * characters. However, you can specify non-ASCII characters in the subject line by * using encoded-word syntax, as described in RFC 2047.

*/ inline Message& WithSubject(Content&& value) { SetSubject(std::move(value)); return *this;} /** *

The body of the message. You can specify an HTML version of the message, a * text-only version of the message, or both.

*/ inline const Body& GetBody() const{ return m_body; } /** *

The body of the message. You can specify an HTML version of the message, a * text-only version of the message, or both.

*/ inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; } /** *

The body of the message. You can specify an HTML version of the message, a * text-only version of the message, or both.

*/ inline void SetBody(const Body& value) { m_bodyHasBeenSet = true; m_body = value; } /** *

The body of the message. You can specify an HTML version of the message, a * text-only version of the message, or both.

*/ inline void SetBody(Body&& value) { m_bodyHasBeenSet = true; m_body = std::move(value); } /** *

The body of the message. You can specify an HTML version of the message, a * text-only version of the message, or both.

*/ inline Message& WithBody(const Body& value) { SetBody(value); return *this;} /** *

The body of the message. You can specify an HTML version of the message, a * text-only version of the message, or both.

*/ inline Message& WithBody(Body&& value) { SetBody(std::move(value)); return *this;} private: Content m_subject; bool m_subjectHasBeenSet = false; Body m_body; bool m_bodyHasBeenSet = false; }; } // namespace Model } // namespace SESV2 } // namespace Aws