AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MqttHeaders.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/iot/model/UserProperty.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace IoT
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_IOT_API MqttHeaders();
42
43
45
55 inline const Aws::String& GetPayloadFormatIndicator() const{ return m_payloadFormatIndicator; }
56 inline bool PayloadFormatIndicatorHasBeenSet() const { return m_payloadFormatIndicatorHasBeenSet; }
57 inline void SetPayloadFormatIndicator(const Aws::String& value) { m_payloadFormatIndicatorHasBeenSet = true; m_payloadFormatIndicator = value; }
58 inline void SetPayloadFormatIndicator(Aws::String&& value) { m_payloadFormatIndicatorHasBeenSet = true; m_payloadFormatIndicator = std::move(value); }
59 inline void SetPayloadFormatIndicator(const char* value) { m_payloadFormatIndicatorHasBeenSet = true; m_payloadFormatIndicator.assign(value); }
60 inline MqttHeaders& WithPayloadFormatIndicator(const Aws::String& value) { SetPayloadFormatIndicator(value); return *this;}
61 inline MqttHeaders& WithPayloadFormatIndicator(Aws::String&& value) { SetPayloadFormatIndicator(std::move(value)); return *this;}
62 inline MqttHeaders& WithPayloadFormatIndicator(const char* value) { SetPayloadFormatIndicator(value); return *this;}
64
66
74 inline const Aws::String& GetContentType() const{ return m_contentType; }
75 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
76 inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
77 inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
78 inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
79 inline MqttHeaders& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
80 inline MqttHeaders& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
81 inline MqttHeaders& WithContentType(const char* value) { SetContentType(value); return *this;}
83
85
95 inline const Aws::String& GetResponseTopic() const{ return m_responseTopic; }
96 inline bool ResponseTopicHasBeenSet() const { return m_responseTopicHasBeenSet; }
97 inline void SetResponseTopic(const Aws::String& value) { m_responseTopicHasBeenSet = true; m_responseTopic = value; }
98 inline void SetResponseTopic(Aws::String&& value) { m_responseTopicHasBeenSet = true; m_responseTopic = std::move(value); }
99 inline void SetResponseTopic(const char* value) { m_responseTopicHasBeenSet = true; m_responseTopic.assign(value); }
100 inline MqttHeaders& WithResponseTopic(const Aws::String& value) { SetResponseTopic(value); return *this;}
101 inline MqttHeaders& WithResponseTopic(Aws::String&& value) { SetResponseTopic(std::move(value)); return *this;}
102 inline MqttHeaders& WithResponseTopic(const char* value) { SetResponseTopic(value); return *this;}
104
106
116 inline const Aws::String& GetCorrelationData() const{ return m_correlationData; }
117 inline bool CorrelationDataHasBeenSet() const { return m_correlationDataHasBeenSet; }
118 inline void SetCorrelationData(const Aws::String& value) { m_correlationDataHasBeenSet = true; m_correlationData = value; }
119 inline void SetCorrelationData(Aws::String&& value) { m_correlationDataHasBeenSet = true; m_correlationData = std::move(value); }
120 inline void SetCorrelationData(const char* value) { m_correlationDataHasBeenSet = true; m_correlationData.assign(value); }
121 inline MqttHeaders& WithCorrelationData(const Aws::String& value) { SetCorrelationData(value); return *this;}
122 inline MqttHeaders& WithCorrelationData(Aws::String&& value) { SetCorrelationData(std::move(value)); return *this;}
123 inline MqttHeaders& WithCorrelationData(const char* value) { SetCorrelationData(value); return *this;}
125
127
139 inline const Aws::String& GetMessageExpiry() const{ return m_messageExpiry; }
140 inline bool MessageExpiryHasBeenSet() const { return m_messageExpiryHasBeenSet; }
141 inline void SetMessageExpiry(const Aws::String& value) { m_messageExpiryHasBeenSet = true; m_messageExpiry = value; }
142 inline void SetMessageExpiry(Aws::String&& value) { m_messageExpiryHasBeenSet = true; m_messageExpiry = std::move(value); }
143 inline void SetMessageExpiry(const char* value) { m_messageExpiryHasBeenSet = true; m_messageExpiry.assign(value); }
144 inline MqttHeaders& WithMessageExpiry(const Aws::String& value) { SetMessageExpiry(value); return *this;}
145 inline MqttHeaders& WithMessageExpiry(Aws::String&& value) { SetMessageExpiry(std::move(value)); return *this;}
146 inline MqttHeaders& WithMessageExpiry(const char* value) { SetMessageExpiry(value); return *this;}
148
150
153 inline const Aws::Vector<UserProperty>& GetUserProperties() const{ return m_userProperties; }
154 inline bool UserPropertiesHasBeenSet() const { return m_userPropertiesHasBeenSet; }
155 inline void SetUserProperties(const Aws::Vector<UserProperty>& value) { m_userPropertiesHasBeenSet = true; m_userProperties = value; }
156 inline void SetUserProperties(Aws::Vector<UserProperty>&& value) { m_userPropertiesHasBeenSet = true; m_userProperties = std::move(value); }
157 inline MqttHeaders& WithUserProperties(const Aws::Vector<UserProperty>& value) { SetUserProperties(value); return *this;}
158 inline MqttHeaders& WithUserProperties(Aws::Vector<UserProperty>&& value) { SetUserProperties(std::move(value)); return *this;}
159 inline MqttHeaders& AddUserProperties(const UserProperty& value) { m_userPropertiesHasBeenSet = true; m_userProperties.push_back(value); return *this; }
160 inline MqttHeaders& AddUserProperties(UserProperty&& value) { m_userPropertiesHasBeenSet = true; m_userProperties.push_back(std::move(value)); return *this; }
162 private:
163
164 Aws::String m_payloadFormatIndicator;
165 bool m_payloadFormatIndicatorHasBeenSet = false;
166
167 Aws::String m_contentType;
168 bool m_contentTypeHasBeenSet = false;
169
170 Aws::String m_responseTopic;
171 bool m_responseTopicHasBeenSet = false;
172
173 Aws::String m_correlationData;
174 bool m_correlationDataHasBeenSet = false;
175
176 Aws::String m_messageExpiry;
177 bool m_messageExpiryHasBeenSet = false;
178
179 Aws::Vector<UserProperty> m_userProperties;
180 bool m_userPropertiesHasBeenSet = false;
181 };
182
183} // namespace Model
184} // namespace IoT
185} // namespace Aws
bool MessageExpiryHasBeenSet() const
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
bool PayloadFormatIndicatorHasBeenSet() const
Definition MqttHeaders.h:56
void SetContentType(Aws::String &&value)
Definition MqttHeaders.h:77
MqttHeaders & AddUserProperties(const UserProperty &value)
MqttHeaders & WithCorrelationData(Aws::String &&value)
MqttHeaders & WithPayloadFormatIndicator(const Aws::String &value)
Definition MqttHeaders.h:60
const Aws::String & GetPayloadFormatIndicator() const
Definition MqttHeaders.h:55
void SetMessageExpiry(const Aws::String &value)
void SetMessageExpiry(Aws::String &&value)
MqttHeaders & WithContentType(const char *value)
Definition MqttHeaders.h:81
void SetPayloadFormatIndicator(const Aws::String &value)
Definition MqttHeaders.h:57
MqttHeaders & WithPayloadFormatIndicator(const char *value)
Definition MqttHeaders.h:62
MqttHeaders & WithPayloadFormatIndicator(Aws::String &&value)
Definition MqttHeaders.h:61
void SetPayloadFormatIndicator(const char *value)
Definition MqttHeaders.h:59
const Aws::String & GetContentType() const
Definition MqttHeaders.h:74
void SetCorrelationData(const Aws::String &value)
void SetPayloadFormatIndicator(Aws::String &&value)
Definition MqttHeaders.h:58
MqttHeaders & WithMessageExpiry(Aws::String &&value)
MqttHeaders & WithMessageExpiry(const char *value)
void SetContentType(const Aws::String &value)
Definition MqttHeaders.h:76
void SetCorrelationData(const char *value)
void SetResponseTopic(const Aws::String &value)
Definition MqttHeaders.h:97
bool CorrelationDataHasBeenSet() const
bool ContentTypeHasBeenSet() const
Definition MqttHeaders.h:75
void SetContentType(const char *value)
Definition MqttHeaders.h:78
const Aws::String & GetMessageExpiry() const
MqttHeaders & WithCorrelationData(const char *value)
void SetMessageExpiry(const char *value)
const Aws::String & GetResponseTopic() const
Definition MqttHeaders.h:95
AWS_IOT_API MqttHeaders & operator=(Aws::Utils::Json::JsonView jsonValue)
MqttHeaders & WithResponseTopic(const char *value)
void SetResponseTopic(Aws::String &&value)
Definition MqttHeaders.h:98
MqttHeaders & WithUserProperties(const Aws::Vector< UserProperty > &value)
MqttHeaders & WithCorrelationData(const Aws::String &value)
void SetUserProperties(Aws::Vector< UserProperty > &&value)
const Aws::Vector< UserProperty > & GetUserProperties() const
MqttHeaders & WithUserProperties(Aws::Vector< UserProperty > &&value)
void SetUserProperties(const Aws::Vector< UserProperty > &value)
bool UserPropertiesHasBeenSet() const
MqttHeaders & AddUserProperties(UserProperty &&value)
void SetCorrelationData(Aws::String &&value)
bool ResponseTopicHasBeenSet() const
Definition MqttHeaders.h:96
MqttHeaders & WithResponseTopic(const Aws::String &value)
AWS_IOT_API MqttHeaders(Aws::Utils::Json::JsonView jsonValue)
MqttHeaders & WithMessageExpiry(const Aws::String &value)
const Aws::String & GetCorrelationData() const
MqttHeaders & WithContentType(Aws::String &&value)
Definition MqttHeaders.h:80
void SetResponseTopic(const char *value)
Definition MqttHeaders.h:99
MqttHeaders & WithResponseTopic(Aws::String &&value)
MqttHeaders & WithContentType(const Aws::String &value)
Definition MqttHeaders.h:79
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue