AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MessageRequest.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/AddressConfiguration.h>
13#include <aws/pinpoint/model/EndpointSendConfiguration.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Pinpoint
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_PINPOINT_API MessageRequest();
41 AWS_PINPOINT_API MessageRequest(Aws::Utils::Json::JsonView jsonValue);
43 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
57 inline const Aws::Map<Aws::String, AddressConfiguration>& GetAddresses() const{ return m_addresses; }
58 inline bool AddressesHasBeenSet() const { return m_addressesHasBeenSet; }
59 inline void SetAddresses(const Aws::Map<Aws::String, AddressConfiguration>& value) { m_addressesHasBeenSet = true; m_addresses = value; }
60 inline void SetAddresses(Aws::Map<Aws::String, AddressConfiguration>&& value) { m_addressesHasBeenSet = true; m_addresses = std::move(value); }
62 inline MessageRequest& WithAddresses(Aws::Map<Aws::String, AddressConfiguration>&& value) { SetAddresses(std::move(value)); return *this;}
63 inline MessageRequest& AddAddresses(const Aws::String& key, const AddressConfiguration& value) { m_addressesHasBeenSet = true; m_addresses.emplace(key, value); return *this; }
64 inline MessageRequest& AddAddresses(Aws::String&& key, const AddressConfiguration& value) { m_addressesHasBeenSet = true; m_addresses.emplace(std::move(key), value); return *this; }
65 inline MessageRequest& AddAddresses(const Aws::String& key, AddressConfiguration&& value) { m_addressesHasBeenSet = true; m_addresses.emplace(key, std::move(value)); return *this; }
66 inline MessageRequest& AddAddresses(Aws::String&& key, AddressConfiguration&& value) { m_addressesHasBeenSet = true; m_addresses.emplace(std::move(key), std::move(value)); return *this; }
67 inline MessageRequest& AddAddresses(const char* key, AddressConfiguration&& value) { m_addressesHasBeenSet = true; m_addresses.emplace(key, std::move(value)); return *this; }
68 inline MessageRequest& AddAddresses(const char* key, const AddressConfiguration& value) { m_addressesHasBeenSet = true; m_addresses.emplace(key, value); return *this; }
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 inline void SetContext(const Aws::Map<Aws::String, Aws::String>& value) { m_contextHasBeenSet = true; m_context = value; }
80 inline void SetContext(Aws::Map<Aws::String, Aws::String>&& value) { m_contextHasBeenSet = true; m_context = std::move(value); }
81 inline MessageRequest& WithContext(const Aws::Map<Aws::String, Aws::String>& value) { SetContext(value); return *this;}
82 inline MessageRequest& WithContext(Aws::Map<Aws::String, Aws::String>&& value) { SetContext(std::move(value)); return *this;}
83 inline MessageRequest& AddContext(const Aws::String& key, const Aws::String& value) { m_contextHasBeenSet = true; m_context.emplace(key, value); return *this; }
84 inline MessageRequest& AddContext(Aws::String&& key, const Aws::String& value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), value); return *this; }
85 inline MessageRequest& AddContext(const Aws::String& key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(key, std::move(value)); return *this; }
86 inline MessageRequest& AddContext(Aws::String&& key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), std::move(value)); return *this; }
87 inline MessageRequest& AddContext(const char* key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(key, std::move(value)); return *this; }
88 inline MessageRequest& AddContext(Aws::String&& key, const char* value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), value); return *this; }
89 inline MessageRequest& AddContext(const char* key, const char* value) { m_contextHasBeenSet = true; m_context.emplace(key, value); return *this; }
91
93
102 inline const Aws::Map<Aws::String, EndpointSendConfiguration>& GetEndpoints() const{ return m_endpoints; }
103 inline bool EndpointsHasBeenSet() const { return m_endpointsHasBeenSet; }
104 inline void SetEndpoints(const Aws::Map<Aws::String, EndpointSendConfiguration>& value) { m_endpointsHasBeenSet = true; m_endpoints = value; }
105 inline void SetEndpoints(Aws::Map<Aws::String, EndpointSendConfiguration>&& value) { m_endpointsHasBeenSet = true; m_endpoints = std::move(value); }
108 inline MessageRequest& AddEndpoints(const Aws::String& key, const EndpointSendConfiguration& value) { m_endpointsHasBeenSet = true; m_endpoints.emplace(key, value); return *this; }
109 inline MessageRequest& AddEndpoints(Aws::String&& key, const EndpointSendConfiguration& value) { m_endpointsHasBeenSet = true; m_endpoints.emplace(std::move(key), value); return *this; }
110 inline MessageRequest& AddEndpoints(const Aws::String& key, EndpointSendConfiguration&& value) { m_endpointsHasBeenSet = true; m_endpoints.emplace(key, std::move(value)); return *this; }
111 inline MessageRequest& AddEndpoints(Aws::String&& key, EndpointSendConfiguration&& value) { m_endpointsHasBeenSet = true; m_endpoints.emplace(std::move(key), std::move(value)); return *this; }
112 inline MessageRequest& AddEndpoints(const char* key, EndpointSendConfiguration&& value) { m_endpointsHasBeenSet = true; m_endpoints.emplace(key, std::move(value)); return *this; }
113 inline MessageRequest& AddEndpoints(const char* key, const EndpointSendConfiguration& value) { m_endpointsHasBeenSet = true; m_endpoints.emplace(key, value); return *this; }
115
117
121 inline const DirectMessageConfiguration& GetMessageConfiguration() const{ return m_messageConfiguration; }
122 inline bool MessageConfigurationHasBeenSet() const { return m_messageConfigurationHasBeenSet; }
123 inline void SetMessageConfiguration(const DirectMessageConfiguration& value) { m_messageConfigurationHasBeenSet = true; m_messageConfiguration = value; }
124 inline void SetMessageConfiguration(DirectMessageConfiguration&& value) { m_messageConfigurationHasBeenSet = true; m_messageConfiguration = std::move(value); }
128
130
133 inline const TemplateConfiguration& GetTemplateConfiguration() const{ return m_templateConfiguration; }
134 inline bool TemplateConfigurationHasBeenSet() const { return m_templateConfigurationHasBeenSet; }
135 inline void SetTemplateConfiguration(const TemplateConfiguration& value) { m_templateConfigurationHasBeenSet = true; m_templateConfiguration = value; }
136 inline void SetTemplateConfiguration(TemplateConfiguration&& value) { m_templateConfigurationHasBeenSet = true; m_templateConfiguration = std::move(value); }
140
142
146 inline const Aws::String& GetTraceId() const{ return m_traceId; }
147 inline bool TraceIdHasBeenSet() const { return m_traceIdHasBeenSet; }
148 inline void SetTraceId(const Aws::String& value) { m_traceIdHasBeenSet = true; m_traceId = value; }
149 inline void SetTraceId(Aws::String&& value) { m_traceIdHasBeenSet = true; m_traceId = std::move(value); }
150 inline void SetTraceId(const char* value) { m_traceIdHasBeenSet = true; m_traceId.assign(value); }
151 inline MessageRequest& WithTraceId(const Aws::String& value) { SetTraceId(value); return *this;}
152 inline MessageRequest& WithTraceId(Aws::String&& value) { SetTraceId(std::move(value)); return *this;}
153 inline MessageRequest& WithTraceId(const char* value) { SetTraceId(value); return *this;}
155 private:
156
158 bool m_addressesHasBeenSet = false;
159
161 bool m_contextHasBeenSet = false;
162
164 bool m_endpointsHasBeenSet = false;
165
166 DirectMessageConfiguration m_messageConfiguration;
167 bool m_messageConfigurationHasBeenSet = false;
168
169 TemplateConfiguration m_templateConfiguration;
170 bool m_templateConfigurationHasBeenSet = false;
171
172 Aws::String m_traceId;
173 bool m_traceIdHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace Pinpoint
178} // namespace Aws
void SetTemplateConfiguration(const TemplateConfiguration &value)
MessageRequest & WithTemplateConfiguration(TemplateConfiguration &&value)
const Aws::Map< Aws::String, EndpointSendConfiguration > & GetEndpoints() const
MessageRequest & AddContext(const Aws::String &key, Aws::String &&value)
void SetContext(Aws::Map< Aws::String, Aws::String > &&value)
AWS_PINPOINT_API MessageRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMessageConfiguration(const DirectMessageConfiguration &value)
MessageRequest & AddEndpoints(const char *key, const EndpointSendConfiguration &value)
const DirectMessageConfiguration & GetMessageConfiguration() const
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PINPOINT_API MessageRequest(Aws::Utils::Json::JsonView jsonValue)
MessageRequest & AddAddresses(Aws::String &&key, const AddressConfiguration &value)
const Aws::Map< Aws::String, AddressConfiguration > & GetAddresses() const
const Aws::Map< Aws::String, Aws::String > & GetContext() const
void SetEndpoints(const Aws::Map< Aws::String, EndpointSendConfiguration > &value)
MessageRequest & AddContext(Aws::String &&key, Aws::String &&value)
MessageRequest & AddEndpoints(Aws::String &&key, EndpointSendConfiguration &&value)
MessageRequest & WithTraceId(const char *value)
MessageRequest & WithTraceId(const Aws::String &value)
const TemplateConfiguration & GetTemplateConfiguration() const
void SetTraceId(const Aws::String &value)
void SetAddresses(const Aws::Map< Aws::String, AddressConfiguration > &value)
MessageRequest & WithAddresses(const Aws::Map< Aws::String, AddressConfiguration > &value)
MessageRequest & WithAddresses(Aws::Map< Aws::String, AddressConfiguration > &&value)
MessageRequest & AddEndpoints(Aws::String &&key, const EndpointSendConfiguration &value)
MessageRequest & AddContext(const char *key, Aws::String &&value)
MessageRequest & AddContext(const Aws::String &key, const Aws::String &value)
void SetTemplateConfiguration(TemplateConfiguration &&value)
MessageRequest & WithMessageConfiguration(const DirectMessageConfiguration &value)
MessageRequest & AddEndpoints(const Aws::String &key, const EndpointSendConfiguration &value)
MessageRequest & AddContext(Aws::String &&key, const Aws::String &value)
MessageRequest & WithContext(const Aws::Map< Aws::String, Aws::String > &value)
MessageRequest & AddEndpoints(const char *key, EndpointSendConfiguration &&value)
void SetMessageConfiguration(DirectMessageConfiguration &&value)
MessageRequest & AddContext(Aws::String &&key, const char *value)
MessageRequest & WithEndpoints(Aws::Map< Aws::String, EndpointSendConfiguration > &&value)
void SetAddresses(Aws::Map< Aws::String, AddressConfiguration > &&value)
MessageRequest & AddContext(const char *key, const char *value)
MessageRequest & WithMessageConfiguration(DirectMessageConfiguration &&value)
const Aws::String & GetTraceId() const
void SetTraceId(Aws::String &&value)
void SetEndpoints(Aws::Map< Aws::String, EndpointSendConfiguration > &&value)
MessageRequest & AddAddresses(const Aws::String &key, const AddressConfiguration &value)
MessageRequest & AddAddresses(const Aws::String &key, AddressConfiguration &&value)
MessageRequest & AddAddresses(Aws::String &&key, AddressConfiguration &&value)
void SetContext(const Aws::Map< Aws::String, Aws::String > &value)
MessageRequest & AddAddresses(const char *key, AddressConfiguration &&value)
MessageRequest & AddEndpoints(const Aws::String &key, EndpointSendConfiguration &&value)
MessageRequest & WithContext(Aws::Map< Aws::String, Aws::String > &&value)
MessageRequest & WithEndpoints(const Aws::Map< Aws::String, EndpointSendConfiguration > &value)
MessageRequest & AddAddresses(const char *key, const AddressConfiguration &value)
MessageRequest & WithTemplateConfiguration(const TemplateConfiguration &value)
MessageRequest & WithTraceId(Aws::String &&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