aws-sdk-sagemaker 1.196.0

AWS SDK for Amazon SageMaker Service
Documentation
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
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeInferenceExperimentOutput {
    /// <p>The ARN of the inference experiment being described.</p>
    pub arn: ::std::option::Option<::std::string::String>,
    /// <p>The name of the inference experiment.</p>
    pub name: ::std::option::Option<::std::string::String>,
    /// <p>The type of the inference experiment.</p>
    pub r#type: ::std::option::Option<crate::types::InferenceExperimentType>,
    /// <p>The duration for which the inference experiment ran or will run.</p>
    pub schedule: ::std::option::Option<crate::types::InferenceExperimentSchedule>,
    /// <p>The status of the inference experiment. The following are the possible statuses for an inference experiment:</p>
    /// <ul>
    /// <li>
    /// <p><code>Creating</code> - Amazon SageMaker is creating your experiment.</p></li>
    /// <li>
    /// <p><code>Created</code> - Amazon SageMaker has finished the creation of your experiment and will begin the experiment at the scheduled time.</p></li>
    /// <li>
    /// <p><code>Updating</code> - When you make changes to your experiment, your experiment shows as updating.</p></li>
    /// <li>
    /// <p><code>Starting</code> - Amazon SageMaker is beginning your experiment.</p></li>
    /// <li>
    /// <p><code>Running</code> - Your experiment is in progress.</p></li>
    /// <li>
    /// <p><code>Stopping</code> - Amazon SageMaker is stopping your experiment.</p></li>
    /// <li>
    /// <p><code>Completed</code> - Your experiment has completed.</p></li>
    /// <li>
    /// <p><code>Cancelled</code> - When you conclude your experiment early using the <a href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_StopInferenceExperiment.html">StopInferenceExperiment</a> API, or if any operation fails with an unexpected error, it shows as cancelled.</p></li>
    /// </ul>
    pub status: ::std::option::Option<crate::types::InferenceExperimentStatus>,
    /// <p>The error message or client-specified <code>Reason</code> from the <a href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_StopInferenceExperiment.html">StopInferenceExperiment</a> API, that explains the status of the inference experiment.</p>
    pub status_reason: ::std::option::Option<::std::string::String>,
    /// <p>The description of the inference experiment.</p>
    pub description: ::std::option::Option<::std::string::String>,
    /// <p>The timestamp at which you created the inference experiment.</p>
    pub creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>The timestamp at which the inference experiment was completed.</p>
    pub completion_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>The timestamp at which you last modified the inference experiment.</p>
    pub last_modified_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>The ARN of the IAM role that Amazon SageMaker can assume to access model artifacts and container images, and manage Amazon SageMaker Inference endpoints for model deployment.</p>
    pub role_arn: ::std::option::Option<::std::string::String>,
    /// <p>The metadata of the endpoint on which the inference experiment ran.</p>
    pub endpoint_metadata: ::std::option::Option<crate::types::EndpointMetadata>,
    /// <p>An array of <code>ModelVariantConfigSummary</code> objects. There is one for each variant in the inference experiment. Each <code>ModelVariantConfigSummary</code> object in the array describes the infrastructure configuration for deploying the corresponding variant.</p>
    pub model_variants: ::std::option::Option<::std::vec::Vec<crate::types::ModelVariantConfigSummary>>,
    /// <p>The Amazon S3 location and configuration for storing inference request and response data.</p>
    pub data_storage_config: ::std::option::Option<crate::types::InferenceExperimentDataStorageConfig>,
    /// <p>The configuration of <code>ShadowMode</code> inference experiment type, which shows the production variant that takes all the inference requests, and the shadow variant to which Amazon SageMaker replicates a percentage of the inference requests. For the shadow variant it also shows the percentage of requests that Amazon SageMaker replicates.</p>
    pub shadow_mode_config: ::std::option::Option<crate::types::ShadowModeConfig>,
    /// <p>The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance that hosts the endpoint. For more information, see <a href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateInferenceExperiment.html">CreateInferenceExperiment</a>.</p>
    pub kms_key: ::std::option::Option<::std::string::String>,
    _request_id: Option<String>,
}
impl DescribeInferenceExperimentOutput {
    /// <p>The ARN of the inference experiment being described.</p>
    pub fn arn(&self) -> ::std::option::Option<&str> {
        self.arn.as_deref()
    }
    /// <p>The name of the inference experiment.</p>
    pub fn name(&self) -> ::std::option::Option<&str> {
        self.name.as_deref()
    }
    /// <p>The type of the inference experiment.</p>
    pub fn r#type(&self) -> ::std::option::Option<&crate::types::InferenceExperimentType> {
        self.r#type.as_ref()
    }
    /// <p>The duration for which the inference experiment ran or will run.</p>
    pub fn schedule(&self) -> ::std::option::Option<&crate::types::InferenceExperimentSchedule> {
        self.schedule.as_ref()
    }
    /// <p>The status of the inference experiment. The following are the possible statuses for an inference experiment:</p>
    /// <ul>
    /// <li>
    /// <p><code>Creating</code> - Amazon SageMaker is creating your experiment.</p></li>
    /// <li>
    /// <p><code>Created</code> - Amazon SageMaker has finished the creation of your experiment and will begin the experiment at the scheduled time.</p></li>
    /// <li>
    /// <p><code>Updating</code> - When you make changes to your experiment, your experiment shows as updating.</p></li>
    /// <li>
    /// <p><code>Starting</code> - Amazon SageMaker is beginning your experiment.</p></li>
    /// <li>
    /// <p><code>Running</code> - Your experiment is in progress.</p></li>
    /// <li>
    /// <p><code>Stopping</code> - Amazon SageMaker is stopping your experiment.</p></li>
    /// <li>
    /// <p><code>Completed</code> - Your experiment has completed.</p></li>
    /// <li>
    /// <p><code>Cancelled</code> - When you conclude your experiment early using the <a href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_StopInferenceExperiment.html">StopInferenceExperiment</a> API, or if any operation fails with an unexpected error, it shows as cancelled.</p></li>
    /// </ul>
    pub fn status(&self) -> ::std::option::Option<&crate::types::InferenceExperimentStatus> {
        self.status.as_ref()
    }
    /// <p>The error message or client-specified <code>Reason</code> from the <a href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_StopInferenceExperiment.html">StopInferenceExperiment</a> API, that explains the status of the inference experiment.</p>
    pub fn status_reason(&self) -> ::std::option::Option<&str> {
        self.status_reason.as_deref()
    }
    /// <p>The description of the inference experiment.</p>
    pub fn description(&self) -> ::std::option::Option<&str> {
        self.description.as_deref()
    }
    /// <p>The timestamp at which you created the inference experiment.</p>
    pub fn creation_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.creation_time.as_ref()
    }
    /// <p>The timestamp at which the inference experiment was completed.</p>
    pub fn completion_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.completion_time.as_ref()
    }
    /// <p>The timestamp at which you last modified the inference experiment.</p>
    pub fn last_modified_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.last_modified_time.as_ref()
    }
    /// <p>The ARN of the IAM role that Amazon SageMaker can assume to access model artifacts and container images, and manage Amazon SageMaker Inference endpoints for model deployment.</p>
    pub fn role_arn(&self) -> ::std::option::Option<&str> {
        self.role_arn.as_deref()
    }
    /// <p>The metadata of the endpoint on which the inference experiment ran.</p>
    pub fn endpoint_metadata(&self) -> ::std::option::Option<&crate::types::EndpointMetadata> {
        self.endpoint_metadata.as_ref()
    }
    /// <p>An array of <code>ModelVariantConfigSummary</code> objects. There is one for each variant in the inference experiment. Each <code>ModelVariantConfigSummary</code> object in the array describes the infrastructure configuration for deploying the corresponding variant.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.model_variants.is_none()`.
    pub fn model_variants(&self) -> &[crate::types::ModelVariantConfigSummary] {
        self.model_variants.as_deref().unwrap_or_default()
    }
    /// <p>The Amazon S3 location and configuration for storing inference request and response data.</p>
    pub fn data_storage_config(&self) -> ::std::option::Option<&crate::types::InferenceExperimentDataStorageConfig> {
        self.data_storage_config.as_ref()
    }
    /// <p>The configuration of <code>ShadowMode</code> inference experiment type, which shows the production variant that takes all the inference requests, and the shadow variant to which Amazon SageMaker replicates a percentage of the inference requests. For the shadow variant it also shows the percentage of requests that Amazon SageMaker replicates.</p>
    pub fn shadow_mode_config(&self) -> ::std::option::Option<&crate::types::ShadowModeConfig> {
        self.shadow_mode_config.as_ref()
    }
    /// <p>The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance that hosts the endpoint. For more information, see <a href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateInferenceExperiment.html">CreateInferenceExperiment</a>.</p>
    pub fn kms_key(&self) -> ::std::option::Option<&str> {
        self.kms_key.as_deref()
    }
}
impl ::aws_types::request_id::RequestId for DescribeInferenceExperimentOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl DescribeInferenceExperimentOutput {
    /// Creates a new builder-style object to manufacture [`DescribeInferenceExperimentOutput`](crate::operation::describe_inference_experiment::DescribeInferenceExperimentOutput).
    pub fn builder() -> crate::operation::describe_inference_experiment::builders::DescribeInferenceExperimentOutputBuilder {
        crate::operation::describe_inference_experiment::builders::DescribeInferenceExperimentOutputBuilder::default()
    }
}

