AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename AddressesT = Aws::Map<Aws::String, AddressConfiguration>>
60 void SetAddresses(AddressesT&& value) { m_addressesHasBeenSet = true; m_addresses = std::forward<AddressesT>(value); }
61 template<typename AddressesT = Aws::Map<Aws::String, AddressConfiguration>>
62 MessageRequest& WithAddresses(AddressesT&& value) { SetAddresses(std::forward<AddressesT>(value)); return *this;}
63 template<typename AddressesKeyT = Aws::String, typename AddressesValueT = AddressConfiguration>
64 MessageRequest& AddAddresses(AddressesKeyT&& key, AddressesValueT&& value) {
65 m_addressesHasBeenSet = true; m_addresses.emplace(std::forward<AddressesKeyT>(key), std::forward<AddressesValueT>(value)); return *this;
66 }
68
70
75 inline const Aws::Map<Aws::String, Aws::String>& GetContext() const { return m_context; }
76 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
77 template<typename ContextT = Aws::Map<Aws::String, Aws::String>>
78 void SetContext(ContextT&& value) { m_contextHasBeenSet = true; m_context = std::forward<ContextT>(value); }
79 template<typename ContextT = Aws::Map<Aws::String, Aws::String>>
80 MessageRequest& WithContext(ContextT&& value) { SetContext(std::forward<ContextT>(value)); return *this;}
81 template<typename ContextKeyT = Aws::String, typename ContextValueT = Aws::String>
82 MessageRequest& AddContext(ContextKeyT&& key, ContextValueT&& value) {
83 m_contextHasBeenSet = true; m_context.emplace(std::forward<ContextKeyT>(key), std::forward<ContextValueT>(value)); return *this;
84 }
86
88
97 inline const Aws::Map<Aws::String, EndpointSendConfiguration>& GetEndpoints() const { return m_endpoints; }
98 inline bool EndpointsHasBeenSet() const { return m_endpointsHasBeenSet; }
99 template<typename EndpointsT = Aws::Map<Aws::String, EndpointSendConfiguration>>
100 void SetEndpoints(EndpointsT&& value) { m_endpointsHasBeenSet = true; m_endpoints = std::forward<EndpointsT>(value); }
101 template<typename EndpointsT = Aws::Map<Aws::String, EndpointSendConfiguration>>
102 MessageRequest& WithEndpoints(EndpointsT&& value) { SetEndpoints(std::forward<EndpointsT>(value)); return *this;}
103 template<typename EndpointsKeyT = Aws::String, typename EndpointsValueT = EndpointSendConfiguration>
104 MessageRequest& AddEndpoints(EndpointsKeyT&& key, EndpointsValueT&& value) {
105 m_endpointsHasBeenSet = true; m_endpoints.emplace(std::forward<EndpointsKeyT>(key), std::forward<EndpointsValueT>(value)); return *this;
106 }
108
110
114 inline const DirectMessageConfiguration& GetMessageConfiguration() const { return m_messageConfiguration; }
115 inline bool MessageConfigurationHasBeenSet() const { return m_messageConfigurationHasBeenSet; }
116 template<typename MessageConfigurationT = DirectMessageConfiguration>
117 void SetMessageConfiguration(MessageConfigurationT&& value) { m_messageConfigurationHasBeenSet = true; m_messageConfiguration = std::forward<MessageConfigurationT>(value); }
118 template<typename MessageConfigurationT = DirectMessageConfiguration>
119 MessageRequest& WithMessageConfiguration(MessageConfigurationT&& value) { SetMessageConfiguration(std::forward<MessageConfigurationT>(value)); return *this;}
121
123
126 inline const TemplateConfiguration& GetTemplateConfiguration() const { return m_templateConfiguration; }
127 inline bool TemplateConfigurationHasBeenSet() const { return m_templateConfigurationHasBeenSet; }
128 template<typename TemplateConfigurationT = TemplateConfiguration>
129 void SetTemplateConfiguration(TemplateConfigurationT&& value) { m_templateConfigurationHasBeenSet = true; m_templateConfiguration = std::forward<TemplateConfigurationT>(value); }
130 template<typename TemplateConfigurationT = TemplateConfiguration>
131 MessageRequest& WithTemplateConfiguration(TemplateConfigurationT&& value) { SetTemplateConfiguration(std::forward<TemplateConfigurationT>(value)); return *this;}
133
135
139 inline const Aws::String& GetTraceId() const { return m_traceId; }
140 inline bool TraceIdHasBeenSet() const { return m_traceIdHasBeenSet; }
141 template<typename TraceIdT = Aws::String>
142 void SetTraceId(TraceIdT&& value) { m_traceIdHasBeenSet = true; m_traceId = std::forward<TraceIdT>(value); }
143 template<typename TraceIdT = Aws::String>
144 MessageRequest& WithTraceId(TraceIdT&& value) { SetTraceId(std::forward<TraceIdT>(value)); return *this;}
146 private:
147
149 bool m_addressesHasBeenSet = false;
150
152 bool m_contextHasBeenSet = false;
153
155 bool m_endpointsHasBeenSet = false;
156
157 DirectMessageConfiguration m_messageConfiguration;
158 bool m_messageConfigurationHasBeenSet = false;
159
160 TemplateConfiguration m_templateConfiguration;
161 bool m_templateConfigurationHasBeenSet = false;
162
163 Aws::String m_traceId;
164 bool m_traceIdHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace Pinpoint
169} // 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