aws_sdk_iot/operation/update_command/
_update_command_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateCommandInput {
pub command_id: ::std::option::Option<::std::string::String>,
pub display_name: ::std::option::Option<::std::string::String>,
pub description: ::std::option::Option<::std::string::String>,
pub deprecated: ::std::option::Option<bool>,
}
impl UpdateCommandInput {
pub fn command_id(&self) -> ::std::option::Option<&str> {
self.command_id.as_deref()
}
pub fn display_name(&self) -> ::std::option::Option<&str> {
self.display_name.as_deref()
}
pub fn description(&self) -> ::std::option::Option<&str> {
self.description.as_deref()
}
pub fn deprecated(&self) -> ::std::option::Option<bool> {
self.deprecated
}
}
impl UpdateCommandInput {
pub fn builder() -> crate::operation::update_command::builders::UpdateCommandInputBuilder {
crate::operation::update_command::builders::UpdateCommandInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateCommandInputBuilder {
pub(crate) command_id: ::std::option::Option<::std::string::String>,
pub(crate) display_name: ::std::option::Option<::std::string::String>,
pub(crate) description: ::std::option::Option<::std::string::String>,
pub(crate) deprecated: ::std::option::Option<bool>,
}
impl UpdateCommandInputBuilder {
pub fn command_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.command_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_command_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.command_id = input;
self
}
pub fn get_command_id(&self) -> &::std::option::Option<::std::string::String> {
&self.command_id
}
pub fn display_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.display_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_display_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.display_name = input;
self
}
pub fn get_display_name(&self) -> &::std::option::Option<::std::string::String> {
&self.display_name
}
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.description = ::std::option::Option::Some(input.into());
self
}
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.description = input;
self
}
pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
&self.description
}
pub fn deprecated(mut self, input: bool) -> Self {
self.deprecated = ::std::option::Option::Some(input);
self
}
pub fn set_deprecated(mut self, input: ::std::option::Option<bool>) -> Self {
self.deprecated = input;
self
}
pub fn get_deprecated(&self) -> &::std::option::Option<bool> {
&self.deprecated
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::update_command::UpdateCommandInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::update_command::UpdateCommandInput {
command_id: self.command_id,
display_name: self.display_name,
description: self.description,
deprecated: self.deprecated,
})
}
}