aws_sdk_robomaker/operation/describe_robot/
_describe_robot_output.rs1#[allow(missing_docs)] #[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 pub arn: ::std::option::Option<::std::string::String>,
11 pub name: ::std::option::Option<::std::string::String>,
13 pub fleet_arn: ::std::option::Option<::std::string::String>,
15 pub status: ::std::option::Option<crate::types::RobotStatus>,
17 pub greengrass_group_id: ::std::option::Option<::std::string::String>,
19 pub created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
21 pub architecture: ::std::option::Option<crate::types::Architecture>,
23 pub last_deployment_job: ::std::option::Option<::std::string::String>,
25 pub last_deployment_time: ::std::option::Option<::aws_smithy_types::DateTime>,
27 pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
29 _request_id: Option<String>,
30}
31impl DescribeRobotOutput {
32 pub fn arn(&self) -> ::std::option::Option<&str> {
34 self.arn.as_deref()
35 }
36 pub fn name(&self) -> ::std::option::Option<&str> {
38 self.name.as_deref()
39 }
40 pub fn fleet_arn(&self) -> ::std::option::Option<&str> {
42 self.fleet_arn.as_deref()
43 }
44 pub fn status(&self) -> ::std::option::Option<&crate::types::RobotStatus> {
46 self.status.as_ref()
47 }
48 pub fn greengrass_group_id(&self) -> ::std::option::Option<&str> {
50 self.greengrass_group_id.as_deref()
51 }
52 pub fn created_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
54 self.created_at.as_ref()
55 }
56 pub fn architecture(&self) -> ::std::option::Option<&crate::types::Architecture> {
58 self.architecture.as_ref()
59 }
60 pub fn last_deployment_job(&self) -> ::std::option::Option<&str> {
62 self.last_deployment_job.as_deref()
63 }
64 pub fn last_deployment_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
66 self.last_deployment_time.as_ref()
67 }
68 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 pub fn builder() -> crate::operation::describe_robot::builders::DescribeRobotOutputBuilder {
81 crate::operation::describe_robot::builders::DescribeRobotOutputBuilder::default()
82 }
83}
84
85#[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 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 pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
109 self.arn = input;
110 self
111 }
112 pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
114 &self.arn
115 }
116 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 pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
123 self.name = input;
124 self
125 }
126 pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
128 &self.name
129 }
130 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 pub fn set_fleet_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
137 self.fleet_arn = input;
138 self
139 }
140 pub fn get_fleet_arn(&self) -> &::std::option::Option<::std::string::String> {
142 &self.fleet_arn
143 }
144 pub fn status(mut self, input: crate::types::RobotStatus) -> Self {
146 self.status = ::std::option::Option::Some(input);
147 self
148 }
149 pub fn set_status(mut self, input: ::std::option::Option<crate::types::RobotStatus>) -> Self {
151 self.status = input;
152 self
153 }
154 pub fn get_status(&self) -> &::std::option::Option<crate::types::RobotStatus> {
156 &self.status
157 }
158 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 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 pub fn get_greengrass_group_id(&self) -> &::std::option::Option<::std::string::String> {
170 &self.greengrass_group_id
171 }
172 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 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 pub fn get_created_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
184 &self.created_at
185 }
186 pub fn architecture(mut self, input: crate::types::Architecture) -> Self {
188 self.architecture = ::std::option::Option::Some(input);
189 self
190 }
191 pub fn set_architecture(mut self, input: ::std::option::Option<crate::types::Architecture>) -> Self {
193 self.architecture = input;
194 self
195 }
196 pub fn get_architecture(&self) -> &::std::option::Option<crate::types::Architecture> {
198 &self.architecture
199 }
200 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 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 pub fn get_last_deployment_job(&self) -> &::std::option::Option<::std::string::String> {
212 &self.last_deployment_job
213 }
214 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 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 pub fn get_last_deployment_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
226 &self.last_deployment_time
227 }
228 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 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 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 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}