AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ContextT = Aws::Map<Aws::String, Aws::String>>
56 void SetContext(ContextT&& value) { m_contextHasBeenSet = true; m_context = std::forward<ContextT>(value); }
57 template<typename ContextT = Aws::Map<Aws::String, Aws::String>>
58 SendUsersMessageRequest& WithContext(ContextT&& value) { SetContext(std::forward<ContextT>(value)); return *this;}
59 template<typename ContextKeyT = Aws::String, typename ContextValueT = Aws::String>
60 SendUsersMessageRequest& AddContext(ContextKeyT&& key, ContextValueT&& value) {
61 m_contextHasBeenSet = true; m_context.emplace(std::forward<ContextKeyT>(key), std::forward<ContextValueT>(value)); return *this;
62 }
64
66
70 inline const DirectMessageConfiguration& GetMessageConfiguration() const { return m_messageConfiguration; }
71 inline bool MessageConfigurationHasBeenSet() const { return m_messageConfigurationHasBeenSet; }
72 template<typename MessageConfigurationT = DirectMessageConfiguration>
73 void SetMessageConfiguration(MessageConfigurationT&& value) { m_messageConfigurationHasBeenSet = true; m_messageConfiguration = std::forward<MessageConfigurationT>(value); }
74 template<typename MessageConfigurationT = DirectMessageConfiguration>
75 SendUsersMessageRequest& WithMessageConfiguration(MessageConfigurationT&& value) { SetMessageConfiguration(std::forward<MessageConfigurationT>(value)); return *this;}
77
79
82 inline const TemplateConfiguration& GetTemplateConfiguration() const { return m_templateConfiguration; }
83 inline bool TemplateConfigurationHasBeenSet() const { return m_templateConfigurationHasBeenSet; }
84 template<typename TemplateConfigurationT = TemplateConfiguration>
85 void SetTemplateConfiguration(TemplateConfigurationT&& value) { m_templateConfigurationHasBeenSet = true; m_templateConfiguration = std::forward<TemplateConfigurationT>(value); }
86 template<typename TemplateConfigurationT = TemplateConfiguration>
87 SendUsersMessageRequest& WithTemplateConfiguration(TemplateConfigurationT&& value) { SetTemplateConfiguration(std::forward<TemplateConfigurationT>(value)); return *this;}
89
91
95 inline const Aws::String& GetTraceId() const { return m_traceId; }
96 inline bool TraceIdHasBeenSet() const { return m_traceIdHasBeenSet; }
97 template<typename TraceIdT = Aws::String>
98 void SetTraceId(TraceIdT&& value) { m_traceIdHasBeenSet = true; m_traceId = std::forward<TraceIdT>(value); }
99 template<typename TraceIdT = Aws::String>
100 SendUsersMessageRequest& WithTraceId(TraceIdT&& value) { SetTraceId(std::forward<TraceIdT>(value)); return *this;}
102
104
112 inline const Aws::Map<Aws::String, EndpointSendConfiguration>& GetUsers() const { return m_users; }
113 inline bool UsersHasBeenSet() const { return m_usersHasBeenSet; }
114 template<typename UsersT = Aws::Map<Aws::String, EndpointSendConfiguration>>
115 void SetUsers(UsersT&& value) { m_usersHasBeenSet = true; m_users = std::forward<UsersT>(value); }
116 template<typename UsersT = Aws::Map<Aws::String, EndpointSendConfiguration>>
117 SendUsersMessageRequest& WithUsers(UsersT&& value) { SetUsers(std::forward<UsersT>(value)); return *this;}
118 template<typename UsersKeyT = Aws::String, typename UsersValueT = EndpointSendConfiguration>
119 SendUsersMessageRequest& AddUsers(UsersKeyT&& key, UsersValueT&& value) {
120 m_usersHasBeenSet = true; m_users.emplace(std::forward<UsersKeyT>(key), std::forward<UsersValueT>(value)); return *this;
121 }
123 private:
124
126 bool m_contextHasBeenSet = false;
127
128 DirectMessageConfiguration m_messageConfiguration;
129 bool m_messageConfigurationHasBeenSet = false;
130
131 TemplateConfiguration m_templateConfiguration;
132 bool m_templateConfigurationHasBeenSet = false;
133
134 Aws::String m_traceId;
135 bool m_traceIdHasBeenSet = false;
136
138 bool m_usersHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace Pinpoint
143} // 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