@@ -121,53 +121,53 @@ namespace Aws
121
121
/* *
122
122
* Default constructor
123
123
*/
124
- IncomingPublishEvent () : m_payload (), m_topic ()
124
+ IncomingPublishEvent () : m_topic (), m_payload ()
125
125
{
126
- AWS_ZERO_STRUCT (m_payload);
127
126
AWS_ZERO_STRUCT (m_topic);
127
+ AWS_ZERO_STRUCT (m_payload);
128
128
}
129
129
130
130
/* *
131
- * Sets the message payload associated with this event. The event does not own this payload .
131
+ * Sets the message response topic associated with this event. The event does not own this topic .
132
132
*
133
- * @param payload the message payload associated with this event
133
+ * @param topic the message response topic associated with this event
134
134
* @return reference to this
135
135
*/
136
- IncomingPublishEvent &WithPayload (Aws::Crt::ByteCursor payload )
136
+ IncomingPublishEvent &WithTopic (Aws::Crt::ByteCursor topic )
137
137
{
138
- m_payload = payload ;
138
+ m_topic = topic ;
139
139
return *this ;
140
140
}
141
141
142
142
/* *
143
- * Sets the message response topic associated with this event. The event does not own this topic .
143
+ * Sets the message payload associated with this event. The event does not own this payload .
144
144
*
145
- * @param topic the message response topic associated with this event
145
+ * @param payload the message payload associated with this event
146
146
* @return reference to this
147
147
*/
148
- IncomingPublishEvent &WithTopic (Aws::Crt::ByteCursor topic )
148
+ IncomingPublishEvent &WithPayload (Aws::Crt::ByteCursor payload )
149
149
{
150
- m_topic = topic ;
150
+ m_payload = payload ;
151
151
return *this ;
152
152
}
153
153
154
154
/* *
155
- * Gets the message payload associated with this event.
155
+ * Gets the message response topic associated with this event.
156
156
*
157
- * @return the message payload associated with this event
157
+ * @return the message response topic associated with this event
158
158
*/
159
- Aws::Crt::ByteCursor GetPayload () const { return m_payload ; }
159
+ Aws::Crt::ByteCursor GetTopic () const { return m_topic ; }
160
160
161
161
/* *
162
- * Gets the message response topic associated with this event.
162
+ * Gets the message payload associated with this event.
163
163
*
164
- * @return the message response topic associated with this event
164
+ * @return the message payload associated with this event
165
165
*/
166
- Aws::Crt::ByteCursor GetTopic () const { return m_topic ; }
166
+ Aws::Crt::ByteCursor GetPayload () const { return m_payload ; }
167
167
168
168
private:
169
- Aws::Crt::ByteCursor m_payload;
170
169
Aws::Crt::ByteCursor m_topic;
170
+ Aws::Crt::ByteCursor m_payload;
171
171
};
172
172
173
173
/* *
0 commit comments