AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
SendDirectMessageRequest.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot-data/IoTDataPlaneRequest.h>
10#include <aws/iot-data/IoTDataPlane_EXPORTS.h>
11#include <aws/iot-data/model/PayloadFormatIndicator.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Http {
17class URI;
18} // namespace Http
19namespace IoTDataPlane {
20namespace Model {
21
25 public:
26 AWS_IOTDATAPLANE_API SendDirectMessageRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "SendDirectMessage"; }
33
34 AWS_IOTDATAPLANE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
35
36 AWS_IOTDATAPLANE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
39
48 inline const Aws::String& GetClientId() const { return m_clientId; }
49 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
50 template <typename ClientIdT = Aws::String>
51 void SetClientId(ClientIdT&& value) {
52 m_clientIdHasBeenSet = true;
53 m_clientId = std::forward<ClientIdT>(value);
54 }
55 template <typename ClientIdT = Aws::String>
57 SetClientId(std::forward<ClientIdT>(value));
58 return *this;
59 }
61
63
69 inline const Aws::String& GetTopic() const { return m_topic; }
70 inline bool TopicHasBeenSet() const { return m_topicHasBeenSet; }
71 template <typename TopicT = Aws::String>
72 void SetTopic(TopicT&& value) {
73 m_topicHasBeenSet = true;
74 m_topic = std::forward<TopicT>(value);
75 }
76 template <typename TopicT = Aws::String>
78 SetTopic(std::forward<TopicT>(value));
79 return *this;
80 }
82
84
92 inline const Aws::String& GetResponseTopic() const { return m_responseTopic; }
93 inline bool ResponseTopicHasBeenSet() const { return m_responseTopicHasBeenSet; }
94 template <typename ResponseTopicT = Aws::String>
95 void SetResponseTopic(ResponseTopicT&& value) {
96 m_responseTopicHasBeenSet = true;
97 m_responseTopic = std::forward<ResponseTopicT>(value);
98 }
99 template <typename ResponseTopicT = Aws::String>
101 SetResponseTopic(std::forward<ResponseTopicT>(value));
102 return *this;
103 }
105
107
118 inline bool GetConfirmation() const { return m_confirmation; }
119 inline bool ConfirmationHasBeenSet() const { return m_confirmationHasBeenSet; }
120 inline void SetConfirmation(bool value) {
121 m_confirmationHasBeenSet = true;
122 m_confirmation = value;
123 }
125 SetConfirmation(value);
126 return *this;
127 }
129
131
141 inline int GetTimeout() const { return m_timeout; }
142 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
143 inline void SetTimeout(int value) {
144 m_timeoutHasBeenSet = true;
145 m_timeout = value;
146 }
148 SetTimeout(value);
149 return *this;
150 }
152
154
164 inline const Aws::String& GetUserProperties() const { return m_userProperties; }
165 inline bool UserPropertiesHasBeenSet() const { return m_userPropertiesHasBeenSet; }
166 template <typename UserPropertiesT = Aws::String>
167 void SetUserProperties(UserPropertiesT&& value) {
168 m_userPropertiesHasBeenSet = true;
169 m_userProperties = std::forward<UserPropertiesT>(value);
170 }
171 template <typename UserPropertiesT = Aws::String>
173 SetUserProperties(std::forward<UserPropertiesT>(value));
174 return *this;
175 }
177
179
184 inline PayloadFormatIndicator GetPayloadFormatIndicator() const { return m_payloadFormatIndicator; }
185 inline bool PayloadFormatIndicatorHasBeenSet() const { return m_payloadFormatIndicatorHasBeenSet; }
187 m_payloadFormatIndicatorHasBeenSet = true;
188 m_payloadFormatIndicator = value;
189 }
192 return *this;
193 }
195
197
202 inline const Aws::String& GetCorrelationData() const { return m_correlationData; }
203 inline bool CorrelationDataHasBeenSet() const { return m_correlationDataHasBeenSet; }
204 template <typename CorrelationDataT = Aws::String>
205 void SetCorrelationData(CorrelationDataT&& value) {
206 m_correlationDataHasBeenSet = true;
207 m_correlationData = std::forward<CorrelationDataT>(value);
208 }
209 template <typename CorrelationDataT = Aws::String>
211 SetCorrelationData(std::forward<CorrelationDataT>(value));
212 return *this;
213 }
215 private:
216 Aws::String m_clientId;
217
218 Aws::String m_topic;
219
220 Aws::String m_responseTopic;
221
222 bool m_confirmation{false};
223
224 int m_timeout{0};
225
226 Aws::String m_userProperties;
227
229
230 Aws::String m_correlationData;
231 bool m_clientIdHasBeenSet = false;
232 bool m_topicHasBeenSet = false;
233 bool m_responseTopicHasBeenSet = false;
234 bool m_confirmationHasBeenSet = false;
235 bool m_timeoutHasBeenSet = false;
236 bool m_userPropertiesHasBeenSet = false;
237 bool m_payloadFormatIndicatorHasBeenSet = false;
238 bool m_correlationDataHasBeenSet = false;
239};
240
241} // namespace Model
242} // namespace IoTDataPlane
243} // namespace Aws
AWS_IOTDATAPLANE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
SendDirectMessageRequest & WithClientId(ClientIdT &&value)
SendDirectMessageRequest & WithCorrelationData(CorrelationDataT &&value)
AWS_IOTDATAPLANE_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_IOTDATAPLANE_API SendDirectMessageRequest()=default
SendDirectMessageRequest & WithResponseTopic(ResponseTopicT &&value)
SendDirectMessageRequest & WithPayloadFormatIndicator(PayloadFormatIndicator value)
SendDirectMessageRequest & WithTopic(TopicT &&value)
virtual const char * GetServiceRequestName() const override
SendDirectMessageRequest & WithUserProperties(UserPropertiesT &&value)
SendDirectMessageRequest & WithConfirmation(bool value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String