/// A builder for [`DescribeInferenceExperimentOutput`](crate::operation::describe_inference_experiment::DescribeInferenceExperimentOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeInferenceExperimentOutputBuilder {
    pub(crate) arn: ::std::option::Option<::std::string::String>,
    pub(crate) name: ::std::option::Option<::std::string::String>,
    pub(crate) r#type: ::std::option::Option<crate::types::InferenceExperimentType>,
    pub(crate) schedule: ::std::option::Option<crate::types::InferenceExperimentSchedule>,
    pub(crate) status: ::std::option::Option<crate::types::InferenceExperimentStatus>,
    pub(crate) status_reason: ::std::option::Option<::std::string::String>,
    pub(crate) description: ::std::option::Option<::std::string::String>,
    pub(crate) creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) completion_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) last_modified_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) role_arn: ::std::option::Option<::std::string::String>,
    pub(crate) endpoint_metadata: ::std::option::Option<crate::types::EndpointMetadata>,
    pub(crate) model_variants: ::std::option::Option<::std::vec::Vec<crate::types::ModelVariantConfigSummary>>,
    pub(crate) data_storage_config: ::std::option::Option<crate::types::InferenceExperimentDataStorageConfig>,
    pub(crate) shadow_mode_config: ::std::option::Option<crate::types::ShadowModeConfig>,
    pub(crate) kms_key: ::std::option::Option<::std::string::String>,
    _request_id: Option<String>,
}
impl DescribeInferenceExperimentOutputBuilder {
    /// <p>The ARN of the inference experiment being described.</p>
    /// This field is required.
    pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ARN of the inference experiment being described.</p>
    pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.arn = input;
        self
    }
    /// <p>The ARN of the inference experiment being described.</p>
    pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.arn
    }
    /// <p>The name of the inference experiment.</p>
    /// This field is required.
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the inference experiment.</p>
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.name = input;
        self
    }
    /// <p>The name of the inference experiment.</p>
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.name
    }
    /// <p>The type of the inference experiment.</p>
    /// This field is required.
    pub fn r#type(mut self, input: crate::types::InferenceExperimentType) -> Self {
        self.r#type = ::std::option::Option::Some(input);
        self
    }
    /// <p>The type of the inference experiment.</p>
    pub fn set_type(mut self, input: ::std::option::Option<crate::types::InferenceExperimentType>) -> Self {
        self.r#type = input;
        self
    }
    /// <p>The type of the inference experiment.</p>
    pub fn get_type(&self) -> &::std::option::Option<crate::types::InferenceExperimentType> {
        &self.r#type
    }
    /// <p>The duration for which the inference experiment ran or will run.</p>
    pub fn schedule(mut self, input: crate::types::InferenceExperimentSchedule) -> Self {
        self.schedule = ::std::option::Option::Some(input);
        self
    }
    /// <p>The duration for which the inference experiment ran or will run.</p>
    pub fn set_schedule(mut self, input: ::std::option::Option<crate::types::InferenceExperimentSchedule>) -> Self {
        self.schedule = input;
        self
    }
    /// <p>The duration for which the inference experiment ran or will run.</p>
    pub fn get_schedule(&self) -> &::std::option::Option<crate::types::InferenceExperimentSchedule> {
        &self.schedule
    }
    /// <p>The status of the inference experiment. The following are the possible statuses for an inference experiment:</p>
    /// <ul>
    /// <li>
    /// <p><code>Creating</code> - Amazon SageMaker is creating your experiment.</p></li>
    /// <li>
    /// <p><code>Created</code> - Amazon SageMaker has finished the creation of your experiment and will begin the experiment at the scheduled time.</p></li>
    /// <li>
    /// <p><code>Updating</code> - When you make changes to your experiment, your experiment shows as updating.</p></li>
    /// <li>
    /// <p><code>Starting</code> - Amazon SageMaker is beginning your experiment.</p></li>
    /// <li>
    /// <p><code>Running</code> - Your experiment is in progress.</p></li>
    /// <li>
    /// <p><code>Stopping</code> - Amazon SageMaker is stopping your experiment.</p></li>
    /// <li>
    /// <p><code>Completed</code> - Your experiment has completed.</p></li>
    /// <li>
    /// <p><code>Cancelled</code> - When you conclude your experiment early using the <a href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_StopInferenceExperiment.html">StopInferenceExperiment</a> API, or if any operation fails with an unexpected error, it shows as cancelled.</p></li>
    /// </ul>
    /// This field is required.
    pub fn status(mut self, input: crate::types::InferenceExperimentStatus) -> Self {
        self.status = ::std::option::Option::Some(input);
        self
    }
    /// <p>The status of the inference experiment. The following are the possible statuses for an inference experiment:</p>
    /// <ul>
    /// <li>
    /// <p><code>Creating</code> - Amazon SageMaker is creating your experiment.</p></li>
    /// <li>
    /// <p><code>Created</code> - Amazon SageMaker has finished the creation of your experiment and will begin the experiment at the scheduled time.</p></li>
    /// <li>
    /// <p><code>Updating</code> - When you make changes to your experiment, your experiment shows as updating.</p></li>
    /// <li>
    /// <p><code>Starting</code> - Amazon SageMaker is beginning your experiment.</p></li>
    /// <li>
    /// <p><code>Running</code> - Your experiment is in progress.</p></li>
    /// <li>
    /// <p><code>Stopping</code> - Amazon SageMaker is stopping your experiment.</p></li>
    /// <li>
    /// <p><code>Completed</code> - Your experiment has completed.</p></li>
    /// <li>
    /// <p><code>Cancelled</code> - When you conclude your experiment early using the <a href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_StopInferenceExperiment.html">StopInferenceExperiment</a> API, or if any operation fails with an unexpected error, it shows as cancelled.</p></li>
    /// </ul>
    pub fn set_status(mut self, input: ::std::option::Option<crate::types::InferenceExperimentStatus>) -> Self {
        self.status = input;
        self
    }
    /// <p>The status of the inference experiment. The following are the possible statuses for an inference experiment:</p>
    /// <ul>
    /// <li>
    /// <p><code>Creating</code> - Amazon SageMaker is creating your experiment.</p></li>
    /// <li>
    /// <p><code>Created</code> - Amazon SageMaker has finished the creation of your experiment and will begin the experiment at the scheduled time.</p></li>
    /// <li>
    /// <p><code>Updating</code> - When you make changes to your experiment, your experiment shows as updating.</p></li>
    /// <li>
    /// <p><code>Starting</code> - Amazon SageMaker is beginning your experiment.</p></li>
    /// <li>
    /// <p><code>Running</code> - Your experiment is in progress.</p></li>
    /// <li>
    /// <p><code>Stopping</code> - Amazon SageMaker is stopping your experiment.</p></li>
    /// <li>
    /// <p><code>Completed</code> - Your experiment has completed.</p></li>
    /// <li>
    /// <p><code>Cancelled</code> - When you conclude your experiment early using the <a href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_StopInferenceExperiment.html">StopInferenceExperiment</a> API, or if any operation fails with an unexpected error, it shows as cancelled.</p></li>
    /// </ul>
    pub fn get_status(&self) -> &::std::option::Option<crate::types::InferenceExperimentStatus> {
        &self.status
    }
    /// <p>The error message or client-specified <code>Reason</code> from the <a href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_StopInferenceExperiment.html">StopInferenceExperiment</a> API, that explains the status of the inference experiment.</p>
    pub fn status_reason(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.status_reason = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The error message or client-specified <code>Reason</code> from the <a href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_StopInferenceExperiment.html">StopInferenceExperiment</a> API, that explains the status of the inference experiment.</p>
    pub fn set_status_reason(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.status_reason = input;
        self
    }
    /// <p>The error message or client-specified <code>Reason</code> from the <a href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_StopInferenceExperiment.html">StopInferenceExperiment</a> API, that explains the status of the inference experiment.</p>
    pub fn get_status_reason(&self) -> &::std::option::Option<::std::string::String> {
        &self.status_reason
    }
    /// <p>The description of the inference experiment.</p>
    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.description = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The description of the inference experiment.</p>
    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.description = input;
        self
    }
    /// <p>The description of the inference experiment.</p>
    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
        &self.description
    }
    /// <p>The timestamp at which you created the inference experiment.</p>
    pub fn creation_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.creation_time = ::std::option::Option::Some(input);
        self
    }
    /// <p>The timestamp at which you created the inference experiment.</p>
    pub fn set_creation_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.creation_time = input;
        self
    }
    /// <p>The timestamp at which you created the inference experiment.</p>
    pub fn get_creation_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.creation_time
    }
    /// <p>The timestamp at which the inference experiment was completed.</p>
    pub fn completion_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.completion_time = ::std::option::Option::Some(input);
        self
    }
    /// <p>The timestamp at which the inference experiment was completed.</p>
    pub fn set_completion_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.completion_time = input;
        self
    }
    /// <p>The timestamp at which the inference experiment was completed.</p>
    pub fn get_completion_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.completion_time
    }
    /// <p>The timestamp at which you last modified the inference experiment.</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>The timestamp at which you last modified the inference experiment.</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>The timestamp at which you last modified the inference experiment.</p>
    pub fn get_last_modified_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.last_modified_time
    }
    /// <p>The ARN of the IAM role that Amazon SageMaker can assume to access model artifacts and container images, and manage Amazon SageMaker Inference endpoints for model deployment.</p>
    pub fn role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.role_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ARN of the IAM role that Amazon SageMaker can assume to access model artifacts and container images, and manage Amazon SageMaker Inference endpoints for model deployment.</p>
    pub fn set_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.role_arn = input;
        self
    }
    /// <p>The ARN of the IAM role that Amazon SageMaker can assume to access model artifacts and container images, and manage Amazon SageMaker Inference endpoints for model deployment.</p>
    pub fn get_role_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.role_arn
    }
    /// <p>The metadata of the endpoint on which the inference experiment ran.</p>
    /// This field is required.
    pub fn endpoint_metadata(mut self, input: crate::types::EndpointMetadata) -> Self {
        self.endpoint_metadata = ::std::option::Option::Some(input);
        self
    }
    /// <p>The metadata of the endpoint on which the inference experiment ran.</p>
    pub fn set_endpoint_metadata(mut self, input: ::std::option::Option<crate::types::EndpointMetadata>) -> Self {
        self.endpoint_metadata = input;
        self
    }
    /// <p>The metadata of the endpoint on which the inference experiment ran.</p>
    pub fn get_endpoint_metadata(&self) -> &::std::option::Option<crate::types::EndpointMetadata> {
        &self.endpoint_metadata
    }
    /// Appends an item to `model_variants`.
    ///
    /// To override the contents of this collection use [`set_model_variants`](Self::set_model_variants).
    ///
    /// <p>An array of <code>ModelVariantConfigSummary</code> objects. There is one for each variant in the inference experiment. Each <code>ModelVariantConfigSummary</code> object in the array describes the infrastructure configuration for deploying the corresponding variant.</p>
    pub fn model_variants(mut self, input: crate::types::ModelVariantConfigSummary) -> Self {
        let mut v = self.model_variants.unwrap_or_default();
        v.push(input);
        self.model_variants = ::std::option::Option::Some(v);
        self
    }
    /// <p>An array of <code>ModelVariantConfigSummary</code> objects. There is one for each variant in the inference experiment. Each <code>ModelVariantConfigSummary</code> object in the array describes the infrastructure configuration for deploying the corresponding variant.</p>
    pub fn set_model_variants(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ModelVariantConfigSummary>>) -> Self {
        self.model_variants = input;
        self
    }
    /// <p>An array of <code>ModelVariantConfigSummary</code> objects. There is one for each variant in the inference experiment. Each <code>ModelVariantConfigSummary</code> object in the array describes the infrastructure configuration for deploying the corresponding variant.</p>
    pub fn get_model_variants(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ModelVariantConfigSummary>> {
        &self.model_variants
    }
    /// <p>The Amazon S3 location and configuration for storing inference request and response data.</p>
    pub fn data_storage_config(mut self, input: crate::types::InferenceExperimentDataStorageConfig) -> Self {
        self.data_storage_config = ::std::option::Option::Some(input);
        self
    }
    /// <p>The Amazon S3 location and configuration for storing inference request and response data.</p>
    pub fn set_data_storage_config(mut self, input: ::std::option::Option<crate::types::InferenceExperimentDataStorageConfig>) -> Self {
        self.data_storage_config = input;
        self
    }
    /// <p>The Amazon S3 location and configuration for storing inference request and response data.</p>
    pub fn get_data_storage_config(&self) -> &::std::option::Option<crate::types::InferenceExperimentDataStorageConfig> {
        &self.data_storage_config
    }
    /// <p>The configuration of <code>ShadowMode</code> inference experiment type, which shows the production variant that takes all the inference requests, and the shadow variant to which Amazon SageMaker replicates a percentage of the inference requests. For the shadow variant it also shows the percentage of requests that Amazon SageMaker replicates.</p>
    pub fn shadow_mode_config(mut self, input: crate::types::ShadowModeConfig) -> Self {
        self.shadow_mode_config = ::std::option::Option::Some(input);
        self
    }
    /// <p>The configuration of <code>ShadowMode</code> inference experiment type, which shows the production variant that takes all the inference requests, and the shadow variant to which Amazon SageMaker replicates a percentage of the inference requests. For the shadow variant it also shows the percentage of requests that Amazon SageMaker replicates.</p>
    pub fn set_shadow_mode_config(mut self, input: ::std::option::Option<crate::types::ShadowModeConfig>) -> Self {
        self.shadow_mode_config = input;
        self
    }
    /// <p>The configuration of <code>ShadowMode</code> inference experiment type, which shows the production variant that takes all the inference requests, and the shadow variant to which Amazon SageMaker replicates a percentage of the inference requests. For the shadow variant it also shows the percentage of requests that Amazon SageMaker replicates.</p>
    pub fn get_shadow_mode_config(&self) -> &::std::option::Option<crate::types::ShadowModeConfig> {
        &self.shadow_mode_config
    }
    /// <p>The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance that hosts the endpoint. For more information, see <a href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateInferenceExperiment.html">CreateInferenceExperiment</a>.</p>
    pub fn kms_key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.kms_key = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance that hosts the endpoint. For more information, see <a href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateInferenceExperiment.html">CreateInferenceExperiment</a>.</p>
    pub fn set_kms_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.kms_key = input;
        self
    }
    /// <p>The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance that hosts the endpoint. For more information, see <a href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateInferenceExperiment.html">CreateInferenceExperiment</a>.</p>
    pub fn get_kms_key(&self) -> &::std::option::Option<::std::string::String> {
        &self.kms_key
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`DescribeInferenceExperimentOutput`](crate::operation::describe_inference_experiment::DescribeInferenceExperimentOutput).
    pub fn build(self) -> crate::operation::describe_inference_experiment::DescribeInferenceExperimentOutput {
        crate::operation::describe_inference_experiment::DescribeInferenceExperimentOutput {
            arn: self.arn,
            name: self.name,
            r#type: self.r#type,
            schedule: self.schedule,
            status: self.status,
            status_reason: self.status_reason,
            description: self.description,
            creation_time: self.creation_time,
            completion_time: self.completion_time,
            last_modified_time: self.last_modified_time,
            role_arn: self.role_arn,
            endpoint_metadata: self.endpoint_metadata,
            model_variants: self.model_variants,
            data_storage_config: self.data_storage_config,
            shadow_mode_config: self.shadow_mode_config,
            kms_key: self.kms_key,
            _request_id: self._request_id,
        }
    }
}