AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
AddressConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/pinpoint/Pinpoint_EXPORTS.h>
11#include <aws/pinpoint/model/ChannelType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Pinpoint {
23namespace Model {
24
32 public:
33 AWS_PINPOINT_API AddressConfiguration() = default;
36 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetBodyOverride() const { return m_bodyOverride; }
44 inline bool BodyOverrideHasBeenSet() const { return m_bodyOverrideHasBeenSet; }
45 template <typename BodyOverrideT = Aws::String>
46 void SetBodyOverride(BodyOverrideT&& value) {
47 m_bodyOverrideHasBeenSet = true;
48 m_bodyOverride = std::forward<BodyOverrideT>(value);
49 }
50 template <typename BodyOverrideT = Aws::String>
51 AddressConfiguration& WithBodyOverride(BodyOverrideT&& value) {
52 SetBodyOverride(std::forward<BodyOverrideT>(value));
53 return *this;
54 }
56
58
61 inline ChannelType GetChannelType() const { return m_channelType; }
62 inline bool ChannelTypeHasBeenSet() const { return m_channelTypeHasBeenSet; }
63 inline void SetChannelType(ChannelType value) {
64 m_channelTypeHasBeenSet = true;
65 m_channelType = value;
66 }
68 SetChannelType(value);
69 return *this;
70 }
72
74
81 inline const Aws::Map<Aws::String, Aws::String>& GetContext() const { return m_context; }
82 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
83 template <typename ContextT = Aws::Map<Aws::String, Aws::String>>
84 void SetContext(ContextT&& value) {
85 m_contextHasBeenSet = true;
86 m_context = std::forward<ContextT>(value);
87 }
88 template <typename ContextT = Aws::Map<Aws::String, Aws::String>>
89 AddressConfiguration& WithContext(ContextT&& value) {
90 SetContext(std::forward<ContextT>(value));
91 return *this;
92 }
93 template <typename ContextKeyT = Aws::String, typename ContextValueT = Aws::String>
94 AddressConfiguration& AddContext(ContextKeyT&& key, ContextValueT&& value) {
95 m_contextHasBeenSet = true;
96 m_context.emplace(std::forward<ContextKeyT>(key), std::forward<ContextValueT>(value));
97 return *this;
98 }
100
102
106 inline const Aws::String& GetRawContent() const { return m_rawContent; }
107 inline bool RawContentHasBeenSet() const { return m_rawContentHasBeenSet; }
108 template <typename RawContentT = Aws::String>
109 void SetRawContent(RawContentT&& value) {
110 m_rawContentHasBeenSet = true;
111 m_rawContent = std::forward<RawContentT>(value);
112 }
113 template <typename RawContentT = Aws::String>
114 AddressConfiguration& WithRawContent(RawContentT&& value) {
115 SetRawContent(std::forward<RawContentT>(value));
116 return *this;
117 }
119
121
126 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetSubstitutions() const { return m_substitutions; }
127 inline bool SubstitutionsHasBeenSet() const { return m_substitutionsHasBeenSet; }
128 template <typename SubstitutionsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
129 void SetSubstitutions(SubstitutionsT&& value) {
130 m_substitutionsHasBeenSet = true;
131 m_substitutions = std::forward<SubstitutionsT>(value);
132 }
133 template <typename SubstitutionsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
134 AddressConfiguration& WithSubstitutions(SubstitutionsT&& value) {
135 SetSubstitutions(std::forward<SubstitutionsT>(value));
136 return *this;
137 }
138 template <typename SubstitutionsKeyT = Aws::String, typename SubstitutionsValueT = Aws::Vector<Aws::String>>
139 AddressConfiguration& AddSubstitutions(SubstitutionsKeyT&& key, SubstitutionsValueT&& value) {
140 m_substitutionsHasBeenSet = true;
141 m_substitutions.emplace(std::forward<SubstitutionsKeyT>(key), std::forward<SubstitutionsValueT>(value));
142 return *this;
143 }
145
147
151 inline const Aws::String& GetTitleOverride() const { return m_titleOverride; }
152 inline bool TitleOverrideHasBeenSet() const { return m_titleOverrideHasBeenSet; }
153 template <typename TitleOverrideT = Aws::String>
154 void SetTitleOverride(TitleOverrideT&& value) {
155 m_titleOverrideHasBeenSet = true;
156 m_titleOverride = std::forward<TitleOverrideT>(value);
157 }
158 template <typename TitleOverrideT = Aws::String>
159 AddressConfiguration& WithTitleOverride(TitleOverrideT&& value) {
160 SetTitleOverride(std::forward<TitleOverrideT>(value));
161 return *this;
162 }
164 private:
165 Aws::String m_bodyOverride;
166 bool m_bodyOverrideHasBeenSet = false;
167
168 ChannelType m_channelType{ChannelType::NOT_SET};
169 bool m_channelTypeHasBeenSet = false;
170
172 bool m_contextHasBeenSet = false;
173
174 Aws::String m_rawContent;
175 bool m_rawContentHasBeenSet = false;
176
178 bool m_substitutionsHasBeenSet = false;
179
180 Aws::String m_titleOverride;
181 bool m_titleOverrideHasBeenSet = false;
182};
183
184} // namespace Model
185} // namespace Pinpoint
186} // namespace Aws
AddressConfiguration & WithContext(ContextT &&value)
AddressConfiguration & WithSubstitutions(SubstitutionsT &&value)
AWS_PINPOINT_API AddressConfiguration()=default
const Aws::Map< Aws::String, Aws::String > & GetContext() const
AddressConfiguration & AddSubstitutions(SubstitutionsKeyT &&key, SubstitutionsValueT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetSubstitutions() const
AddressConfiguration & WithChannelType(ChannelType value)
AWS_PINPOINT_API AddressConfiguration(Aws::Utils::Json::JsonView jsonValue)
AddressConfiguration & WithTitleOverride(TitleOverrideT &&value)
AWS_PINPOINT_API AddressConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AddressConfiguration & WithRawContent(RawContentT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
AddressConfiguration & WithBodyOverride(BodyOverrideT &&value)
AddressConfiguration & AddContext(ContextKeyT &&key, ContextValueT &&value)
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