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
// 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 ListLayersInput {
/// <p>A runtime identifier.</p>
/// <p>The following list includes deprecated runtimes. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels">Runtime use after deprecation</a>.</p>
/// <p>For a list of all currently supported runtimes, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported">Supported runtimes</a>.</p>
pub compatible_runtime: ::std::option::Option<crate::types::Runtime>,
/// <p>A pagination token returned by a previous call.</p>
pub marker: ::std::option::Option<::std::string::String>,
/// <p>The maximum number of layers to return.</p>
pub max_items: ::std::option::Option<i32>,
/// <p>The compatible <a href="https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html">instruction set architecture</a>.</p>
pub compatible_architecture: ::std::option::Option<crate::types::Architecture>,
}
impl ListLayersInput {
/// <p>A runtime identifier.</p>
/// <p>The following list includes deprecated runtimes. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels">Runtime use after deprecation</a>.</p>
/// <p>For a list of all currently supported runtimes, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported">Supported runtimes</a>.</p>
pub fn compatible_runtime(&self) -> ::std::option::Option<&crate::types::Runtime> {
self.compatible_runtime.as_ref()
}
/// <p>A pagination token returned by a previous call.</p>
pub fn marker(&self) -> ::std::option::Option<&str> {
self.marker.as_deref()
}
/// <p>The maximum number of layers to return.</p>
pub fn max_items(&self) -> ::std::option::Option<i32> {
self.max_items
}
/// <p>The compatible <a href="https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html">instruction set architecture</a>.</p>
pub fn compatible_architecture(&self) -> ::std::option::Option<&crate::types::Architecture> {
self.compatible_architecture.as_ref()
}
}
impl ListLayersInput {
/// Creates a new builder-style object to manufacture [`ListLayersInput`](crate::operation::list_layers::ListLayersInput).
pub fn builder() -> crate::operation::list_layers::builders::ListLayersInputBuilder {
crate::operation::list_layers::builders::ListLayersInputBuilder::default()
}
}
/// A builder for [`ListLayersInput`](crate::operation::list_layers::ListLayersInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ListLayersInputBuilder {
pub(crate) compatible_runtime: ::std::option::Option<crate::types::Runtime>,
pub(crate) marker: ::std::option::Option<::std::string::String>,
pub(crate) max_items: ::std::option::Option<i32>,
pub(crate) compatible_architecture: ::std::option::Option<crate::types::Architecture>,
}
impl ListLayersInputBuilder {
/// <p>A runtime identifier.</p>
/// <p>The following list includes deprecated runtimes. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels">Runtime use after deprecation</a>.</p>
/// <p>For a list of all currently supported runtimes, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported">Supported runtimes</a>.</p>
pub fn compatible_runtime(mut self, input: crate::types::Runtime) -> Self {
self.compatible_runtime = ::std::option::Option::Some(input);
self
}
/// <p>A runtime identifier.</p>
/// <p>The following list includes deprecated runtimes. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels">Runtime use after deprecation</a>.</p>
/// <p>For a list of all currently supported runtimes, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported">Supported runtimes</a>.</p>
pub fn set_compatible_runtime(mut self, input: ::std::option::Option<crate::types::Runtime>) -> Self {
self.compatible_runtime = input;
self
}
/// <p>A runtime identifier.</p>
/// <p>The following list includes deprecated runtimes. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels">Runtime use after deprecation</a>.</p>
/// <p>For a list of all currently supported runtimes, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported">Supported runtimes</a>.</p>
pub fn get_compatible_runtime(&self) -> &::std::option::Option<crate::types::Runtime> {
&self.compatible_runtime
}
/// <p>A pagination token returned by a previous call.</p>
pub fn marker(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.marker = ::std::option::Option::Some(input.into());
self
}
/// <p>A pagination token returned by a previous call.</p>
pub fn set_marker(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.marker = input;
self
}
/// <p>A pagination token returned by a previous call.</p>
pub fn get_marker(&self) -> &::std::option::Option<::std::string::String> {
&self.marker
}
/// <p>The maximum number of layers to return.</p>
pub fn max_items(mut self, input: i32) -> Self {
self.max_items = ::std::option::Option::Some(input);
self
}
/// <p>The maximum number of layers to return.</p>
pub fn set_max_items(mut self, input: ::std::option::Option<i32>) -> Self {
self.max_items = input;
self
}
/// <p>The maximum number of layers to return.</p>
pub fn get_max_items(&self) -> &::std::option::Option<i32> {
&self.max_items
}
/// <p>The compatible <a href="https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html">instruction set architecture</a>.</p>
pub fn compatible_architecture(mut self, input: crate::types::Architecture) -> Self {
self.compatible_architecture = ::std::option::Option::Some(input);
self
}
/// <p>The compatible <a href="https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html">instruction set architecture</a>.</p>
pub fn set_compatible_architecture(mut self, input: ::std::option::Option<crate::types::Architecture>) -> Self {
self.compatible_architecture = input;
self
}
/// <p>The compatible <a href="https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html">instruction set architecture</a>.</p>
pub fn get_compatible_architecture(&self) -> &::std::option::Option<crate::types::Architecture> {
&self.compatible_architecture
}
/// Consumes the builder and constructs a [`ListLayersInput`](crate::operation::list_layers::ListLayersInput).
pub fn build(self) -> ::std::result::Result<crate::operation::list_layers::ListLayersInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::list_layers::ListLayersInput {
compatible_runtime: self.compatible_runtime,
marker: self.marker,
max_items: self.max_items,
compatible_architecture: self.compatible_architecture,
})
}
}