/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Pinpoint { namespace Model { /** *

Provides all fields required for building an in-app message.

See * Also:

AWS * API Reference

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

In-app message content.

*/ inline const Aws::Vector& GetContent() const{ return m_content; } /** *

In-app message content.

*/ inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; } /** *

In-app message content.

*/ inline void SetContent(const Aws::Vector& value) { m_contentHasBeenSet = true; m_content = value; } /** *

In-app message content.

*/ inline void SetContent(Aws::Vector&& value) { m_contentHasBeenSet = true; m_content = std::move(value); } /** *

In-app message content.

*/ inline InAppMessage& WithContent(const Aws::Vector& value) { SetContent(value); return *this;} /** *

In-app message content.

*/ inline InAppMessage& WithContent(Aws::Vector&& value) { SetContent(std::move(value)); return *this;} /** *

In-app message content.

*/ inline InAppMessage& AddContent(const InAppMessageContent& value) { m_contentHasBeenSet = true; m_content.push_back(value); return *this; } /** *

In-app message content.

*/ inline InAppMessage& AddContent(InAppMessageContent&& value) { m_contentHasBeenSet = true; m_content.push_back(std::move(value)); return *this; } /** *

Custom config to be sent to SDK.

*/ inline const Aws::Map& GetCustomConfig() const{ return m_customConfig; } /** *

Custom config to be sent to SDK.

*/ inline bool CustomConfigHasBeenSet() const { return m_customConfigHasBeenSet; } /** *

Custom config to be sent to SDK.

*/ inline void SetCustomConfig(const Aws::Map& value) { m_customConfigHasBeenSet = true; m_customConfig = value; } /** *

Custom config to be sent to SDK.

*/ inline void SetCustomConfig(Aws::Map&& value) { m_customConfigHasBeenSet = true; m_customConfig = std::move(value); } /** *

Custom config to be sent to SDK.

*/ inline InAppMessage& WithCustomConfig(const Aws::Map& value) { SetCustomConfig(value); return *this;} /** *

Custom config to be sent to SDK.

*/ inline InAppMessage& WithCustomConfig(Aws::Map&& value) { SetCustomConfig(std::move(value)); return *this;} /** *

Custom config to be sent to SDK.

*/ inline InAppMessage& 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 SDK.

*/ inline InAppMessage& 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 SDK.

*/ inline InAppMessage& 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 SDK.

*/ inline InAppMessage& 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 SDK.

*/ inline InAppMessage& 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 SDK.

*/ inline InAppMessage& 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 SDK.

*/ inline InAppMessage& AddCustomConfig(const char* key, const char* value) { m_customConfigHasBeenSet = true; m_customConfig.emplace(key, value); return *this; } /** *

The layout of the message.

*/ inline const Layout& GetLayout() const{ return m_layout; } /** *

The layout of the message.

*/ inline bool LayoutHasBeenSet() const { return m_layoutHasBeenSet; } /** *

The layout of the message.

*/ inline void SetLayout(const Layout& value) { m_layoutHasBeenSet = true; m_layout = value; } /** *

The layout of the message.

*/ inline void SetLayout(Layout&& value) { m_layoutHasBeenSet = true; m_layout = std::move(value); } /** *

The layout of the message.

*/ inline InAppMessage& WithLayout(const Layout& value) { SetLayout(value); return *this;} /** *

The layout of the message.

*/ inline InAppMessage& WithLayout(Layout&& value) { SetLayout(std::move(value)); return *this;} private: Aws::Vector m_content; bool m_contentHasBeenSet = false; Aws::Map m_customConfig; bool m_customConfigHasBeenSet = false; Layout m_layout; bool m_layoutHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws