#[allow(missing_docs)] #[deprecated(
note = "AWS RoboMaker is unable to process this request as the support for the AWS RoboMaker application deployment feature has ended. For additional information, see https://docs.aws.amazon.com/robomaker/latest/dg/fleets.html."
)]
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct RegisterRobotOutput {
pub fleet: ::std::option::Option<::std::string::String>,
pub robot: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl RegisterRobotOutput {
pub fn fleet(&self) -> ::std::option::Option<&str> {
self.fleet.as_deref()
}
pub fn robot(&self) -> ::std::option::Option<&str> {
self.robot.as_deref()
}
}
impl ::aws_types::request_id::RequestId for RegisterRobotOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl RegisterRobotOutput {
pub fn builder() -> crate::operation::register_robot::builders::RegisterRobotOutputBuilder {
crate::operation::register_robot::builders::RegisterRobotOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct RegisterRobotOutputBuilder {
pub(crate) fleet: ::std::option::Option<::std::string::String>,
pub(crate) robot: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl RegisterRobotOutputBuilder {
pub fn fleet(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.fleet = ::std::option::Option::Some(input.into());
self
}
pub fn set_fleet(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.fleet = input;
self
}
pub fn get_fleet(&self) -> &::std::option::Option<::std::string::String> {
&self.fleet
}
pub fn robot(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.robot = ::std::option::Option::Some(input.into());
self
}
pub fn set_robot(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.robot = input;
self
}
pub fn get_robot(&self) -> &::std::option::Option<::std::string::String> {
&self.robot
}
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::register_robot::RegisterRobotOutput {
crate::operation::register_robot::RegisterRobotOutput {
fleet: self.fleet,
robot: self.robot,
_request_id: self._request_id,
}
}
}