aws_sdk_robomaker/operation/register_robot/
_register_robot_output.rs1#[allow(missing_docs)] #[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 pub fleet: ::std::option::Option<::std::string::String>,
11 pub robot: ::std::option::Option<::std::string::String>,
13 _request_id: Option<String>,
14}
15impl RegisterRobotOutput {
16 pub fn fleet(&self) -> ::std::option::Option<&str> {
18 self.fleet.as_deref()
19 }
20 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 pub fn builder() -> crate::operation::register_robot::builders::RegisterRobotOutputBuilder {
33 crate::operation::register_robot::builders::RegisterRobotOutputBuilder::default()
34 }
35}
36
37#[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 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 pub fn set_fleet(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
53 self.fleet = input;
54 self
55 }
56 pub fn get_fleet(&self) -> &::std::option::Option<::std::string::String> {
58 &self.fleet
59 }
60 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 pub fn set_robot(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
67 self.robot = input;
68 self
69 }
70 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 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}