AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
SendUsersMessageRequest.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/DirectMessageConfiguration.h>
11#include <aws/pinpoint/model/EndpointSendConfiguration.h>
12#include <aws/pinpoint/model/TemplateConfiguration.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Pinpoint {
24namespace Model {
25
34 public:
35 AWS_PINPOINT_API SendUsersMessageRequest() = default;
38 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
47 inline const Aws::Map<Aws::String, Aws::String>& GetContext() const { return m_context; }
48 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
49 template <typename ContextT = Aws::Map<Aws::String, Aws::String>>
50 void SetContext(ContextT&& value) {
51 m_contextHasBeenSet = true;
52 m_context = std::forward<ContextT>(value);
53 }
54 template <typename ContextT = Aws::Map<Aws::String, Aws::String>>
56 SetContext(std::forward<ContextT>(value));
57 return *this;
58 }
59 template <typename ContextKeyT = Aws::String, typename ContextValueT = Aws::String>
60 SendUsersMessageRequest& AddContext(ContextKeyT&& key, ContextValueT&& value) {
61 m_contextHasBeenSet = true;
62 m_context.emplace(std::forward<ContextKeyT>(key), std::forward<ContextValueT>(value));
63 return *this;
64 }
66
68
72 inline const DirectMessageConfiguration& GetMessageConfiguration() const { return m_messageConfiguration; }
73 inline bool MessageConfigurationHasBeenSet() const { return m_messageConfigurationHasBeenSet; }
74 template <typename MessageConfigurationT = DirectMessageConfiguration>
75 void SetMessageConfiguration(MessageConfigurationT&& value) {
76 m_messageConfigurationHasBeenSet = true;
77 m_messageConfiguration = std::forward<MessageConfigurationT>(value);
78 }
79 template <typename MessageConfigurationT = DirectMessageConfiguration>
80 SendUsersMessageRequest& WithMessageConfiguration(MessageConfigurationT&& value) {
81 SetMessageConfiguration(std::forward<MessageConfigurationT>(value));
82 return *this;
83 }
85
87
90 inline const TemplateConfiguration& GetTemplateConfiguration() const { return m_templateConfiguration; }
91 inline bool TemplateConfigurationHasBeenSet() const { return m_templateConfigurationHasBeenSet; }
92 template <typename TemplateConfigurationT = TemplateConfiguration>
93 void SetTemplateConfiguration(TemplateConfigurationT&& value) {
94 m_templateConfigurationHasBeenSet = true;
95 m_templateConfiguration = std::forward<TemplateConfigurationT>(value);
96 }
97 template <typename TemplateConfigurationT = TemplateConfiguration>
98 SendUsersMessageRequest& WithTemplateConfiguration(TemplateConfigurationT&& value) {
99 SetTemplateConfiguration(std::forward<TemplateConfigurationT>(value));
100 return *this;
101 }
103
105
109 inline const Aws::String& GetTraceId() const { return m_traceId; }
110 inline bool TraceIdHasBeenSet() const { return m_traceIdHasBeenSet; }
111 template <typename TraceIdT = Aws::String>
112 void SetTraceId(TraceIdT&& value) {
113 m_traceIdHasBeenSet = true;
114 m_traceId = std::forward<TraceIdT>(value);
115 }
116 template <typename TraceIdT = Aws::String>
118 SetTraceId(std::forward<TraceIdT>(value));
119 return *this;
120 }
122
124
132 inline const Aws::Map<Aws::String, EndpointSendConfiguration>& GetUsers() const { return m_users; }
133 inline bool UsersHasBeenSet() const { return m_usersHasBeenSet; }
134 template <typename UsersT = Aws::Map<Aws::String, EndpointSendConfiguration>>
135 void SetUsers(UsersT&& value) {
136 m_usersHasBeenSet = true;
137 m_users = std::forward<UsersT>(value);
138 }
139 template <typename UsersT = Aws::Map<Aws::String, EndpointSendConfiguration>>
141 SetUsers(std::forward<UsersT>(value));
142 return *this;
143 }
144 template <typename UsersKeyT = Aws::String, typename UsersValueT = EndpointSendConfiguration>
145 SendUsersMessageRequest& AddUsers(UsersKeyT&& key, UsersValueT&& value) {
146 m_usersHasBeenSet = true;
147 m_users.emplace(std::forward<UsersKeyT>(key), std::forward<UsersValueT>(value));
148 return *this;
149 }
151 private:
153
154 DirectMessageConfiguration m_messageConfiguration;
155
156 TemplateConfiguration m_templateConfiguration;
157
158 Aws::String m_traceId;
159
161 bool m_contextHasBeenSet = false;
162 bool m_messageConfigurationHasBeenSet = false;
163 bool m_templateConfigurationHasBeenSet = false;
164 bool m_traceIdHasBeenSet = false;
165 bool m_usersHasBeenSet = false;
166};
167
168} // namespace Model
169} // namespace Pinpoint
170} // namespace Aws
const TemplateConfiguration & GetTemplateConfiguration() const
SendUsersMessageRequest & WithUsers(UsersT &&value)
AWS_PINPOINT_API SendUsersMessageRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTemplateConfiguration(TemplateConfigurationT &&value)
SendUsersMessageRequest & WithMessageConfiguration(MessageConfigurationT &&value)
SendUsersMessageRequest & WithContext(ContextT &&value)
SendUsersMessageRequest & WithTemplateConfiguration(TemplateConfigurationT &&value)
SendUsersMessageRequest & AddContext(ContextKeyT &&key, ContextValueT &&value)
SendUsersMessageRequest & WithTraceId(TraceIdT &&value)
AWS_PINPOINT_API SendUsersMessageRequest(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API SendUsersMessageRequest()=default
const DirectMessageConfiguration & GetMessageConfiguration() const
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, EndpointSendConfiguration > & GetUsers() const
const Aws::Map< Aws::String, Aws::String > & GetContext() const
void SetMessageConfiguration(MessageConfigurationT &&value)
SendUsersMessageRequest & AddUsers(UsersKeyT &&key, UsersValueT &&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