#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DescribeDeviceOutput {
#[doc(hidden)]
pub status: std::option::Option<crate::types::DeviceStatus>,
#[doc(hidden)]
pub model: std::option::Option<std::string::String>,
#[doc(hidden)]
pub manufacturer: std::option::Option<std::string::String>,
#[doc(hidden)]
pub operating_system: std::option::Option<std::string::String>,
#[doc(hidden)]
pub operating_system_version: std::option::Option<std::string::String>,
#[doc(hidden)]
pub patch_level: std::option::Option<std::string::String>,
#[doc(hidden)]
pub first_accessed_time: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub last_accessed_time: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub username: std::option::Option<std::string::String>,
_request_id: Option<String>,
}
impl DescribeDeviceOutput {
pub fn status(&self) -> std::option::Option<&crate::types::DeviceStatus> {
self.status.as_ref()
}
pub fn model(&self) -> std::option::Option<&str> {
self.model.as_deref()
}
pub fn manufacturer(&self) -> std::option::Option<&str> {
self.manufacturer.as_deref()
}
pub fn operating_system(&self) -> std::option::Option<&str> {
self.operating_system.as_deref()
}
pub fn operating_system_version(&self) -> std::option::Option<&str> {
self.operating_system_version.as_deref()
}
pub fn patch_level(&self) -> std::option::Option<&str> {
self.patch_level.as_deref()
}
pub fn first_accessed_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.first_accessed_time.as_ref()
}
pub fn last_accessed_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.last_accessed_time.as_ref()
}
pub fn username(&self) -> std::option::Option<&str> {
self.username.as_deref()
}
}
impl aws_http::request_id::RequestId for DescribeDeviceOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DescribeDeviceOutput {
pub fn builder() -> crate::operation::describe_device::builders::DescribeDeviceOutputBuilder {
crate::operation::describe_device::builders::DescribeDeviceOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DescribeDeviceOutputBuilder {
pub(crate) status: std::option::Option<crate::types::DeviceStatus>,
pub(crate) model: std::option::Option<std::string::String>,
pub(crate) manufacturer: std::option::Option<std::string::String>,
pub(crate) operating_system: std::option::Option<std::string::String>,
pub(crate) operating_system_version: std::option::Option<std::string::String>,
pub(crate) patch_level: std::option::Option<std::string::String>,
pub(crate) first_accessed_time: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) last_accessed_time: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) username: std::option::Option<std::string::String>,
_request_id: Option<String>,
}
impl DescribeDeviceOutputBuilder {
pub fn status(mut self, input: crate::types::DeviceStatus) -> Self {
self.status = Some(input);
self
}
pub fn set_status(mut self, input: std::option::Option<crate::types::DeviceStatus>) -> Self {
self.status = input;
self
}
pub fn model(mut self, input: impl Into<std::string::String>) -> Self {
self.model = Some(input.into());
self
}
pub fn set_model(mut self, input: std::option::Option<std::string::String>) -> Self {
self.model = input;
self
}
pub fn manufacturer(mut self, input: impl Into<std::string::String>) -> Self {
self.manufacturer = Some(input.into());
self
}
pub fn set_manufacturer(mut self, input: std::option::Option<std::string::String>) -> Self {
self.manufacturer = input;
self
}
pub fn operating_system(mut self, input: impl Into<std::string::String>) -> Self {
self.operating_system = Some(input.into());
self
}
pub fn set_operating_system(mut self, input: std::option::Option<std::string::String>) -> Self {
self.operating_system = input;
self
}
pub fn operating_system_version(mut self, input: impl Into<std::string::String>) -> Self {
self.operating_system_version = Some(input.into());
self
}
pub fn set_operating_system_version(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.operating_system_version = input;
self
}
pub fn patch_level(mut self, input: impl Into<std::string::String>) -> Self {
self.patch_level = Some(input.into());
self
}
pub fn set_patch_level(mut self, input: std::option::Option<std::string::String>) -> Self {
self.patch_level = input;
self
}
pub fn first_accessed_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.first_accessed_time = Some(input);
self
}
pub fn set_first_accessed_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.first_accessed_time = input;
self
}
pub fn last_accessed_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.last_accessed_time = Some(input);
self
}
pub fn set_last_accessed_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.last_accessed_time = input;
self
}
pub fn username(mut self, input: impl Into<std::string::String>) -> Self {
self.username = Some(input.into());
self
}
pub fn set_username(mut self, input: std::option::Option<std::string::String>) -> Self {
self.username = input;
self
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::describe_device::DescribeDeviceOutput {
crate::operation::describe_device::DescribeDeviceOutput {
status: self.status,
model: self.model,
manufacturer: self.manufacturer,
operating_system: self.operating_system,
operating_system_version: self.operating_system_version,
patch_level: self.patch_level,
first_accessed_time: self.first_accessed_time,
last_accessed_time: self.last_accessed_time,
username: self.username,
_request_id: self._request_id,
}
}
}