1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Flywheel summary information.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct FlywheelSummary {
    /// <p>The Amazon Resource Number (ARN) of the flywheel</p>
    pub flywheel_arn: ::std::option::Option<::std::string::String>,
    /// <p>ARN of the active model version for the flywheel.</p>
    pub active_model_arn: ::std::option::Option<::std::string::String>,
    /// <p>Amazon S3 URI of the data lake location. </p>
    pub data_lake_s3_uri: ::std::option::Option<::std::string::String>,
    /// <p>The status of the flywheel.</p>
    pub status: ::std::option::Option<crate::types::FlywheelStatus>,
    /// <p>Model type of the flywheel's model.</p>
    pub model_type: ::std::option::Option<crate::types::ModelType>,
    /// <p>A description of the status of the flywheel.</p>
    pub message: ::std::option::Option<::std::string::String>,
    /// <p>Creation time of the flywheel.</p>
    pub creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>Last modified time for the flywheel.</p>
    pub last_modified_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>The most recent flywheel iteration.</p>
    pub latest_flywheel_iteration: ::std::option::Option<::std::string::String>,
}
impl FlywheelSummary {
    /// <p>The Amazon Resource Number (ARN) of the flywheel</p>
    pub fn flywheel_arn(&self) -> ::std::option::Option<&str> {
        self.flywheel_arn.as_deref()
    }
    /// <p>ARN of the active model version for the flywheel.</p>
    pub fn active_model_arn(&self) -> ::std::option::Option<&str> {
        self.active_model_arn.as_deref()
    }
    /// <p>Amazon S3 URI of the data lake location. </p>
    pub fn data_lake_s3_uri(&self) -> ::std::option::Option<&str> {
        self.data_lake_s3_uri.as_deref()
    }
    /// <p>The status of the flywheel.</p>
    pub fn status(&self) -> ::std::option::Option<&crate::types::FlywheelStatus> {
        self.status.as_ref()
    }
    /// <p>Model type of the flywheel's model.</p>
    pub fn model_type(&self) -> ::std::option::Option<&crate::types::ModelType> {
        self.model_type.as_ref()
    }
    /// <p>A description of the status of the flywheel.</p>
    pub fn message(&self) -> ::std::option::Option<&str> {
        self.message.as_deref()
    }
    /// <p>Creation time of the flywheel.</p>
    pub fn creation_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.creation_time.as_ref()
    }
    /// <p>Last modified time for the flywheel.</p>
    pub fn last_modified_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.last_modified_time.as_ref()
    }
    /// <p>The most recent flywheel iteration.</p>
    pub fn latest_flywheel_iteration(&self) -> ::std::option::Option<&str> {
        self.latest_flywheel_iteration.as_deref()
    }
}
impl FlywheelSummary {
    /// Creates a new builder-style object to manufacture [`FlywheelSummary`](crate::types::FlywheelSummary).
    pub fn builder() -> crate::types::builders::FlywheelSummaryBuilder {
        crate::types::builders::FlywheelSummaryBuilder::default()
    }
}

