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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>Describes a blueprint (a virtual private server image).</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Blueprint {
/// <p>The ID for the virtual private server image (<code>app_wordpress_x_x</code> or <code>app_lamp_x_x</code>).</p>
pub blueprint_id: ::std::option::Option<::std::string::String>,
/// <p>The friendly name of the blueprint (<code>Amazon Linux</code>).</p>
pub name: ::std::option::Option<::std::string::String>,
/// <p>The group name of the blueprint (<code>amazon-linux</code>).</p>
pub group: ::std::option::Option<::std::string::String>,
/// <p>The type of the blueprint (<code>os</code> or <code>app</code>).</p>
pub r#type: ::std::option::Option<crate::types::BlueprintType>,
/// <p>The description of the blueprint.</p>
pub description: ::std::option::Option<::std::string::String>,
/// <p>A Boolean value indicating whether the blueprint is active. Inactive blueprints are listed to support customers with existing instances but are not necessarily available for launch of new instances. Blueprints are marked inactive when they become outdated due to operating system updates or new application releases.</p>
pub is_active: ::std::option::Option<bool>,
/// <p>The minimum bundle power required to run this blueprint. For example, you need a bundle with a power value of 500 or more to create an instance that uses a blueprint with a minimum power value of 500. <code>0</code> indicates that the blueprint runs on all instance sizes.</p>
pub min_power: ::std::option::Option<i32>,
/// <p>The version number of the operating system, application, or stack ( <code>2016.03.0</code>).</p>
pub version: ::std::option::Option<::std::string::String>,
/// <p>The version code.</p>
pub version_code: ::std::option::Option<::std::string::String>,
/// <p>The product URL to learn more about the image or blueprint.</p>
pub product_url: ::std::option::Option<::std::string::String>,
/// <p>The end-user license agreement URL for the image or blueprint.</p>
pub license_url: ::std::option::Option<::std::string::String>,
/// <p>The operating system platform (either Linux/Unix-based or Windows Server-based) of the blueprint.</p>
pub platform: ::std::option::Option<crate::types::InstancePlatform>,
/// <p>Virtual computer blueprints that are supported by Lightsail for Research.</p><important>
/// <p>This parameter only applies to Lightsail for Research resources.</p>
/// </important>
pub app_category: ::std::option::Option<crate::types::AppCategory>,
}
impl Blueprint {
/// <p>The ID for the virtual private server image (<code>app_wordpress_x_x</code> or <code>app_lamp_x_x</code>).</p>
pub fn blueprint_id(&self) -> ::std::option::Option<&str> {
self.blueprint_id.as_deref()
}
/// <p>The friendly name of the blueprint (<code>Amazon Linux</code>).</p>
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
/// <p>The group name of the blueprint (<code>amazon-linux</code>).</p>
pub fn group(&self) -> ::std::option::Option<&str> {
self.group.as_deref()
}
/// <p>The type of the blueprint (<code>os</code> or <code>app</code>).</p>
pub fn r#type(&self) -> ::std::option::Option<&crate::types::BlueprintType> {
self.r#type.as_ref()
}
/// <p>The description of the blueprint.</p>
pub fn description(&self) -> ::std::option::Option<&str> {
self.description.as_deref()
}
/// <p>A Boolean value indicating whether the blueprint is active. Inactive blueprints are listed to support customers with existing instances but are not necessarily available for launch of new instances. Blueprints are marked inactive when they become outdated due to operating system updates or new application releases.</p>
pub fn is_active(&self) -> ::std::option::Option<bool> {
self.is_active
}
/// <p>The minimum bundle power required to run this blueprint. For example, you need a bundle with a power value of 500 or more to create an instance that uses a blueprint with a minimum power value of 500. <code>0</code> indicates that the blueprint runs on all instance sizes.</p>
pub fn min_power(&self) -> ::std::option::Option<i32> {
self.min_power
}
/// <p>The version number of the operating system, application, or stack ( <code>2016.03.0</code>).</p>
pub fn version(&self) -> ::std::option::Option<&str> {
self.version.as_deref()
}
/// <p>The version code.</p>
pub fn version_code(&self) -> ::std::option::Option<&str> {
self.version_code.as_deref()
}
/// <p>The product URL to learn more about the image or blueprint.</p>
pub fn product_url(&self) -> ::std::option::Option<&str> {
self.product_url.as_deref()
}
/// <p>The end-user license agreement URL for the image or blueprint.</p>
pub fn license_url(&self) -> ::std::option::Option<&str> {
self.license_url.as_deref()
}
/// <p>The operating system platform (either Linux/Unix-based or Windows Server-based) of the blueprint.</p>
pub fn platform(&self) -> ::std::option::Option<&crate::types::InstancePlatform> {
self.platform.as_ref()
}
/// <p>Virtual computer blueprints that are supported by Lightsail for Research.</p><important>
/// <p>This parameter only applies to Lightsail for Research resources.</p>
/// </important>
pub fn app_category(&self) -> ::std::option::Option<&crate::types::AppCategory> {
self.app_category.as_ref()
}
}
impl Blueprint {
/// Creates a new builder-style object to manufacture [`Blueprint`](crate::types::Blueprint).
pub fn builder() -> crate::types::builders::BlueprintBuilder {
crate::types::builders::BlueprintBuilder::default()
}
}
/// A builder for [`Blueprint`](crate::types::Blueprint).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct BlueprintBuilder {
pub(crate) blueprint_id: ::std::option::Option<::std::string::String>,
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) group: ::std::option::Option<::std::string::String>,
pub(crate) r#type: ::std::option::Option<crate::types::BlueprintType>,
pub(crate) description: ::std::option::Option<::std::string::String>,
pub(crate) is_active: ::std::option::Option<bool>,
pub(crate) min_power: ::std::option::Option<i32>,
pub(crate) version: ::std::option::Option<::std::string::String>,
pub(crate) version_code: ::std::option::Option<::std::string::String>,
pub(crate) product_url: ::std::option::Option<::std::string::String>,
pub(crate) license_url: ::std::option::Option<::std::string::String>,
pub(crate) platform: ::std::option::Option<crate::types::InstancePlatform>,
pub(crate) app_category: ::std::option::Option<crate::types::AppCategory>,
}
impl BlueprintBuilder {
/// <p>The ID for the virtual private server image (<code>app_wordpress_x_x</code> or <code>app_lamp_x_x</code>).</p>
pub fn blueprint_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.blueprint_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The ID for the virtual private server image (<code>app_wordpress_x_x</code> or <code>app_lamp_x_x</code>).</p>
pub fn set_blueprint_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.blueprint_id = input;
self
}
/// <p>The ID for the virtual private server image (<code>app_wordpress_x_x</code> or <code>app_lamp_x_x</code>).</p>
pub fn get_blueprint_id(&self) -> &::std::option::Option<::std::string::String> {
&self.blueprint_id
}
/// <p>The friendly name of the blueprint (<code>Amazon Linux</code>).</p>
pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.name = ::std::option::Option::Some(input.into());
self
}
/// <p>The friendly name of the blueprint (<code>Amazon Linux</code>).</p>
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
/// <p>The friendly name of the blueprint (<code>Amazon Linux</code>).</p>
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
/// <p>The group name of the blueprint (<code>amazon-linux</code>).</p>
pub fn group(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.group = ::std::option::Option::Some(input.into());
self
}
/// <p>The group name of the blueprint (<code>amazon-linux</code>).</p>
pub fn set_group(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.group = input;
self
}
/// <p>The group name of the blueprint (<code>amazon-linux</code>).</p>
pub fn get_group(&self) -> &::std::option::Option<::std::string::String> {
&self.group
}
/// <p>The type of the blueprint (<code>os</code> or <code>app</code>).</p>
pub fn r#type(mut self, input: crate::types::BlueprintType) -> Self {
self.r#type = ::std::option::Option::Some(input);
self
}
/// <p>The type of the blueprint (<code>os</code> or <code>app</code>).</p>
pub fn set_type(mut self, input: ::std::option::Option<crate::types::BlueprintType>) -> Self {
self.r#type = input;
self
}
/// <p>The type of the blueprint (<code>os</code> or <code>app</code>).</p>
pub fn get_type(&self) -> &::std::option::Option<crate::types::BlueprintType> {
&self.r#type
}
/// <p>The description of the blueprint.</p>
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.description = ::std::option::Option::Some(input.into());
self
}
/// <p>The description of the blueprint.</p>
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.description = input;
self
}
/// <p>The description of the blueprint.</p>
pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
&self.description
}
/// <p>A Boolean value indicating whether the blueprint is active. Inactive blueprints are listed to support customers with existing instances but are not necessarily available for launch of new instances. Blueprints are marked inactive when they become outdated due to operating system updates or new application releases.</p>
pub fn is_active(mut self, input: bool) -> Self {
self.is_active = ::std::option::Option::Some(input);
self
}
/// <p>A Boolean value indicating whether the blueprint is active. Inactive blueprints are listed to support customers with existing instances but are not necessarily available for launch of new instances. Blueprints are marked inactive when they become outdated due to operating system updates or new application releases.</p>
pub fn set_is_active(mut self, input: ::std::option::Option<bool>) -> Self {
self.is_active = input;
self
}
/// <p>A Boolean value indicating whether the blueprint is active. Inactive blueprints are listed to support customers with existing instances but are not necessarily available for launch of new instances. Blueprints are marked inactive when they become outdated due to operating system updates or new application releases.</p>
pub fn get_is_active(&self) -> &::std::option::Option<bool> {
&self.is_active
}
/// <p>The minimum bundle power required to run this blueprint. For example, you need a bundle with a power value of 500 or more to create an instance that uses a blueprint with a minimum power value of 500. <code>0</code> indicates that the blueprint runs on all instance sizes.</p>
pub fn min_power(mut self, input: i32) -> Self {
self.min_power = ::std::option::Option::Some(input);
self
}
/// <p>The minimum bundle power required to run this blueprint. For example, you need a bundle with a power value of 500 or more to create an instance that uses a blueprint with a minimum power value of 500. <code>0</code> indicates that the blueprint runs on all instance sizes.</p>
pub fn set_min_power(mut self, input: ::std::option::Option<i32>) -> Self {
self.min_power = input;
self
}
/// <p>The minimum bundle power required to run this blueprint. For example, you need a bundle with a power value of 500 or more to create an instance that uses a blueprint with a minimum power value of 500. <code>0</code> indicates that the blueprint runs on all instance sizes.</p>
pub fn get_min_power(&self) -> &::std::option::Option<i32> {
&self.min_power
}
/// <p>The version number of the operating system, application, or stack ( <code>2016.03.0</code>).</p>
pub fn version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.version = ::std::option::Option::Some(input.into());
self
}
/// <p>The version number of the operating system, application, or stack ( <code>2016.03.0</code>).</p>
pub fn set_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.version = input;
self
}
/// <p>The version number of the operating system, application, or stack ( <code>2016.03.0</code>).</p>
pub fn get_version(&self) -> &::std::option::Option<::std::string::String> {
&self.version
}
/// <p>The version code.</p>
pub fn version_code(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.version_code = ::std::option::Option::Some(input.into());
self
}
/// <p>The version code.</p>
pub fn set_version_code(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.version_code = input;
self
}
/// <p>The version code.</p>
pub fn get_version_code(&self) -> &::std::option::Option<::std::string::String> {
&self.version_code
}
/// <p>The product URL to learn more about the image or blueprint.</p>
pub fn product_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.product_url = ::std::option::Option::Some(input.into());
self
}
/// <p>The product URL to learn more about the image or blueprint.</p>
pub fn set_product_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.product_url = input;
self
}
/// <p>The product URL to learn more about the image or blueprint.</p>
pub fn get_product_url(&self) -> &::std::option::Option<::std::string::String> {
&self.product_url
}
/// <p>The end-user license agreement URL for the image or blueprint.</p>
pub fn license_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.license_url = ::std::option::Option::Some(input.into());
self
}
/// <p>The end-user license agreement URL for the image or blueprint.</p>
pub fn set_license_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.license_url = input;
self
}
/// <p>The end-user license agreement URL for the image or blueprint.</p>
pub fn get_license_url(&self) -> &::std::option::Option<::std::string::String> {
&self.license_url
}
/// <p>The operating system platform (either Linux/Unix-based or Windows Server-based) of the blueprint.</p>
pub fn platform(mut self, input: crate::types::InstancePlatform) -> Self {
self.platform = ::std::option::Option::Some(input);
self
}
/// <p>The operating system platform (either Linux/Unix-based or Windows Server-based) of the blueprint.</p>
pub fn set_platform(mut self, input: ::std::option::Option<crate::types::InstancePlatform>) -> Self {
self.platform = input;
self
}
/// <p>The operating system platform (either Linux/Unix-based or Windows Server-based) of the blueprint.</p>
pub fn get_platform(&self) -> &::std::option::Option<crate::types::InstancePlatform> {
&self.platform
}
/// <p>Virtual computer blueprints that are supported by Lightsail for Research.</p><important>
/// <p>This parameter only applies to Lightsail for Research resources.</p>
/// </important>
pub fn app_category(mut self, input: crate::types::AppCategory) -> Self {
self.app_category = ::std::option::Option::Some(input);
self
}
/// <p>Virtual computer blueprints that are supported by Lightsail for Research.</p><important>
/// <p>This parameter only applies to Lightsail for Research resources.</p>
/// </important>
pub fn set_app_category(mut self, input: ::std::option::Option<crate::types::AppCategory>) -> Self {
self.app_category = input;
self
}
/// <p>Virtual computer blueprints that are supported by Lightsail for Research.</p><important>
/// <p>This parameter only applies to Lightsail for Research resources.</p>
/// </important>
pub fn get_app_category(&self) -> &::std::option::Option<crate::types::AppCategory> {
&self.app_category
}
/// Consumes the builder and constructs a [`Blueprint`](crate::types::Blueprint).
pub fn build(self) -> crate::types::Blueprint {
crate::types::Blueprint {
blueprint_id: self.blueprint_id,
name: self.name,
group: self.group,
r#type: self.r#type,
description: self.description,
is_active: self.is_active,
min_power: self.min_power,
version: self.version,
version_code: self.version_code,
product_url: self.product_url,
license_url: self.license_url,
platform: self.platform,
app_category: self.app_category,
}
}
}