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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Specifies the location of ML model data to deploy. If specified, you must specify one and only one of the available data sources.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ModelDataSource {
    /// <p>Specifies the S3 location of ML model data to deploy.</p>
    pub s3_data_source: ::std::option::Option<crate::types::S3ModelDataSource>,
}
impl ModelDataSource {
    /// <p>Specifies the S3 location of ML model data to deploy.</p>
    pub fn s3_data_source(&self) -> ::std::option::Option<&crate::types::S3ModelDataSource> {
        self.s3_data_source.as_ref()
    }
}
impl ModelDataSource {
    /// Creates a new builder-style object to manufacture [`ModelDataSource`](crate::types::ModelDataSource).
    pub fn builder() -> crate::types::builders::ModelDataSourceBuilder {
        crate::types::builders::ModelDataSourceBuilder::default()
    }
}

/// A builder for [`ModelDataSource`](crate::types::ModelDataSource).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct ModelDataSourceBuilder {
    pub(crate) s3_data_source: ::std::option::Option<crate::types::S3ModelDataSource>,
}
impl ModelDataSourceBuilder {
    /// <p>Specifies the S3 location of ML model data to deploy.</p>
    pub fn s3_data_source(mut self, input: crate::types::S3ModelDataSource) -> Self {
        self.s3_data_source = ::std::option::Option::Some(input);
        self
    }
    /// <p>Specifies the S3 location of ML model data to deploy.</p>
    pub fn set_s3_data_source(mut self, input: ::std::option::Option<crate::types::S3ModelDataSource>) -> Self {
        self.s3_data_source = input;
        self
    }
    /// <p>Specifies the S3 location of ML model data to deploy.</p>
    pub fn get_s3_data_source(&self) -> &::std::option::Option<crate::types::S3ModelDataSource> {
        &self.s3_data_source
    }
    /// Consumes the builder and constructs a [`ModelDataSource`](crate::types::ModelDataSource).
    pub fn build(self) -> crate::types::ModelDataSource {
        crate::types::ModelDataSource {
            s3_data_source: self.s3_data_source,
        }
    }
}