7#include <aws/iot-data/IoTDataPlane_EXPORTS.h>
8#include <aws/iot-data/IoTDataPlaneRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/Array.h>
11#include <aws/iot-data/model/PayloadFormatIndicator.h>
52 template<
typename TopicT = Aws::String>
53 void SetTopic(TopicT&& value) { m_topicHasBeenSet =
true; m_topic = std::forward<TopicT>(value); }
54 template<
typename TopicT = Aws::String>
62 inline int GetQos()
const {
return m_qos; }
64 inline void SetQos(
int value) { m_qosHasBeenSet =
true; m_qos = value; }
78 inline void SetRetain(
bool value) { m_retainHasBeenSet =
true; m_retain = value; }
94 template<
typename UserPropertiesT = Aws::String>
95 void SetUserProperties(UserPropertiesT&& value) { m_userPropertiesHasBeenSet =
true; m_userProperties = std::forward<UserPropertiesT>(value); }
96 template<
typename UserPropertiesT = Aws::String>
121 template<
typename ResponseTopicT = Aws::String>
122 void SetResponseTopic(ResponseTopicT&& value) { m_responseTopicHasBeenSet =
true; m_responseTopic = std::forward<ResponseTopicT>(value); }
123 template<
typename ResponseTopicT = Aws::String>
135 template<
typename CorrelationDataT = Aws::String>
136 void SetCorrelationData(CorrelationDataT&& value) { m_correlationDataHasBeenSet =
true; m_correlationData = std::forward<CorrelationDataT>(value); }
137 template<
typename CorrelationDataT = Aws::String>
152 inline void SetMessageExpiry(
long long value) { m_messageExpiryHasBeenSet =
true; m_messageExpiry = value; }
158 bool m_topicHasBeenSet =
false;
161 bool m_qosHasBeenSet =
false;
163 bool m_retain{
false};
164 bool m_retainHasBeenSet =
false;
168 bool m_userPropertiesHasBeenSet =
false;
171 bool m_payloadFormatIndicatorHasBeenSet =
false;
174 bool m_responseTopicHasBeenSet =
false;
177 bool m_correlationDataHasBeenSet =
false;
179 long long m_messageExpiry{0};
180 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