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
// 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 GetBundlesInput {
/// <p>A Boolean value that indicates whether to include inactive (unavailable) bundles in the response of your request.</p>
pub include_inactive: ::std::option::Option<bool>,
/// <p>The token to advance to the next page of results from your request.</p>
/// <p>To get a page token, perform an initial <code>GetBundles</code> request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.</p>
pub page_token: ::std::option::Option<::std::string::String>,
/// <p>Returns a list of bundles that are specific to Lightsail for Research.</p><important>
/// <p>You must use this parameter to view Lightsail for Research bundles.</p>
/// </important>
pub app_category: ::std::option::Option<crate::types::AppCategory>,
}
impl GetBundlesInput {
/// <p>A Boolean value that indicates whether to include inactive (unavailable) bundles in the response of your request.</p>
pub fn include_inactive(&self) -> ::std::option::Option<bool> {
self.include_inactive
}
/// <p>The token to advance to the next page of results from your request.</p>
/// <p>To get a page token, perform an initial <code>GetBundles</code> request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.</p>
pub fn page_token(&self) -> ::std::option::Option<&str> {
self.page_token.as_deref()
}
/// <p>Returns a list of bundles that are specific to Lightsail for Research.</p><important>
/// <p>You must use this parameter to view Lightsail for Research bundles.</p>
/// </important>
pub fn app_category(&self) -> ::std::option::Option<&crate::types::AppCategory> {
self.app_category.as_ref()
}
}
impl GetBundlesInput {
/// Creates a new builder-style object to manufacture [`GetBundlesInput`](crate::operation::get_bundles::GetBundlesInput).
pub fn builder() -> crate::operation::get_bundles::builders::GetBundlesInputBuilder {
crate::operation::get_bundles::builders::GetBundlesInputBuilder::default()
}
}
/// A builder for [`GetBundlesInput`](crate::operation::get_bundles::GetBundlesInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetBundlesInputBuilder {
pub(crate) include_inactive: ::std::option::Option<bool>,
pub(crate) page_token: ::std::option::Option<::std::string::String>,
pub(crate) app_category: ::std::option::Option<crate::types::AppCategory>,
}
impl GetBundlesInputBuilder {
/// <p>A Boolean value that indicates whether to include inactive (unavailable) bundles in the response of your request.</p>
pub fn include_inactive(mut self, input: bool) -> Self {
self.include_inactive = ::std::option::Option::Some(input);
self
}
/// <p>A Boolean value that indicates whether to include inactive (unavailable) bundles in the response of your request.</p>
pub fn set_include_inactive(mut self, input: ::std::option::Option<bool>) -> Self {
self.include_inactive = input;
self
}
/// <p>A Boolean value that indicates whether to include inactive (unavailable) bundles in the response of your request.</p>
pub fn get_include_inactive(&self) -> &::std::option::Option<bool> {
&self.include_inactive
}
/// <p>The token to advance to the next page of results from your request.</p>
/// <p>To get a page token, perform an initial <code>GetBundles</code> request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.</p>
pub fn page_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.page_token = ::std::option::Option::Some(input.into());
self
}
/// <p>The token to advance to the next page of results from your request.</p>
/// <p>To get a page token, perform an initial <code>GetBundles</code> request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.</p>
pub fn set_page_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.page_token = input;
self
}
/// <p>The token to advance to the next page of results from your request.</p>
/// <p>To get a page token, perform an initial <code>GetBundles</code> request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.</p>
pub fn get_page_token(&self) -> &::std::option::Option<::std::string::String> {
&self.page_token
}
/// <p>Returns a list of bundles that are specific to Lightsail for Research.</p><important>
/// <p>You must use this parameter to view Lightsail for Research bundles.</p>
/// </important>
pub fn app_category(mut self, input: crate::types::AppCategory) -> Self {
self.app_category = ::std::option::Option::Some(input);
self
}
/// <p>Returns a list of bundles that are specific to Lightsail for Research.</p><important>
/// <p>You must use this parameter to view Lightsail for Research bundles.</p>
/// </important>
pub fn set_app_category(mut self, input: ::std::option::Option<crate::types::AppCategory>) -> Self {
self.app_category = input;
self
}
/// <p>Returns a list of bundles that are specific to Lightsail for Research.</p><important>
/// <p>You must use this parameter to view Lightsail for Research bundles.</p>
/// </important>
pub fn get_app_category(&self) -> &::std::option::Option<crate::types::AppCategory> {
&self.app_category
}
/// Consumes the builder and constructs a [`GetBundlesInput`](crate::operation::get_bundles::GetBundlesInput).
pub fn build(self) -> ::std::result::Result<crate::operation::get_bundles::GetBundlesInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_bundles::GetBundlesInput {
include_inactive: self.include_inactive,
page_token: self.page_token,
app_category: self.app_category,
})
}
}