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