1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct SendDirectMessageInput {
/// <p>The unique identifier of the MQTT client to send the message to.</p>
/// <p>Client IDs must not exceed 128 characters and can't start with a dollar sign ($). MQTT client IDs must be URL encoded (percent-encoded) when they contain characters that are not valid in HTTP requests, such as spaces, forward slashes (/), and UTF-8 characters. For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/iot-core.html#message-broker-limits">Amazon Web Services IoT Core message broker and protocol limits and quotas</a>.</p>
pub client_id: ::std::option::Option<::std::string::String>,
/// <p>The topic of the outbound MQTT Publish message to the receiving client. For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/iot-core.html#message-broker-limits">Amazon Web Services IoT Core message broker and protocol limits and quotas</a>.</p>
pub topic: ::std::option::Option<::std::string::String>,
/// <p>The MQTT5 content type property forwarded to the receiving client (for example, <code>application/json</code>).</p>
pub content_type: ::std::option::Option<::std::string::String>,
/// <p>A UTF-8 encoded string that's used as the topic name for a response message. The response topic describes the topic which the receiver should publish to as part of the request-response flow. The topic must not contain wildcard characters. For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/iot-core.html#message-broker-limits">Amazon Web Services IoT Core message broker and protocol limits and quotas</a>.</p>
pub response_topic: ::std::option::Option<::std::string::String>,
/// <p>A Boolean value that specifies whether to wait for delivery confirmation from the receiving client.</p>
/// <p>When set to <code>true</code>, the API delivers the message at QoS 1 and waits for the client to send a delivery confirmation (PUBACK) before returning a successful response. If delivery confirmation is not received within the specified <code>timeout</code> period, the API returns HTTP 504.</p>
/// <p>When set to <code>false</code>, the API delivers the message at QoS 0 and returns after Amazon Web Services IoT Core attempts to deliver the message.</p>
/// <p>Valid values: <code>true</code> | <code>false</code></p>
/// <p>Default value: <code>false</code></p>
pub confirmation: ::std::option::Option<bool>,
/// <p>An integer that represents the maximum time, in seconds, to wait for a delivery confirmation (PUBACK) from the receiving client after the message has been delivered. This parameter is only used when <code>confirmation</code> is set to <code>true</code>. If <code>confirmation</code> is <code>false</code>, this parameter is ignored.</p>
/// <p>The total API response time may be higher than this value due to internal processing. Set your HTTP client timeout to a value greater than this parameter.</p>
/// <p>Valid range: 1 to 15 seconds.</p>
/// <p>Default value: <code>5</code> seconds.</p>
pub timeout: ::std::option::Option<i32>,
/// <p>The message body. MQTT accepts text, binary, and empty (null) message payloads.</p>
pub payload: ::std::option::Option<::aws_smithy_types::Blob>,
/// <p>A JSON string that contains an array of JSON objects. If you don't use Amazon Web Services SDK or CLI, you must encode the JSON string to base64 format before adding it to the HTTP header. <code>userProperties</code> is an HTTP header value in the API.</p>
/// <p>For MQTT 3.1.1 clients, user properties are silently dropped.</p>
/// <p>The following example <code>userProperties</code> parameter is a JSON string which represents two User Properties. Note that it needs to be base64-encoded:</p>
/// <p><code>\[{"deviceName": "alpha"}, {"deviceCnt": "45"}\]</code></p>
pub user_properties: ::std::option::Option<::std::string::String>,
/// <p>An <code>Enum</code> string value that indicates whether the payload is formatted as UTF-8. <code>payloadFormatIndicator</code> is an HTTP header value in the API.</p>
pub payload_format_indicator: ::std::option::Option<crate::types::PayloadFormatIndicator>,
/// <p>The base64-encoded binary data used by the sender of the request message to identify which request the response message is for when it's received. <code>correlationData</code> is an HTTP header value in the API.</p>
pub correlation_data: ::std::option::Option<::std::string::String>,
}
impl SendDirectMessageInput {
/// <p>The unique identifier of the MQTT client to send the message to.</p>
/// <p>Client IDs must not exceed 128 characters and can't start with a dollar sign ($). MQTT client IDs must be URL encoded (percent-encoded) when they contain characters that are not valid in HTTP requests, such as spaces, forward slashes (/), and UTF-8 characters. For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/iot-core.html#message-broker-limits">Amazon Web Services IoT Core message broker and protocol limits and quotas</a>.</p>
pub fn client_id(&self) -> ::std::option::Option<&str> {
self.client_id.as_deref()
}
/// <p>The topic of the outbound MQTT Publish message to the receiving client. For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/iot-core.html#message-broker-limits">Amazon Web Services IoT Core message broker and protocol limits and quotas</a>.</p>
pub fn topic(&self) -> ::std::option::Option<&str> {
self.topic.as_deref()
}
/// <p>The MQTT5 content type property forwarded to the receiving client (for example, <code>application/json</code>).</p>
pub fn content_type(&self) -> ::std::option::Option<&str> {
self.content_type.as_deref()
}
/// <p>A UTF-8 encoded string that's used as the topic name for a response message. The response topic describes the topic which the receiver should publish to as part of the request-response flow. The topic must not contain wildcard characters. For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/iot-core.html#message-broker-limits">Amazon Web Services IoT Core message broker and protocol limits and quotas</a>.</p>
pub fn response_topic(&self) -> ::std::option::Option<&str> {
self.response_topic.as_deref()
}
/// <p>A Boolean value that specifies whether to wait for delivery confirmation from the receiving client.</p>
/// <p>When set to <code>true</code>, the API delivers the message at QoS 1 and waits for the client to send a delivery confirmation (PUBACK) before returning a successful response. If delivery confirmation is not received within the specified <code>timeout</code> period, the API returns HTTP 504.</p>
/// <p>When set to <code>false</code>, the API delivers the message at QoS 0 and returns after Amazon Web Services IoT Core attempts to deliver the message.</p>
/// <p>Valid values: <code>true</code> | <code>false</code></p>
/// <p>Default value: <code>false</code></p>
pub fn confirmation(&self) -> ::std::option::Option<bool> {
self.confirmation
}
/// <p>An integer that represents the maximum time, in seconds, to wait for a delivery confirmation (PUBACK) from the receiving client after the message has been delivered. This parameter is only used when <code>confirmation</code> is set to <code>true</code>. If <code>confirmation</code> is <code>false</code>, this parameter is ignored.</p>
/// <p>The total API response time may be higher than this value due to internal processing. Set your HTTP client timeout to a value greater than this parameter.</p>
/// <p>Valid range: 1 to 15 seconds.</p>
/// <p>Default value: <code>5</code> seconds.</p>
pub fn timeout(&self) -> ::std::option::Option<i32> {
self.timeout
}
/// <p>The message body. MQTT accepts text, binary, and empty (null) message payloads.</p>
pub fn payload(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
self.payload.as_ref()
}
/// <p>A JSON string that contains an array of JSON objects. If you don't use Amazon Web Services SDK or CLI, you must encode the JSON string to base64 format before adding it to the HTTP header. <code>userProperties</code> is an HTTP header value in the API.</p>
/// <p>For MQTT 3.1.1 clients, user properties are silently dropped.</p>
/// <p>The following example <code>userProperties</code> parameter is a JSON string which represents two User Properties. Note that it needs to be base64-encoded:</p>
/// <p><code>\[{"deviceName": "alpha"}, {"deviceCnt": "45"}\]</code></p>
pub fn user_properties(&self) -> ::std::option::Option<&str> {
self.user_properties.as_deref()
}
/// <p>An <code>Enum</code> string value that indicates whether the payload is formatted as UTF-8. <code>payloadFormatIndicator</code> is an HTTP header value in the API.</p>
pub fn payload_format_indicator(&self) -> ::std::option::Option<&crate::types::PayloadFormatIndicator> {
self.payload_format_indicator.as_ref()
}
/// <p>The base64-encoded binary data used by the sender of the request message to identify which request the response message is for when it's received. <code>correlationData</code> is an HTTP header value in the API.</p>
pub fn correlation_data(&self) -> ::std::option::Option<&str> {
self.correlation_data.as_deref()
}
}
impl SendDirectMessageInput {
/// Creates a new builder-style object to manufacture [`SendDirectMessageInput`](crate::operation::send_direct_message::SendDirectMessageInput).
pub fn builder() -> crate::operation::send_direct_message::builders::SendDirectMessageInputBuilder {
crate::operation::send_direct_message::builders::SendDirectMessageInputBuilder::default()
}
}
/// A builder for [`SendDirectMessageInput`](crate::operation::send_direct_message::SendDirectMessageInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct SendDirectMessageInputBuilder {
pub(crate) client_id: ::std::option::Option<::std::string::String>,
pub(crate) topic: ::std::option::Option<::std::string::String>,
pub(crate) content_type: ::std::option::Option<::std::string::String>,
pub(crate) response_topic: ::std::option::Option<::std::string::String>,
pub(crate) confirmation: ::std::option::Option<bool>,
pub(crate) timeout: ::std::option::Option<i32>,
pub(crate) payload: ::std::option::Option<::aws_smithy_types::Blob>,
pub(crate) user_properties: ::std::option::Option<::std::string::String>,
pub(crate) payload_format_indicator: ::std::option::Option<crate::types::PayloadFormatIndicator>,
pub(crate) correlation_data: ::std::option::Option<::std::string::String>,
}
impl SendDirectMessageInputBuilder {
/// <p>The unique identifier of the MQTT client to send the message to.</p>
/// <p>Client IDs must not exceed 128 characters and can't start with a dollar sign ($). MQTT client IDs must be URL encoded (percent-encoded) when they contain characters that are not valid in HTTP requests, such as spaces, forward slashes (/), and UTF-8 characters. For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/iot-core.html#message-broker-limits">Amazon Web Services IoT Core message broker and protocol limits and quotas</a>.</p>
/// This field is required.
pub fn client_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.client_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The unique identifier of the MQTT client to send the message to.</p>
/// <p>Client IDs must not exceed 128 characters and can't start with a dollar sign ($). MQTT client IDs must be URL encoded (percent-encoded) when they contain characters that are not valid in HTTP requests, such as spaces, forward slashes (/), and UTF-8 characters. For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/iot-core.html#message-broker-limits">Amazon Web Services IoT Core message broker and protocol limits and quotas</a>.</p>
pub fn set_client_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.client_id = input;
self
}
/// <p>The unique identifier of the MQTT client to send the message to.</p>
/// <p>Client IDs must not exceed 128 characters and can't start with a dollar sign ($). MQTT client IDs must be URL encoded (percent-encoded) when they contain characters that are not valid in HTTP requests, such as spaces, forward slashes (/), and UTF-8 characters. For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/iot-core.html#message-broker-limits">Amazon Web Services IoT Core message broker and protocol limits and quotas</a>.</p>
pub fn get_client_id(&self) -> &::std::option::Option<::std::string::String> {
&self.client_id
}
/// <p>The topic of the outbound MQTT Publish message to the receiving client. For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/iot-core.html#message-broker-limits">Amazon Web Services IoT Core message broker and protocol limits and quotas</a>.</p>
/// This field is required.
pub fn topic(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.topic = ::std::option::Option::Some(input.into());
self
}
/// <p>The topic of the outbound MQTT Publish message to the receiving client. For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/iot-core.html#message-broker-limits">Amazon Web Services IoT Core message broker and protocol limits and quotas</a>.</p>
pub fn set_topic(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.topic = input;
self
}
/// <p>The topic of the outbound MQTT Publish message to the receiving client. For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/iot-core.html#message-broker-limits">Amazon Web Services IoT Core message broker and protocol limits and quotas</a>.</p>
pub fn get_topic(&self) -> &::std::option::Option<::std::string::String> {
&self.topic
}
/// <p>The MQTT5 content type property forwarded to the receiving client (for example, <code>application/json</code>).</p>
pub fn content_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.content_type = ::std::option::Option::Some(input.into());
self
}
/// <p>The MQTT5 content type property forwarded to the receiving client (for example, <code>application/json</code>).</p>
pub fn set_content_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.content_type = input;
self
}
/// <p>The MQTT5 content type property forwarded to the receiving client (for example, <code>application/json</code>).</p>
pub fn get_content_type(&self) -> &::std::option::Option<::std::string::String> {
&self.content_type
}
/// <p>A UTF-8 encoded string that's used as the topic name for a response message. The response topic describes the topic which the receiver should publish to as part of the request-response flow. The topic must not contain wildcard characters. For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/iot-core.html#message-broker-limits">Amazon Web Services IoT Core message broker and protocol limits and quotas</a>.</p>
pub fn response_topic(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.response_topic = ::std::option::Option::Some(input.into());
self
}
/// <p>A UTF-8 encoded string that's used as the topic name for a response message. The response topic describes the topic which the receiver should publish to as part of the request-response flow. The topic must not contain wildcard characters. For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/iot-core.html#message-broker-limits">Amazon Web Services IoT Core message broker and protocol limits and quotas</a>.</p>
pub fn set_response_topic(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.response_topic = input;
self
}
/// <p>A UTF-8 encoded string that's used as the topic name for a response message. The response topic describes the topic which the receiver should publish to as part of the request-response flow. The topic must not contain wildcard characters. For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/iot-core.html#message-broker-limits">Amazon Web Services IoT Core message broker and protocol limits and quotas</a>.</p>
pub fn get_response_topic(&self) -> &::std::option::Option<::std::string::String> {
&self.response_topic
}
/// <p>A Boolean value that specifies whether to wait for delivery confirmation from the receiving client.</p>
/// <p>When set to <code>true</code>, the API delivers the message at QoS 1 and waits for the client to send a delivery confirmation (PUBACK) before returning a successful response. If delivery confirmation is not received within the specified <code>timeout</code> period, the API returns HTTP 504.</p>
/// <p>When set to <code>false</code>, the API delivers the message at QoS 0 and returns after Amazon Web Services IoT Core attempts to deliver the message.</p>
/// <p>Valid values: <code>true</code> | <code>false</code></p>
/// <p>Default value: <code>false</code></p>
pub fn confirmation(mut self, input: bool) -> Self {
self.confirmation = ::std::option::Option::Some(input);
self
}
/// <p>A Boolean value that specifies whether to wait for delivery confirmation from the receiving client.</p>
/// <p>When set to <code>true</code>, the API delivers the message at QoS 1 and waits for the client to send a delivery confirmation (PUBACK) before returning a successful response. If delivery confirmation is not received within the specified <code>timeout</code> period, the API returns HTTP 504.</p>
/// <p>When set to <code>false</code>, the API delivers the message at QoS 0 and returns after Amazon Web Services IoT Core attempts to deliver the message.</p>
/// <p>Valid values: <code>true</code> | <code>false</code></p>
/// <p>Default value: <code>false</code></p>
pub fn set_confirmation(mut self, input: ::std::option::Option<bool>) -> Self {
self.confirmation = input;
self
}
/// <p>A Boolean value that specifies whether to wait for delivery confirmation from the receiving client.</p>
/// <p>When set to <code>true</code>, the API delivers the message at QoS 1 and waits for the client to send a delivery confirmation (PUBACK) before returning a successful response. If delivery confirmation is not received within the specified <code>timeout</code> period, the API returns HTTP 504.</p>
/// <p>When set to <code>false</code>, the API delivers the message at QoS 0 and returns after Amazon Web Services IoT Core attempts to deliver the message.</p>
/// <p>Valid values: <code>true</code> | <code>false</code></p>
/// <p>Default value: <code>false</code></p>
pub fn get_confirmation(&self) -> &::std::option::Option<bool> {
&self.confirmation
}
/// <p>An integer that represents the maximum time, in seconds, to wait for a delivery confirmation (PUBACK) from the receiving client after the message has been delivered. This parameter is only used when <code>confirmation</code> is set to <code>true</code>. If <code>confirmation</code> is <code>false</code>, this parameter is ignored.</p>
/// <p>The total API response time may be higher than this value due to internal processing. Set your HTTP client timeout to a value greater than this parameter.</p>
/// <p>Valid range: 1 to 15 seconds.</p>
/// <p>Default value: <code>5</code> seconds.</p>
pub fn timeout(mut self, input: i32) -> Self {
self.timeout = ::std::option::Option::Some(input);
self
}
/// <p>An integer that represents the maximum time, in seconds, to wait for a delivery confirmation (PUBACK) from the receiving client after the message has been delivered. This parameter is only used when <code>confirmation</code> is set to <code>true</code>. If <code>confirmation</code> is <code>false</code>, this parameter is ignored.</p>
/// <p>The total API response time may be higher than this value due to internal processing. Set your HTTP client timeout to a value greater than this parameter.</p>
/// <p>Valid range: 1 to 15 seconds.</p>
/// <p>Default value: <code>5</code> seconds.</p>
pub fn set_timeout(mut self, input: ::std::option::Option<i32>) -> Self {
self.timeout = input;
self
}
/// <p>An integer that represents the maximum time, in seconds, to wait for a delivery confirmation (PUBACK) from the receiving client after the message has been delivered. This parameter is only used when <code>confirmation</code> is set to <code>true</code>. If <code>confirmation</code> is <code>false</code>, this parameter is ignored.</p>
/// <p>The total API response time may be higher than this value due to internal processing. Set your HTTP client timeout to a value greater than this parameter.</p>
/// <p>Valid range: 1 to 15 seconds.</p>
/// <p>Default value: <code>5</code> seconds.</p>
pub fn get_timeout(&self) -> &::std::option::Option<i32> {
&self.timeout
}
/// <p>The message body. MQTT accepts text, binary, and empty (null) message payloads.</p>
pub fn payload(mut self, input: ::aws_smithy_types::Blob) -> Self {
self.payload = ::std::option::Option::Some(input);
self
}
/// <p>The message body. MQTT accepts text, binary, and empty (null) message payloads.</p>
pub fn set_payload(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
self.payload = input;
self
}
/// <p>The message body. MQTT accepts text, binary, and empty (null) message payloads.</p>
pub fn get_payload(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
&self.payload
}
/// <p>A JSON string that contains an array of JSON objects. If you don't use Amazon Web Services SDK or CLI, you must encode the JSON string to base64 format before adding it to the HTTP header. <code>userProperties</code> is an HTTP header value in the API.</p>
/// <p>For MQTT 3.1.1 clients, user properties are silently dropped.</p>
/// <p>The following example <code>userProperties</code> parameter is a JSON string which represents two User Properties. Note that it needs to be base64-encoded:</p>
/// <p><code>\[{"deviceName": "alpha"}, {"deviceCnt": "45"}\]</code></p>
pub fn user_properties(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.user_properties = ::std::option::Option::Some(input.into());
self
}
/// <p>A JSON string that contains an array of JSON objects. If you don't use Amazon Web Services SDK or CLI, you must encode the JSON string to base64 format before adding it to the HTTP header. <code>userProperties</code> is an HTTP header value in the API.</p>
/// <p>For MQTT 3.1.1 clients, user properties are silently dropped.</p>
/// <p>The following example <code>userProperties</code> parameter is a JSON string which represents two User Properties. Note that it needs to be base64-encoded:</p>
/// <p><code>\[{"deviceName": "alpha"}, {"deviceCnt": "45"}\]</code></p>
pub fn set_user_properties(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.user_properties = input;
self
}
/// <p>A JSON string that contains an array of JSON objects. If you don't use Amazon Web Services SDK or CLI, you must encode the JSON string to base64 format before adding it to the HTTP header. <code>userProperties</code> is an HTTP header value in the API.</p>
/// <p>For MQTT 3.1.1 clients, user properties are silently dropped.</p>
/// <p>The following example <code>userProperties</code> parameter is a JSON string which represents two User Properties. Note that it needs to be base64-encoded:</p>
/// <p><code>\[{"deviceName": "alpha"}, {"deviceCnt": "45"}\]</code></p>
pub fn get_user_properties(&self) -> &::std::option::Option<::std::string::String> {
&self.user_properties
}
/// <p>An <code>Enum</code> string value that indicates whether the payload is formatted as UTF-8. <code>payloadFormatIndicator</code> is an HTTP header value in the API.</p>
pub fn payload_format_indicator(mut self, input: crate::types::PayloadFormatIndicator) -> Self {
self.payload_format_indicator = ::std::option::Option::Some(input);
self
}
/// <p>An <code>Enum</code> string value that indicates whether the payload is formatted as UTF-8. <code>payloadFormatIndicator</code> is an HTTP header value in the API.</p>
pub fn set_payload_format_indicator(mut self, input: ::std::option::Option<crate::types::PayloadFormatIndicator>) -> Self {
self.payload_format_indicator = input;
self
}
/// <p>An <code>Enum</code> string value that indicates whether the payload is formatted as UTF-8. <code>payloadFormatIndicator</code> is an HTTP header value in the API.</p>
pub fn get_payload_format_indicator(&self) -> &::std::option::Option<crate::types::PayloadFormatIndicator> {
&self.payload_format_indicator
}
/// <p>The base64-encoded binary data used by the sender of the request message to identify which request the response message is for when it's received. <code>correlationData</code> is an HTTP header value in the API.</p>
pub fn correlation_data(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.correlation_data = ::std::option::Option::Some(input.into());
self
}
/// <p>The base64-encoded binary data used by the sender of the request message to identify which request the response message is for when it's received. <code>correlationData</code> is an HTTP header value in the API.</p>
pub fn set_correlation_data(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.correlation_data = input;
self
}
/// <p>The base64-encoded binary data used by the sender of the request message to identify which request the response message is for when it's received. <code>correlationData</code> is an HTTP header value in the API.</p>
pub fn get_correlation_data(&self) -> &::std::option::Option<::std::string::String> {
&self.correlation_data
}
/// Consumes the builder and constructs a [`SendDirectMessageInput`](crate::operation::send_direct_message::SendDirectMessageInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::send_direct_message::SendDirectMessageInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::send_direct_message::SendDirectMessageInput {
client_id: self.client_id,
topic: self.topic,
content_type: self.content_type,
response_topic: self.response_topic,
confirmation: self.confirmation,
timeout: self.timeout,
payload: self.payload,
user_properties: self.user_properties,
payload_format_indicator: self.payload_format_indicator,
correlation_data: self.correlation_data,
})
}
}