/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include In-app message configuration.See Also:
AWS
* API Reference
The message body of the notification, the email body or the text message.
*/ inline const Aws::String& GetBody() const{ return m_body; } /** *The message body of the notification, the email body or the text message.
*/ inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; } /** *The message body of the notification, the email body or the text message.
*/ inline void SetBody(const Aws::String& value) { m_bodyHasBeenSet = true; m_body = value; } /** *The message body of the notification, the email body or the text message.
*/ inline void SetBody(Aws::String&& value) { m_bodyHasBeenSet = true; m_body = std::move(value); } /** *The message body of the notification, the email body or the text message.
*/ inline void SetBody(const char* value) { m_bodyHasBeenSet = true; m_body.assign(value); } /** *The message body of the notification, the email body or the text message.
*/ inline CampaignInAppMessage& WithBody(const Aws::String& value) { SetBody(value); return *this;} /** *The message body of the notification, the email body or the text message.
*/ inline CampaignInAppMessage& WithBody(Aws::String&& value) { SetBody(std::move(value)); return *this;} /** *The message body of the notification, the email body or the text message.
*/ inline CampaignInAppMessage& WithBody(const char* value) { SetBody(value); return *this;} /** *In-app message content.
*/ inline const Aws::VectorIn-app message content.
*/ inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; } /** *In-app message content.
*/ inline void SetContent(const Aws::VectorIn-app message content.
*/ inline void SetContent(Aws::VectorIn-app message content.
*/ inline CampaignInAppMessage& WithContent(const Aws::VectorIn-app message content.
*/ inline CampaignInAppMessage& WithContent(Aws::VectorIn-app message content.
*/ inline CampaignInAppMessage& AddContent(const InAppMessageContent& value) { m_contentHasBeenSet = true; m_content.push_back(value); return *this; } /** *In-app message content.
*/ inline CampaignInAppMessage& AddContent(InAppMessageContent&& value) { m_contentHasBeenSet = true; m_content.push_back(std::move(value)); return *this; } /** *Custom config to be sent to client.
*/ inline const Aws::MapCustom config to be sent to client.
*/ inline bool CustomConfigHasBeenSet() const { return m_customConfigHasBeenSet; } /** *Custom config to be sent to client.
*/ inline void SetCustomConfig(const Aws::MapCustom config to be sent to client.
*/ inline void SetCustomConfig(Aws::MapCustom config to be sent to client.
*/ inline CampaignInAppMessage& WithCustomConfig(const Aws::MapCustom config to be sent to client.
*/ inline CampaignInAppMessage& WithCustomConfig(Aws::MapCustom config to be sent to client.
*/ inline CampaignInAppMessage& AddCustomConfig(const Aws::String& key, const Aws::String& value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(key, value); return *this; } /** *Custom config to be sent to client.
*/ inline CampaignInAppMessage& AddCustomConfig(Aws::String&& key, const Aws::String& value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(std::move(key), value); return *this; } /** *Custom config to be sent to client.
*/ inline CampaignInAppMessage& AddCustomConfig(const Aws::String& key, Aws::String&& value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(key, std::move(value)); return *this; } /** *Custom config to be sent to client.
*/ inline CampaignInAppMessage& AddCustomConfig(Aws::String&& key, Aws::String&& value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(std::move(key), std::move(value)); return *this; } /** *Custom config to be sent to client.
*/ inline CampaignInAppMessage& AddCustomConfig(const char* key, Aws::String&& value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(key, std::move(value)); return *this; } /** *Custom config to be sent to client.
*/ inline CampaignInAppMessage& AddCustomConfig(Aws::String&& key, const char* value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(std::move(key), value); return *this; } /** *Custom config to be sent to client.
*/ inline CampaignInAppMessage& AddCustomConfig(const char* key, const char* value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(key, value); return *this; } /** *In-app message layout.
*/ inline const Layout& GetLayout() const{ return m_layout; } /** *In-app message layout.
*/ inline bool LayoutHasBeenSet() const { return m_layoutHasBeenSet; } /** *In-app message layout.
*/ inline void SetLayout(const Layout& value) { m_layoutHasBeenSet = true; m_layout = value; } /** *In-app message layout.
*/ inline void SetLayout(Layout&& value) { m_layoutHasBeenSet = true; m_layout = std::move(value); } /** *In-app message layout.
*/ inline CampaignInAppMessage& WithLayout(const Layout& value) { SetLayout(value); return *this;} /** *In-app message layout.
*/ inline CampaignInAppMessage& WithLayout(Layout&& value) { SetLayout(std::move(value)); return *this;} private: Aws::String m_body; bool m_bodyHasBeenSet = false; Aws::Vector