1 + | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + | #[allow(missing_docs)] // documentation missing in model
|
3 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::hash::Hash)]
|
4 + | pub struct StartSnapshotOutput {
|
5 + | /// <p>The tags applied to the snapshot. You can specify up to 50 tags per snapshot. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html"> Tagging your Amazon EC2 resources</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
|
6 + | pub tags: ::std::option::Option<::std::vec::Vec<crate::model::Tag>>,
|
7 + | /// <p>The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) customer master key (CMK) used to encrypt the snapshot.</p>
|
8 + | pub kms_key_arn: ::std::option::Option<crate::model::KmsKeyArn>,
|
9 + | /// <p>The AWS account ID of the snapshot owner.</p>
|
10 + | pub owner_id: ::std::option::Option<crate::model::OwnerId>,
|
11 + | /// <p>The size of the volume, in GiB.</p>
|
12 + | pub volume_size: ::std::option::Option<crate::model::VolumeSize>,
|
13 + | /// <p>The ID of the parent snapshot.</p>
|
14 + | pub parent_snapshot_id: ::std::option::Option<crate::model::SnapshotId>,
|
15 + | /// <p>The description of the snapshot.</p>
|
16 + | pub description: ::std::option::Option<crate::model::Description>,
|
17 + | /// <p>The ID of the snapshot.</p>
|
18 + | pub snapshot_id: ::std::option::Option<crate::model::SnapshotId>,
|
19 + | /// <p>The size of the blocks in the snapshot, in bytes.</p>
|
20 + | pub block_size: ::std::option::Option<i32>,
|
21 + | /// <p>The timestamp when the snapshot was created.</p>
|
22 + | pub start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
23 + | /// <p>The status of the snapshot.</p>
|
24 + | pub status: ::std::option::Option<crate::model::Status>,
|
25 + | }
|
26 + | impl StartSnapshotOutput {
|
27 + | /// <p>The tags applied to the snapshot. You can specify up to 50 tags per snapshot. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html"> Tagging your Amazon EC2 resources</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
|
28 + | pub fn tags(&self) -> ::std::option::Option<&[crate::model::Tag]> {
|
29 + | self.tags.as_deref()
|
30 + | }
|
31 + | /// <p>The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) customer master key (CMK) used to encrypt the snapshot.</p>
|
32 + | pub fn kms_key_arn(&self) -> ::std::option::Option<&crate::model::KmsKeyArn> {
|
33 + | self.kms_key_arn.as_ref()
|
34 + | }
|
35 + | /// <p>The AWS account ID of the snapshot owner.</p>
|
36 + | pub fn owner_id(&self) -> ::std::option::Option<&crate::model::OwnerId> {
|
37 + | self.owner_id.as_ref()
|
38 + | }
|
39 + | /// <p>The size of the volume, in GiB.</p>
|
40 + | pub fn volume_size(&self) -> ::std::option::Option<&crate::model::VolumeSize> {
|
41 + | self.volume_size.as_ref()
|
42 + | }
|
43 + | /// <p>The ID of the parent snapshot.</p>
|
44 + | pub fn parent_snapshot_id(&self) -> ::std::option::Option<&crate::model::SnapshotId> {
|
45 + | self.parent_snapshot_id.as_ref()
|
46 + | }
|
47 + | /// <p>The description of the snapshot.</p>
|
48 + | pub fn description(&self) -> ::std::option::Option<&crate::model::Description> {
|
49 + | self.description.as_ref()
|
50 + | }
|
51 + | /// <p>The ID of the snapshot.</p>
|
52 + | pub fn snapshot_id(&self) -> ::std::option::Option<&crate::model::SnapshotId> {
|
53 + | self.snapshot_id.as_ref()
|
54 + | }
|
55 + | /// <p>The size of the blocks in the snapshot, in bytes.</p>
|
56 + | pub fn block_size(&self) -> ::std::option::Option<i32> {
|
57 + | self.block_size
|
58 + | }
|
59 + | /// <p>The timestamp when the snapshot was created.</p>
|
60 + | pub fn start_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
61 + | self.start_time.as_ref()
|
62 + | }
|
63 + | /// <p>The status of the snapshot.</p>
|
64 + | pub fn status(&self) -> ::std::option::Option<&crate::model::Status> {
|
65 + | self.status.as_ref()
|
66 + | }
|
67 + | }
|
68 + | impl ::std::fmt::Debug for StartSnapshotOutput {
|
69 + | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
70 + | let mut formatter = f.debug_struct("StartSnapshotOutput");
|
71 + | formatter.field("tags", &self.tags);
|
72 + | formatter.field("kms_key_arn", &"*** Sensitive Data Redacted ***");
|
73 + | formatter.field("owner_id", &self.owner_id);
|
74 + | formatter.field("volume_size", &self.volume_size);
|
75 + | formatter.field("parent_snapshot_id", &self.parent_snapshot_id);
|
76 + | formatter.field("description", &self.description);
|
77 + | formatter.field("snapshot_id", &self.snapshot_id);
|
78 + | formatter.field("block_size", &self.block_size);
|
79 + | formatter.field("start_time", &self.start_time);
|
80 + | formatter.field("status", &self.status);
|
81 + | formatter.finish()
|
82 + | }
|
83 + | }
|
84 + | impl StartSnapshotOutput {
|
85 + | /// Creates a new builder-style object to manufacture [`StartSnapshotOutput`](crate::output::StartSnapshotOutput).
|
86 + | pub fn builder() -> crate::output::start_snapshot_output::Builder {
|
87 + | crate::output::start_snapshot_output::Builder::default()
|
88 + | }
|
89 + | }
|
90 + |
|
91 + | #[allow(missing_docs)] // documentation missing in model
|
92 + | #[derive(
|
93 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
94 + | )]
|
95 + | pub struct PutSnapshotBlockOutput {
|
96 + | /// <p>The algorithm used by Amazon EBS to generate the checksum.</p>
|
97 + | pub checksum_algorithm: ::std::option::Option<crate::model::ChecksumAlgorithm>,
|
98 + | /// <p>The SHA256 checksum generated for the block data by Amazon EBS.</p>
|
99 + | pub checksum: ::std::option::Option<crate::model::Checksum>,
|
100 + | }
|
101 + | impl PutSnapshotBlockOutput {
|
102 + | /// <p>The algorithm used by Amazon EBS to generate the checksum.</p>
|
103 + | pub fn checksum_algorithm(&self) -> ::std::option::Option<&crate::model::ChecksumAlgorithm> {
|
104 + | self.checksum_algorithm.as_ref()
|
105 + | }
|
106 + | /// <p>The SHA256 checksum generated for the block data by Amazon EBS.</p>
|
107 + | pub fn checksum(&self) -> ::std::option::Option<&crate::model::Checksum> {
|
108 + | self.checksum.as_ref()
|
109 + | }
|
110 + | }
|
111 + | impl PutSnapshotBlockOutput {
|
112 + | /// Creates a new builder-style object to manufacture [`PutSnapshotBlockOutput`](crate::output::PutSnapshotBlockOutput).
|
113 + | pub fn builder() -> crate::output::put_snapshot_block_output::Builder {
|
114 + | crate::output::put_snapshot_block_output::Builder::default()
|
115 + | }
|
116 + | }
|
117 + |
|
118 + | #[allow(missing_docs)] // documentation missing in model
|
119 + | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::hash::Hash)]
|
120 + | pub struct ListSnapshotBlocksOutput {
|
121 + | /// <p>The size of the volume in GB.</p>
|
122 + | pub volume_size: ::std::option::Option<crate::model::VolumeSize>,
|
123 + | /// <p>The token to use to retrieve the next page of results. This value is null when there are no more results to return.</p>
|
124 + | pub next_token: ::std::option::Option<crate::model::PageToken>,
|
125 + | /// <p>The time when the <code>BlockToken</code> expires.</p>
|
126 + | pub expiry_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
127 + | /// <p>An array of objects containing information about the blocks.</p>
|
128 + | pub blocks: ::std::option::Option<::std::vec::Vec<crate::model::Block>>,
|
129 + | /// <p>The size of the block.</p>
|
130 + | pub block_size: ::std::option::Option<i32>,
|
131 + | }
|
132 + | impl ListSnapshotBlocksOutput {
|
133 + | /// <p>The size of the volume in GB.</p>
|
134 + | pub fn volume_size(&self) -> ::std::option::Option<&crate::model::VolumeSize> {
|
135 + | self.volume_size.as_ref()
|
136 + | }
|
137 + | /// <p>The token to use to retrieve the next page of results. This value is null when there are no more results to return.</p>
|
138 + | pub fn next_token(&self) -> ::std::option::Option<&crate::model::PageToken> {
|
139 + | self.next_token.as_ref()
|
140 + | }
|
141 + | /// <p>The time when the <code>BlockToken</code> expires.</p>
|
142 + | pub fn expiry_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
143 + | self.expiry_time.as_ref()
|
144 + | }
|
145 + | /// <p>An array of objects containing information about the blocks.</p>
|
146 + | pub fn blocks(&self) -> ::std::option::Option<&[crate::model::Block]> {
|
147 + | self.blocks.as_deref()
|
148 + | }
|
149 + | /// <p>The size of the block.</p>
|
150 + | pub fn block_size(&self) -> ::std::option::Option<i32> {
|
151 + | self.block_size
|
152 + | }
|
153 + | }
|
154 + | impl ::std::fmt::Debug for ListSnapshotBlocksOutput {
|
155 + | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
156 + | let mut formatter = f.debug_struct("ListSnapshotBlocksOutput");
|
157 + | formatter.field("volume_size", &self.volume_size);
|
158 + | formatter.field("next_token", &self.next_token);
|
159 + | formatter.field("expiry_time", &self.expiry_time);
|
160 + | formatter.field("blocks", &"*** Sensitive Data Redacted ***");
|
161 + | formatter.field("block_size", &self.block_size);
|
162 + | formatter.finish()
|
163 + | }
|
164 + | }
|
165 + | impl ListSnapshotBlocksOutput {
|
166 + | /// Creates a new builder-style object to manufacture [`ListSnapshotBlocksOutput`](crate::output::ListSnapshotBlocksOutput).
|
167 + | pub fn builder() -> crate::output::list_snapshot_blocks_output::Builder {
|
168 + | crate::output::list_snapshot_blocks_output::Builder::default()
|
169 + | }
|
170 + | }
|
171 + |
|
172 + | #[allow(missing_docs)] // documentation missing in model
|
173 + | #[derive(
|
174 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
175 + | )]
|
176 + | pub struct ListChangedBlocksOutput {
|
177 + | /// <p>The size of the block.</p>
|
178 + | pub block_size: ::std::option::Option<i32>,
|
179 + | /// <p>The time when the <code>BlockToken</code> expires.</p>
|
180 + | pub expiry_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
181 + | /// <p>The size of the volume in GB.</p>
|
182 + | pub volume_size: ::std::option::Option<crate::model::VolumeSize>,
|
183 + | /// <p>The token to use to retrieve the next page of results. This value is null when there are no more results to return.</p>
|
184 + | pub next_token: ::std::option::Option<crate::model::PageToken>,
|
185 + | /// <p>An array of objects containing information about the changed blocks.</p>
|
186 + | pub changed_blocks: ::std::option::Option<::std::vec::Vec<crate::model::ChangedBlock>>,
|
187 + | }
|
188 + | impl ListChangedBlocksOutput {
|
189 + | /// <p>The size of the block.</p>
|
190 + | pub fn block_size(&self) -> ::std::option::Option<i32> {
|
191 + | self.block_size
|
192 + | }
|
193 + | /// <p>The time when the <code>BlockToken</code> expires.</p>
|
194 + | pub fn expiry_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
195 + | self.expiry_time.as_ref()
|
196 + | }
|
197 + | /// <p>The size of the volume in GB.</p>
|
198 + | pub fn volume_size(&self) -> ::std::option::Option<&crate::model::VolumeSize> {
|
199 + | self.volume_size.as_ref()
|
200 + | }
|
201 + | /// <p>The token to use to retrieve the next page of results. This value is null when there are no more results to return.</p>
|
202 + | pub fn next_token(&self) -> ::std::option::Option<&crate::model::PageToken> {
|
203 + | self.next_token.as_ref()
|
204 + | }
|
205 + | /// <p>An array of objects containing information about the changed blocks.</p>
|
206 + | pub fn changed_blocks(&self) -> ::std::option::Option<&[crate::model::ChangedBlock]> {
|
207 + | self.changed_blocks.as_deref()
|
208 + | }
|
209 + | }
|
210 + | impl ListChangedBlocksOutput {
|
211 + | /// Creates a new builder-style object to manufacture [`ListChangedBlocksOutput`](crate::output::ListChangedBlocksOutput).
|
212 + | pub fn builder() -> crate::output::list_changed_blocks_output::Builder {
|
213 + | crate::output::list_changed_blocks_output::Builder::default()
|
214 + | }
|
215 + | }
|
216 + |
|
217 + | #[allow(missing_docs)] // documentation missing in model
|
218 + | pub struct GetSnapshotBlockOutput {
|
219 + | /// <p>The size of the data in the block.</p>
|
220 + | pub data_length: ::std::option::Option<i32>,
|
221 + | /// <p>The algorithm used to generate the checksum for the block, such as SHA256.</p>
|
222 + | pub checksum_algorithm: ::std::option::Option<crate::model::ChecksumAlgorithm>,
|
223 + | /// <p>The checksum generated for the block, which is Base64 encoded.</p>
|
224 + | pub checksum: ::std::option::Option<crate::model::Checksum>,
|
225 + | /// <p>The data content of the block.</p>
|
226 + | pub block_data: ::aws_smithy_types::byte_stream::ByteStream,
|
227 + | }
|
228 + | impl GetSnapshotBlockOutput {
|
229 + | /// <p>The size of the data in the block.</p>
|
230 + | pub fn data_length(&self) -> ::std::option::Option<i32> {
|
231 + | self.data_length
|
232 + | }
|
233 + | /// <p>The algorithm used to generate the checksum for the block, such as SHA256.</p>
|
234 + | pub fn checksum_algorithm(&self) -> ::std::option::Option<&crate::model::ChecksumAlgorithm> {
|
235 + | self.checksum_algorithm.as_ref()
|
236 + | }
|
237 + | /// <p>The checksum generated for the block, which is Base64 encoded.</p>
|
238 + | pub fn checksum(&self) -> ::std::option::Option<&crate::model::Checksum> {
|
239 + | self.checksum.as_ref()
|
240 + | }
|
241 + | /// <p>The data content of the block.</p>
|
242 + | pub fn block_data(&self) -> &::aws_smithy_types::byte_stream::ByteStream {
|
243 + | &self.block_data
|
244 + | }
|
245 + | }
|
246 + | impl ::std::fmt::Debug for GetSnapshotBlockOutput {
|
247 + | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
248 + | let mut formatter = f.debug_struct("GetSnapshotBlockOutput");
|
249 + | formatter.field("data_length", &self.data_length);
|
250 + | formatter.field("checksum_algorithm", &self.checksum_algorithm);
|
251 + | formatter.field("checksum", &self.checksum);
|
252 + | formatter.field("block_data", &"*** Sensitive Data Redacted ***");
|
253 + | formatter.finish()
|
254 + | }
|
255 + | }
|
256 + | impl GetSnapshotBlockOutput {
|
257 + | /// Creates a new builder-style object to manufacture [`GetSnapshotBlockOutput`](crate::output::GetSnapshotBlockOutput).
|
258 + | pub fn builder() -> crate::output::get_snapshot_block_output::Builder {
|
259 + | crate::output::get_snapshot_block_output::Builder::default()
|
260 + | }
|
261 + | }
|
262 + |
|
263 + | #[allow(missing_docs)] // documentation missing in model
|
264 + | #[derive(
|
265 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
266 + | )]
|
267 + | pub struct CompleteSnapshotOutput {
|
268 + | /// <p>The status of the snapshot.</p>
|
269 + | pub status: ::std::option::Option<crate::model::Status>,
|
270 + | }
|
271 + | impl CompleteSnapshotOutput {
|
272 + | /// <p>The status of the snapshot.</p>
|
273 + | pub fn status(&self) -> ::std::option::Option<&crate::model::Status> {
|
274 + | self.status.as_ref()
|
275 + | }
|
276 + | }
|
277 + | impl CompleteSnapshotOutput {
|
278 + | /// Creates a new builder-style object to manufacture [`CompleteSnapshotOutput`](crate::output::CompleteSnapshotOutput).
|
279 + | pub fn builder() -> crate::output::complete_snapshot_output::Builder {
|
280 + | crate::output::complete_snapshot_output::Builder::default()
|
281 + | }
|
282 + | }
|
283 + | /// See [`StartSnapshotOutput`](crate::output::StartSnapshotOutput).
|
284 + | pub mod start_snapshot_output {
|
285 + |
|
286 + | impl ::std::convert::From<Builder> for crate::output::StartSnapshotOutput {
|
287 + | fn from(builder: Builder) -> Self {
|
288 + | builder.build()
|
289 + | }
|
290 + | }
|
291 + | /// A builder for [`StartSnapshotOutput`](crate::output::StartSnapshotOutput).
|
292 + | #[derive(::std::clone::Clone, ::std::default::Default)]
|
293 + | pub struct Builder {
|
294 + | pub(crate) tags: ::std::option::Option<::std::vec::Vec<crate::model::Tag>>,
|
295 + | pub(crate) kms_key_arn: ::std::option::Option<crate::model::KmsKeyArn>,
|
296 + | pub(crate) owner_id: ::std::option::Option<crate::model::OwnerId>,
|
297 + | pub(crate) volume_size: ::std::option::Option<crate::model::VolumeSize>,
|
298 + | pub(crate) parent_snapshot_id: ::std::option::Option<crate::model::SnapshotId>,
|
299 + | pub(crate) description: ::std::option::Option<crate::model::Description>,
|
300 + | pub(crate) snapshot_id: ::std::option::Option<crate::model::SnapshotId>,
|
301 + | pub(crate) block_size: ::std::option::Option<i32>,
|
302 + | pub(crate) start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
303 + | pub(crate) status: ::std::option::Option<crate::model::Status>,
|
304 + | }
|
305 + | impl Builder {
|
306 + | /// <p>The tags applied to the snapshot. You can specify up to 50 tags per snapshot. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html"> Tagging your Amazon EC2 resources</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
|
307 + | pub fn tags(
|
308 + | mut self,
|
309 + | input: ::std::option::Option<::std::vec::Vec<crate::model::Tag>>,
|
310 + | ) -> Self {
|
311 + | self.tags = input;
|
312 + | self
|
313 + | }
|
314 + | /// <p>The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) customer master key (CMK) used to encrypt the snapshot.</p>
|
315 + | pub fn kms_key_arn(
|
316 + | mut self,
|
317 + | input: ::std::option::Option<crate::model::KmsKeyArn>,
|
318 + | ) -> Self {
|
319 + | self.kms_key_arn = input;
|
320 + | self
|
321 + | }
|
322 + | /// <p>The AWS account ID of the snapshot owner.</p>
|
323 + | pub fn owner_id(mut self, input: ::std::option::Option<crate::model::OwnerId>) -> Self {
|
324 + | self.owner_id = input;
|
325 + | self
|
326 + | }
|
327 + | /// <p>The size of the volume, in GiB.</p>
|
328 + | pub fn volume_size(
|
329 + | mut self,
|
330 + | input: ::std::option::Option<crate::model::VolumeSize>,
|
331 + | ) -> Self {
|
332 + | self.volume_size = input;
|
333 + | self
|
334 + | }
|
335 + | /// <p>The ID of the parent snapshot.</p>
|
336 + | pub fn parent_snapshot_id(
|
337 + | mut self,
|
338 + | input: ::std::option::Option<crate::model::SnapshotId>,
|
339 + | ) -> Self {
|
340 + | self.parent_snapshot_id = input;
|
341 + | self
|
342 + | }
|
343 + | /// <p>The description of the snapshot.</p>
|
344 + | pub fn description(
|
345 + | mut self,
|
346 + | input: ::std::option::Option<crate::model::Description>,
|
347 + | ) -> Self {
|
348 + | self.description = input;
|
349 + | self
|
350 + | }
|
351 + | /// <p>The ID of the snapshot.</p>
|
352 + | pub fn snapshot_id(
|
353 + | mut self,
|
354 + | input: ::std::option::Option<crate::model::SnapshotId>,
|
355 + | ) -> Self {
|
356 + | self.snapshot_id = input;
|
357 + | self
|
358 + | }
|
359 + | /// <p>The size of the blocks in the snapshot, in bytes.</p>
|
360 + | pub fn block_size(mut self, input: ::std::option::Option<i32>) -> Self {
|
361 + | self.block_size = input;
|
362 + | self
|
363 + | }
|
364 + | /// <p>The timestamp when the snapshot was created.</p>
|
365 + | pub fn start_time(
|
366 + | mut self,
|
367 + | input: ::std::option::Option<::aws_smithy_types::DateTime>,
|
368 + | ) -> Self {
|
369 + | self.start_time = input;
|
370 + | self
|
371 + | }
|
372 + | /// <p>The status of the snapshot.</p>
|
373 + | pub fn status(mut self, input: ::std::option::Option<crate::model::Status>) -> Self {
|
374 + | self.status = input;
|
375 + | self
|
376 + | }
|
377 + | /// Consumes the builder and constructs a [`StartSnapshotOutput`](crate::output::StartSnapshotOutput).
|
378 + | pub fn build(self) -> crate::output::StartSnapshotOutput {
|
379 + | self.build_enforcing_all_constraints()
|
380 + | }
|
381 + | fn build_enforcing_all_constraints(self) -> crate::output::StartSnapshotOutput {
|
382 + | crate::output::StartSnapshotOutput {
|
383 + | tags: self.tags,
|
384 + | kms_key_arn: self.kms_key_arn,
|
385 + | owner_id: self.owner_id,
|
386 + | volume_size: self.volume_size,
|
387 + | parent_snapshot_id: self.parent_snapshot_id,
|
388 + | description: self.description,
|
389 + | snapshot_id: self.snapshot_id,
|
390 + | block_size: self.block_size,
|
391 + | start_time: self.start_time,
|
392 + | status: self.status,
|
393 + | }
|
394 + | }
|
395 + | }
|
396 + | impl ::std::fmt::Debug for Builder {
|
397 + | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
398 + | let mut formatter = f.debug_struct("Builder");
|
399 + | formatter.field("tags", &self.tags);
|
400 + | formatter.field("kms_key_arn", &"*** Sensitive Data Redacted ***");
|
401 + | formatter.field("owner_id", &self.owner_id);
|
402 + | formatter.field("volume_size", &self.volume_size);
|
403 + | formatter.field("parent_snapshot_id", &self.parent_snapshot_id);
|
404 + | formatter.field("description", &self.description);
|
405 + | formatter.field("snapshot_id", &self.snapshot_id);
|
406 + | formatter.field("block_size", &self.block_size);
|
407 + | formatter.field("start_time", &self.start_time);
|
408 + | formatter.field("status", &self.status);
|
409 + | formatter.finish()
|
410 + | }
|
411 + | }
|
412 + | }
|
413 + | /// See [`PutSnapshotBlockOutput`](crate::output::PutSnapshotBlockOutput).
|
414 + | pub mod put_snapshot_block_output {
|
415 + |
|
416 + | impl ::std::convert::From<Builder> for crate::output::PutSnapshotBlockOutput {
|
417 + | fn from(builder: Builder) -> Self {
|
418 + | builder.build()
|
419 + | }
|
420 + | }
|
421 + | /// A builder for [`PutSnapshotBlockOutput`](crate::output::PutSnapshotBlockOutput).
|
422 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
423 + | pub struct Builder {
|
424 + | pub(crate) checksum_algorithm: ::std::option::Option<crate::model::ChecksumAlgorithm>,
|
425 + | pub(crate) checksum: ::std::option::Option<crate::model::Checksum>,
|
426 + | }
|
427 + | impl Builder {
|
428 + | /// <p>The algorithm used by Amazon EBS to generate the checksum.</p>
|
429 + | pub fn checksum_algorithm(
|
430 + | mut self,
|
431 + | input: ::std::option::Option<crate::model::ChecksumAlgorithm>,
|
432 + | ) -> Self {
|
433 + | self.checksum_algorithm = input;
|
434 + | self
|
435 + | }
|
436 + | /// <p>The SHA256 checksum generated for the block data by Amazon EBS.</p>
|
437 + | pub fn checksum(mut self, input: ::std::option::Option<crate::model::Checksum>) -> Self {
|
438 + | self.checksum = input;
|
439 + | self
|
440 + | }
|
441 + | /// Consumes the builder and constructs a [`PutSnapshotBlockOutput`](crate::output::PutSnapshotBlockOutput).
|
442 + | pub fn build(self) -> crate::output::PutSnapshotBlockOutput {
|
443 + | self.build_enforcing_all_constraints()
|
444 + | }
|
445 + | fn build_enforcing_all_constraints(self) -> crate::output::PutSnapshotBlockOutput {
|
446 + | crate::output::PutSnapshotBlockOutput {
|
447 + | checksum_algorithm: self.checksum_algorithm,
|
448 + | checksum: self.checksum,
|
449 + | }
|
450 + | }
|
451 + | }
|
452 + | }
|
453 + | /// See [`ListSnapshotBlocksOutput`](crate::output::ListSnapshotBlocksOutput).
|
454 + | pub mod list_snapshot_blocks_output {
|
455 + |
|
456 + | impl ::std::convert::From<Builder> for crate::output::ListSnapshotBlocksOutput {
|
457 + | fn from(builder: Builder) -> Self {
|
458 + | builder.build()
|
459 + | }
|
460 + | }
|
461 + | /// A builder for [`ListSnapshotBlocksOutput`](crate::output::ListSnapshotBlocksOutput).
|
462 + | #[derive(::std::clone::Clone, ::std::default::Default)]
|
463 + | pub struct Builder {
|
464 + | pub(crate) volume_size: ::std::option::Option<crate::model::VolumeSize>,
|
465 + | pub(crate) next_token: ::std::option::Option<crate::model::PageToken>,
|
466 + | pub(crate) expiry_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
467 + | pub(crate) blocks: ::std::option::Option<::std::vec::Vec<crate::model::Block>>,
|
468 + | pub(crate) block_size: ::std::option::Option<i32>,
|
469 + | }
|
470 + | impl Builder {
|
471 + | /// <p>The size of the volume in GB.</p>
|
472 + | pub fn volume_size(
|
473 + | mut self,
|
474 + | input: ::std::option::Option<crate::model::VolumeSize>,
|
475 + | ) -> Self {
|
476 + | self.volume_size = input;
|
477 + | self
|
478 + | }
|
479 + | /// <p>The token to use to retrieve the next page of results. This value is null when there are no more results to return.</p>
|
480 + | pub fn next_token(mut self, input: ::std::option::Option<crate::model::PageToken>) -> Self {
|
481 + | self.next_token = input;
|
482 + | self
|
483 + | }
|
484 + | /// <p>The time when the <code>BlockToken</code> expires.</p>
|
485 + | pub fn expiry_time(
|
486 + | mut self,
|
487 + | input: ::std::option::Option<::aws_smithy_types::DateTime>,
|
488 + | ) -> Self {
|
489 + | self.expiry_time = input;
|
490 + | self
|
491 + | }
|
492 + | /// <p>An array of objects containing information about the blocks.</p>
|
493 + | pub fn blocks(
|
494 + | mut self,
|
495 + | input: ::std::option::Option<::std::vec::Vec<crate::model::Block>>,
|
496 + | ) -> Self {
|
497 + | self.blocks = input;
|
498 + | self
|
499 + | }
|
500 + | /// <p>The size of the block.</p>
|
501 + | pub fn block_size(mut self, input: ::std::option::Option<i32>) -> Self {
|
502 + | self.block_size = input;
|
503 + | self
|
504 + | }
|
505 + | /// Consumes the builder and constructs a [`ListSnapshotBlocksOutput`](crate::output::ListSnapshotBlocksOutput).
|
506 + | pub fn build(self) -> crate::output::ListSnapshotBlocksOutput {
|
507 + | self.build_enforcing_all_constraints()
|
508 + | }
|
509 + | fn build_enforcing_all_constraints(self) -> crate::output::ListSnapshotBlocksOutput {
|
510 + | crate::output::ListSnapshotBlocksOutput {
|
511 + | volume_size: self.volume_size,
|
512 + | next_token: self.next_token,
|
513 + | expiry_time: self.expiry_time,
|
514 + | blocks: self.blocks,
|
515 + | block_size: self.block_size,
|
516 + | }
|
517 + | }
|
518 + | }
|
519 + | impl ::std::fmt::Debug for Builder {
|
520 + | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
521 + | let mut formatter = f.debug_struct("Builder");
|
522 + | formatter.field("volume_size", &self.volume_size);
|
523 + | formatter.field("next_token", &self.next_token);
|
524 + | formatter.field("expiry_time", &self.expiry_time);
|
525 + | formatter.field("blocks", &"*** Sensitive Data Redacted ***");
|
526 + | formatter.field("block_size", &self.block_size);
|
527 + | formatter.finish()
|
528 + | }
|
529 + | }
|
530 + | }
|
531 + | /// See [`ListChangedBlocksOutput`](crate::output::ListChangedBlocksOutput).
|
532 + | pub mod list_changed_blocks_output {
|
533 + |
|
534 + | impl ::std::convert::From<Builder> for crate::output::ListChangedBlocksOutput {
|
535 + | fn from(builder: Builder) -> Self {
|
536 + | builder.build()
|
537 + | }
|
538 + | }
|
539 + | /// A builder for [`ListChangedBlocksOutput`](crate::output::ListChangedBlocksOutput).
|
540 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
541 + | pub struct Builder {
|
542 + | pub(crate) block_size: ::std::option::Option<i32>,
|
543 + | pub(crate) expiry_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
544 + | pub(crate) volume_size: ::std::option::Option<crate::model::VolumeSize>,
|
545 + | pub(crate) next_token: ::std::option::Option<crate::model::PageToken>,
|
546 + | pub(crate) changed_blocks:
|
547 + | ::std::option::Option<::std::vec::Vec<crate::model::ChangedBlock>>,
|
548 + | }
|
549 + | impl Builder {
|
550 + | /// <p>The size of the block.</p>
|
551 + | pub fn block_size(mut self, input: ::std::option::Option<i32>) -> Self {
|
552 + | self.block_size = input;
|
553 + | self
|
554 + | }
|
555 + | /// <p>The time when the <code>BlockToken</code> expires.</p>
|
556 + | pub fn expiry_time(
|
557 + | mut self,
|
558 + | input: ::std::option::Option<::aws_smithy_types::DateTime>,
|
559 + | ) -> Self {
|
560 + | self.expiry_time = input;
|
561 + | self
|
562 + | }
|
563 + | /// <p>The size of the volume in GB.</p>
|
564 + | pub fn volume_size(
|
565 + | mut self,
|
566 + | input: ::std::option::Option<crate::model::VolumeSize>,
|
567 + | ) -> Self {
|
568 + | self.volume_size = input;
|
569 + | self
|
570 + | }
|
571 + | /// <p>The token to use to retrieve the next page of results. This value is null when there are no more results to return.</p>
|
572 + | pub fn next_token(mut self, input: ::std::option::Option<crate::model::PageToken>) -> Self {
|
573 + | self.next_token = input;
|
574 + | self
|
575 + | }
|
576 + | /// <p>An array of objects containing information about the changed blocks.</p>
|
577 + | pub fn changed_blocks(
|
578 + | mut self,
|
579 + | input: ::std::option::Option<::std::vec::Vec<crate::model::ChangedBlock>>,
|
580 + | ) -> Self {
|
581 + | self.changed_blocks = input;
|
582 + | self
|
583 + | }
|
584 + | /// Consumes the builder and constructs a [`ListChangedBlocksOutput`](crate::output::ListChangedBlocksOutput).
|
585 + | pub fn build(self) -> crate::output::ListChangedBlocksOutput {
|
586 + | self.build_enforcing_all_constraints()
|
587 + | }
|
588 + | fn build_enforcing_all_constraints(self) -> crate::output::ListChangedBlocksOutput {
|
589 + | crate::output::ListChangedBlocksOutput {
|
590 + | block_size: self.block_size,
|
591 + | expiry_time: self.expiry_time,
|
592 + | volume_size: self.volume_size,
|
593 + | next_token: self.next_token,
|
594 + | changed_blocks: self.changed_blocks,
|
595 + | }
|
596 + | }
|
597 + | }
|
598 + | }
|
599 + | /// See [`GetSnapshotBlockOutput`](crate::output::GetSnapshotBlockOutput).
|
600 + | pub mod get_snapshot_block_output {
|
601 + |
|
602 + | impl ::std::convert::From<Builder> for crate::output::GetSnapshotBlockOutput {
|
603 + | fn from(builder: Builder) -> Self {
|
604 + | builder.build()
|
605 + | }
|
606 + | }
|
607 + | /// A builder for [`GetSnapshotBlockOutput`](crate::output::GetSnapshotBlockOutput).
|
608 + | #[derive(::std::default::Default)]
|
609 + | pub struct Builder {
|
610 + | pub(crate) data_length: ::std::option::Option<i32>,
|
611 + | pub(crate) checksum_algorithm: ::std::option::Option<crate::model::ChecksumAlgorithm>,
|
612 + | pub(crate) checksum: ::std::option::Option<crate::model::Checksum>,
|
613 + | pub(crate) block_data: ::std::option::Option<::aws_smithy_types::byte_stream::ByteStream>,
|
614 + | }
|
615 + | impl Builder {
|
616 + | /// <p>The size of the data in the block.</p>
|
617 + | pub fn data_length(mut self, input: ::std::option::Option<i32>) -> Self {
|
618 + | self.data_length = input;
|
619 + | self
|
620 + | }
|
621 + | /// <p>The algorithm used to generate the checksum for the block, such as SHA256.</p>
|
622 + | pub fn checksum_algorithm(
|
623 + | mut self,
|
624 + | input: ::std::option::Option<crate::model::ChecksumAlgorithm>,
|
625 + | ) -> Self {
|
626 + | self.checksum_algorithm = input;
|
627 + | self
|
628 + | }
|
629 + | /// <p>The checksum generated for the block, which is Base64 encoded.</p>
|
630 + | pub fn checksum(mut self, input: ::std::option::Option<crate::model::Checksum>) -> Self {
|
631 + | self.checksum = input;
|
632 + | self
|
633 + | }
|
634 + | /// <p>The data content of the block.</p>
|
635 + | pub fn block_data(mut self, input: ::aws_smithy_types::byte_stream::ByteStream) -> Self {
|
636 + | self.block_data = Some(input);
|
637 + | self
|
638 + | }
|
639 + | /// Consumes the builder and constructs a [`GetSnapshotBlockOutput`](crate::output::GetSnapshotBlockOutput).
|
640 + | pub fn build(self) -> crate::output::GetSnapshotBlockOutput {
|
641 + | self.build_enforcing_all_constraints()
|
642 + | }
|
643 + | fn build_enforcing_all_constraints(self) -> crate::output::GetSnapshotBlockOutput {
|
644 + | crate::output::GetSnapshotBlockOutput {
|
645 + | data_length: self.data_length,
|
646 + | checksum_algorithm: self.checksum_algorithm,
|
647 + | checksum: self.checksum,
|
648 + | block_data: self.block_data.unwrap_or_default(),
|
649 + | }
|
650 + | }
|
651 + | }
|
652 + | impl ::std::fmt::Debug for Builder {
|
653 + | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
654 + | let mut formatter = f.debug_struct("Builder");
|
655 + | formatter.field("data_length", &self.data_length);
|
656 + | formatter.field("checksum_algorithm", &self.checksum_algorithm);
|
657 + | formatter.field("checksum", &self.checksum);
|
658 + | formatter.field("block_data", &"*** Sensitive Data Redacted ***");
|
659 + | formatter.finish()
|
660 + | }
|
661 + | }
|
662 + | }
|
663 + | /// See [`CompleteSnapshotOutput`](crate::output::CompleteSnapshotOutput).
|
664 + | pub mod complete_snapshot_output {
|
665 + |
|
666 + | impl ::std::convert::From<Builder> for crate::output::CompleteSnapshotOutput {
|
667 + | fn from(builder: Builder) -> Self {
|
668 + | builder.build()
|
669 + | }
|
670 + | }
|
671 + | /// A builder for [`CompleteSnapshotOutput`](crate::output::CompleteSnapshotOutput).
|
672 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
673 + | pub struct Builder {
|
674 + | pub(crate) status: ::std::option::Option<crate::model::Status>,
|
675 + | }
|
676 + | impl Builder {
|
677 + | /// <p>The status of the snapshot.</p>
|
678 + | pub fn status(mut self, input: ::std::option::Option<crate::model::Status>) -> Self {
|
679 + | self.status = input;
|
680 + | self
|
681 + | }
|
682 + | /// Consumes the builder and constructs a [`CompleteSnapshotOutput`](crate::output::CompleteSnapshotOutput).
|
683 + | pub fn build(self) -> crate::output::CompleteSnapshotOutput {
|
684 + | self.build_enforcing_all_constraints()
|
685 + | }
|
686 + | fn build_enforcing_all_constraints(self) -> crate::output::CompleteSnapshotOutput {
|
687 + | crate::output::CompleteSnapshotOutput {
|
688 + | status: self.status,
|
689 + | }
|
690 + | }
|
691 + | }
|
692 + | }
|