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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>The details of a blueprint.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Blueprint {
/// <p>The name of the blueprint.</p>
pub name: ::std::option::Option<::std::string::String>,
/// <p>The description of the blueprint.</p>
pub description: ::std::option::Option<::std::string::String>,
/// <p>The date and time the blueprint was registered.</p>
pub created_on: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>The date and time the blueprint was last modified.</p>
pub last_modified_on: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>A JSON string that indicates the list of parameter specifications for the blueprint.</p>
pub parameter_spec: ::std::option::Option<::std::string::String>,
/// <p>Specifies the path in Amazon S3 where the blueprint is published.</p>
pub blueprint_location: ::std::option::Option<::std::string::String>,
/// <p>Specifies a path in Amazon S3 where the blueprint is copied when you call <code>CreateBlueprint/UpdateBlueprint</code> to register the blueprint in Glue.</p>
pub blueprint_service_location: ::std::option::Option<::std::string::String>,
/// <p>The status of the blueprint registration.</p>
/// <ul>
/// <li>
/// <p>Creating — The blueprint registration is in progress.</p></li>
/// <li>
/// <p>Active — The blueprint has been successfully registered.</p></li>
/// <li>
/// <p>Updating — An update to the blueprint registration is in progress.</p></li>
/// <li>
/// <p>Failed — The blueprint registration failed.</p></li>
/// </ul>
pub status: ::std::option::Option<crate::types::BlueprintStatus>,
/// <p>An error message.</p>
pub error_message: ::std::option::Option<::std::string::String>,
/// <p>When there are multiple versions of a blueprint and the latest version has some errors, this attribute indicates the last successful blueprint definition that is available with the service.</p>
pub last_active_definition: ::std::option::Option<crate::types::LastActiveDefinition>,
}
impl Blueprint {
/// <p>The name of the blueprint.</p>
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
/// <p>The description of the blueprint.</p>
pub fn description(&self) -> ::std::option::Option<&str> {
self.description.as_deref()
}
/// <p>The date and time the blueprint was registered.</p>
pub fn created_on(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.created_on.as_ref()
}
/// <p>The date and time the blueprint was last modified.</p>
pub fn last_modified_on(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.last_modified_on.as_ref()
}
/// <p>A JSON string that indicates the list of parameter specifications for the blueprint.</p>
pub fn parameter_spec(&self) -> ::std::option::Option<&str> {
self.parameter_spec.as_deref()
}
/// <p>Specifies the path in Amazon S3 where the blueprint is published.</p>
pub fn blueprint_location(&self) -> ::std::option::Option<&str> {
self.blueprint_location.as_deref()
}
/// <p>Specifies a path in Amazon S3 where the blueprint is copied when you call <code>CreateBlueprint/UpdateBlueprint</code> to register the blueprint in Glue.</p>
pub fn blueprint_service_location(&self) -> ::std::option::Option<&str> {
self.blueprint_service_location.as_deref()
}
/// <p>The status of the blueprint registration.</p>
/// <ul>
/// <li>
/// <p>Creating — The blueprint registration is in progress.</p></li>
/// <li>
/// <p>Active — The blueprint has been successfully registered.</p></li>
/// <li>
/// <p>Updating — An update to the blueprint registration is in progress.</p></li>
/// <li>
/// <p>Failed — The blueprint registration failed.</p></li>
/// </ul>
pub fn status(&self) -> ::std::option::Option<&crate::types::BlueprintStatus> {
self.status.as_ref()
}
/// <p>An error message.</p>
pub fn error_message(&self) -> ::std::option::Option<&str> {
self.error_message.as_deref()
}
/// <p>When there are multiple versions of a blueprint and the latest version has some errors, this attribute indicates the last successful blueprint definition that is available with the service.</p>
pub fn last_active_definition(&self) -> ::std::option::Option<&crate::types::LastActiveDefinition> {
self.last_active_definition.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) name: ::std::option::Option<::std::string::String>,
pub(crate) description: ::std::option::Option<::std::string::String>,
pub(crate) created_on: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) last_modified_on: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) parameter_spec: ::std::option::Option<::std::string::String>,
pub(crate) blueprint_location: ::std::option::Option<::std::string::String>,
pub(crate) blueprint_service_location: ::std::option::Option<::std::string::String>,
pub(crate) status: ::std::option::Option<crate::types::BlueprintStatus>,
pub(crate) error_message: ::std::option::Option<::std::string::String>,
pub(crate) last_active_definition: ::std::option::Option<crate::types::LastActiveDefinition>,
}
impl BlueprintBuilder {
/// <p>The name of the blueprint.</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 name of the blueprint.</p>
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
/// <p>The name of the blueprint.</p>
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
/// <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>The date and time the blueprint was registered.</p>
pub fn created_on(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.created_on = ::std::option::Option::Some(input);
self
}
/// <p>The date and time the blueprint was registered.</p>
pub fn set_created_on(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.created_on = input;
self
}
/// <p>The date and time the blueprint was registered.</p>
pub fn get_created_on(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.created_on
}
/// <p>The date and time the blueprint was last modified.</p>
pub fn last_modified_on(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.last_modified_on = ::std::option::Option::Some(input);
self
}
/// <p>The date and time the blueprint was last modified.</p>
pub fn set_last_modified_on(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.last_modified_on = input;
self
}
/// <p>The date and time the blueprint was last modified.</p>
pub fn get_last_modified_on(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.last_modified_on
}
/// <p>A JSON string that indicates the list of parameter specifications for the blueprint.</p>
pub fn parameter_spec(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.parameter_spec = ::std::option::Option::Some(input.into());
self
}
/// <p>A JSON string that indicates the list of parameter specifications for the blueprint.</p>
pub fn set_parameter_spec(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.parameter_spec = input;
self
}
/// <p>A JSON string that indicates the list of parameter specifications for the blueprint.</p>
pub fn get_parameter_spec(&self) -> &::std::option::Option<::std::string::String> {
&self.parameter_spec
}
/// <p>Specifies the path in Amazon S3 where the blueprint is published.</p>
pub fn blueprint_location(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.blueprint_location = ::std::option::Option::Some(input.into());
self
}
/// <p>Specifies the path in Amazon S3 where the blueprint is published.</p>
pub fn set_blueprint_location(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.blueprint_location = input;
self
}
/// <p>Specifies the path in Amazon S3 where the blueprint is published.</p>
pub fn get_blueprint_location(&self) -> &::std::option::Option<::std::string::String> {
&self.blueprint_location
}
/// <p>Specifies a path in Amazon S3 where the blueprint is copied when you call <code>CreateBlueprint/UpdateBlueprint</code> to register the blueprint in Glue.</p>
pub fn blueprint_service_location(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.blueprint_service_location = ::std::option::Option::Some(input.into());
self
}
/// <p>Specifies a path in Amazon S3 where the blueprint is copied when you call <code>CreateBlueprint/UpdateBlueprint</code> to register the blueprint in Glue.</p>
pub fn set_blueprint_service_location(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.blueprint_service_location = input;
self
}
/// <p>Specifies a path in Amazon S3 where the blueprint is copied when you call <code>CreateBlueprint/UpdateBlueprint</code> to register the blueprint in Glue.</p>
pub fn get_blueprint_service_location(&self) -> &::std::option::Option<::std::string::String> {
&self.blueprint_service_location
}
/// <p>The status of the blueprint registration.</p>
/// <ul>
/// <li>
/// <p>Creating — The blueprint registration is in progress.</p></li>
/// <li>
/// <p>Active — The blueprint has been successfully registered.</p></li>
/// <li>
/// <p>Updating — An update to the blueprint registration is in progress.</p></li>
/// <li>
/// <p>Failed — The blueprint registration failed.</p></li>
/// </ul>
pub fn status(mut self, input: crate::types::BlueprintStatus) -> Self {
self.status = ::std::option::Option::Some(input);
self
}
/// <p>The status of the blueprint registration.</p>
/// <ul>
/// <li>
/// <p>Creating — The blueprint registration is in progress.</p></li>
/// <li>
/// <p>Active — The blueprint has been successfully registered.</p></li>
/// <li>
/// <p>Updating — An update to the blueprint registration is in progress.</p></li>
/// <li>
/// <p>Failed — The blueprint registration failed.</p></li>
/// </ul>
pub fn set_status(mut self, input: ::std::option::Option<crate::types::BlueprintStatus>) -> Self {
self.status = input;
self
}
/// <p>The status of the blueprint registration.</p>
/// <ul>
/// <li>
/// <p>Creating — The blueprint registration is in progress.</p></li>
/// <li>
/// <p>Active — The blueprint has been successfully registered.</p></li>
/// <li>
/// <p>Updating — An update to the blueprint registration is in progress.</p></li>
/// <li>
/// <p>Failed — The blueprint registration failed.</p></li>
/// </ul>
pub fn get_status(&self) -> &::std::option::Option<crate::types::BlueprintStatus> {
&self.status
}
/// <p>An error message.</p>
pub fn error_message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.error_message = ::std::option::Option::Some(input.into());
self
}
/// <p>An error message.</p>
pub fn set_error_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.error_message = input;
self
}
/// <p>An error message.</p>
pub fn get_error_message(&self) -> &::std::option::Option<::std::string::String> {
&self.error_message
}
/// <p>When there are multiple versions of a blueprint and the latest version has some errors, this attribute indicates the last successful blueprint definition that is available with the service.</p>
pub fn last_active_definition(mut self, input: crate::types::LastActiveDefinition) -> Self {
self.last_active_definition = ::std::option::Option::Some(input);
self
}
/// <p>When there are multiple versions of a blueprint and the latest version has some errors, this attribute indicates the last successful blueprint definition that is available with the service.</p>
pub fn set_last_active_definition(mut self, input: ::std::option::Option<crate::types::LastActiveDefinition>) -> Self {
self.last_active_definition = input;
self
}
/// <p>When there are multiple versions of a blueprint and the latest version has some errors, this attribute indicates the last successful blueprint definition that is available with the service.</p>
pub fn get_last_active_definition(&self) -> &::std::option::Option<crate::types::LastActiveDefinition> {
&self.last_active_definition
}
/// Consumes the builder and constructs a [`Blueprint`](crate::types::Blueprint).
pub fn build(self) -> crate::types::Blueprint {
crate::types::Blueprint {
name: self.name,
description: self.description,
created_on: self.created_on,
last_modified_on: self.last_modified_on,
parameter_spec: self.parameter_spec,
blueprint_location: self.blueprint_location,
blueprint_service_location: self.blueprint_service_location,
status: self.status,
error_message: self.error_message,
last_active_definition: self.last_active_definition,
}
}
}