#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteDeviceDefinitionInput {
#[doc(hidden)]
pub device_definition_id: std::option::Option<std::string::String>,
}
impl DeleteDeviceDefinitionInput {
pub fn device_definition_id(&self) -> std::option::Option<&str> {
self.device_definition_id.as_deref()
}
}
impl DeleteDeviceDefinitionInput {
pub fn builder(
) -> crate::operation::delete_device_definition::builders::DeleteDeviceDefinitionInputBuilder
{
crate::operation::delete_device_definition::builders::DeleteDeviceDefinitionInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DeleteDeviceDefinitionInputBuilder {
pub(crate) device_definition_id: std::option::Option<std::string::String>,
}
impl DeleteDeviceDefinitionInputBuilder {
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 build(
self,
) -> Result<
crate::operation::delete_device_definition::DeleteDeviceDefinitionInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(
crate::operation::delete_device_definition::DeleteDeviceDefinitionInput {
device_definition_id: self.device_definition_id,
},
)
}
}