7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/notifications/Notifications_EXPORTS.h>
10#include <aws/notifications/model/LocaleCode.h>
11#include <aws/notifications/model/TextPartType.h>
22namespace Notifications {
46 m_typeHasBeenSet =
true;
62 template <
typename DisplayTextT = Aws::String>
64 m_displayTextHasBeenSet =
true;
65 m_displayText = std::forward<DisplayTextT>(value);
67 template <
typename DisplayTextT = Aws::String>
80 template <
typename TextByLocaleT = Aws::Map<LocaleCode, Aws::String>>
82 m_textByLocaleHasBeenSet =
true;
83 m_textByLocale = std::forward<TextByLocaleT>(value);
85 template <
typename TextByLocaleT = Aws::Map<LocaleCode, Aws::String>>
91 m_textByLocaleHasBeenSet =
true;
92 m_textByLocale.emplace(key, value);
103 template <
typename UrlT = Aws::String>
105 m_urlHasBeenSet =
true;
106 m_url = std::forward<UrlT>(value);
108 template <
typename UrlT = Aws::String>
110 SetUrl(std::forward<UrlT>(value));
122 bool m_typeHasBeenSet =
false;
123 bool m_displayTextHasBeenSet =
false;
124 bool m_textByLocaleHasBeenSet =
false;
125 bool m_urlHasBeenSet =
false;
bool TypeHasBeenSet() const
bool TextByLocaleHasBeenSet() const
void SetTextByLocale(TextByLocaleT &&value)
TextPartValue & AddTextByLocale(LocaleCode key, Aws::String value)
TextPartValue & WithDisplayText(DisplayTextT &&value)
void SetType(TextPartType value)
const Aws::String & GetDisplayText() const
AWS_NOTIFICATIONS_API TextPartValue()=default
TextPartType GetType() const
void SetUrl(UrlT &&value)
const Aws::String & GetUrl() const
TextPartValue & WithTextByLocale(TextByLocaleT &&value)
TextPartValue & WithUrl(UrlT &&value)
const Aws::Map< LocaleCode, Aws::String > & GetTextByLocale() const
AWS_NOTIFICATIONS_API TextPartValue & operator=(Aws::Utils::Json::JsonView jsonValue)
bool UrlHasBeenSet() const
TextPartValue & WithType(TextPartType value)
AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
bool DisplayTextHasBeenSet() const
void SetDisplayText(DisplayTextT &&value)
AWS_NOTIFICATIONS_API TextPartValue(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue