#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct UpdateThingShadowOutput {
pub payload: std::option::Option<aws_smithy_types::Blob>,
}
impl std::fmt::Debug for UpdateThingShadowOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("UpdateThingShadowOutput");
formatter.field("payload", &self.payload);
formatter.finish()
}
}
pub mod update_thing_shadow_output {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) payload: std::option::Option<aws_smithy_types::Blob>,
}
impl Builder {
pub fn payload(mut self, input: aws_smithy_types::Blob) -> Self {
self.payload = Some(input);
self
}
pub fn set_payload(mut self, input: std::option::Option<aws_smithy_types::Blob>) -> Self {
self.payload = input;
self
}
pub fn build(self) -> crate::output::UpdateThingShadowOutput {
crate::output::UpdateThingShadowOutput {
payload: self.payload,
}
}
}
}
impl UpdateThingShadowOutput {
pub fn builder() -> crate::output::update_thing_shadow_output::Builder {
crate::output::update_thing_shadow_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct PublishOutput {}
impl std::fmt::Debug for PublishOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("PublishOutput");
formatter.finish()
}
}
pub mod publish_output {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
pub fn build(self) -> crate::output::PublishOutput {
crate::output::PublishOutput {}
}
}
}
impl PublishOutput {
pub fn builder() -> crate::output::publish_output::Builder {
crate::output::publish_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ListRetainedMessagesOutput {
pub retained_topics: std::option::Option<std::vec::Vec<crate::model::RetainedMessageSummary>>,
pub next_token: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for ListRetainedMessagesOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ListRetainedMessagesOutput");
formatter.field("retained_topics", &self.retained_topics);
formatter.field("next_token", &self.next_token);
formatter.finish()
}
}
pub mod list_retained_messages_output {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) retained_topics:
std::option::Option<std::vec::Vec<crate::model::RetainedMessageSummary>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
pub fn retained_topics(
mut self,
input: impl Into<crate::model::RetainedMessageSummary>,
) -> Self {
let mut v = self.retained_topics.unwrap_or_default();
v.push(input.into());
self.retained_topics = Some(v);
self
}
pub fn set_retained_topics(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::RetainedMessageSummary>>,
) -> Self {
self.retained_topics = input;
self
}
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
pub fn build(self) -> crate::output::ListRetainedMessagesOutput {
crate::output::ListRetainedMessagesOutput {
retained_topics: self.retained_topics,
next_token: self.next_token,
}
}
}
}
impl ListRetainedMessagesOutput {
pub fn builder() -> crate::output::list_retained_messages_output::Builder {
crate::output::list_retained_messages_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ListNamedShadowsForThingOutput {
pub results: std::option::Option<std::vec::Vec<std::string::String>>,
pub next_token: std::option::Option<std::string::String>,
pub timestamp: i64,
}
impl std::fmt::Debug for ListNamedShadowsForThingOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ListNamedShadowsForThingOutput");
formatter.field("results", &self.results);
formatter.field("next_token", &self.next_token);
formatter.field("timestamp", &self.timestamp);
formatter.finish()
}
}
pub mod list_named_shadows_for_thing_output {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) results: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) next_token: std::option::Option<std::string::String>,
pub(crate) timestamp: std::option::Option<i64>,
}
impl Builder {
pub fn results(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.results.unwrap_or_default();
v.push(input.into());
self.results = Some(v);
self
}
pub fn set_results(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.results = input;
self
}
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
pub fn timestamp(mut self, input: i64) -> Self {
self.timestamp = Some(input);
self
}
pub fn set_timestamp(mut self, input: std::option::Option<i64>) -> Self {
self.timestamp = input;
self
}
pub fn build(self) -> crate::output::ListNamedShadowsForThingOutput {
crate::output::ListNamedShadowsForThingOutput {
results: self.results,
next_token: self.next_token,
timestamp: self.timestamp.unwrap_or_default(),
}
}
}
}
impl ListNamedShadowsForThingOutput {
pub fn builder() -> crate::output::list_named_shadows_for_thing_output::Builder {
crate::output::list_named_shadows_for_thing_output::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct GetThingShadowOutput {
pub payload: std::option::Option<aws_smithy_types::Blob>,
}
impl std::fmt::Debug for GetThingShadowOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("GetThingShadowOutput");
formatter.field("payload", &self.payload);
formatter.finish()
}
}
pub mod get_thing_shadow_output {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) payload: std::option::Option<aws_smithy_types::Blob>,
}
impl Builder {
pub fn payload(mut self, input: aws_smithy_types::Blob) -> Self {
self.payload = Some(input);
self
}
pub fn set_payload(mut self, input: std::option::Option<aws_smithy_types::Blob>) -> Self {
self.payload = input;
self
}
pub fn build(self) -> crate::output::GetThingShadowOutput {
crate::output::GetThingShadowOutput {
payload: self.payload,
}
}
}
}
impl GetThingShadowOutput {
pub fn builder() -> crate::output::get_thing_shadow_output::Builder {
crate::output::get_thing_shadow_output::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct GetRetainedMessageOutput {
pub topic: std::option::Option<std::string::String>,
pub payload: std::option::Option<aws_smithy_types::Blob>,
pub qos: i32,
pub last_modified_time: i64,
}
impl std::fmt::Debug for GetRetainedMessageOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("GetRetainedMessageOutput");
formatter.field("topic", &self.topic);
formatter.field("payload", &self.payload);
formatter.field("qos", &self.qos);
formatter.field("last_modified_time", &self.last_modified_time);
formatter.finish()
}
}
pub mod get_retained_message_output {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) topic: std::option::Option<std::string::String>,
pub(crate) payload: std::option::Option<aws_smithy_types::Blob>,
pub(crate) qos: std::option::Option<i32>,
pub(crate) last_modified_time: std::option::Option<i64>,
}
impl Builder {
pub fn topic(mut self, input: impl Into<std::string::String>) -> Self {
self.topic = Some(input.into());
self
}
pub fn set_topic(mut self, input: std::option::Option<std::string::String>) -> Self {
self.topic = input;
self
}
pub fn payload(mut self, input: aws_smithy_types::Blob) -> Self {
self.payload = Some(input);
self
}
pub fn set_payload(mut self, input: std::option::Option<aws_smithy_types::Blob>) -> Self {
self.payload = input;
self
}
pub fn qos(mut self, input: i32) -> Self {
self.qos = Some(input);
self
}
pub fn set_qos(mut self, input: std::option::Option<i32>) -> Self {
self.qos = input;
self
}
pub fn last_modified_time(mut self, input: i64) -> Self {
self.last_modified_time = Some(input);
self
}
pub fn set_last_modified_time(mut self, input: std::option::Option<i64>) -> Self {
self.last_modified_time = input;
self
}
pub fn build(self) -> crate::output::GetRetainedMessageOutput {
crate::output::GetRetainedMessageOutput {
topic: self.topic,
payload: self.payload,
qos: self.qos.unwrap_or_default(),
last_modified_time: self.last_modified_time.unwrap_or_default(),
}
}
}
}
impl GetRetainedMessageOutput {
pub fn builder() -> crate::output::get_retained_message_output::Builder {
crate::output::get_retained_message_output::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DeleteThingShadowOutput {
pub payload: std::option::Option<aws_smithy_types::Blob>,
}
impl std::fmt::Debug for DeleteThingShadowOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DeleteThingShadowOutput");
formatter.field("payload", &self.payload);
formatter.finish()
}
}
pub mod delete_thing_shadow_output {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) payload: std::option::Option<aws_smithy_types::Blob>,
}
impl Builder {
pub fn payload(mut self, input: aws_smithy_types::Blob) -> Self {
self.payload = Some(input);
self
}
pub fn set_payload(mut self, input: std::option::Option<aws_smithy_types::Blob>) -> Self {
self.payload = input;
self
}
pub fn build(self) -> crate::output::DeleteThingShadowOutput {
crate::output::DeleteThingShadowOutput {
payload: self.payload,
}
}
}
}
impl DeleteThingShadowOutput {
pub fn builder() -> crate::output::delete_thing_shadow_output::Builder {
crate::output::delete_thing_shadow_output::Builder::default()
}
}