aws_sdk_devicefarm/operation/get_device/
_get_device_output.rs#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetDeviceOutput {
pub device: ::std::option::Option<crate::types::Device>,
_request_id: Option<String>,
}
impl GetDeviceOutput {
pub fn device(&self) -> ::std::option::Option<&crate::types::Device> {
self.device.as_ref()
}
}
impl ::aws_types::request_id::RequestId for GetDeviceOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetDeviceOutput {
pub fn builder() -> crate::operation::get_device::builders::GetDeviceOutputBuilder {
crate::operation::get_device::builders::GetDeviceOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetDeviceOutputBuilder {
pub(crate) device: ::std::option::Option<crate::types::Device>,
_request_id: Option<String>,
}
impl GetDeviceOutputBuilder {
pub fn device(mut self, input: crate::types::Device) -> Self {
self.device = ::std::option::Option::Some(input);
self
}
pub fn set_device(mut self, input: ::std::option::Option<crate::types::Device>) -> Self {
self.device = input;
self
}
pub fn get_device(&self) -> &::std::option::Option<crate::types::Device> {
&self.device
}
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::get_device::GetDeviceOutput {
crate::operation::get_device::GetDeviceOutput {
device: self.device,
_request_id: self._request_id,
}
}
}