aws_sdk_comprehend/types/
_flywheel_properties.rs1#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct FlywheelProperties {
7 pub flywheel_arn: ::std::option::Option<::std::string::String>,
9 pub active_model_arn: ::std::option::Option<::std::string::String>,
11 pub data_access_role_arn: ::std::option::Option<::std::string::String>,
13 pub task_config: ::std::option::Option<crate::types::TaskConfig>,
15 pub data_lake_s3_uri: ::std::option::Option<::std::string::String>,
17 pub data_security_config: ::std::option::Option<crate::types::DataSecurityConfig>,
19 pub status: ::std::option::Option<crate::types::FlywheelStatus>,
21 pub model_type: ::std::option::Option<crate::types::ModelType>,
23 pub message: ::std::option::Option<::std::string::String>,
25 pub creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
27 pub last_modified_time: ::std::option::Option<::aws_smithy_types::DateTime>,
29 pub latest_flywheel_iteration: ::std::option::Option<::std::string::String>,
31}
32impl FlywheelProperties {
33 pub fn flywheel_arn(&self) -> ::std::option::Option<&str> {
35 self.flywheel_arn.as_deref()
36 }
37 pub fn active_model_arn(&self) -> ::std::option::Option<&str> {
39 self.active_model_arn.as_deref()
40 }
41 pub fn data_access_role_arn(&self) -> ::std::option::Option<&str> {
43 self.data_access_role_arn.as_deref()
44 }
45 pub fn task_config(&self) -> ::std::option::Option<&crate::types::TaskConfig> {
47 self.task_config.as_ref()
48 }
49 pub fn data_lake_s3_uri(&self) -> ::std::option::Option<&str> {
51 self.data_lake_s3_uri.as_deref()
52 }
53 pub fn data_security_config(&self) -> ::std::option::Option<&crate::types::DataSecurityConfig> {
55 self.data_security_config.as_ref()
56 }
57 pub fn status(&self) -> ::std::option::Option<&crate::types::FlywheelStatus> {
59 self.status.as_ref()
60 }
61 pub fn model_type(&self) -> ::std::option::Option<&crate::types::ModelType> {
63 self.model_type.as_ref()
64 }
65 pub fn message(&self) -> ::std::option::Option<&str> {
67 self.message.as_deref()
68 }
69 pub fn creation_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
71 self.creation_time.as_ref()
72 }
73 pub fn last_modified_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
75 self.last_modified_time.as_ref()
76 }
77 pub fn latest_flywheel_iteration(&self) -> ::std::option::Option<&str> {
79 self.latest_flywheel_iteration.as_deref()
80 }
81}
82impl FlywheelProperties {
83 pub fn builder() -> crate::types::builders::FlywheelPropertiesBuilder {
85 crate::types::builders::FlywheelPropertiesBuilder::default()
86 }
87}
88
89#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
91#[non_exhaustive]
92pub struct FlywheelPropertiesBuilder {
93 pub(crate) flywheel_arn: ::std::option::Option<::std::string::String>,
94 pub(crate) active_model_arn: ::std::option::Option<::std::string::String>,
95 pub(crate) data_access_role_arn: ::std::option::Option<::std::string::String>,
96 pub(crate) task_config: ::std::option::Option<crate::types::TaskConfig>,
97 pub(crate) data_lake_s3_uri: ::std::option::Option<::std::string::String>,
98 pub(crate) data_security_config: ::std::option::Option<crate::types::DataSecurityConfig>,
99 pub(crate) status: ::std::option::Option<crate::types::FlywheelStatus>,
100 pub(crate) model_type: ::std::option::Option<crate::types::ModelType>,
101 pub(crate) message: ::std::option::Option<::std::string::String>,
102 pub(crate) creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
103 pub(crate) last_modified_time: ::std::option::Option<::aws_smithy_types::DateTime>,
104 pub(crate) latest_flywheel_iteration: ::std::option::Option<::std::string::String>,
105}
106impl FlywheelPropertiesBuilder {
107 pub fn flywheel_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
109 self.flywheel_arn = ::std::option::Option::Some(input.into());
110 self
111 }
112 pub fn set_flywheel_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
114 self.flywheel_arn = input;
115 self
116 }
117 pub fn get_flywheel_arn(&self) -> &::std::option::Option<::std::string::String> {
119 &self.flywheel_arn
120 }
121 pub fn active_model_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
123 self.active_model_arn = ::std::option::Option::Some(input.into());
124 self
125 }
126 pub fn set_active_model_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
128 self.active_model_arn = input;
129 self
130 }
131 pub fn get_active_model_arn(&self) -> &::std::option::Option<::std::string::String> {
133 &self.active_model_arn
134 }
135 pub fn data_access_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
137 self.data_access_role_arn = ::std::option::Option::Some(input.into());
138 self
139 }
140 pub fn set_data_access_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
142 self.data_access_role_arn = input;
143 self
144 }
145 pub fn get_data_access_role_arn(&self) -> &::std::option::Option<::std::string::String> {
147 &self.data_access_role_arn
148 }
149 pub fn task_config(mut self, input: crate::types::TaskConfig) -> Self {
151 self.task_config = ::std::option::Option::Some(input);
152 self
153 }
154 pub fn set_task_config(mut self, input: ::std::option::Option<crate::types::TaskConfig>) -> Self {
156 self.task_config = input;
157 self
158 }
159 pub fn get_task_config(&self) -> &::std::option::Option<crate::types::TaskConfig> {
161 &self.task_config
162 }
163 pub fn data_lake_s3_uri(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
165 self.data_lake_s3_uri = ::std::option::Option::Some(input.into());
166 self
167 }
168 pub fn set_data_lake_s3_uri(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
170 self.data_lake_s3_uri = input;
171 self
172 }
173 pub fn get_data_lake_s3_uri(&self) -> &::std::option::Option<::std::string::String> {
175 &self.data_lake_s3_uri
176 }
177 pub fn data_security_config(mut self, input: crate::types::DataSecurityConfig) -> Self {
179 self.data_security_config = ::std::option::Option::Some(input);
180 self
181 }
182 pub fn set_data_security_config(mut self, input: ::std::option::Option<crate::types::DataSecurityConfig>) -> Self {
184 self.data_security_config = input;
185 self
186 }
187 pub fn get_data_security_config(&self) -> &::std::option::Option<crate::types::DataSecurityConfig> {
189 &self.data_security_config
190 }
191 pub fn status(mut self, input: crate::types::FlywheelStatus) -> Self {
193 self.status = ::std::option::Option::Some(input);
194 self
195 }
196 pub fn set_status(mut self, input: ::std::option::Option<crate::types::FlywheelStatus>) -> Self {
198 self.status = input;
199 self
200 }
201 pub fn get_status(&self) -> &::std::option::Option<crate::types::FlywheelStatus> {
203 &self.status
204 }
205 pub fn model_type(mut self, input: crate::types::ModelType) -> Self {
207 self.model_type = ::std::option::Option::Some(input);
208 self
209 }
210 pub fn set_model_type(mut self, input: ::std::option::Option<crate::types::ModelType>) -> Self {
212 self.model_type = input;
213 self
214 }
215 pub fn get_model_type(&self) -> &::std::option::Option<crate::types::ModelType> {
217 &self.model_type
218 }
219 pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
221 self.message = ::std::option::Option::Some(input.into());
222 self
223 }
224 pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
226 self.message = input;
227 self
228 }
229 pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
231 &self.message
232 }
233 pub fn creation_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
235 self.creation_time = ::std::option::Option::Some(input);
236 self
237 }
238 pub fn set_creation_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
240 self.creation_time = input;
241 self
242 }
243 pub fn get_creation_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
245 &self.creation_time
246 }
247 pub fn last_modified_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
249 self.last_modified_time = ::std::option::Option::Some(input);
250 self
251 }
252 pub fn set_last_modified_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
254 self.last_modified_time = input;
255 self
256 }
257 pub fn get_last_modified_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
259 &self.last_modified_time
260 }
261 pub fn latest_flywheel_iteration(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
263 self.latest_flywheel_iteration = ::std::option::Option::Some(input.into());
264 self
265 }
266 pub fn set_latest_flywheel_iteration(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
268 self.latest_flywheel_iteration = input;
269 self
270 }
271 pub fn get_latest_flywheel_iteration(&self) -> &::std::option::Option<::std::string::String> {
273 &self.latest_flywheel_iteration
274 }
275 pub fn build(self) -> crate::types::FlywheelProperties {
277 crate::types::FlywheelProperties {
278 flywheel_arn: self.flywheel_arn,
279 active_model_arn: self.active_model_arn,
280 data_access_role_arn: self.data_access_role_arn,
281 task_config: self.task_config,
282 data_lake_s3_uri: self.data_lake_s3_uri,
283 data_security_config: self.data_security_config,
284 status: self.status,
285 model_type: self.model_type,
286 message: self.message,
287 creation_time: self.creation_time,
288 last_modified_time: self.last_modified_time,
289 latest_flywheel_iteration: self.latest_flywheel_iteration,
290 }
291 }
292}