aws_sdk_iotdataplane/client/get_retained_message.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`GetRetainedMessage`](crate::operation::get_retained_message::builders::GetRetainedMessageFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`topic(impl Into<String>)`](crate::operation::get_retained_message::builders::GetRetainedMessageFluentBuilder::topic) / [`set_topic(Option<String>)`](crate::operation::get_retained_message::builders::GetRetainedMessageFluentBuilder::set_topic):<br>required: **true**<br><p>The topic name of the retained message to retrieve.</p><br>
7 /// - On success, responds with [`GetRetainedMessageOutput`](crate::operation::get_retained_message::GetRetainedMessageOutput) with field(s):
8 /// - [`topic(Option<String>)`](crate::operation::get_retained_message::GetRetainedMessageOutput::topic): <p>The topic name to which the retained message was published.</p>
9 /// - [`payload(Option<Blob>)`](crate::operation::get_retained_message::GetRetainedMessageOutput::payload): <p>The Base64-encoded message payload of the retained message body.</p>
10 /// - [`qos(i32)`](crate::operation::get_retained_message::GetRetainedMessageOutput::qos): <p>The quality of service (QoS) level used to publish the retained message.</p>
11 /// - [`last_modified_time(i64)`](crate::operation::get_retained_message::GetRetainedMessageOutput::last_modified_time): <p>The Epoch date and time, in milliseconds, when the retained message was stored by IoT.</p>
12 /// - [`user_properties(Option<Blob>)`](crate::operation::get_retained_message::GetRetainedMessageOutput::user_properties): <p>A base64-encoded JSON string that includes an array of JSON objects, or null if the retained message doesn't include any user properties.</p> <p>The following example <code>userProperties</code> parameter is a JSON string that represents two user properties. Note that it will be base64-encoded:</p> <p><code>\[{"deviceName": "alpha"}, {"deviceCnt": "45"}\]</code></p>
13 /// - On failure, responds with [`SdkError<GetRetainedMessageError>`](crate::operation::get_retained_message::GetRetainedMessageError)
14 pub fn get_retained_message(&self) -> crate::operation::get_retained_message::builders::GetRetainedMessageFluentBuilder {
15 crate::operation::get_retained_message::builders::GetRetainedMessageFluentBuilder::new(self.handle.clone())
16 }
17}