/** * 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 content and "From" address for an email message that's sent to * recipients of a campaign.

See Also:

AWS * API Reference

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

The body of the email for recipients whose email clients don't render HTML * content.

*/ inline const Aws::String& GetBody() const{ return m_body; } /** *

The body of the email for recipients whose email clients don't render HTML * content.

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

The body of the email for recipients whose email clients don't render HTML * content.

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

The body of the email for recipients whose email clients don't render HTML * content.

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

The body of the email for recipients whose email clients don't render HTML * content.

*/ inline void SetBody(const char* value) { m_bodyHasBeenSet = true; m_body.assign(value); } /** *

The body of the email for recipients whose email clients don't render HTML * content.

*/ inline CampaignEmailMessage& WithBody(const Aws::String& value) { SetBody(value); return *this;} /** *

The body of the email for recipients whose email clients don't render HTML * content.

*/ inline CampaignEmailMessage& WithBody(Aws::String&& value) { SetBody(std::move(value)); return *this;} /** *

The body of the email for recipients whose email clients don't render HTML * content.

*/ inline CampaignEmailMessage& WithBody(const char* value) { SetBody(value); return *this;} /** *

The verified email address to send the email from. The default address is the * FromAddress specified for the email channel for the application.

*/ inline const Aws::String& GetFromAddress() const{ return m_fromAddress; } /** *

The verified email address to send the email from. The default address is the * FromAddress specified for the email channel for the application.

*/ inline bool FromAddressHasBeenSet() const { return m_fromAddressHasBeenSet; } /** *

The verified email address to send the email from. The default address is the * FromAddress specified for the email channel for the application.

*/ inline void SetFromAddress(const Aws::String& value) { m_fromAddressHasBeenSet = true; m_fromAddress = value; } /** *

The verified email address to send the email from. The default address is the * FromAddress specified for the email channel for the application.

*/ inline void SetFromAddress(Aws::String&& value) { m_fromAddressHasBeenSet = true; m_fromAddress = std::move(value); } /** *

The verified email address to send the email from. The default address is the * FromAddress specified for the email channel for the application.

*/ inline void SetFromAddress(const char* value) { m_fromAddressHasBeenSet = true; m_fromAddress.assign(value); } /** *

The verified email address to send the email from. The default address is the * FromAddress specified for the email channel for the application.

*/ inline CampaignEmailMessage& WithFromAddress(const Aws::String& value) { SetFromAddress(value); return *this;} /** *

The verified email address to send the email from. The default address is the * FromAddress specified for the email channel for the application.

*/ inline CampaignEmailMessage& WithFromAddress(Aws::String&& value) { SetFromAddress(std::move(value)); return *this;} /** *

The verified email address to send the email from. The default address is the * FromAddress specified for the email channel for the application.

*/ inline CampaignEmailMessage& WithFromAddress(const char* value) { SetFromAddress(value); return *this;} /** *

The body of the email, in HTML format, for recipients whose email clients * render HTML content.

*/ inline const Aws::String& GetHtmlBody() const{ return m_htmlBody; } /** *

The body of the email, in HTML format, for recipients whose email clients * render HTML content.

*/ inline bool HtmlBodyHasBeenSet() const { return m_htmlBodyHasBeenSet; } /** *

The body of the email, in HTML format, for recipients whose email clients * render HTML content.

*/ inline void SetHtmlBody(const Aws::String& value) { m_htmlBodyHasBeenSet = true; m_htmlBody = value; } /** *

The body of the email, in HTML format, for recipients whose email clients * render HTML content.

*/ inline void SetHtmlBody(Aws::String&& value) { m_htmlBodyHasBeenSet = true; m_htmlBody = std::move(value); } /** *

The body of the email, in HTML format, for recipients whose email clients * render HTML content.

*/ inline void SetHtmlBody(const char* value) { m_htmlBodyHasBeenSet = true; m_htmlBody.assign(value); } /** *

The body of the email, in HTML format, for recipients whose email clients * render HTML content.

*/ inline CampaignEmailMessage& WithHtmlBody(const Aws::String& value) { SetHtmlBody(value); return *this;} /** *

The body of the email, in HTML format, for recipients whose email clients * render HTML content.

*/ inline CampaignEmailMessage& WithHtmlBody(Aws::String&& value) { SetHtmlBody(std::move(value)); return *this;} /** *

The body of the email, in HTML format, for recipients whose email clients * render HTML content.

*/ inline CampaignEmailMessage& WithHtmlBody(const char* value) { SetHtmlBody(value); return *this;} /** *

The subject line, or title, of the email.

*/ inline const Aws::String& GetTitle() const{ return m_title; } /** *

The subject line, or title, of the email.

*/ inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; } /** *

The subject line, or title, of the email.

*/ inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; } /** *

The subject line, or title, of the email.

*/ inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); } /** *

The subject line, or title, of the email.

*/ inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); } /** *

The subject line, or title, of the email.

*/ inline CampaignEmailMessage& WithTitle(const Aws::String& value) { SetTitle(value); return *this;} /** *

The subject line, or title, of the email.

*/ inline CampaignEmailMessage& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;} /** *

The subject line, or title, of the email.

*/ inline CampaignEmailMessage& WithTitle(const char* value) { SetTitle(value); return *this;} private: Aws::String m_body; bool m_bodyHasBeenSet = false; Aws::String m_fromAddress; bool m_fromAddressHasBeenSet = false; Aws::String m_htmlBody; bool m_htmlBodyHasBeenSet = false; Aws::String m_title; bool m_titleHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws