7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/pinpoint/model/Layout.h>
11#include <aws/pinpoint/model/InAppMessageContent.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
51 template<
typename ContentT = Aws::Vector<InAppMessageContent>>
52 void SetContent(ContentT&& value) { m_contentHasBeenSet =
true; m_content = std::forward<ContentT>(value); }
53 template<
typename ContentT = Aws::Vector<InAppMessageContent>>
55 template<
typename ContentT = InAppMessageContent>
56 InAppMessage&
AddContent(ContentT&& value) { m_contentHasBeenSet =
true; m_content.emplace_back(std::forward<ContentT>(value));
return *
this; }
65 template<
typename CustomConfigT = Aws::Map<Aws::String, Aws::String>>
66 void SetCustomConfig(CustomConfigT&& value) { m_customConfigHasBeenSet =
true; m_customConfig = std::forward<CustomConfigT>(value); }
67 template<
typename CustomConfigT = Aws::Map<Aws::String, Aws::String>>
69 template<
typename CustomConfigKeyT = Aws::String,
typename CustomConfigValueT = Aws::String>
71 m_customConfigHasBeenSet =
true; m_customConfig.emplace(std::forward<CustomConfigKeyT>(key), std::forward<CustomConfigValueT>(value));
return *
this;
81 inline void SetLayout(
Layout value) { m_layoutHasBeenSet =
true; m_layout = value; }
87 bool m_contentHasBeenSet =
false;
90 bool m_customConfigHasBeenSet =
false;
93 bool m_layoutHasBeenSet =
false;
AWS_PINPOINT_API InAppMessage(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetCustomConfig() const
AWS_PINPOINT_API InAppMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API InAppMessage()=default
InAppMessage & WithLayout(Layout value)
void SetLayout(Layout value)
void SetContent(ContentT &&value)
InAppMessage & AddCustomConfig(CustomConfigKeyT &&key, CustomConfigValueT &&value)
bool CustomConfigHasBeenSet() const
InAppMessage & AddContent(ContentT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
InAppMessage & WithCustomConfig(CustomConfigT &&value)
bool ContentHasBeenSet() const
const Aws::Vector< InAppMessageContent > & GetContent() const
InAppMessage & WithContent(ContentT &&value)
void SetCustomConfig(CustomConfigT &&value)
bool LayoutHasBeenSet() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue