AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
MessageRequest.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/pinpoint/Pinpoint_EXPORTS.h>
10#include <aws/pinpoint/model/AddressConfiguration.h>
11#include <aws/pinpoint/model/DirectMessageConfiguration.h>
12#include <aws/pinpoint/model/EndpointSendConfiguration.h>
13#include <aws/pinpoint/model/TemplateConfiguration.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Pinpoint {
25namespace Model {
26
34 public:
35 AWS_PINPOINT_API MessageRequest() = default;
36 AWS_PINPOINT_API MessageRequest(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
51 inline const Aws::Map<Aws::String, AddressConfiguration>& GetAddresses() const { return m_addresses; }
52 inline bool AddressesHasBeenSet() const { return m_addressesHasBeenSet; }
53 template <typename AddressesT = Aws::Map<Aws::String, AddressConfiguration>>
54 void SetAddresses(AddressesT&& value) {
55 m_addressesHasBeenSet = true;
56 m_addresses = std::forward<AddressesT>(value);
57 }
58 template <typename AddressesT = Aws::Map<Aws::String, AddressConfiguration>>
59 MessageRequest& WithAddresses(AddressesT&& value) {
60 SetAddresses(std::forward<AddressesT>(value));
61 return *this;
62 }
63 template <typename AddressesKeyT = Aws::String, typename AddressesValueT = AddressConfiguration>
64 MessageRequest& AddAddresses(AddressesKeyT&& key, AddressesValueT&& value) {
65 m_addressesHasBeenSet = true;
66 m_addresses.emplace(std::forward<AddressesKeyT>(key), std::forward<AddressesValueT>(value));
67 return *this;
68 }
70
72
77 inline const Aws::Map<Aws::String, Aws::String>& GetContext() const { return m_context; }
78 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
79 template <typename ContextT = Aws::Map<Aws::String, Aws::String>>
80 void SetContext(ContextT&& value) {
81 m_contextHasBeenSet = true;
82 m_context = std::forward<ContextT>(value);
83 }
84 template <typename ContextT = Aws::Map<Aws::String, Aws::String>>
85 MessageRequest& WithContext(ContextT&& value) {
86 SetContext(std::forward<ContextT>(value));
87 return *this;
88 }
89 template <typename ContextKeyT = Aws::String, typename ContextValueT = Aws::String>
90 MessageRequest& AddContext(ContextKeyT&& key, ContextValueT&& value) {
91 m_contextHasBeenSet = true;
92 m_context.emplace(std::forward<ContextKeyT>(key), std::forward<ContextValueT>(value));
93 return *this;
94 }
96
98
107 inline const Aws::Map<Aws::String, EndpointSendConfiguration>& GetEndpoints() const { return m_endpoints; }
108 inline bool EndpointsHasBeenSet() const { return m_endpointsHasBeenSet; }
109 template <typename EndpointsT = Aws::Map<Aws::String, EndpointSendConfiguration>>
110 void SetEndpoints(EndpointsT&& value) {
111 m_endpointsHasBeenSet = true;
112 m_endpoints = std::forward<EndpointsT>(value);
113 }
114 template <typename EndpointsT = Aws::Map<Aws::String, EndpointSendConfiguration>>
115 MessageRequest& WithEndpoints(EndpointsT&& value) {
116 SetEndpoints(std::forward<EndpointsT>(value));
117 return *this;
118 }
119 template <typename EndpointsKeyT = Aws::String, typename EndpointsValueT = EndpointSendConfiguration>
120 MessageRequest& AddEndpoints(EndpointsKeyT&& key, EndpointsValueT&& value) {
121 m_endpointsHasBeenSet = true;
122 m_endpoints.emplace(std::forward<EndpointsKeyT>(key), std::forward<EndpointsValueT>(value));
123 return *this;
124 }
126
128
132 inline const DirectMessageConfiguration& GetMessageConfiguration() const { return m_messageConfiguration; }
133 inline bool MessageConfigurationHasBeenSet() const { return m_messageConfigurationHasBeenSet; }
134 template <typename MessageConfigurationT = DirectMessageConfiguration>
135 void SetMessageConfiguration(MessageConfigurationT&& value) {
136 m_messageConfigurationHasBeenSet = true;
137 m_messageConfiguration = std::forward<MessageConfigurationT>(value);
138 }
139 template <typename MessageConfigurationT = DirectMessageConfiguration>
140 MessageRequest& WithMessageConfiguration(MessageConfigurationT&& value) {
141 SetMessageConfiguration(std::forward<MessageConfigurationT>(value));
142 return *this;
143 }
145
147
150 inline const TemplateConfiguration& GetTemplateConfiguration() const { return m_templateConfiguration; }
151 inline bool TemplateConfigurationHasBeenSet() const { return m_templateConfigurationHasBeenSet; }
152 template <typename TemplateConfigurationT = TemplateConfiguration>
153 void SetTemplateConfiguration(TemplateConfigurationT&& value) {
154 m_templateConfigurationHasBeenSet = true;
155 m_templateConfiguration = std::forward<TemplateConfigurationT>(value);
156 }
157 template <typename TemplateConfigurationT = TemplateConfiguration>
158 MessageRequest& WithTemplateConfiguration(TemplateConfigurationT&& value) {
159 SetTemplateConfiguration(std::forward<TemplateConfigurationT>(value));
160 return *this;
161 }
163
165
169 inline const Aws::String& GetTraceId() const { return m_traceId; }
170 inline bool TraceIdHasBeenSet() const { return m_traceIdHasBeenSet; }
171 template <typename TraceIdT = Aws::String>
172 void SetTraceId(TraceIdT&& value) {
173 m_traceIdHasBeenSet = true;
174 m_traceId = std::forward<TraceIdT>(value);
175 }
176 template <typename TraceIdT = Aws::String>
177 MessageRequest& WithTraceId(TraceIdT&& value) {
178 SetTraceId(std::forward<TraceIdT>(value));
179 return *this;
180 }
182 private:
184 bool m_addressesHasBeenSet = false;
185
187 bool m_contextHasBeenSet = false;
188
190 bool m_endpointsHasBeenSet = false;
191
192 DirectMessageConfiguration m_messageConfiguration;
193 bool m_messageConfigurationHasBeenSet = false;
194
195 TemplateConfiguration m_templateConfiguration;
196 bool m_templateConfigurationHasBeenSet = false;
197
198 Aws::String m_traceId;
199 bool m_traceIdHasBeenSet = false;
200};
201
202} // namespace Model
203} // namespace Pinpoint
204} // namespace Aws
const Aws::Map< Aws::String, EndpointSendConfiguration > & GetEndpoints() const
AWS_PINPOINT_API MessageRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMessageConfiguration(MessageConfigurationT &&value)
MessageRequest & WithEndpoints(EndpointsT &&value)
const DirectMessageConfiguration & GetMessageConfiguration() const
MessageRequest & WithTraceId(TraceIdT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PINPOINT_API MessageRequest(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, AddressConfiguration > & GetAddresses() const
const Aws::Map< Aws::String, Aws::String > & GetContext() const
void SetAddresses(AddressesT &&value)
MessageRequest & WithContext(ContextT &&value)
const TemplateConfiguration & GetTemplateConfiguration() const
MessageRequest & WithTemplateConfiguration(TemplateConfigurationT &&value)
void SetTemplateConfiguration(TemplateConfigurationT &&value)
MessageRequest & AddAddresses(AddressesKeyT &&key, AddressesValueT &&value)
AWS_PINPOINT_API MessageRequest()=default
MessageRequest & WithMessageConfiguration(MessageConfigurationT &&value)
MessageRequest & WithAddresses(AddressesT &&value)
const Aws::String & GetTraceId() const
MessageRequest & AddEndpoints(EndpointsKeyT &&key, EndpointsValueT &&value)
void SetEndpoints(EndpointsT &&value)
MessageRequest & 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