/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Specifies the contents of an email message, composed of a subject, a text
* part, and an HTML part.See Also:
AWS
* API Reference
The body of the email message, in HTML format. We recommend using HTML format * for email clients that render HTML content. You can include links, formatted * text, and more in an HTML message.
*/ inline const SimpleEmailPart& GetHtmlPart() const{ return m_htmlPart; } /** *The body of the email message, in HTML format. We recommend using HTML format * for email clients that render HTML content. You can include links, formatted * text, and more in an HTML message.
*/ inline bool HtmlPartHasBeenSet() const { return m_htmlPartHasBeenSet; } /** *The body of the email message, in HTML format. We recommend using HTML format * for email clients that render HTML content. You can include links, formatted * text, and more in an HTML message.
*/ inline void SetHtmlPart(const SimpleEmailPart& value) { m_htmlPartHasBeenSet = true; m_htmlPart = value; } /** *The body of the email message, in HTML format. We recommend using HTML format * for email clients that render HTML content. You can include links, formatted * text, and more in an HTML message.
*/ inline void SetHtmlPart(SimpleEmailPart&& value) { m_htmlPartHasBeenSet = true; m_htmlPart = std::move(value); } /** *The body of the email message, in HTML format. We recommend using HTML format * for email clients that render HTML content. You can include links, formatted * text, and more in an HTML message.
*/ inline SimpleEmail& WithHtmlPart(const SimpleEmailPart& value) { SetHtmlPart(value); return *this;} /** *The body of the email message, in HTML format. We recommend using HTML format * for email clients that render HTML content. You can include links, formatted * text, and more in an HTML message.
*/ inline SimpleEmail& WithHtmlPart(SimpleEmailPart&& value) { SetHtmlPart(std::move(value)); return *this;} /** *The subject line, or title, of the email.
*/ inline const SimpleEmailPart& GetSubject() const{ return m_subject; } /** *The subject line, or title, of the email.
*/ inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; } /** *The subject line, or title, of the email.
*/ inline void SetSubject(const SimpleEmailPart& value) { m_subjectHasBeenSet = true; m_subject = value; } /** *The subject line, or title, of the email.
*/ inline void SetSubject(SimpleEmailPart&& value) { m_subjectHasBeenSet = true; m_subject = std::move(value); } /** *The subject line, or title, of the email.
*/ inline SimpleEmail& WithSubject(const SimpleEmailPart& value) { SetSubject(value); return *this;} /** *The subject line, or title, of the email.
*/ inline SimpleEmail& WithSubject(SimpleEmailPart&& value) { SetSubject(std::move(value)); return *this;} /** *The body of the email message, in plain text format. We recommend using plain * text format for email clients that don't render HTML content and clients that * are connected to high-latency networks, such as mobile devices.
*/ inline const SimpleEmailPart& GetTextPart() const{ return m_textPart; } /** *The body of the email message, in plain text format. We recommend using plain * text format for email clients that don't render HTML content and clients that * are connected to high-latency networks, such as mobile devices.
*/ inline bool TextPartHasBeenSet() const { return m_textPartHasBeenSet; } /** *The body of the email message, in plain text format. We recommend using plain * text format for email clients that don't render HTML content and clients that * are connected to high-latency networks, such as mobile devices.
*/ inline void SetTextPart(const SimpleEmailPart& value) { m_textPartHasBeenSet = true; m_textPart = value; } /** *The body of the email message, in plain text format. We recommend using plain * text format for email clients that don't render HTML content and clients that * are connected to high-latency networks, such as mobile devices.
*/ inline void SetTextPart(SimpleEmailPart&& value) { m_textPartHasBeenSet = true; m_textPart = std::move(value); } /** *The body of the email message, in plain text format. We recommend using plain * text format for email clients that don't render HTML content and clients that * are connected to high-latency networks, such as mobile devices.
*/ inline SimpleEmail& WithTextPart(const SimpleEmailPart& value) { SetTextPart(value); return *this;} /** *The body of the email message, in plain text format. We recommend using plain * text format for email clients that don't render HTML content and clients that * are connected to high-latency networks, such as mobile devices.
*/ inline SimpleEmail& WithTextPart(SimpleEmailPart&& value) { SetTextPart(std::move(value)); return *this;} private: SimpleEmailPart m_htmlPart; bool m_htmlPartHasBeenSet = false; SimpleEmailPart m_subject; bool m_subjectHasBeenSet = false; SimpleEmailPart m_textPart; bool m_textPartHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws