AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TextPartValue.h
1
6#pragma once
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>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Notifications
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_NOTIFICATIONS_API TextPartValue() = default;
39 AWS_NOTIFICATIONS_API TextPartValue(Aws::Utils::Json::JsonView jsonValue);
40 AWS_NOTIFICATIONS_API TextPartValue& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline TextPartType GetType() const { return m_type; }
50 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
51 inline void SetType(TextPartType value) { m_typeHasBeenSet = true; m_type = value; }
52 inline TextPartValue& WithType(TextPartType value) { SetType(value); return *this;}
54
56
60 inline const Aws::String& GetDisplayText() const { return m_displayText; }
61 inline bool DisplayTextHasBeenSet() const { return m_displayTextHasBeenSet; }
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>
65 TextPartValue& WithDisplayText(DisplayTextT&& value) { SetDisplayText(std::forward<DisplayTextT>(value)); return *this;}
67
69
72 inline const Aws::Map<LocaleCode, Aws::String>& GetTextByLocale() const { return m_textByLocale; }
73 inline bool TextByLocaleHasBeenSet() const { return m_textByLocaleHasBeenSet; }
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>>
77 TextPartValue& WithTextByLocale(TextByLocaleT&& value) { SetTextByLocale(std::forward<TextByLocaleT>(value)); return *this;}
79 m_textByLocaleHasBeenSet = true; m_textByLocale.emplace(key, value); return *this;
80 }
82
84
87 inline const Aws::String& GetUrl() const { return m_url; }
88 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
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>
92 TextPartValue& WithUrl(UrlT&& value) { SetUrl(std::forward<UrlT>(value)); return *this;}
94 private:
95
97 bool m_typeHasBeenSet = false;
98
99 Aws::String m_displayText;
100 bool m_displayTextHasBeenSet = false;
101
103 bool m_textByLocaleHasBeenSet = false;
104
105 Aws::String m_url;
106 bool m_urlHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace Notifications
111} // namespace Aws
void SetTextByLocale(TextByLocaleT &&value)
TextPartValue & AddTextByLocale(LocaleCode key, Aws::String value)
TextPartValue & WithDisplayText(DisplayTextT &&value)
const Aws::String & GetDisplayText() const
AWS_NOTIFICATIONS_API TextPartValue()=default
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)
TextPartValue & WithType(TextPartType value)
AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() 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