aws_sdk_robomaker/operation/describe_robot/
_describe_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 = "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 DescribeRobotOutput {
9    /// <p>The Amazon Resource Name (ARN) of the robot.</p>
10    pub arn: ::std::option::Option<::std::string::String>,
11    /// <p>The name of the robot.</p>
12    pub name: ::std::option::Option<::std::string::String>,
13    /// <p>The Amazon Resource Name (ARN) of the fleet.</p>
14    pub fleet_arn: ::std::option::Option<::std::string::String>,
15    /// <p>The status of the fleet.</p>
16    pub status: ::std::option::Option<crate::types::RobotStatus>,
17    /// <p>The Greengrass group id.</p>
18    pub greengrass_group_id: ::std::option::Option<::std::string::String>,
19    /// <p>The time, in milliseconds since the epoch, when the robot was created.</p>
20    pub created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
21    /// <p>The target architecture of the robot application.</p>
22    pub architecture: ::std::option::Option<crate::types::Architecture>,
23    /// <p>The Amazon Resource Name (ARN) of the last deployment job.</p>
24    pub last_deployment_job: ::std::option::Option<::std::string::String>,
25    /// <p>The time of the last deployment job.</p>
26    pub last_deployment_time: ::std::option::Option<::aws_smithy_types::DateTime>,
27    /// <p>The list of all tags added to the specified robot.</p>
28    pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
29    _request_id: Option<String>,
30}
31impl DescribeRobotOutput {
32    /// <p>The Amazon Resource Name (ARN) of the robot.</p>
33    pub fn arn(&self) -> ::std::option::Option<&str> {
34        self.arn.as_deref()
35    }
36    /// <p>The name of the robot.</p>
37    pub fn name(&self) -> ::std::option::Option<&str> {
38        self.name.as_deref()
39    }
40    /// <p>The Amazon Resource Name (ARN) of the fleet.</p>
41    pub fn fleet_arn(&self) -> ::std::option::Option<&str> {
42        self.fleet_arn.as_deref()
43    }
44    /// <p>The status of the fleet.</p>
45    pub fn status(&self) -> ::std::option::Option<&crate::types::RobotStatus> {
46        self.status.as_ref()
47    }
48    /// <p>The Greengrass group id.</p>
49    pub fn greengrass_group_id(&self) -> ::std::option::Option<&str> {
50        self.greengrass_group_id.as_deref()
51    }
52    /// <p>The time, in milliseconds since the epoch, when the robot was created.</p>
53    pub fn created_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
54        self.created_at.as_ref()
55    }
56    /// <p>The target architecture of the robot application.</p>
57    pub fn architecture(&self) -> ::std::option::Option<&crate::types::Architecture> {
58        self.architecture.as_ref()
59    }
60    /// <p>The Amazon Resource Name (ARN) of the last deployment job.</p>
61    pub fn last_deployment_job(&self) -> ::std::option::Option<&str> {
62        self.last_deployment_job.as_deref()
63    }
64    /// <p>The time of the last deployment job.</p>
65    pub fn last_deployment_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
66        self.last_deployment_time.as_ref()
67    }
68    /// <p>The list of all tags added to the specified robot.</p>
69    pub fn tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
70        self.tags.as_ref()
71    }
72}
73impl ::aws_types::request_id::RequestId for DescribeRobotOutput {
74    fn request_id(&self) -> Option<&str> {
75        self._request_id.as_deref()
76    }
77}
78impl DescribeRobotOutput {
79    /// Creates a new builder-style object to manufacture [`DescribeRobotOutput`](crate::operation::describe_robot::DescribeRobotOutput).
80    pub fn builder() -> crate::operation::describe_robot::builders::DescribeRobotOutputBuilder {
81        crate::operation::describe_robot::builders::DescribeRobotOutputBuilder::default()
82    }
83}
84
85/// A builder for [`DescribeRobotOutput`](crate::operation::describe_robot::DescribeRobotOutput).
86#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
87#[non_exhaustive]
88pub struct DescribeRobotOutputBuilder {
89    pub(crate) arn: ::std::option::Option<::std::string::String>,
90    pub(crate) name: ::std::option::Option<::std::string::String>,
91    pub(crate) fleet_arn: ::std::option::Option<::std::string::String>,
92    pub(crate) status: ::std::option::Option<crate::types::RobotStatus>,
93    pub(crate) greengrass_group_id: ::std::option::Option<::std::string::String>,
94    pub(crate) created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
95    pub(crate) architecture: ::std::option::Option<crate::types::Architecture>,
96    pub(crate) last_deployment_job: ::std::option::Option<::std::string::String>,
97    pub(crate) last_deployment_time: ::std::option::Option<::aws_smithy_types::DateTime>,
98    pub(crate) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
99    _request_id: Option<String>,
100}
101impl DescribeRobotOutputBuilder {
102    /// <p>The Amazon Resource Name (ARN) of the robot.</p>
103    pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
104        self.arn = ::std::option::Option::Some(input.into());
105        self
106    }
107    /// <p>The Amazon Resource Name (ARN) of the robot.</p>
108    pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
109        self.arn = input;
110        self
111    }
112    /// <p>The Amazon Resource Name (ARN) of the robot.</p>
113    pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
114        &self.arn
115    }
116    /// <p>The name of the robot.</p>
117    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
118        self.name = ::std::option::Option::Some(input.into());
119        self
120    }
121    /// <p>The name of the robot.</p>
122    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
123        self.name = input;
124        self
125    }
126    /// <p>The name of the robot.</p>
127    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
128        &self.name
129    }
130    /// <p>The Amazon Resource Name (ARN) of the fleet.</p>
131    pub fn fleet_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
132        self.fleet_arn = ::std::option::Option::Some(input.into());
133        self
134    }
135    /// <p>The Amazon Resource Name (ARN) of the fleet.</p>
136    pub fn set_fleet_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
137        self.fleet_arn = input;
138        self
139    }
140    /// <p>The Amazon Resource Name (ARN) of the fleet.</p>
141    pub fn get_fleet_arn(&self) -> &::std::option::Option<::std::string::String> {
142        &self.fleet_arn
143    }
144    /// <p>The status of the fleet.</p>
145    pub fn status(mut self, input: crate::types::RobotStatus) -> Self {
146        self.status = ::std::option::Option::Some(input);
147        self
148    }
149    /// <p>The status of the fleet.</p>
150    pub fn set_status(mut self, input: ::std::option::Option<crate::types::RobotStatus>) -> Self {
151        self.status = input;
152        self
153    }
154    /// <p>The status of the fleet.</p>
155    pub fn get_status(&self) -> &::std::option::Option<crate::types::RobotStatus> {
156        &self.status
157    }
158    /// <p>The Greengrass group id.</p>
159    pub fn greengrass_group_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
160        self.greengrass_group_id = ::std::option::Option::Some(input.into());
161        self
162    }
163    /// <p>The Greengrass group id.</p>
164    pub fn set_greengrass_group_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
165        self.greengrass_group_id = input;
166        self
167    }
168    /// <p>The Greengrass group id.</p>
169    pub fn get_greengrass_group_id(&self) -> &::std::option::Option<::std::string::String> {
170        &self.greengrass_group_id
171    }
172    /// <p>The time, in milliseconds since the epoch, when the robot was created.</p>
173    pub fn created_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
174        self.created_at = ::std::option::Option::Some(input);
175        self
176    }
177    /// <p>The time, in milliseconds since the epoch, when the robot was created.</p>
178    pub fn set_created_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
179        self.created_at = input;
180        self
181    }
182    /// <p>The time, in milliseconds since the epoch, when the robot was created.</p>
183    pub fn get_created_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
184        &self.created_at
185    }
186    /// <p>The target architecture of the robot application.</p>
187    pub fn architecture(mut self, input: crate::types::Architecture) -> Self {
188        self.architecture = ::std::option::Option::Some(input);
189        self
190    }
191    /// <p>The target architecture of the robot application.</p>
192    pub fn set_architecture(mut self, input: ::std::option::Option<crate::types::Architecture>) -> Self {
193        self.architecture = input;
194        self
195    }
196    /// <p>The target architecture of the robot application.</p>
197    pub fn get_architecture(&self) -> &::std::option::Option<crate::types::Architecture> {
198        &self.architecture
199    }
200    /// <p>The Amazon Resource Name (ARN) of the last deployment job.</p>
201    pub fn last_deployment_job(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
202        self.last_deployment_job = ::std::option::Option::Some(input.into());
203        self
204    }
205    /// <p>The Amazon Resource Name (ARN) of the last deployment job.</p>
206    pub fn set_last_deployment_job(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
207        self.last_deployment_job = input;
208        self
209    }
210    /// <p>The Amazon Resource Name (ARN) of the last deployment job.</p>
211    pub fn get_last_deployment_job(&self) -> &::std::option::Option<::std::string::String> {
212        &self.last_deployment_job
213    }
214    /// <p>The time of the last deployment job.</p>
215    pub fn last_deployment_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
216        self.last_deployment_time = ::std::option::Option::Some(input);
217        self
218    }
219    /// <p>The time of the last deployment job.</p>
220    pub fn set_last_deployment_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
221        self.last_deployment_time = input;
222        self
223    }
224    /// <p>The time of the last deployment job.</p>
225    pub fn get_last_deployment_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
226        &self.last_deployment_time
227    }
228    /// Adds a key-value pair to `tags`.
229    ///
230    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
231    ///
232    /// <p>The list of all tags added to the specified robot.</p>
233    pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
234        let mut hash_map = self.tags.unwrap_or_default();
235        hash_map.insert(k.into(), v.into());
236        self.tags = ::std::option::Option::Some(hash_map);
237        self
238    }
239    /// <p>The list of all tags added to the specified robot.</p>
240    pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
241        self.tags = input;
242        self
243    }
244    /// <p>The list of all tags added to the specified robot.</p>
245    pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
246        &self.tags
247    }
248    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
249        self._request_id = Some(request_id.into());
250        self
251    }
252
253    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
254        self._request_id = request_id;
255        self
256    }
257    /// Consumes the builder and constructs a [`DescribeRobotOutput`](crate::operation::describe_robot::DescribeRobotOutput).
258    pub fn build(self) -> crate::operation::describe_robot::DescribeRobotOutput {
259        crate::operation::describe_robot::DescribeRobotOutput {
260            arn: self.arn,
261            name: self.name,
262            fleet_arn: self.fleet_arn,
263            status: self.status,
264            greengrass_group_id: self.greengrass_group_id,
265            created_at: self.created_at,
266            architecture: self.architecture,
267            last_deployment_job: self.last_deployment_job,
268            last_deployment_time: self.last_deployment_time,
269            tags: self.tags,
270            _request_id: self._request_id,
271        }
272    }
273}