Skip to main content

aws_sdk_comprehend/types/
_flywheel_properties.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>The flywheel properties.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct FlywheelProperties {
7    /// <p>The Amazon Resource Number (ARN) of the flywheel.</p>
8    pub flywheel_arn: ::std::option::Option<::std::string::String>,
9    /// <p>The Amazon Resource Number (ARN) of the active model version.</p>
10    pub active_model_arn: ::std::option::Option<::std::string::String>,
11    /// <p>The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend permission to access the flywheel data.</p>
12    pub data_access_role_arn: ::std::option::Option<::std::string::String>,
13    /// <p>Configuration about the model associated with a flywheel.</p>
14    pub task_config: ::std::option::Option<crate::types::TaskConfig>,
15    /// <p>Amazon S3 URI of the data lake location.</p>
16    pub data_lake_s3_uri: ::std::option::Option<::std::string::String>,
17    /// <p>Data security configuration.</p>
18    pub data_security_config: ::std::option::Option<crate::types::DataSecurityConfig>,
19    /// <p>The status of the flywheel.</p>
20    pub status: ::std::option::Option<crate::types::FlywheelStatus>,
21    /// <p>Model type of the flywheel's model.</p>
22    pub model_type: ::std::option::Option<crate::types::ModelType>,
23    /// <p>A description of the status of the flywheel.</p>
24    pub message: ::std::option::Option<::std::string::String>,
25    /// <p>Creation time of the flywheel.</p>
26    pub creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
27    /// <p>Last modified time for the flywheel.</p>
28    pub last_modified_time: ::std::option::Option<::aws_smithy_types::DateTime>,
29    /// <p>The most recent flywheel iteration.</p>
30    pub latest_flywheel_iteration: ::std::option::Option<::std::string::String>,
31}
32impl FlywheelProperties {
33    /// <p>The Amazon Resource Number (ARN) of the flywheel.</p>
34    pub fn flywheel_arn(&self) -> ::std::option::Option<&str> {
35        self.flywheel_arn.as_deref()
36    }
37    /// <p>The Amazon Resource Number (ARN) of the active model version.</p>
38    pub fn active_model_arn(&self) -> ::std::option::Option<&str> {
39        self.active_model_arn.as_deref()
40    }
41    /// <p>The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend permission to access the flywheel data.</p>
42    pub fn data_access_role_arn(&self) -> ::std::option::Option<&str> {
43        self.data_access_role_arn.as_deref()
44    }
45    /// <p>Configuration about the model associated with a flywheel.</p>
46    pub fn task_config(&self) -> ::std::option::Option<&crate::types::TaskConfig> {
47        self.task_config.as_ref()
48    }
49    /// <p>Amazon S3 URI of the data lake location.</p>
50    pub fn data_lake_s3_uri(&self) -> ::std::option::Option<&str> {
51        self.data_lake_s3_uri.as_deref()
52    }
53    /// <p>Data security configuration.</p>
54    pub fn data_security_config(&self) -> ::std::option::Option<&crate::types::DataSecurityConfig> {
55        self.data_security_config.as_ref()
56    }
57    /// <p>The status of the flywheel.</p>
58    pub fn status(&self) -> ::std::option::Option<&crate::types::FlywheelStatus> {
59        self.status.as_ref()
60    }
61    /// <p>Model type of the flywheel's model.</p>
62    pub fn model_type(&self) -> ::std::option::Option<&crate::types::ModelType> {
63        self.model_type.as_ref()
64    }
65    /// <p>A description of the status of the flywheel.</p>
66    pub fn message(&self) -> ::std::option::Option<&str> {
67        self.message.as_deref()
68    }
69    /// <p>Creation time of the flywheel.</p>
70    pub fn creation_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
71        self.creation_time.as_ref()
72    }
73    /// <p>Last modified time for the flywheel.</p>
74    pub fn last_modified_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
75        self.last_modified_time.as_ref()
76    }
77    /// <p>The most recent flywheel iteration.</p>
78    pub fn latest_flywheel_iteration(&self) -> ::std::option::Option<&str> {
79        self.latest_flywheel_iteration.as_deref()
80    }
81}
82impl FlywheelProperties {
83    /// Creates a new builder-style object to manufacture [`FlywheelProperties`](crate::types::FlywheelProperties).
84    pub fn builder() -> crate::types::builders::FlywheelPropertiesBuilder {
85        crate::types::builders::FlywheelPropertiesBuilder::default()
86    }
87}
88
89/// A builder for [`FlywheelProperties`](crate::types::FlywheelProperties).
90#[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    /// <p>The Amazon Resource Number (ARN) of the flywheel.</p>
108    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    /// <p>The Amazon Resource Number (ARN) of the flywheel.</p>
113    pub fn set_flywheel_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
114        self.flywheel_arn = input;
115        self
116    }
117    /// <p>The Amazon Resource Number (ARN) of the flywheel.</p>
118    pub fn get_flywheel_arn(&self) -> &::std::option::Option<::std::string::String> {
119        &self.flywheel_arn
120    }
121    /// <p>The Amazon Resource Number (ARN) of the active model version.</p>
122    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    /// <p>The Amazon Resource Number (ARN) of the active model version.</p>
127    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    /// <p>The Amazon Resource Number (ARN) of the active model version.</p>
132    pub fn get_active_model_arn(&self) -> &::std::option::Option<::std::string::String> {
133        &self.active_model_arn
134    }
135    /// <p>The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend permission to access the flywheel data.</p>
136    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    /// <p>The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend permission to access the flywheel data.</p>
141    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    /// <p>The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend permission to access the flywheel data.</p>
146    pub fn get_data_access_role_arn(&self) -> &::std::option::Option<::std::string::String> {
147        &self.data_access_role_arn
148    }
149    /// <p>Configuration about the model associated with a flywheel.</p>
150    pub fn task_config(mut self, input: crate::types::TaskConfig) -> Self {
151        self.task_config = ::std::option::Option::Some(input);
152        self
153    }
154    /// <p>Configuration about the model associated with a flywheel.</p>
155    pub fn set_task_config(mut self, input: ::std::option::Option<crate::types::TaskConfig>) -> Self {
156        self.task_config = input;
157        self
158    }
159    /// <p>Configuration about the model associated with a flywheel.</p>
160    pub fn get_task_config(&self) -> &::std::option::Option<crate::types::TaskConfig> {
161        &self.task_config
162    }
163    /// <p>Amazon S3 URI of the data lake location.</p>
164    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    /// <p>Amazon S3 URI of the data lake location.</p>
169    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    /// <p>Amazon S3 URI of the data lake location.</p>
174    pub fn get_data_lake_s3_uri(&self) -> &::std::option::Option<::std::string::String> {
175        &self.data_lake_s3_uri
176    }
177    /// <p>Data security configuration.</p>
178    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    /// <p>Data security configuration.</p>
183    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    /// <p>Data security configuration.</p>
188    pub fn get_data_security_config(&self) -> &::std::option::Option<crate::types::DataSecurityConfig> {
189        &self.data_security_config
190    }
191    /// <p>The status of the flywheel.</p>
192    pub fn status(mut self, input: crate::types::FlywheelStatus) -> Self {
193        self.status = ::std::option::Option::Some(input);
194        self
195    }
196    /// <p>The status of the flywheel.</p>
197    pub fn set_status(mut self, input: ::std::option::Option<crate::types::FlywheelStatus>) -> Self {
198        self.status = input;
199        self
200    }
201    /// <p>The status of the flywheel.</p>
202    pub fn get_status(&self) -> &::std::option::Option<crate::types::FlywheelStatus> {
203        &self.status
204    }
205    /// <p>Model type of the flywheel's model.</p>
206    pub fn model_type(mut self, input: crate::types::ModelType) -> Self {
207        self.model_type = ::std::option::Option::Some(input);
208        self
209    }
210    /// <p>Model type of the flywheel's model.</p>
211    pub fn set_model_type(mut self, input: ::std::option::Option<crate::types::ModelType>) -> Self {
212        self.model_type = input;
213        self
214    }
215    /// <p>Model type of the flywheel's model.</p>
216    pub fn get_model_type(&self) -> &::std::option::Option<crate::types::ModelType> {
217        &self.model_type
218    }
219    /// <p>A description of the status of the flywheel.</p>
220    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    /// <p>A description of the status of the flywheel.</p>
225    pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
226        self.message = input;
227        self
228    }
229    /// <p>A description of the status of the flywheel.</p>
230    pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
231        &self.message
232    }
233    /// <p>Creation time of the flywheel.</p>
234    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    /// <p>Creation time of the flywheel.</p>
239    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    /// <p>Creation time of the flywheel.</p>
244    pub fn get_creation_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
245        &self.creation_time
246    }
247    /// <p>Last modified time for the flywheel.</p>
248    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    /// <p>Last modified time for the flywheel.</p>
253    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    /// <p>Last modified time for the flywheel.</p>
258    pub fn get_last_modified_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
259        &self.last_modified_time
260    }
261    /// <p>The most recent flywheel iteration.</p>
262    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    /// <p>The most recent flywheel iteration.</p>
267    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    /// <p>The most recent flywheel iteration.</p>
272    pub fn get_latest_flywheel_iteration(&self) -> &::std::option::Option<::std::string::String> {
273        &self.latest_flywheel_iteration
274    }
275    /// Consumes the builder and constructs a [`FlywheelProperties`](crate::types::FlywheelProperties).
276    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}