aws_sdk_machinelearning/types/_batch_prediction.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>Represents the output of a <code>GetBatchPrediction</code> operation.</p>
4/// <p>The content consists of the detailed metadata, the status, and the data file information of a <code>Batch Prediction</code>.</p>
5#[non_exhaustive]
6#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
7pub struct BatchPrediction {
8 /// <p>The ID assigned to the <code>BatchPrediction</code> at creation. This value should be identical to the value of the <code>BatchPredictionID</code> in the request.</p>
9 pub batch_prediction_id: ::std::option::Option<::std::string::String>,
10 /// <p>The ID of the <code>MLModel</code> that generated predictions for the <code>BatchPrediction</code> request.</p>
11 pub ml_model_id: ::std::option::Option<::std::string::String>,
12 /// <p>The ID of the <code>DataSource</code> that points to the group of observations to predict.</p>
13 pub batch_prediction_data_source_id: ::std::option::Option<::std::string::String>,
14 /// <p>The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).</p>
15 pub input_data_location_s3: ::std::option::Option<::std::string::String>,
16 /// <p>The AWS user account that invoked the <code>BatchPrediction</code>. The account type can be either an AWS root account or an AWS Identity and Access Management (IAM) user account.</p>
17 pub created_by_iam_user: ::std::option::Option<::std::string::String>,
18 /// <p>The time that the <code>BatchPrediction</code> was created. The time is expressed in epoch time.</p>
19 pub created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
20 /// <p>The time of the most recent edit to the <code>BatchPrediction</code>. The time is expressed in epoch time.</p>
21 pub last_updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
22 /// <p>A user-supplied name or description of the <code>BatchPrediction</code>.</p>
23 pub name: ::std::option::Option<::std::string::String>,
24 /// <p>The status of the <code>BatchPrediction</code>. This element can have one of the following values:</p>
25 /// <ul>
26 /// <li>
27 /// <p><code>PENDING</code> - Amazon Machine Learning (Amazon ML) submitted a request to generate predictions for a batch of observations.</p></li>
28 /// <li>
29 /// <p><code>INPROGRESS</code> - The process is underway.</p></li>
30 /// <li>
31 /// <p><code>FAILED</code> - The request to perform a batch prediction did not run to completion. It is not usable.</p></li>
32 /// <li>
33 /// <p><code>COMPLETED</code> - The batch prediction process completed successfully.</p></li>
34 /// <li>
35 /// <p><code>DELETED</code> - The <code>BatchPrediction</code> is marked as deleted. It is not usable.</p></li>
36 /// </ul>
37 pub status: ::std::option::Option<crate::types::EntityStatus>,
38 /// <p>The location of an Amazon S3 bucket or directory to receive the operation results. The following substrings are not allowed in the <code>s3 key</code> portion of the <code>outputURI</code> field: ':', '//', '/./', '/../'.</p>
39 pub output_uri: ::std::option::Option<::std::string::String>,
40 /// <p>A description of the most recent details about processing the batch prediction request.</p>
41 pub message: ::std::option::Option<::std::string::String>,
42 /// <p>Long integer type that is a 64-bit signed number.</p>
43 pub compute_time: ::std::option::Option<i64>,
44 /// <p>A timestamp represented in epoch time.</p>
45 pub finished_at: ::std::option::Option<::aws_smithy_types::DateTime>,
46 /// <p>A timestamp represented in epoch time.</p>
47 pub started_at: ::std::option::Option<::aws_smithy_types::DateTime>,
48 /// <p>Long integer type that is a 64-bit signed number.</p>
49 pub total_record_count: ::std::option::Option<i64>,
50 /// <p>Long integer type that is a 64-bit signed number.</p>
51 pub invalid_record_count: ::std::option::Option<i64>,
52}
53impl BatchPrediction {
54 /// <p>The ID assigned to the <code>BatchPrediction</code> at creation. This value should be identical to the value of the <code>BatchPredictionID</code> in the request.</p>
55 pub fn batch_prediction_id(&self) -> ::std::option::Option<&str> {
56 self.batch_prediction_id.as_deref()
57 }
58 /// <p>The ID of the <code>MLModel</code> that generated predictions for the <code>BatchPrediction</code> request.</p>
59 pub fn ml_model_id(&self) -> ::std::option::Option<&str> {
60 self.ml_model_id.as_deref()
61 }
62 /// <p>The ID of the <code>DataSource</code> that points to the group of observations to predict.</p>
63 pub fn batch_prediction_data_source_id(&self) -> ::std::option::Option<&str> {
64 self.batch_prediction_data_source_id.as_deref()
65 }
66 /// <p>The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).</p>
67 pub fn input_data_location_s3(&self) -> ::std::option::Option<&str> {
68 self.input_data_location_s3.as_deref()
69 }
70 /// <p>The AWS user account that invoked the <code>BatchPrediction</code>. The account type can be either an AWS root account or an AWS Identity and Access Management (IAM) user account.</p>
71 pub fn created_by_iam_user(&self) -> ::std::option::Option<&str> {
72 self.created_by_iam_user.as_deref()
73 }
74 /// <p>The time that the <code>BatchPrediction</code> was created. The time is expressed in epoch time.</p>
75 pub fn created_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
76 self.created_at.as_ref()
77 }
78 /// <p>The time of the most recent edit to the <code>BatchPrediction</code>. The time is expressed in epoch time.</p>
79 pub fn last_updated_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
80 self.last_updated_at.as_ref()
81 }
82 /// <p>A user-supplied name or description of the <code>BatchPrediction</code>.</p>
83 pub fn name(&self) -> ::std::option::Option<&str> {
84 self.name.as_deref()
85 }
86 /// <p>The status of the <code>BatchPrediction</code>. This element can have one of the following values:</p>
87 /// <ul>
88 /// <li>
89 /// <p><code>PENDING</code> - Amazon Machine Learning (Amazon ML) submitted a request to generate predictions for a batch of observations.</p></li>
90 /// <li>
91 /// <p><code>INPROGRESS</code> - The process is underway.</p></li>
92 /// <li>
93 /// <p><code>FAILED</code> - The request to perform a batch prediction did not run to completion. It is not usable.</p></li>
94 /// <li>
95 /// <p><code>COMPLETED</code> - The batch prediction process completed successfully.</p></li>
96 /// <li>
97 /// <p><code>DELETED</code> - The <code>BatchPrediction</code> is marked as deleted. It is not usable.</p></li>
98 /// </ul>
99 pub fn status(&self) -> ::std::option::Option<&crate::types::EntityStatus> {
100 self.status.as_ref()
101 }
102 /// <p>The location of an Amazon S3 bucket or directory to receive the operation results. The following substrings are not allowed in the <code>s3 key</code> portion of the <code>outputURI</code> field: ':', '//', '/./', '/../'.</p>
103 pub fn output_uri(&self) -> ::std::option::Option<&str> {
104 self.output_uri.as_deref()
105 }
106 /// <p>A description of the most recent details about processing the batch prediction request.</p>
107 pub fn message(&self) -> ::std::option::Option<&str> {
108 self.message.as_deref()
109 }
110 /// <p>Long integer type that is a 64-bit signed number.</p>
111 pub fn compute_time(&self) -> ::std::option::Option<i64> {
112 self.compute_time
113 }
114 /// <p>A timestamp represented in epoch time.</p>
115 pub fn finished_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
116 self.finished_at.as_ref()
117 }
118 /// <p>A timestamp represented in epoch time.</p>
119 pub fn started_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
120 self.started_at.as_ref()
121 }
122 /// <p>Long integer type that is a 64-bit signed number.</p>
123 pub fn total_record_count(&self) -> ::std::option::Option<i64> {
124 self.total_record_count
125 }
126 /// <p>Long integer type that is a 64-bit signed number.</p>
127 pub fn invalid_record_count(&self) -> ::std::option::Option<i64> {
128 self.invalid_record_count
129 }
130}
131impl BatchPrediction {
132 /// Creates a new builder-style object to manufacture [`BatchPrediction`](crate::types::BatchPrediction).
133 pub fn builder() -> crate::types::builders::BatchPredictionBuilder {
134 crate::types::builders::BatchPredictionBuilder::default()
135 }
136}
137
138/// A builder for [`BatchPrediction`](crate::types::BatchPrediction).
139#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
140#[non_exhaustive]
141pub struct BatchPredictionBuilder {
142 pub(crate) batch_prediction_id: ::std::option::Option<::std::string::String>,
143 pub(crate) ml_model_id: ::std::option::Option<::std::string::String>,
144 pub(crate) batch_prediction_data_source_id: ::std::option::Option<::std::string::String>,
145 pub(crate) input_data_location_s3: ::std::option::Option<::std::string::String>,
146 pub(crate) created_by_iam_user: ::std::option::Option<::std::string::String>,
147 pub(crate) created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
148 pub(crate) last_updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
149 pub(crate) name: ::std::option::Option<::std::string::String>,
150 pub(crate) status: ::std::option::Option<crate::types::EntityStatus>,
151 pub(crate) output_uri: ::std::option::Option<::std::string::String>,
152 pub(crate) message: ::std::option::Option<::std::string::String>,
153 pub(crate) compute_time: ::std::option::Option<i64>,
154 pub(crate) finished_at: ::std::option::Option<::aws_smithy_types::DateTime>,
155 pub(crate) started_at: ::std::option::Option<::aws_smithy_types::DateTime>,
156 pub(crate) total_record_count: ::std::option::Option<i64>,
157 pub(crate) invalid_record_count: ::std::option::Option<i64>,
158}
159impl BatchPredictionBuilder {
160 /// <p>The ID assigned to the <code>BatchPrediction</code> at creation. This value should be identical to the value of the <code>BatchPredictionID</code> in the request.</p>
161 pub fn batch_prediction_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
162 self.batch_prediction_id = ::std::option::Option::Some(input.into());
163 self
164 }
165 /// <p>The ID assigned to the <code>BatchPrediction</code> at creation. This value should be identical to the value of the <code>BatchPredictionID</code> in the request.</p>
166 pub fn set_batch_prediction_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
167 self.batch_prediction_id = input;
168 self
169 }
170 /// <p>The ID assigned to the <code>BatchPrediction</code> at creation. This value should be identical to the value of the <code>BatchPredictionID</code> in the request.</p>
171 pub fn get_batch_prediction_id(&self) -> &::std::option::Option<::std::string::String> {
172 &self.batch_prediction_id
173 }
174 /// <p>The ID of the <code>MLModel</code> that generated predictions for the <code>BatchPrediction</code> request.</p>
175 pub fn ml_model_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
176 self.ml_model_id = ::std::option::Option::Some(input.into());
177 self
178 }
179 /// <p>The ID of the <code>MLModel</code> that generated predictions for the <code>BatchPrediction</code> request.</p>
180 pub fn set_ml_model_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
181 self.ml_model_id = input;
182 self
183 }
184 /// <p>The ID of the <code>MLModel</code> that generated predictions for the <code>BatchPrediction</code> request.</p>
185 pub fn get_ml_model_id(&self) -> &::std::option::Option<::std::string::String> {
186 &self.ml_model_id
187 }
188 /// <p>The ID of the <code>DataSource</code> that points to the group of observations to predict.</p>
189 pub fn batch_prediction_data_source_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
190 self.batch_prediction_data_source_id = ::std::option::Option::Some(input.into());
191 self
192 }
193 /// <p>The ID of the <code>DataSource</code> that points to the group of observations to predict.</p>
194 pub fn set_batch_prediction_data_source_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
195 self.batch_prediction_data_source_id = input;
196 self
197 }
198 /// <p>The ID of the <code>DataSource</code> that points to the group of observations to predict.</p>
199 pub fn get_batch_prediction_data_source_id(&self) -> &::std::option::Option<::std::string::String> {
200 &self.batch_prediction_data_source_id
201 }
202 /// <p>The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).</p>
203 pub fn input_data_location_s3(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
204 self.input_data_location_s3 = ::std::option::Option::Some(input.into());
205 self
206 }
207 /// <p>The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).</p>
208 pub fn set_input_data_location_s3(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
209 self.input_data_location_s3 = input;
210 self
211 }
212 /// <p>The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).</p>
213 pub fn get_input_data_location_s3(&self) -> &::std::option::Option<::std::string::String> {
214 &self.input_data_location_s3
215 }
216 /// <p>The AWS user account that invoked the <code>BatchPrediction</code>. The account type can be either an AWS root account or an AWS Identity and Access Management (IAM) user account.</p>
217 pub fn created_by_iam_user(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
218 self.created_by_iam_user = ::std::option::Option::Some(input.into());
219 self
220 }
221 /// <p>The AWS user account that invoked the <code>BatchPrediction</code>. The account type can be either an AWS root account or an AWS Identity and Access Management (IAM) user account.</p>
222 pub fn set_created_by_iam_user(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
223 self.created_by_iam_user = input;
224 self
225 }
226 /// <p>The AWS user account that invoked the <code>BatchPrediction</code>. The account type can be either an AWS root account or an AWS Identity and Access Management (IAM) user account.</p>
227 pub fn get_created_by_iam_user(&self) -> &::std::option::Option<::std::string::String> {
228 &self.created_by_iam_user
229 }
230 /// <p>The time that the <code>BatchPrediction</code> was created. The time is expressed in epoch time.</p>
231 pub fn created_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
232 self.created_at = ::std::option::Option::Some(input);
233 self
234 }
235 /// <p>The time that the <code>BatchPrediction</code> was created. The time is expressed in epoch time.</p>
236 pub fn set_created_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
237 self.created_at = input;
238 self
239 }
240 /// <p>The time that the <code>BatchPrediction</code> was created. The time is expressed in epoch time.</p>
241 pub fn get_created_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
242 &self.created_at
243 }
244 /// <p>The time of the most recent edit to the <code>BatchPrediction</code>. The time is expressed in epoch time.</p>
245 pub fn last_updated_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
246 self.last_updated_at = ::std::option::Option::Some(input);
247 self
248 }
249 /// <p>The time of the most recent edit to the <code>BatchPrediction</code>. The time is expressed in epoch time.</p>
250 pub fn set_last_updated_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
251 self.last_updated_at = input;
252 self
253 }
254 /// <p>The time of the most recent edit to the <code>BatchPrediction</code>. The time is expressed in epoch time.</p>
255 pub fn get_last_updated_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
256 &self.last_updated_at
257 }
258 /// <p>A user-supplied name or description of the <code>BatchPrediction</code>.</p>
259 pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
260 self.name = ::std::option::Option::Some(input.into());
261 self
262 }
263 /// <p>A user-supplied name or description of the <code>BatchPrediction</code>.</p>
264 pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
265 self.name = input;
266 self
267 }
268 /// <p>A user-supplied name or description of the <code>BatchPrediction</code>.</p>
269 pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
270 &self.name
271 }
272 /// <p>The status of the <code>BatchPrediction</code>. This element can have one of the following values:</p>
273 /// <ul>
274 /// <li>
275 /// <p><code>PENDING</code> - Amazon Machine Learning (Amazon ML) submitted a request to generate predictions for a batch of observations.</p></li>
276 /// <li>
277 /// <p><code>INPROGRESS</code> - The process is underway.</p></li>
278 /// <li>
279 /// <p><code>FAILED</code> - The request to perform a batch prediction did not run to completion. It is not usable.</p></li>
280 /// <li>
281 /// <p><code>COMPLETED</code> - The batch prediction process completed successfully.</p></li>
282 /// <li>
283 /// <p><code>DELETED</code> - The <code>BatchPrediction</code> is marked as deleted. It is not usable.</p></li>
284 /// </ul>
285 pub fn status(mut self, input: crate::types::EntityStatus) -> Self {
286 self.status = ::std::option::Option::Some(input);
287 self
288 }
289 /// <p>The status of the <code>BatchPrediction</code>. This element can have one of the following values:</p>
290 /// <ul>
291 /// <li>
292 /// <p><code>PENDING</code> - Amazon Machine Learning (Amazon ML) submitted a request to generate predictions for a batch of observations.</p></li>
293 /// <li>
294 /// <p><code>INPROGRESS</code> - The process is underway.</p></li>
295 /// <li>
296 /// <p><code>FAILED</code> - The request to perform a batch prediction did not run to completion. It is not usable.</p></li>
297 /// <li>
298 /// <p><code>COMPLETED</code> - The batch prediction process completed successfully.</p></li>
299 /// <li>
300 /// <p><code>DELETED</code> - The <code>BatchPrediction</code> is marked as deleted. It is not usable.</p></li>
301 /// </ul>
302 pub fn set_status(mut self, input: ::std::option::Option<crate::types::EntityStatus>) -> Self {
303 self.status = input;
304 self
305 }
306 /// <p>The status of the <code>BatchPrediction</code>. This element can have one of the following values:</p>
307 /// <ul>
308 /// <li>
309 /// <p><code>PENDING</code> - Amazon Machine Learning (Amazon ML) submitted a request to generate predictions for a batch of observations.</p></li>
310 /// <li>
311 /// <p><code>INPROGRESS</code> - The process is underway.</p></li>
312 /// <li>
313 /// <p><code>FAILED</code> - The request to perform a batch prediction did not run to completion. It is not usable.</p></li>
314 /// <li>
315 /// <p><code>COMPLETED</code> - The batch prediction process completed successfully.</p></li>
316 /// <li>
317 /// <p><code>DELETED</code> - The <code>BatchPrediction</code> is marked as deleted. It is not usable.</p></li>
318 /// </ul>
319 pub fn get_status(&self) -> &::std::option::Option<crate::types::EntityStatus> {
320 &self.status
321 }
322 /// <p>The location of an Amazon S3 bucket or directory to receive the operation results. The following substrings are not allowed in the <code>s3 key</code> portion of the <code>outputURI</code> field: ':', '//', '/./', '/../'.</p>
323 pub fn output_uri(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
324 self.output_uri = ::std::option::Option::Some(input.into());
325 self
326 }
327 /// <p>The location of an Amazon S3 bucket or directory to receive the operation results. The following substrings are not allowed in the <code>s3 key</code> portion of the <code>outputURI</code> field: ':', '//', '/./', '/../'.</p>
328 pub fn set_output_uri(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
329 self.output_uri = input;
330 self
331 }
332 /// <p>The location of an Amazon S3 bucket or directory to receive the operation results. The following substrings are not allowed in the <code>s3 key</code> portion of the <code>outputURI</code> field: ':', '//', '/./', '/../'.</p>
333 pub fn get_output_uri(&self) -> &::std::option::Option<::std::string::String> {
334 &self.output_uri
335 }
336 /// <p>A description of the most recent details about processing the batch prediction request.</p>
337 pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
338 self.message = ::std::option::Option::Some(input.into());
339 self
340 }
341 /// <p>A description of the most recent details about processing the batch prediction request.</p>
342 pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
343 self.message = input;
344 self
345 }
346 /// <p>A description of the most recent details about processing the batch prediction request.</p>
347 pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
348 &self.message
349 }
350 /// <p>Long integer type that is a 64-bit signed number.</p>
351 pub fn compute_time(mut self, input: i64) -> Self {
352 self.compute_time = ::std::option::Option::Some(input);
353 self
354 }
355 /// <p>Long integer type that is a 64-bit signed number.</p>
356 pub fn set_compute_time(mut self, input: ::std::option::Option<i64>) -> Self {
357 self.compute_time = input;
358 self
359 }
360 /// <p>Long integer type that is a 64-bit signed number.</p>
361 pub fn get_compute_time(&self) -> &::std::option::Option<i64> {
362 &self.compute_time
363 }
364 /// <p>A timestamp represented in epoch time.</p>
365 pub fn finished_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
366 self.finished_at = ::std::option::Option::Some(input);
367 self
368 }
369 /// <p>A timestamp represented in epoch time.</p>
370 pub fn set_finished_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
371 self.finished_at = input;
372 self
373 }
374 /// <p>A timestamp represented in epoch time.</p>
375 pub fn get_finished_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
376 &self.finished_at
377 }
378 /// <p>A timestamp represented in epoch time.</p>
379 pub fn started_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
380 self.started_at = ::std::option::Option::Some(input);
381 self
382 }
383 /// <p>A timestamp represented in epoch time.</p>
384 pub fn set_started_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
385 self.started_at = input;
386 self
387 }
388 /// <p>A timestamp represented in epoch time.</p>
389 pub fn get_started_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
390 &self.started_at
391 }
392 /// <p>Long integer type that is a 64-bit signed number.</p>
393 pub fn total_record_count(mut self, input: i64) -> Self {
394 self.total_record_count = ::std::option::Option::Some(input);
395 self
396 }
397 /// <p>Long integer type that is a 64-bit signed number.</p>
398 pub fn set_total_record_count(mut self, input: ::std::option::Option<i64>) -> Self {
399 self.total_record_count = input;
400 self
401 }
402 /// <p>Long integer type that is a 64-bit signed number.</p>
403 pub fn get_total_record_count(&self) -> &::std::option::Option<i64> {
404 &self.total_record_count
405 }
406 /// <p>Long integer type that is a 64-bit signed number.</p>
407 pub fn invalid_record_count(mut self, input: i64) -> Self {
408 self.invalid_record_count = ::std::option::Option::Some(input);
409 self
410 }
411 /// <p>Long integer type that is a 64-bit signed number.</p>
412 pub fn set_invalid_record_count(mut self, input: ::std::option::Option<i64>) -> Self {
413 self.invalid_record_count = input;
414 self
415 }
416 /// <p>Long integer type that is a 64-bit signed number.</p>
417 pub fn get_invalid_record_count(&self) -> &::std::option::Option<i64> {
418 &self.invalid_record_count
419 }
420 /// Consumes the builder and constructs a [`BatchPrediction`](crate::types::BatchPrediction).
421 pub fn build(self) -> crate::types::BatchPrediction {
422 crate::types::BatchPrediction {
423 batch_prediction_id: self.batch_prediction_id,
424 ml_model_id: self.ml_model_id,
425 batch_prediction_data_source_id: self.batch_prediction_data_source_id,
426 input_data_location_s3: self.input_data_location_s3,
427 created_by_iam_user: self.created_by_iam_user,
428 created_at: self.created_at,
429 last_updated_at: self.last_updated_at,
430 name: self.name,
431 status: self.status,
432 output_uri: self.output_uri,
433 message: self.message,
434 compute_time: self.compute_time,
435 finished_at: self.finished_at,
436 started_at: self.started_at,
437 total_record_count: self.total_record_count,
438 invalid_record_count: self.invalid_record_count,
439 }
440 }
441}