/// A builder for [`FlywheelSummary`](crate::types::FlywheelSummary).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct FlywheelSummaryBuilder {
    pub(crate) flywheel_arn: ::std::option::Option<::std::string::String>,
    pub(crate) active_model_arn: ::std::option::Option<::std::string::String>,
    pub(crate) data_lake_s3_uri: ::std::option::Option<::std::string::String>,
    pub(crate) status: ::std::option::Option<crate::types::FlywheelStatus>,
    pub(crate) model_type: ::std::option::Option<crate::types::ModelType>,
    pub(crate) message: ::std::option::Option<::std::string::String>,
    pub(crate) creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) last_modified_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) latest_flywheel_iteration: ::std::option::Option<::std::string::String>,
}
impl FlywheelSummaryBuilder {
    /// <p>The Amazon Resource Number (ARN) of the flywheel</p>
    pub fn flywheel_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.flywheel_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Number (ARN) of the flywheel</p>
    pub fn set_flywheel_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.flywheel_arn = input;
        self
    }
    /// <p>The Amazon Resource Number (ARN) of the flywheel</p>
    pub fn get_flywheel_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.flywheel_arn
    }
    /// <p>ARN of the active model version for the flywheel.</p>
    pub fn active_model_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.active_model_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>ARN of the active model version for the flywheel.</p>
    pub fn set_active_model_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.active_model_arn = input;
        self
    }
    /// <p>ARN of the active model version for the flywheel.</p>
    pub fn get_active_model_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.active_model_arn
    }
    /// <p>Amazon S3 URI of the data lake location. </p>
    pub fn data_lake_s3_uri(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.data_lake_s3_uri = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Amazon S3 URI of the data lake location. </p>
    pub fn set_data_lake_s3_uri(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.data_lake_s3_uri = input;
        self
    }
    /// <p>Amazon S3 URI of the data lake location. </p>
    pub fn get_data_lake_s3_uri(&self) -> &::std::option::Option<::std::string::String> {
        &self.data_lake_s3_uri
    }
    /// <p>The status of the flywheel.</p>
    pub fn status(mut self, input: crate::types::FlywheelStatus) -> Self {
        self.status = ::std::option::Option::Some(input);
        self
    }
    /// <p>The status of the flywheel.</p>
    pub fn set_status(mut self, input: ::std::option::Option<crate::types::FlywheelStatus>) -> Self {
        self.status = input;
        self
    }
    /// <p>The status of the flywheel.</p>
    pub fn get_status(&self) -> &::std::option::Option<crate::types::FlywheelStatus> {
        &self.status
    }
    /// <p>Model type of the flywheel's model.</p>
    pub fn model_type(mut self, input: crate::types::ModelType) -> Self {
        self.model_type = ::std::option::Option::Some(input);
        self
    }
    /// <p>Model type of the flywheel's model.</p>
    pub fn set_model_type(mut self, input: ::std::option::Option<crate::types::ModelType>) -> Self {
        self.model_type = input;
        self
    }
    /// <p>Model type of the flywheel's model.</p>
    pub fn get_model_type(&self) -> &::std::option::Option<crate::types::ModelType> {
        &self.model_type
    }
    /// <p>A description of the status of the flywheel.</p>
    pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.message = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A description of the status of the flywheel.</p>
    pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.message = input;
        self
    }
    /// <p>A description of the status of the flywheel.</p>
    pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
        &self.message
    }
    /// <p>Creation time of the flywheel.</p>
    pub fn creation_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.creation_time = ::std::option::Option::Some(input);
        self
    }
    /// <p>Creation time of the flywheel.</p>
    pub fn set_creation_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.creation_time = input;
        self
    }
    /// <p>Creation time of the flywheel.</p>
    pub fn get_creation_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.creation_time
    }
    /// <p>Last modified time for the flywheel.</p>
    pub fn last_modified_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.last_modified_time = ::std::option::Option::Some(input);
        self
    }
    /// <p>Last modified time for the flywheel.</p>
    pub fn set_last_modified_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.last_modified_time = input;
        self
    }
    /// <p>Last modified time for the flywheel.</p>
    pub fn get_last_modified_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.last_modified_time
    }
    /// <p>The most recent flywheel iteration.</p>
    pub fn latest_flywheel_iteration(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.latest_flywheel_iteration = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The most recent flywheel iteration.</p>
    pub fn set_latest_flywheel_iteration(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.latest_flywheel_iteration = input;
        self
    }
    /// <p>The most recent flywheel iteration.</p>
    pub fn get_latest_flywheel_iteration(&self) -> &::std::option::Option<::std::string::String> {
        &self.latest_flywheel_iteration
    }
    /// Consumes the builder and constructs a [`FlywheelSummary`](crate::types::FlywheelSummary).
    pub fn build(self) -> crate::types::FlywheelSummary {
        crate::types::FlywheelSummary {
            flywheel_arn: self.flywheel_arn,
            active_model_arn: self.active_model_arn,
            data_lake_s3_uri: self.data_lake_s3_uri,
            status: self.status,
            model_type: self.model_type,
            message: self.message,
            creation_time: self.creation_time,
            last_modified_time: self.last_modified_time,
            latest_flywheel_iteration: self.latest_flywheel_iteration,
        }
    }
}