1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 - |
|
3 - | /// <p>A block of data in an Amazon Elastic Block Store snapshot that is different from another snapshot of the same volume/snapshot lineage.</p>
|
2 + | /* StructureGenerator.kt:197 */
|
3 + | /// /* StructureGenerator.kt:197 */<p>A block of data in an Amazon Elastic Block Store snapshot that is different from another snapshot of the same volume/snapshot lineage.</p>
|
4 + | /* RustType.kt:516 */
|
4 5 | #[non_exhaustive]
|
6 + | /* RustType.kt:516 */
|
5 7 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
|
6 - | pub struct ChangedBlock {
|
7 - | /// <p>The block token for the block index of the <code>FirstSnapshotId</code> specified in the <code>ListChangedBlocks</code> operation. This value is absent if the first snapshot does not have the changed block that is on the second snapshot.</p>
|
8 + | pub /* StructureGenerator.kt:201 */ struct ChangedBlock {
|
9 + | /// /* StructureGenerator.kt:231 */<p>The block token for the block index of the <code>FirstSnapshotId</code> specified in the <code>ListChangedBlocks</code> operation. This value is absent if the first snapshot does not have the changed block that is on the second snapshot.</p>
|
8 10 | pub first_block_token: ::std::option::Option<::std::string::String>,
|
9 - | /// <p>The block index.</p>
|
11 + | /// /* StructureGenerator.kt:231 */<p>The block index.</p>
|
10 12 | pub block_index: ::std::option::Option<i32>,
|
11 - | /// <p>The block token for the block index of the <code>SecondSnapshotId</code> specified in the <code>ListChangedBlocks</code> operation.</p>
|
13 + | /// /* StructureGenerator.kt:231 */<p>The block token for the block index of the <code>SecondSnapshotId</code> specified in the <code>ListChangedBlocks</code> operation.</p>
|
12 14 | pub second_block_token: ::std::option::Option<::std::string::String>,
|
15 + | /* StructureGenerator.kt:201 */
|
13 16 | }
|
17 + | /* StructureGenerator.kt:135 */
|
14 18 | impl ChangedBlock {
|
15 - | /// <p>The block token for the block index of the <code>FirstSnapshotId</code> specified in the <code>ListChangedBlocks</code> operation. This value is absent if the first snapshot does not have the changed block that is on the second snapshot.</p>
|
19 + | /// /* StructureGenerator.kt:231 */<p>The block token for the block index of the <code>FirstSnapshotId</code> specified in the <code>ListChangedBlocks</code> operation. This value is absent if the first snapshot does not have the changed block that is on the second snapshot.</p>
|
20 + | /* StructureGenerator.kt:166 */
|
16 21 | pub fn first_block_token(&self) -> ::std::option::Option<&str> {
|
22 + | /* StructureGenerator.kt:169 */
|
17 23 | self.first_block_token.as_deref()
|
24 + | /* StructureGenerator.kt:166 */
|
18 25 | }
|
19 - | /// <p>The block index.</p>
|
26 + | /// /* StructureGenerator.kt:231 */<p>The block index.</p>
|
27 + | /* StructureGenerator.kt:166 */
|
20 28 | pub fn block_index(&self) -> ::std::option::Option<i32> {
|
29 + | /* StructureGenerator.kt:168 */
|
21 30 | self.block_index
|
31 + | /* StructureGenerator.kt:166 */
|
22 32 | }
|
23 - | /// <p>The block token for the block index of the <code>SecondSnapshotId</code> specified in the <code>ListChangedBlocks</code> operation.</p>
|
33 + | /// /* StructureGenerator.kt:231 */<p>The block token for the block index of the <code>SecondSnapshotId</code> specified in the <code>ListChangedBlocks</code> operation.</p>
|
34 + | /* StructureGenerator.kt:166 */
|
24 35 | pub fn second_block_token(&self) -> ::std::option::Option<&str> {
|
36 + | /* StructureGenerator.kt:169 */
|
25 37 | self.second_block_token.as_deref()
|
38 + | /* StructureGenerator.kt:166 */
|
26 39 | }
|
40 + | /* StructureGenerator.kt:135 */
|
27 41 | }
|
42 + | /* StructureGenerator.kt:101 */
|
28 43 | impl ::std::fmt::Debug for ChangedBlock {
|
44 + | /* StructureGenerator.kt:105 */
|
29 45 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
46 + | /* StructureGenerator.kt:106 */
|
30 47 | let mut formatter = f.debug_struct("ChangedBlock");
|
48 + | /* StructureGenerator.kt:121 */
|
31 49 | formatter.field("first_block_token", &"*** Sensitive Data Redacted ***");
|
50 + | /* StructureGenerator.kt:121 */
|
32 51 | formatter.field("block_index", &"*** Sensitive Data Redacted ***");
|
52 + | /* StructureGenerator.kt:121 */
|
33 53 | formatter.field("second_block_token", &"*** Sensitive Data Redacted ***");
|
54 + | /* StructureGenerator.kt:126 */
|
34 55 | formatter.finish()
|
56 + | /* StructureGenerator.kt:105 */
|
35 57 | }
|
58 + | /* StructureGenerator.kt:101 */
|
36 59 | }
|
60 + | /* ClientCodegenVisitor.kt:237 */
|
37 61 | impl ChangedBlock {
|
38 - | /// Creates a new builder-style object to manufacture [`ChangedBlock`](crate::types::ChangedBlock).
|
62 + | /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ChangedBlock`](crate::types::ChangedBlock).
|
63 + | /* BuilderGenerator.kt:175 */
|
39 64 | pub fn builder() -> crate::types::builders::ChangedBlockBuilder {
|
65 + | /* BuilderGenerator.kt:176 */
|
40 66 | crate::types::builders::ChangedBlockBuilder::default()
|
67 + | /* BuilderGenerator.kt:175 */
|
41 68 | }
|
69 + | /* ClientCodegenVisitor.kt:237 */
|
42 70 | }
|
43 71 |
|
44 - | /// A builder for [`ChangedBlock`](crate::types::ChangedBlock).
|
72 + | /// /* BuilderGenerator.kt:342 */A builder for [`ChangedBlock`](crate::types::ChangedBlock).
|
73 + | /* RustType.kt:516 */
|
45 74 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
|
75 + | /* RustType.kt:516 */
|
46 76 | #[non_exhaustive]
|
77 + | /* BuilderGenerator.kt:345 */
|
47 78 | pub struct ChangedBlockBuilder {
|
48 - | pub(crate) first_block_token: ::std::option::Option<::std::string::String>,
|
49 - | pub(crate) block_index: ::std::option::Option<i32>,
|
79 + | /* BuilderGenerator.kt:275 */ pub(crate) first_block_token: ::std::option::Option<::std::string::String>,
|
80 + | /* BuilderGenerator.kt:275 */ pub(crate) block_index: ::std::option::Option<i32>,
|
81 + | /* BuilderGenerator.kt:275 */
|
50 82 | pub(crate) second_block_token: ::std::option::Option<::std::string::String>,
|
83 + | /* BuilderGenerator.kt:345 */
|
51 84 | }
|
85 + | /* BuilderGenerator.kt:355 */
|
52 86 | impl ChangedBlockBuilder {
|
53 - | /// <p>The block token for the block index of the <code>FirstSnapshotId</code> specified in the <code>ListChangedBlocks</code> operation. This value is absent if the first snapshot does not have the changed block that is on the second snapshot.</p>
|
87 + | /// /* BuilderGenerator.kt:286 */<p>The block token for the block index of the <code>FirstSnapshotId</code> specified in the <code>ListChangedBlocks</code> operation. This value is absent if the first snapshot does not have the changed block that is on the second snapshot.</p>
|
88 + | /* BuilderGenerator.kt:291 */
|
54 89 | pub fn first_block_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
90 + | /* BuilderGenerator.kt:292 */
|
55 91 | self.first_block_token = ::std::option::Option::Some(input.into());
|
92 + | /* BuilderGenerator.kt:293 */
|
56 93 | self
|
94 + | /* BuilderGenerator.kt:291 */
|
57 95 | }
|
58 - | /// <p>The block token for the block index of the <code>FirstSnapshotId</code> specified in the <code>ListChangedBlocks</code> operation. This value is absent if the first snapshot does not have the changed block that is on the second snapshot.</p>
|
96 + | /// /* BuilderGenerator.kt:312 */<p>The block token for the block index of the <code>FirstSnapshotId</code> specified in the <code>ListChangedBlocks</code> operation. This value is absent if the first snapshot does not have the changed block that is on the second snapshot.</p>
|
97 + | /* BuilderGenerator.kt:314 */
|
59 98 | pub fn set_first_block_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
99 + | /* BuilderGenerator.kt:315 */
|
60 100 | self.first_block_token = input;
|
61 101 | self
|
102 + | /* BuilderGenerator.kt:314 */
|
62 103 | }
|
63 - | /// <p>The block token for the block index of the <code>FirstSnapshotId</code> specified in the <code>ListChangedBlocks</code> operation. This value is absent if the first snapshot does not have the changed block that is on the second snapshot.</p>
|
104 + | /// /* BuilderGenerator.kt:334 */<p>The block token for the block index of the <code>FirstSnapshotId</code> specified in the <code>ListChangedBlocks</code> operation. This value is absent if the first snapshot does not have the changed block that is on the second snapshot.</p>
|
105 + | /* BuilderGenerator.kt:336 */
|
64 106 | pub fn get_first_block_token(&self) -> &::std::option::Option<::std::string::String> {
|
107 + | /* BuilderGenerator.kt:337 */
|
65 108 | &self.first_block_token
|
109 + | /* BuilderGenerator.kt:336 */
|
66 110 | }
|
67 - | /// <p>The block index.</p>
|
111 + | /// /* BuilderGenerator.kt:286 */<p>The block index.</p>
|
112 + | /* BuilderGenerator.kt:291 */
|
68 113 | pub fn block_index(mut self, input: i32) -> Self {
|
114 + | /* BuilderGenerator.kt:292 */
|
69 115 | self.block_index = ::std::option::Option::Some(input);
|
116 + | /* BuilderGenerator.kt:293 */
|
70 117 | self
|
118 + | /* BuilderGenerator.kt:291 */
|
71 119 | }
|
72 - | /// <p>The block index.</p>
|
120 + | /// /* BuilderGenerator.kt:312 */<p>The block index.</p>
|
121 + | /* BuilderGenerator.kt:314 */
|
73 122 | pub fn set_block_index(mut self, input: ::std::option::Option<i32>) -> Self {
|
123 + | /* BuilderGenerator.kt:315 */
|
74 124 | self.block_index = input;
|
75 125 | self
|
126 + | /* BuilderGenerator.kt:314 */
|
76 127 | }
|
77 - | /// <p>The block index.</p>
|
128 + | /// /* BuilderGenerator.kt:334 */<p>The block index.</p>
|
129 + | /* BuilderGenerator.kt:336 */
|
78 130 | pub fn get_block_index(&self) -> &::std::option::Option<i32> {
|
131 + | /* BuilderGenerator.kt:337 */
|
79 132 | &self.block_index
|
133 + | /* BuilderGenerator.kt:336 */
|
80 134 | }
|
81 - | /// <p>The block token for the block index of the <code>SecondSnapshotId</code> specified in the <code>ListChangedBlocks</code> operation.</p>
|
135 + | /// /* BuilderGenerator.kt:286 */<p>The block token for the block index of the <code>SecondSnapshotId</code> specified in the <code>ListChangedBlocks</code> operation.</p>
|
136 + | /* BuilderGenerator.kt:291 */
|
82 137 | pub fn second_block_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
138 + | /* BuilderGenerator.kt:292 */
|
83 139 | self.second_block_token = ::std::option::Option::Some(input.into());
|
140 + | /* BuilderGenerator.kt:293 */
|
84 141 | self
|
142 + | /* BuilderGenerator.kt:291 */
|
85 143 | }
|
86 - | /// <p>The block token for the block index of the <code>SecondSnapshotId</code> specified in the <code>ListChangedBlocks</code> operation.</p>
|
144 + | /// /* BuilderGenerator.kt:312 */<p>The block token for the block index of the <code>SecondSnapshotId</code> specified in the <code>ListChangedBlocks</code> operation.</p>
|
145 + | /* BuilderGenerator.kt:314 */
|
87 146 | pub fn set_second_block_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
147 + | /* BuilderGenerator.kt:315 */
|
88 148 | self.second_block_token = input;
|
89 149 | self
|
150 + | /* BuilderGenerator.kt:314 */
|
90 151 | }
|
91 - | /// <p>The block token for the block index of the <code>SecondSnapshotId</code> specified in the <code>ListChangedBlocks</code> operation.</p>
|
152 + | /// /* BuilderGenerator.kt:334 */<p>The block token for the block index of the <code>SecondSnapshotId</code> specified in the <code>ListChangedBlocks</code> operation.</p>
|
153 + | /* BuilderGenerator.kt:336 */
|
92 154 | pub fn get_second_block_token(&self) -> &::std::option::Option<::std::string::String> {
|
155 + | /* BuilderGenerator.kt:337 */
|
93 156 | &self.second_block_token
|
157 + | /* BuilderGenerator.kt:336 */
|
94 158 | }
|
95 - | /// Consumes the builder and constructs a [`ChangedBlock`](crate::types::ChangedBlock).
|
159 + | /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ChangedBlock`](crate::types::ChangedBlock).
|
160 + | /* BuilderGenerator.kt:253 */
|
96 161 | pub fn build(self) -> crate::types::ChangedBlock {
|
162 + | /* BuilderGenerator.kt:477 */
|
97 163 | crate::types::ChangedBlock {
|
98 - | first_block_token: self.first_block_token,
|
164 + | /* BuilderGenerator.kt:481 */ first_block_token: self.first_block_token,
|
165 + | /* BuilderGenerator.kt:481 */
|
99 166 | block_index: self.block_index,
|
167 + | /* BuilderGenerator.kt:481 */
|
100 168 | second_block_token: self.second_block_token,
|
169 + | /* BuilderGenerator.kt:477 */
|
101 170 | }
|
171 + | /* BuilderGenerator.kt:253 */
|
102 172 | }
|
173 + | /* BuilderGenerator.kt:355 */
|
103 174 | }
|
175 + | /* BuilderGenerator.kt:379 */
|
104 176 | impl ::std::fmt::Debug for ChangedBlockBuilder {
|
177 + | /* BuilderGenerator.kt:380 */
|
105 178 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
179 + | /* BuilderGenerator.kt:381 */
|
106 180 | let mut formatter = f.debug_struct("ChangedBlockBuilder");
|
181 + | /* BuilderGenerator.kt:395 */
|
107 182 | formatter.field("first_block_token", &"*** Sensitive Data Redacted ***");
|
183 + | /* BuilderGenerator.kt:395 */
|
108 184 | formatter.field("block_index", &"*** Sensitive Data Redacted ***");
|
185 + | /* BuilderGenerator.kt:395 */
|
109 186 | formatter.field("second_block_token", &"*** Sensitive Data Redacted ***");
|
187 + | /* BuilderGenerator.kt:400 */
|
110 188 | formatter.finish()
|
189 + | /* BuilderGenerator.kt:380 */
|
111 190 | }
|
191 + | /* BuilderGenerator.kt:379 */
|
112 192 | }
|