#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateDeviceDefinitionInput {
#[doc(hidden)]
pub device_definition_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
}
impl UpdateDeviceDefinitionInput {
pub fn device_definition_id(&self) -> std::option::Option<&str> {
self.device_definition_id.as_deref()
}
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
}
impl UpdateDeviceDefinitionInput {
pub fn builder(
) -> crate::operation::update_device_definition::builders::UpdateDeviceDefinitionInputBuilder
{
crate::operation::update_device_definition::builders::UpdateDeviceDefinitionInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct UpdateDeviceDefinitionInputBuilder {
pub(crate) device_definition_id: std::option::Option<std::string::String>,
pub(crate) name: std::option::Option<std::string::String>,
}
impl UpdateDeviceDefinitionInputBuilder {
pub fn device_definition_id(mut self, input: impl Into<std::string::String>) -> Self {
self.device_definition_id = Some(input.into());
self
}
pub fn set_device_definition_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.device_definition_id = input;
self
}
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::update_device_definition::UpdateDeviceDefinitionInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(
crate::operation::update_device_definition::UpdateDeviceDefinitionInput {
device_definition_id: self.device_definition_id,
name: self.name,
},
)
}
}