Struct aws_sdk_iotdataplane::operation::get_retained_message::builders::GetRetainedMessageOutputBuilder
source · #[non_exhaustive]pub struct GetRetainedMessageOutputBuilder { /* private fields */ }
Expand description
A builder for GetRetainedMessageOutput
.
Implementations§
source§impl GetRetainedMessageOutputBuilder
impl GetRetainedMessageOutputBuilder
sourcepub fn topic(self, input: impl Into<String>) -> Self
pub fn topic(self, input: impl Into<String>) -> Self
The topic name to which the retained message was published.
sourcepub fn set_topic(self, input: Option<String>) -> Self
pub fn set_topic(self, input: Option<String>) -> Self
The topic name to which the retained message was published.
sourcepub fn get_topic(&self) -> &Option<String>
pub fn get_topic(&self) -> &Option<String>
The topic name to which the retained message was published.
sourcepub fn payload(self, input: Blob) -> Self
pub fn payload(self, input: Blob) -> Self
The Base64-encoded message payload of the retained message body.
sourcepub fn set_payload(self, input: Option<Blob>) -> Self
pub fn set_payload(self, input: Option<Blob>) -> Self
The Base64-encoded message payload of the retained message body.
sourcepub fn get_payload(&self) -> &Option<Blob>
pub fn get_payload(&self) -> &Option<Blob>
The Base64-encoded message payload of the retained message body.
sourcepub fn qos(self, input: i32) -> Self
pub fn qos(self, input: i32) -> Self
The quality of service (QoS) level used to publish the retained message.
sourcepub fn set_qos(self, input: Option<i32>) -> Self
pub fn set_qos(self, input: Option<i32>) -> Self
The quality of service (QoS) level used to publish the retained message.
sourcepub fn get_qos(&self) -> &Option<i32>
pub fn get_qos(&self) -> &Option<i32>
The quality of service (QoS) level used to publish the retained message.
sourcepub fn last_modified_time(self, input: i64) -> Self
pub fn last_modified_time(self, input: i64) -> Self
The Epoch date and time, in milliseconds, when the retained message was stored by IoT.
sourcepub fn set_last_modified_time(self, input: Option<i64>) -> Self
pub fn set_last_modified_time(self, input: Option<i64>) -> Self
The Epoch date and time, in milliseconds, when the retained message was stored by IoT.
sourcepub fn get_last_modified_time(&self) -> &Option<i64>
pub fn get_last_modified_time(&self) -> &Option<i64>
The Epoch date and time, in milliseconds, when the retained message was stored by IoT.
sourcepub fn user_properties(self, input: Blob) -> Self
pub fn user_properties(self, input: Blob) -> Self
A base64-encoded JSON string that includes an array of JSON objects, or null if the retained message doesn't include any user properties.
The following example userProperties
parameter is a JSON string that represents two user properties. Note that it will be base64-encoded:
[{"deviceName": "alpha"}, {"deviceCnt": "45"}]
sourcepub fn set_user_properties(self, input: Option<Blob>) -> Self
pub fn set_user_properties(self, input: Option<Blob>) -> Self
A base64-encoded JSON string that includes an array of JSON objects, or null if the retained message doesn't include any user properties.
The following example userProperties
parameter is a JSON string that represents two user properties. Note that it will be base64-encoded:
[{"deviceName": "alpha"}, {"deviceCnt": "45"}]
sourcepub fn get_user_properties(&self) -> &Option<Blob>
pub fn get_user_properties(&self) -> &Option<Blob>
A base64-encoded JSON string that includes an array of JSON objects, or null if the retained message doesn't include any user properties.
The following example userProperties
parameter is a JSON string that represents two user properties. Note that it will be base64-encoded:
[{"deviceName": "alpha"}, {"deviceCnt": "45"}]
sourcepub fn build(self) -> GetRetainedMessageOutput
pub fn build(self) -> GetRetainedMessageOutput
Consumes the builder and constructs a GetRetainedMessageOutput
.
Trait Implementations§
source§impl Clone for GetRetainedMessageOutputBuilder
impl Clone for GetRetainedMessageOutputBuilder
source§fn clone(&self) -> GetRetainedMessageOutputBuilder
fn clone(&self) -> GetRetainedMessageOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for GetRetainedMessageOutputBuilder
impl Default for GetRetainedMessageOutputBuilder
source§fn default() -> GetRetainedMessageOutputBuilder
fn default() -> GetRetainedMessageOutputBuilder
source§impl PartialEq<GetRetainedMessageOutputBuilder> for GetRetainedMessageOutputBuilder
impl PartialEq<GetRetainedMessageOutputBuilder> for GetRetainedMessageOutputBuilder
source§fn eq(&self, other: &GetRetainedMessageOutputBuilder) -> bool
fn eq(&self, other: &GetRetainedMessageOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.