aws_sdk_robomaker/operation/create_robot/
_create_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 CreateRobotOutput {
9 pub arn: ::std::option::Option<::std::string::String>,
11 pub name: ::std::option::Option<::std::string::String>,
13 pub created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
15 pub greengrass_group_id: ::std::option::Option<::std::string::String>,
17 pub architecture: ::std::option::Option<crate::types::Architecture>,
19 pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
21 _request_id: Option<String>,
22}
23impl CreateRobotOutput {
24 pub fn arn(&self) -> ::std::option::Option<&str> {
26 self.arn.as_deref()
27 }
28 pub fn name(&self) -> ::std::option::Option<&str> {
30 self.name.as_deref()
31 }
32 pub fn created_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
34 self.created_at.as_ref()
35 }
36 pub fn greengrass_group_id(&self) -> ::std::option::Option<&str> {
38 self.greengrass_group_id.as_deref()
39 }
40 pub fn architecture(&self) -> ::std::option::Option<&crate::types::Architecture> {
42 self.architecture.as_ref()
43 }
44 pub fn tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
46 self.tags.as_ref()
47 }
48}
49impl ::aws_types::request_id::RequestId for CreateRobotOutput {
50 fn request_id(&self) -> Option<&str> {
51 self._request_id.as_deref()
52 }
53}
54impl CreateRobotOutput {
55 pub fn builder() -> crate::operation::create_robot::builders::CreateRobotOutputBuilder {
57 crate::operation::create_robot::builders::CreateRobotOutputBuilder::default()
58 }
59}
60
61#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
63#[non_exhaustive]
64pub struct CreateRobotOutputBuilder {
65 pub(crate) arn: ::std::option::Option<::std::string::String>,
66 pub(crate) name: ::std::option::Option<::std::string::String>,
67 pub(crate) created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
68 pub(crate) greengrass_group_id: ::std::option::Option<::std::string::String>,
69 pub(crate) architecture: ::std::option::Option<crate::types::Architecture>,
70 pub(crate) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
71 _request_id: Option<String>,
72}
73impl CreateRobotOutputBuilder {
74 pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
76 self.arn = ::std::option::Option::Some(input.into());
77 self
78 }
79 pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
81 self.arn = input;
82 self
83 }
84 pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
86 &self.arn
87 }
88 pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
90 self.name = ::std::option::Option::Some(input.into());
91 self
92 }
93 pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
95 self.name = input;
96 self
97 }
98 pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
100 &self.name
101 }
102 pub fn created_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
104 self.created_at = ::std::option::Option::Some(input);
105 self
106 }
107 pub fn set_created_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
109 self.created_at = input;
110 self
111 }
112 pub fn get_created_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
114 &self.created_at
115 }
116 pub fn greengrass_group_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
118 self.greengrass_group_id = ::std::option::Option::Some(input.into());
119 self
120 }
121 pub fn set_greengrass_group_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
123 self.greengrass_group_id = input;
124 self
125 }
126 pub fn get_greengrass_group_id(&self) -> &::std::option::Option<::std::string::String> {
128 &self.greengrass_group_id
129 }
130 pub fn architecture(mut self, input: crate::types::Architecture) -> Self {
132 self.architecture = ::std::option::Option::Some(input);
133 self
134 }
135 pub fn set_architecture(mut self, input: ::std::option::Option<crate::types::Architecture>) -> Self {
137 self.architecture = input;
138 self
139 }
140 pub fn get_architecture(&self) -> &::std::option::Option<crate::types::Architecture> {
142 &self.architecture
143 }
144 pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
150 let mut hash_map = self.tags.unwrap_or_default();
151 hash_map.insert(k.into(), v.into());
152 self.tags = ::std::option::Option::Some(hash_map);
153 self
154 }
155 pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
157 self.tags = input;
158 self
159 }
160 pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
162 &self.tags
163 }
164 pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
165 self._request_id = Some(request_id.into());
166 self
167 }
168
169 pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
170 self._request_id = request_id;
171 self
172 }
173 pub fn build(self) -> crate::operation::create_robot::CreateRobotOutput {
175 crate::operation::create_robot::CreateRobotOutput {
176 arn: self.arn,
177 name: self.name,
178 created_at: self.created_at,
179 greengrass_group_id: self.greengrass_group_id,
180 architecture: self.architecture,
181 tags: self.tags,
182 _request_id: self._request_id,
183 }
184 }
185}