AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
EndpointSendConfiguration.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
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Pinpoint {
22namespace Model {
23
31 public:
32 AWS_PINPOINT_API EndpointSendConfiguration() = default;
35 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetBodyOverride() const { return m_bodyOverride; }
43 inline bool BodyOverrideHasBeenSet() const { return m_bodyOverrideHasBeenSet; }
44 template <typename BodyOverrideT = Aws::String>
45 void SetBodyOverride(BodyOverrideT&& value) {
46 m_bodyOverrideHasBeenSet = true;
47 m_bodyOverride = std::forward<BodyOverrideT>(value);
48 }
49 template <typename BodyOverrideT = Aws::String>
51 SetBodyOverride(std::forward<BodyOverrideT>(value));
52 return *this;
53 }
55
57
63 inline const Aws::Map<Aws::String, Aws::String>& GetContext() const { return m_context; }
64 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
65 template <typename ContextT = Aws::Map<Aws::String, Aws::String>>
66 void SetContext(ContextT&& value) {
67 m_contextHasBeenSet = true;
68 m_context = std::forward<ContextT>(value);
69 }
70 template <typename ContextT = Aws::Map<Aws::String, Aws::String>>
72 SetContext(std::forward<ContextT>(value));
73 return *this;
74 }
75 template <typename ContextKeyT = Aws::String, typename ContextValueT = Aws::String>
76 EndpointSendConfiguration& AddContext(ContextKeyT&& key, ContextValueT&& value) {
77 m_contextHasBeenSet = true;
78 m_context.emplace(std::forward<ContextKeyT>(key), std::forward<ContextValueT>(value));
79 return *this;
80 }
82
84
88 inline const Aws::String& GetRawContent() const { return m_rawContent; }
89 inline bool RawContentHasBeenSet() const { return m_rawContentHasBeenSet; }
90 template <typename RawContentT = Aws::String>
91 void SetRawContent(RawContentT&& value) {
92 m_rawContentHasBeenSet = true;
93 m_rawContent = std::forward<RawContentT>(value);
94 }
95 template <typename RawContentT = Aws::String>
97 SetRawContent(std::forward<RawContentT>(value));
98 return *this;
99 }
101
103
108 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetSubstitutions() const { return m_substitutions; }
109 inline bool SubstitutionsHasBeenSet() const { return m_substitutionsHasBeenSet; }
110 template <typename SubstitutionsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
111 void SetSubstitutions(SubstitutionsT&& value) {
112 m_substitutionsHasBeenSet = true;
113 m_substitutions = std::forward<SubstitutionsT>(value);
114 }
115 template <typename SubstitutionsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
117 SetSubstitutions(std::forward<SubstitutionsT>(value));
118 return *this;
119 }
120 template <typename SubstitutionsKeyT = Aws::String, typename SubstitutionsValueT = Aws::Vector<Aws::String>>
121 EndpointSendConfiguration& AddSubstitutions(SubstitutionsKeyT&& key, SubstitutionsValueT&& value) {
122 m_substitutionsHasBeenSet = true;
123 m_substitutions.emplace(std::forward<SubstitutionsKeyT>(key), std::forward<SubstitutionsValueT>(value));
124 return *this;
125 }
127
129
133 inline const Aws::String& GetTitleOverride() const { return m_titleOverride; }
134 inline bool TitleOverrideHasBeenSet() const { return m_titleOverrideHasBeenSet; }
135 template <typename TitleOverrideT = Aws::String>
136 void SetTitleOverride(TitleOverrideT&& value) {
137 m_titleOverrideHasBeenSet = true;
138 m_titleOverride = std::forward<TitleOverrideT>(value);
139 }
140 template <typename TitleOverrideT = Aws::String>
142 SetTitleOverride(std::forward<TitleOverrideT>(value));
143 return *this;
144 }
146 private:
147 Aws::String m_bodyOverride;
148
150
151 Aws::String m_rawContent;
152
154
155 Aws::String m_titleOverride;
156 bool m_bodyOverrideHasBeenSet = false;
157 bool m_contextHasBeenSet = false;
158 bool m_rawContentHasBeenSet = false;
159 bool m_substitutionsHasBeenSet = false;
160 bool m_titleOverrideHasBeenSet = false;
161};
162
163} // namespace Model
164} // namespace Pinpoint
165} // namespace Aws
EndpointSendConfiguration & WithBodyOverride(BodyOverrideT &&value)
AWS_PINPOINT_API EndpointSendConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetContext() const
EndpointSendConfiguration & AddSubstitutions(SubstitutionsKeyT &&key, SubstitutionsValueT &&value)
EndpointSendConfiguration & WithSubstitutions(SubstitutionsT &&value)
EndpointSendConfiguration & WithRawContent(RawContentT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PINPOINT_API EndpointSendConfiguration(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetSubstitutions() const
EndpointSendConfiguration & AddContext(ContextKeyT &&key, ContextValueT &&value)
EndpointSendConfiguration & WithTitleOverride(TitleOverrideT &&value)
AWS_PINPOINT_API EndpointSendConfiguration()=default
EndpointSendConfiguration & WithContext(ContextT &&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