aws_sdk_robomaker/operation/register_robot/
_register_robot_output.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[deprecated(
4    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."
5)]
6#[non_exhaustive]
7#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
8pub struct RegisterRobotOutput {
9    /// <p>The Amazon Resource Name (ARN) of the fleet that the robot will join.</p>
10    pub fleet: ::std::option::Option<::std::string::String>,
11    /// <p>Information about the robot registration.</p>
12    pub robot: ::std::option::Option<::std::string::String>,
13    _request_id: Option<String>,
14}
15impl RegisterRobotOutput {
16    /// <p>The Amazon Resource Name (ARN) of the fleet that the robot will join.</p>
17    pub fn fleet(&self) -> ::std::option::Option<&str> {
18        self.fleet.as_deref()
19    }
20    /// <p>Information about the robot registration.</p>
21    pub fn robot(&self) -> ::std::option::Option<&str> {
22        self.robot.as_deref()
23    }
24}
25impl ::aws_types::request_id::RequestId for RegisterRobotOutput {
26    fn request_id(&self) -> Option<&str> {
27        self._request_id.as_deref()
28    }
29}
30impl RegisterRobotOutput {
31    /// Creates a new builder-style object to manufacture [`RegisterRobotOutput`](crate::operation::register_robot::RegisterRobotOutput).
32    pub fn builder() -> crate::operation::register_robot::builders::RegisterRobotOutputBuilder {
33        crate::operation::register_robot::builders::RegisterRobotOutputBuilder::default()
34    }
35}
36
37/// A builder for [`RegisterRobotOutput`](crate::operation::register_robot::RegisterRobotOutput).
38#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
39#[non_exhaustive]
40pub struct RegisterRobotOutputBuilder {
41    pub(crate) fleet: ::std::option::Option<::std::string::String>,
42    pub(crate) robot: ::std::option::Option<::std::string::String>,
43    _request_id: Option<String>,
44}
45impl RegisterRobotOutputBuilder {
46    /// <p>The Amazon Resource Name (ARN) of the fleet that the robot will join.</p>
47    pub fn fleet(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
48        self.fleet = ::std::option::Option::Some(input.into());
49        self
50    }
51    /// <p>The Amazon Resource Name (ARN) of the fleet that the robot will join.</p>
52    pub fn set_fleet(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
53        self.fleet = input;
54        self
55    }
56    /// <p>The Amazon Resource Name (ARN) of the fleet that the robot will join.</p>
57    pub fn get_fleet(&self) -> &::std::option::Option<::std::string::String> {
58        &self.fleet
59    }
60    /// <p>Information about the robot registration.</p>
61    pub fn robot(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
62        self.robot = ::std::option::Option::Some(input.into());
63        self
64    }
65    /// <p>Information about the robot registration.</p>
66    pub fn set_robot(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
67        self.robot = input;
68        self
69    }
70    /// <p>Information about the robot registration.</p>
71    pub fn get_robot(&self) -> &::std::option::Option<::std::string::String> {
72        &self.robot
73    }
74    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
75        self._request_id = Some(request_id.into());
76        self
77    }
78
79    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
80        self._request_id = request_id;
81        self
82    }
83    /// Consumes the builder and constructs a [`RegisterRobotOutput`](crate::operation::register_robot::RegisterRobotOutput).
84    pub fn build(self) -> crate::operation::register_robot::RegisterRobotOutput {
85        crate::operation::register_robot::RegisterRobotOutput {
86            fleet: self.fleet,
87            robot: self.robot,
88            _request_id: self._request_id,
89        }
90    }
91}