AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SendUsersMessageRequest.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/pinpoint/model/DirectMessageConfiguration.h>
10#include <aws/pinpoint/model/TemplateConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/pinpoint/model/EndpointSendConfiguration.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Pinpoint
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_PINPOINT_API SendUsersMessageRequest();
43 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
53 inline const Aws::Map<Aws::String, Aws::String>& GetContext() const{ return m_context; }
54 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
55 inline void SetContext(const Aws::Map<Aws::String, Aws::String>& value) { m_contextHasBeenSet = true; m_context = value; }
56 inline void SetContext(Aws::Map<Aws::String, Aws::String>&& value) { m_contextHasBeenSet = true; m_context = std::move(value); }
58 inline SendUsersMessageRequest& WithContext(Aws::Map<Aws::String, Aws::String>&& value) { SetContext(std::move(value)); return *this;}
59 inline SendUsersMessageRequest& AddContext(const Aws::String& key, const Aws::String& value) { m_contextHasBeenSet = true; m_context.emplace(key, value); return *this; }
60 inline SendUsersMessageRequest& AddContext(Aws::String&& key, const Aws::String& value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), value); return *this; }
61 inline SendUsersMessageRequest& AddContext(const Aws::String& key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(key, std::move(value)); return *this; }
62 inline SendUsersMessageRequest& AddContext(Aws::String&& key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), std::move(value)); return *this; }
63 inline SendUsersMessageRequest& AddContext(const char* key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(key, std::move(value)); return *this; }
64 inline SendUsersMessageRequest& AddContext(Aws::String&& key, const char* value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), value); return *this; }
65 inline SendUsersMessageRequest& AddContext(const char* key, const char* value) { m_contextHasBeenSet = true; m_context.emplace(key, value); return *this; }
67
69
73 inline const DirectMessageConfiguration& GetMessageConfiguration() const{ return m_messageConfiguration; }
74 inline bool MessageConfigurationHasBeenSet() const { return m_messageConfigurationHasBeenSet; }
75 inline void SetMessageConfiguration(const DirectMessageConfiguration& value) { m_messageConfigurationHasBeenSet = true; m_messageConfiguration = value; }
76 inline void SetMessageConfiguration(DirectMessageConfiguration&& value) { m_messageConfigurationHasBeenSet = true; m_messageConfiguration = std::move(value); }
80
82
85 inline const TemplateConfiguration& GetTemplateConfiguration() const{ return m_templateConfiguration; }
86 inline bool TemplateConfigurationHasBeenSet() const { return m_templateConfigurationHasBeenSet; }
87 inline void SetTemplateConfiguration(const TemplateConfiguration& value) { m_templateConfigurationHasBeenSet = true; m_templateConfiguration = value; }
88 inline void SetTemplateConfiguration(TemplateConfiguration&& value) { m_templateConfigurationHasBeenSet = true; m_templateConfiguration = std::move(value); }
92
94
98 inline const Aws::String& GetTraceId() const{ return m_traceId; }
99 inline bool TraceIdHasBeenSet() const { return m_traceIdHasBeenSet; }
100 inline void SetTraceId(const Aws::String& value) { m_traceIdHasBeenSet = true; m_traceId = value; }
101 inline void SetTraceId(Aws::String&& value) { m_traceIdHasBeenSet = true; m_traceId = std::move(value); }
102 inline void SetTraceId(const char* value) { m_traceIdHasBeenSet = true; m_traceId.assign(value); }
103 inline SendUsersMessageRequest& WithTraceId(const Aws::String& value) { SetTraceId(value); return *this;}
104 inline SendUsersMessageRequest& WithTraceId(Aws::String&& value) { SetTraceId(std::move(value)); return *this;}
105 inline SendUsersMessageRequest& WithTraceId(const char* value) { SetTraceId(value); return *this;}
107
109
117 inline const Aws::Map<Aws::String, EndpointSendConfiguration>& GetUsers() const{ return m_users; }
118 inline bool UsersHasBeenSet() const { return m_usersHasBeenSet; }
119 inline void SetUsers(const Aws::Map<Aws::String, EndpointSendConfiguration>& value) { m_usersHasBeenSet = true; m_users = value; }
120 inline void SetUsers(Aws::Map<Aws::String, EndpointSendConfiguration>&& value) { m_usersHasBeenSet = true; m_users = std::move(value); }
123 inline SendUsersMessageRequest& AddUsers(const Aws::String& key, const EndpointSendConfiguration& value) { m_usersHasBeenSet = true; m_users.emplace(key, value); return *this; }
124 inline SendUsersMessageRequest& AddUsers(Aws::String&& key, const EndpointSendConfiguration& value) { m_usersHasBeenSet = true; m_users.emplace(std::move(key), value); return *this; }
125 inline SendUsersMessageRequest& AddUsers(const Aws::String& key, EndpointSendConfiguration&& value) { m_usersHasBeenSet = true; m_users.emplace(key, std::move(value)); return *this; }
126 inline SendUsersMessageRequest& AddUsers(Aws::String&& key, EndpointSendConfiguration&& value) { m_usersHasBeenSet = true; m_users.emplace(std::move(key), std::move(value)); return *this; }
127 inline SendUsersMessageRequest& AddUsers(const char* key, EndpointSendConfiguration&& value) { m_usersHasBeenSet = true; m_users.emplace(key, std::move(value)); return *this; }
128 inline SendUsersMessageRequest& AddUsers(const char* key, const EndpointSendConfiguration& value) { m_usersHasBeenSet = true; m_users.emplace(key, value); return *this; }
130 private:
131
133 bool m_contextHasBeenSet = false;
134
135 DirectMessageConfiguration m_messageConfiguration;
136 bool m_messageConfigurationHasBeenSet = false;
137
138 TemplateConfiguration m_templateConfiguration;
139 bool m_templateConfigurationHasBeenSet = false;
140
141 Aws::String m_traceId;
142 bool m_traceIdHasBeenSet = false;
143
145 bool m_usersHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace Pinpoint
150} // namespace Aws
SendUsersMessageRequest & WithContext(const Aws::Map< Aws::String, Aws::String > &value)
void SetTemplateConfiguration(TemplateConfiguration &&value)
SendUsersMessageRequest & WithUsers(Aws::Map< Aws::String, EndpointSendConfiguration > &&value)
const TemplateConfiguration & GetTemplateConfiguration() const
SendUsersMessageRequest & AddUsers(Aws::String &&key, EndpointSendConfiguration &&value)
AWS_PINPOINT_API SendUsersMessageRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
SendUsersMessageRequest & WithUsers(const Aws::Map< Aws::String, EndpointSendConfiguration > &value)
SendUsersMessageRequest & AddUsers(Aws::String &&key, const EndpointSendConfiguration &value)
void SetContext(Aws::Map< Aws::String, Aws::String > &&value)
SendUsersMessageRequest & AddContext(const Aws::String &key, Aws::String &&value)
SendUsersMessageRequest & WithContext(Aws::Map< Aws::String, Aws::String > &&value)
void SetUsers(const Aws::Map< Aws::String, EndpointSendConfiguration > &value)
SendUsersMessageRequest & WithMessageConfiguration(DirectMessageConfiguration &&value)
SendUsersMessageRequest & AddUsers(const char *key, const EndpointSendConfiguration &value)
SendUsersMessageRequest & AddContext(const char *key, Aws::String &&value)
SendUsersMessageRequest & AddContext(Aws::String &&key, const Aws::String &value)
void SetMessageConfiguration(DirectMessageConfiguration &&value)
SendUsersMessageRequest & AddContext(Aws::String &&key, Aws::String &&value)
void SetUsers(Aws::Map< Aws::String, EndpointSendConfiguration > &&value)
void SetTemplateConfiguration(const TemplateConfiguration &value)
SendUsersMessageRequest & AddContext(const char *key, const char *value)
SendUsersMessageRequest & WithTemplateConfiguration(const TemplateConfiguration &value)
AWS_PINPOINT_API SendUsersMessageRequest(Aws::Utils::Json::JsonView jsonValue)
SendUsersMessageRequest & AddContext(Aws::String &&key, const char *value)
void SetMessageConfiguration(const DirectMessageConfiguration &value)
void SetContext(const Aws::Map< Aws::String, Aws::String > &value)
const DirectMessageConfiguration & GetMessageConfiguration() const
SendUsersMessageRequest & AddUsers(const char *key, EndpointSendConfiguration &&value)
SendUsersMessageRequest & WithMessageConfiguration(const DirectMessageConfiguration &value)
SendUsersMessageRequest & AddContext(const Aws::String &key, const Aws::String &value)
SendUsersMessageRequest & WithTraceId(Aws::String &&value)
SendUsersMessageRequest & AddUsers(const Aws::String &key, const EndpointSendConfiguration &value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
SendUsersMessageRequest & WithTraceId(const Aws::String &value)
const Aws::Map< Aws::String, EndpointSendConfiguration > & GetUsers() const
const Aws::Map< Aws::String, Aws::String > & GetContext() const
SendUsersMessageRequest & WithTemplateConfiguration(TemplateConfiguration &&value)
SendUsersMessageRequest & AddUsers(const Aws::String &key, EndpointSendConfiguration &&value)
SendUsersMessageRequest & WithTraceId(const char *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