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
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetMappingInput {
#[doc(hidden)]
pub source: std::option::Option<crate::types::CatalogEntry>,
#[doc(hidden)]
pub sinks: std::option::Option<std::vec::Vec<crate::types::CatalogEntry>>,
#[doc(hidden)]
pub location: std::option::Option<crate::types::Location>,
}
impl GetMappingInput {
pub fn source(&self) -> std::option::Option<&crate::types::CatalogEntry> {
self.source.as_ref()
}
pub fn sinks(&self) -> std::option::Option<&[crate::types::CatalogEntry]> {
self.sinks.as_deref()
}
pub fn location(&self) -> std::option::Option<&crate::types::Location> {
self.location.as_ref()
}
}
impl GetMappingInput {
pub fn builder() -> crate::operation::get_mapping::builders::GetMappingInputBuilder {
crate::operation::get_mapping::builders::GetMappingInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct GetMappingInputBuilder {
pub(crate) source: std::option::Option<crate::types::CatalogEntry>,
pub(crate) sinks: std::option::Option<std::vec::Vec<crate::types::CatalogEntry>>,
pub(crate) location: std::option::Option<crate::types::Location>,
}
impl GetMappingInputBuilder {
pub fn source(mut self, input: crate::types::CatalogEntry) -> Self {
self.source = Some(input);
self
}
pub fn set_source(mut self, input: std::option::Option<crate::types::CatalogEntry>) -> Self {
self.source = input;
self
}
pub fn sinks(mut self, input: crate::types::CatalogEntry) -> Self {
let mut v = self.sinks.unwrap_or_default();
v.push(input);
self.sinks = Some(v);
self
}
pub fn set_sinks(
mut self,
input: std::option::Option<std::vec::Vec<crate::types::CatalogEntry>>,
) -> Self {
self.sinks = input;
self
}
pub fn location(mut self, input: crate::types::Location) -> Self {
self.location = Some(input);
self
}
pub fn set_location(mut self, input: std::option::Option<crate::types::Location>) -> Self {
self.location = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::get_mapping::GetMappingInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::get_mapping::GetMappingInput {
source: self.source,
sinks: self.sinks,
location: self.location,
})
}
}