1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 - |
|
3 - | /// <p>Contains details about the global table.</p>
|
2 + | /* StructureGenerator.kt:197 */
|
3 + | /// /* StructureGenerator.kt:197 */<p>Contains details about the global table.</p>
|
4 + | /* RustType.kt:516 */
|
4 5 | #[non_exhaustive]
|
6 + | /* RustType.kt:516 */
|
5 7 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
6 - | pub struct GlobalTableDescription {
|
7 - | /// <p>The Regions where the global table has replicas.</p>
|
8 + | pub /* StructureGenerator.kt:201 */ struct GlobalTableDescription {
|
9 + | /// /* StructureGenerator.kt:231 */<p>The Regions where the global table has replicas.</p>
|
8 10 | pub replication_group: ::std::option::Option<::std::vec::Vec<crate::types::ReplicaDescription>>,
|
9 - | /// <p>The unique identifier of the global table.</p>
|
11 + | /// /* StructureGenerator.kt:231 */<p>The unique identifier of the global table.</p>
|
10 12 | pub global_table_arn: ::std::option::Option<::std::string::String>,
|
11 - | /// <p>The creation time of the global table.</p>
|
13 + | /// /* StructureGenerator.kt:231 */<p>The creation time of the global table.</p>
|
12 14 | pub creation_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
13 - | /// <p>The current state of the global table:</p>
|
15 + | /// /* StructureGenerator.kt:231 */<p>The current state of the global table:</p>
|
14 16 | /// <ul>
|
15 17 | /// <li>
|
16 18 | /// <p><code>CREATING</code> - The global table is being created.</p></li>
|
17 19 | /// <li>
|
18 20 | /// <p><code>UPDATING</code> - The global table is being updated.</p></li>
|
19 21 | /// <li>
|
20 22 | /// <p><code>DELETING</code> - The global table is being deleted.</p></li>
|
21 23 | /// <li>
|
22 24 | /// <p><code>ACTIVE</code> - The global table is ready for use.</p></li>
|
23 25 | /// </ul>
|
24 26 | pub global_table_status: ::std::option::Option<crate::types::GlobalTableStatus>,
|
25 - | /// <p>The global table name.</p>
|
27 + | /// /* StructureGenerator.kt:231 */<p>The global table name.</p>
|
26 28 | pub global_table_name: ::std::option::Option<::std::string::String>,
|
29 + | /* StructureGenerator.kt:201 */
|
27 30 | }
|
31 + | /* StructureGenerator.kt:135 */
|
28 32 | impl GlobalTableDescription {
|
29 - | /// <p>The Regions where the global table has replicas.</p>
|
30 - | ///
|
31 - | /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.replication_group.is_none()`.
|
33 + | /// /* StructureGenerator.kt:231 */<p>The Regions where the global table has replicas.</p>
|
34 + | /// /* StructureGenerator.kt:162 */
|
35 + | /// /* StructureGenerator.kt:163 */If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.replication_group.is_none()`.
|
36 + | /* StructureGenerator.kt:166 */
|
32 37 | pub fn replication_group(&self) -> &[crate::types::ReplicaDescription] {
|
33 - | self.replication_group.as_deref().unwrap_or_default()
|
38 + | /* StructureGenerator.kt:169 */
|
39 + | self.replication_group
|
40 + | .as_deref()
|
41 + | /* StructureGenerator.kt:175 */
|
42 + | .unwrap_or_default()
|
43 + | /* StructureGenerator.kt:166 */
|
34 44 | }
|
35 - | /// <p>The unique identifier of the global table.</p>
|
45 + | /// /* StructureGenerator.kt:231 */<p>The unique identifier of the global table.</p>
|
46 + | /* StructureGenerator.kt:166 */
|
36 47 | pub fn global_table_arn(&self) -> ::std::option::Option<&str> {
|
48 + | /* StructureGenerator.kt:169 */
|
37 49 | self.global_table_arn.as_deref()
|
50 + | /* StructureGenerator.kt:166 */
|
38 51 | }
|
39 - | /// <p>The creation time of the global table.</p>
|
52 + | /// /* StructureGenerator.kt:231 */<p>The creation time of the global table.</p>
|
53 + | /* StructureGenerator.kt:166 */
|
40 54 | pub fn creation_date_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
55 + | /* StructureGenerator.kt:170 */
|
41 56 | self.creation_date_time.as_ref()
|
57 + | /* StructureGenerator.kt:166 */
|
42 58 | }
|
43 - | /// <p>The current state of the global table:</p>
|
59 + | /// /* StructureGenerator.kt:231 */<p>The current state of the global table:</p>
|
44 60 | /// <ul>
|
45 61 | /// <li>
|
46 62 | /// <p><code>CREATING</code> - The global table is being created.</p></li>
|
47 63 | /// <li>
|
48 64 | /// <p><code>UPDATING</code> - The global table is being updated.</p></li>
|
49 65 | /// <li>
|
50 66 | /// <p><code>DELETING</code> - The global table is being deleted.</p></li>
|
51 67 | /// <li>
|
52 68 | /// <p><code>ACTIVE</code> - The global table is ready for use.</p></li>
|
53 69 | /// </ul>
|
70 + | /* StructureGenerator.kt:166 */
|
54 71 | pub fn global_table_status(&self) -> ::std::option::Option<&crate::types::GlobalTableStatus> {
|
72 + | /* StructureGenerator.kt:170 */
|
55 73 | self.global_table_status.as_ref()
|
74 + | /* StructureGenerator.kt:166 */
|
56 75 | }
|
57 - | /// <p>The global table name.</p>
|
76 + | /// /* StructureGenerator.kt:231 */<p>The global table name.</p>
|
77 + | /* StructureGenerator.kt:166 */
|
58 78 | pub fn global_table_name(&self) -> ::std::option::Option<&str> {
|
79 + | /* StructureGenerator.kt:169 */
|
59 80 | self.global_table_name.as_deref()
|
81 + | /* StructureGenerator.kt:166 */
|
60 82 | }
|
83 + | /* StructureGenerator.kt:135 */
|
61 84 | }
|
85 + | /* ClientCodegenVisitor.kt:237 */
|
62 86 | impl GlobalTableDescription {
|
63 - | /// Creates a new builder-style object to manufacture [`GlobalTableDescription`](crate::types::GlobalTableDescription).
|
87 + | /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`GlobalTableDescription`](crate::types::GlobalTableDescription).
|
88 + | /* BuilderGenerator.kt:175 */
|
64 89 | pub fn builder() -> crate::types::builders::GlobalTableDescriptionBuilder {
|
90 + | /* BuilderGenerator.kt:176 */
|
65 91 | crate::types::builders::GlobalTableDescriptionBuilder::default()
|
92 + | /* BuilderGenerator.kt:175 */
|
66 93 | }
|
94 + | /* ClientCodegenVisitor.kt:237 */
|
67 95 | }
|
68 96 |
|
69 - | /// A builder for [`GlobalTableDescription`](crate::types::GlobalTableDescription).
|
97 + | /// /* BuilderGenerator.kt:342 */A builder for [`GlobalTableDescription`](crate::types::GlobalTableDescription).
|
98 + | /* RustType.kt:516 */
|
70 99 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
100 + | /* RustType.kt:516 */
|
71 101 | #[non_exhaustive]
|
102 + | /* BuilderGenerator.kt:345 */
|
72 103 | pub struct GlobalTableDescriptionBuilder {
|
73 - | pub(crate) replication_group: ::std::option::Option<::std::vec::Vec<crate::types::ReplicaDescription>>,
|
74 - | pub(crate) global_table_arn: ::std::option::Option<::std::string::String>,
|
75 - | pub(crate) creation_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
76 - | pub(crate) global_table_status: ::std::option::Option<crate::types::GlobalTableStatus>,
|
104 + | /* BuilderGenerator.kt:275 */ pub(crate) replication_group: ::std::option::Option<::std::vec::Vec<crate::types::ReplicaDescription>>,
|
105 + | /* BuilderGenerator.kt:275 */ pub(crate) global_table_arn: ::std::option::Option<::std::string::String>,
|
106 + | /* BuilderGenerator.kt:275 */ pub(crate) creation_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
107 + | /* BuilderGenerator.kt:275 */ pub(crate) global_table_status: ::std::option::Option<crate::types::GlobalTableStatus>,
|
108 + | /* BuilderGenerator.kt:275 */
|
77 109 | pub(crate) global_table_name: ::std::option::Option<::std::string::String>,
|
110 + | /* BuilderGenerator.kt:345 */
|
78 111 | }
|
112 + | /* BuilderGenerator.kt:355 */
|
79 113 | impl GlobalTableDescriptionBuilder {
|
80 - | /// Appends an item to `replication_group`.
|
114 + | /// /* BuilderGenerator.kt:410 */Appends an item to `replication_group`.
|
115 + | /* BuilderGenerator.kt:411 */
|
81 116 | ///
|
82 - | /// To override the contents of this collection use [`set_replication_group`](Self::set_replication_group).
|
117 + | /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_replication_group`](Self::set_replication_group).
|
118 + | /* BuilderGenerator.kt:413 */
|
83 119 | ///
|
84 - | /// <p>The Regions where the global table has replicas.</p>
|
120 + | /// /* BuilderGenerator.kt:414 */<p>The Regions where the global table has replicas.</p>
|
121 + | /* BuilderGenerator.kt:418 */
|
85 122 | pub fn replication_group(mut self, input: crate::types::ReplicaDescription) -> Self {
|
123 + | /* BuilderGenerator.kt:419 */
|
86 124 | let mut v = self.replication_group.unwrap_or_default();
|
87 125 | v.push(input);
|
88 126 | self.replication_group = ::std::option::Option::Some(v);
|
89 127 | self
|
128 + | /* BuilderGenerator.kt:418 */
|
90 129 | }
|
91 - | /// <p>The Regions where the global table has replicas.</p>
|
130 + | /// /* BuilderGenerator.kt:312 */<p>The Regions where the global table has replicas.</p>
|
131 + | /* BuilderGenerator.kt:314 */
|
92 132 | pub fn set_replication_group(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ReplicaDescription>>) -> Self {
|
133 + | /* BuilderGenerator.kt:315 */
|
93 134 | self.replication_group = input;
|
94 135 | self
|
136 + | /* BuilderGenerator.kt:314 */
|
95 137 | }
|
96 - | /// <p>The Regions where the global table has replicas.</p>
|
138 + | /// /* BuilderGenerator.kt:334 */<p>The Regions where the global table has replicas.</p>
|
139 + | /* BuilderGenerator.kt:336 */
|
97 140 | pub fn get_replication_group(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ReplicaDescription>> {
|
141 + | /* BuilderGenerator.kt:337 */
|
98 142 | &self.replication_group
|
143 + | /* BuilderGenerator.kt:336 */
|
99 144 | }
|
100 - | /// <p>The unique identifier of the global table.</p>
|
145 + | /// /* BuilderGenerator.kt:286 */<p>The unique identifier of the global table.</p>
|
146 + | /* BuilderGenerator.kt:291 */
|
101 147 | pub fn global_table_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
148 + | /* BuilderGenerator.kt:292 */
|
102 149 | self.global_table_arn = ::std::option::Option::Some(input.into());
|
150 + | /* BuilderGenerator.kt:293 */
|
103 151 | self
|
152 + | /* BuilderGenerator.kt:291 */
|
104 153 | }
|
105 - | /// <p>The unique identifier of the global table.</p>
|
154 + | /// /* BuilderGenerator.kt:312 */<p>The unique identifier of the global table.</p>
|
155 + | /* BuilderGenerator.kt:314 */
|
106 156 | pub fn set_global_table_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
157 + | /* BuilderGenerator.kt:315 */
|
107 158 | self.global_table_arn = input;
|
108 159 | self
|
160 + | /* BuilderGenerator.kt:314 */
|
109 161 | }
|
110 - | /// <p>The unique identifier of the global table.</p>
|
162 + | /// /* BuilderGenerator.kt:334 */<p>The unique identifier of the global table.</p>
|
163 + | /* BuilderGenerator.kt:336 */
|
111 164 | pub fn get_global_table_arn(&self) -> &::std::option::Option<::std::string::String> {
|
165 + | /* BuilderGenerator.kt:337 */
|
112 166 | &self.global_table_arn
|
167 + | /* BuilderGenerator.kt:336 */
|
113 168 | }
|
114 - | /// <p>The creation time of the global table.</p>
|
169 + | /// /* BuilderGenerator.kt:286 */<p>The creation time of the global table.</p>
|
170 + | /* BuilderGenerator.kt:291 */
|
115 171 | pub fn creation_date_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
172 + | /* BuilderGenerator.kt:292 */
|
116 173 | self.creation_date_time = ::std::option::Option::Some(input);
|
174 + | /* BuilderGenerator.kt:293 */
|
117 175 | self
|
176 + | /* BuilderGenerator.kt:291 */
|
118 177 | }
|
119 - | /// <p>The creation time of the global table.</p>
|
178 + | /// /* BuilderGenerator.kt:312 */<p>The creation time of the global table.</p>
|
179 + | /* BuilderGenerator.kt:314 */
|
120 180 | pub fn set_creation_date_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
|
181 + | /* BuilderGenerator.kt:315 */
|
121 182 | self.creation_date_time = input;
|
122 183 | self
|
184 + | /* BuilderGenerator.kt:314 */
|
123 185 | }
|
124 - | /// <p>The creation time of the global table.</p>
|
186 + | /// /* BuilderGenerator.kt:334 */<p>The creation time of the global table.</p>
|
187 + | /* BuilderGenerator.kt:336 */
|
125 188 | pub fn get_creation_date_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
|
189 + | /* BuilderGenerator.kt:337 */
|
126 190 | &self.creation_date_time
|
191 + | /* BuilderGenerator.kt:336 */
|
127 192 | }
|
128 - | /// <p>The current state of the global table:</p>
|
193 + | /// /* BuilderGenerator.kt:286 */<p>The current state of the global table:</p>
|
129 194 | /// <ul>
|
130 195 | /// <li>
|
131 196 | /// <p><code>CREATING</code> - The global table is being created.</p></li>
|
132 197 | /// <li>
|
133 198 | /// <p><code>UPDATING</code> - The global table is being updated.</p></li>
|
134 199 | /// <li>
|
135 200 | /// <p><code>DELETING</code> - The global table is being deleted.</p></li>
|
136 201 | /// <li>
|
137 202 | /// <p><code>ACTIVE</code> - The global table is ready for use.</p></li>
|
138 203 | /// </ul>
|
204 + | /* BuilderGenerator.kt:291 */
|
139 205 | pub fn global_table_status(mut self, input: crate::types::GlobalTableStatus) -> Self {
|
206 + | /* BuilderGenerator.kt:292 */
|
140 207 | self.global_table_status = ::std::option::Option::Some(input);
|
208 + | /* BuilderGenerator.kt:293 */
|
141 209 | self
|
210 + | /* BuilderGenerator.kt:291 */
|
142 211 | }
|
143 - | /// <p>The current state of the global table:</p>
|
212 + | /// /* BuilderGenerator.kt:312 */<p>The current state of the global table:</p>
|
144 213 | /// <ul>
|
145 214 | /// <li>
|
146 215 | /// <p><code>CREATING</code> - The global table is being created.</p></li>
|
147 216 | /// <li>
|
148 217 | /// <p><code>UPDATING</code> - The global table is being updated.</p></li>
|
149 218 | /// <li>
|
150 219 | /// <p><code>DELETING</code> - The global table is being deleted.</p></li>
|
151 220 | /// <li>
|
152 221 | /// <p><code>ACTIVE</code> - The global table is ready for use.</p></li>
|
153 222 | /// </ul>
|
223 + | /* BuilderGenerator.kt:314 */
|
154 224 | pub fn set_global_table_status(mut self, input: ::std::option::Option<crate::types::GlobalTableStatus>) -> Self {
|
225 + | /* BuilderGenerator.kt:315 */
|
155 226 | self.global_table_status = input;
|
156 227 | self
|
228 + | /* BuilderGenerator.kt:314 */
|
157 229 | }
|
158 - | /// <p>The current state of the global table:</p>
|
230 + | /// /* BuilderGenerator.kt:334 */<p>The current state of the global table:</p>
|
159 231 | /// <ul>
|
160 232 | /// <li>
|
161 233 | /// <p><code>CREATING</code> - The global table is being created.</p></li>
|
162 234 | /// <li>
|
163 235 | /// <p><code>UPDATING</code> - The global table is being updated.</p></li>
|
164 236 | /// <li>
|
165 237 | /// <p><code>DELETING</code> - The global table is being deleted.</p></li>
|
166 238 | /// <li>
|
167 239 | /// <p><code>ACTIVE</code> - The global table is ready for use.</p></li>
|
168 240 | /// </ul>
|
241 + | /* BuilderGenerator.kt:336 */
|
169 242 | pub fn get_global_table_status(&self) -> &::std::option::Option<crate::types::GlobalTableStatus> {
|
243 + | /* BuilderGenerator.kt:337 */
|
170 244 | &self.global_table_status
|
245 + | /* BuilderGenerator.kt:336 */
|
171 246 | }
|
172 - | /// <p>The global table name.</p>
|
247 + | /// /* BuilderGenerator.kt:286 */<p>The global table name.</p>
|
248 + | /* BuilderGenerator.kt:291 */
|
173 249 | pub fn global_table_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
250 + | /* BuilderGenerator.kt:292 */
|
174 251 | self.global_table_name = ::std::option::Option::Some(input.into());
|
252 + | /* BuilderGenerator.kt:293 */
|
175 253 | self
|
254 + | /* BuilderGenerator.kt:291 */
|
176 255 | }
|
177 - | /// <p>The global table name.</p>
|
256 + | /// /* BuilderGenerator.kt:312 */<p>The global table name.</p>
|
257 + | /* BuilderGenerator.kt:314 */
|
178 258 | pub fn set_global_table_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
259 + | /* BuilderGenerator.kt:315 */
|
179 260 | self.global_table_name = input;
|
180 261 | self
|
262 + | /* BuilderGenerator.kt:314 */
|
181 263 | }
|
182 - | /// <p>The global table name.</p>
|
264 + | /// /* BuilderGenerator.kt:334 */<p>The global table name.</p>
|
265 + | /* BuilderGenerator.kt:336 */
|
183 266 | pub fn get_global_table_name(&self) -> &::std::option::Option<::std::string::String> {
|
267 + | /* BuilderGenerator.kt:337 */
|
184 268 | &self.global_table_name
|
269 + | /* BuilderGenerator.kt:336 */
|
185 270 | }
|
186 - | /// Consumes the builder and constructs a [`GlobalTableDescription`](crate::types::GlobalTableDescription).
|
271 + | /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`GlobalTableDescription`](crate::types::GlobalTableDescription).
|
272 + | /* BuilderGenerator.kt:253 */
|
187 273 | pub fn build(self) -> crate::types::GlobalTableDescription {
|
274 + | /* BuilderGenerator.kt:477 */
|
188 275 | crate::types::GlobalTableDescription {
|
189 - | replication_group: self.replication_group,
|
276 + | /* BuilderGenerator.kt:481 */ replication_group: self.replication_group,
|
277 + | /* BuilderGenerator.kt:481 */
|
190 278 | global_table_arn: self.global_table_arn,
|
279 + | /* BuilderGenerator.kt:481 */
|
191 280 | creation_date_time: self.creation_date_time,
|
281 + | /* BuilderGenerator.kt:481 */
|
192 282 | global_table_status: self.global_table_status,
|
283 + | /* BuilderGenerator.kt:481 */
|
193 284 | global_table_name: self.global_table_name,
|
285 + | /* BuilderGenerator.kt:477 */
|
194 286 | }
|
287 + | /* BuilderGenerator.kt:253 */
|
195 288 | }
|
289 + | /* BuilderGenerator.kt:355 */
|
196 290 | }
|