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>
19namespace IoTDataPlane {
47 template <
typename TopicT = Aws::String>
49 m_topicHasBeenSet =
true;
50 m_topic = std::forward<TopicT>(value);
52 template <
typename TopicT = Aws::String>
54 SetTopic(std::forward<TopicT>(value));
63 inline int GetQos()
const {
return m_qos; }
66 m_qosHasBeenSet =
true;
86 m_retainHasBeenSet =
true;
107 template <
typename UserPropertiesT = Aws::String>
109 m_userPropertiesHasBeenSet =
true;
110 m_userProperties = std::forward<UserPropertiesT>(value);
112 template <
typename UserPropertiesT = Aws::String>
128 m_payloadFormatIndicatorHasBeenSet =
true;
129 m_payloadFormatIndicator = value;
146 template <
typename ResponseTopicT = Aws::String>
148 m_responseTopicHasBeenSet =
true;
149 m_responseTopic = std::forward<ResponseTopicT>(value);
151 template <
typename ResponseTopicT = Aws::String>
166 template <
typename CorrelationDataT = Aws::String>
168 m_correlationDataHasBeenSet =
true;
169 m_correlationData = std::forward<CorrelationDataT>(value);
171 template <
typename CorrelationDataT = Aws::String>
190 m_messageExpiryHasBeenSet =
true;
191 m_messageExpiry = value;
203 bool m_retain{
false};
213 long long m_messageExpiry{0};
214 bool m_topicHasBeenSet =
false;
215 bool m_qosHasBeenSet =
false;
216 bool m_retainHasBeenSet =
false;
217 bool m_userPropertiesHasBeenSet =
false;
218 bool m_payloadFormatIndicatorHasBeenSet =
false;
219 bool m_responseTopicHasBeenSet =
false;
220 bool m_correlationDataHasBeenSet =
false;
221 bool m_messageExpiryHasBeenSet =
false;
PublishRequest & WithCorrelationData(CorrelationDataT &&value)
bool RetainHasBeenSet() const
PayloadFormatIndicator GetPayloadFormatIndicator() const
long long GetMessageExpiry() const
PublishRequest & WithMessageExpiry(long long value)
PublishRequest & WithRetain(bool value)
AWS_IOTDATAPLANE_API PublishRequest()=default
void SetRetain(bool value)
bool ResponseTopicHasBeenSet() const
const Aws::String & GetTopic() const
void SetCorrelationData(CorrelationDataT &&value)
PublishRequest & WithQos(int value)
const Aws::String & GetUserProperties() const
bool PayloadFormatIndicatorHasBeenSet() const
PublishRequest & WithTopic(TopicT &&value)
bool MessageExpiryHasBeenSet() const
void SetResponseTopic(ResponseTopicT &&value)
AWS_IOTDATAPLANE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PublishRequest & WithUserProperties(UserPropertiesT &&value)
PublishRequest & WithPayloadFormatIndicator(PayloadFormatIndicator value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetResponseTopic() const
AWS_IOTDATAPLANE_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetPayloadFormatIndicator(PayloadFormatIndicator value)
void SetUserProperties(UserPropertiesT &&value)
bool UserPropertiesHasBeenSet() const
bool TopicHasBeenSet() const
void SetTopic(TopicT &&value)
bool QosHasBeenSet() const
void SetMessageExpiry(long long value)
bool CorrelationDataHasBeenSet() const
const Aws::String & GetCorrelationData() const
PublishRequest & WithResponseTopic(ResponseTopicT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String