7#include <aws/notifications/Notifications_EXPORTS.h>
8#include <aws/notifications/model/TextPartType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/notifications/model/LocaleCode.h>
24namespace Notifications
62 template<
typename DisplayTextT = Aws::String>
63 void SetDisplayText(DisplayTextT&& value) { m_displayTextHasBeenSet =
true; m_displayText = std::forward<DisplayTextT>(value); }
64 template<
typename DisplayTextT = Aws::String>
74 template<
typename TextByLocaleT = Aws::Map<LocaleCode, Aws::String>>
75 void SetTextByLocale(TextByLocaleT&& value) { m_textByLocaleHasBeenSet =
true; m_textByLocale = std::forward<TextByLocaleT>(value); }
76 template<
typename TextByLocaleT = Aws::Map<LocaleCode, Aws::String>>
79 m_textByLocaleHasBeenSet =
true; m_textByLocale.emplace(key, value);
return *
this;
89 template<
typename UrlT = Aws::String>
90 void SetUrl(UrlT&& value) { m_urlHasBeenSet =
true; m_url = std::forward<UrlT>(value); }
91 template<
typename UrlT = Aws::String>
97 bool m_typeHasBeenSet =
false;
100 bool m_displayTextHasBeenSet =
false;
103 bool m_textByLocaleHasBeenSet =
false;
106 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