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

/// <p>Dataflow details for the source side.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Source {
    /// <p>Type of a <code>Config</code>.</p>
    pub config_type: ::std::option::Option<crate::types::ConfigCapabilityType>,
    /// <p>UUID of a <code>Config</code>.</p>
    pub config_id: ::std::option::Option<::std::string::String>,
    /// <p>Additional details for a <code>Config</code>, if type is <code>dataflow-endpoint</code> or <code>antenna-downlink-demod-decode</code></p>
    pub config_details: ::std::option::Option<crate::types::ConfigDetails>,
    /// <p>Region of a dataflow source.</p>
    pub dataflow_source_region: ::std::option::Option<::std::string::String>,
}
impl Source {
    /// <p>Type of a <code>Config</code>.</p>
    pub fn config_type(&self) -> ::std::option::Option<&crate::types::ConfigCapabilityType> {
        self.config_type.as_ref()
    }
    /// <p>UUID of a <code>Config</code>.</p>
    pub fn config_id(&self) -> ::std::option::Option<&str> {
        self.config_id.as_deref()
    }
    /// <p>Additional details for a <code>Config</code>, if type is <code>dataflow-endpoint</code> or <code>antenna-downlink-demod-decode</code></p>
    pub fn config_details(&self) -> ::std::option::Option<&crate::types::ConfigDetails> {
        self.config_details.as_ref()
    }
    /// <p>Region of a dataflow source.</p>
    pub fn dataflow_source_region(&self) -> ::std::option::Option<&str> {
        self.dataflow_source_region.as_deref()
    }
}
impl Source {
    /// Creates a new builder-style object to manufacture [`Source`](crate::types::Source).
    pub fn builder() -> crate::types::builders::SourceBuilder {
        crate::types::builders::SourceBuilder::default()
    }
}

/// A builder for [`Source`](crate::types::Source).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct SourceBuilder {
    pub(crate) config_type: ::std::option::Option<crate::types::ConfigCapabilityType>,
    pub(crate) config_id: ::std::option::Option<::std::string::String>,
    pub(crate) config_details: ::std::option::Option<crate::types::ConfigDetails>,
    pub(crate) dataflow_source_region: ::std::option::Option<::std::string::String>,
}
impl SourceBuilder {
    /// <p>Type of a <code>Config</code>.</p>
    pub fn config_type(mut self, input: crate::types::ConfigCapabilityType) -> Self {
        self.config_type = ::std::option::Option::Some(input);
        self
    }
    /// <p>Type of a <code>Config</code>.</p>
    pub fn set_config_type(mut self, input: ::std::option::Option<crate::types::ConfigCapabilityType>) -> Self {
        self.config_type = input;
        self
    }
    /// <p>Type of a <code>Config</code>.</p>
    pub fn get_config_type(&self) -> &::std::option::Option<crate::types::ConfigCapabilityType> {
        &self.config_type
    }
    /// <p>UUID of a <code>Config</code>.</p>
    pub fn config_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.config_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>UUID of a <code>Config</code>.</p>
    pub fn set_config_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.config_id = input;
        self
    }
    /// <p>UUID of a <code>Config</code>.</p>
    pub fn get_config_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.config_id
    }
    /// <p>Additional details for a <code>Config</code>, if type is <code>dataflow-endpoint</code> or <code>antenna-downlink-demod-decode</code></p>
    pub fn config_details(mut self, input: crate::types::ConfigDetails) -> Self {
        self.config_details = ::std::option::Option::Some(input);
        self
    }
    /// <p>Additional details for a <code>Config</code>, if type is <code>dataflow-endpoint</code> or <code>antenna-downlink-demod-decode</code></p>
    pub fn set_config_details(mut self, input: ::std::option::Option<crate::types::ConfigDetails>) -> Self {
        self.config_details = input;
        self
    }
    /// <p>Additional details for a <code>Config</code>, if type is <code>dataflow-endpoint</code> or <code>antenna-downlink-demod-decode</code></p>
    pub fn get_config_details(&self) -> &::std::option::Option<crate::types::ConfigDetails> {
        &self.config_details
    }
    /// <p>Region of a dataflow source.</p>
    pub fn dataflow_source_region(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.dataflow_source_region = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Region of a dataflow source.</p>
    pub fn set_dataflow_source_region(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.dataflow_source_region = input;
        self
    }
    /// <p>Region of a dataflow source.</p>
    pub fn get_dataflow_source_region(&self) -> &::std::option::Option<::std::string::String> {
        &self.dataflow_source_region
    }
    /// Consumes the builder and constructs a [`Source`](crate::types::Source).
    pub fn build(self) -> crate::types::Source {
        crate::types::Source {
            config_type: self.config_type,
            config_id: self.config_id,
            config_details: self.config_details,
            dataflow_source_region: self.dataflow_source_region,
        }
    }
}