1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 - |
|
3 - | /// <p>Contains the details of the replica.</p>
|
2 + | /* StructureGenerator.kt:197 */
|
3 + | /// /* StructureGenerator.kt:197 */<p>Contains the details of the replica.</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 ReplicaDescription {
|
7 - | /// <p>The name of the Region.</p>
|
8 + | pub /* StructureGenerator.kt:201 */ struct ReplicaDescription {
|
9 + | /// /* StructureGenerator.kt:231 */<p>The name of the Region.</p>
|
8 10 | pub region_name: ::std::option::Option<::std::string::String>,
|
9 - | /// <p>The current state of the replica:</p>
|
11 + | /// /* StructureGenerator.kt:231 */<p>The current state of the replica:</p>
|
10 12 | /// <ul>
|
11 13 | /// <li>
|
12 14 | /// <p><code>CREATING</code> - The replica is being created.</p></li>
|
13 15 | /// <li>
|
14 16 | /// <p><code>UPDATING</code> - The replica is being updated.</p></li>
|
15 17 | /// <li>
|
16 18 | /// <p><code>DELETING</code> - The replica is being deleted.</p></li>
|
17 19 | /// <li>
|
18 20 | /// <p><code>ACTIVE</code> - The replica is ready for use.</p></li>
|
19 21 | /// <li>
|
20 22 | /// <p><code>REGION_DISABLED</code> - The replica is inaccessible because the AWS Region has been disabled.</p><note>
|
21 23 | /// <p>If the AWS Region remains inaccessible for more than 20 hours, DynamoDB will remove this replica from the replication group. The replica will not be deleted and replication will stop from and to this region.</p>
|
22 24 | /// </note></li>
|
23 25 | /// <li>
|
24 26 | /// <p><code>INACCESSIBLE_ENCRYPTION_CREDENTIALS </code> - The AWS KMS key used to encrypt the table is inaccessible.</p><note>
|
25 27 | /// <p>If the AWS KMS key remains inaccessible for more than 20 hours, DynamoDB will remove this replica from the replication group. The replica will not be deleted and replication will stop from and to this region.</p>
|
26 28 | /// </note></li>
|
27 29 | /// </ul>
|
28 30 | pub replica_status: ::std::option::Option<crate::types::ReplicaStatus>,
|
29 - | /// <p>Detailed information about the replica status.</p>
|
31 + | /// /* StructureGenerator.kt:231 */<p>Detailed information about the replica status.</p>
|
30 32 | pub replica_status_description: ::std::option::Option<::std::string::String>,
|
31 - | /// <p>Specifies the progress of a Create, Update, or Delete action on the replica as a percentage.</p>
|
33 + | /// /* StructureGenerator.kt:231 */<p>Specifies the progress of a Create, Update, or Delete action on the replica as a percentage.</p>
|
32 34 | pub replica_status_percent_progress: ::std::option::Option<::std::string::String>,
|
33 - | /// <p>The AWS KMS customer master key (CMK) of the replica that will be used for AWS KMS encryption.</p>
|
35 + | /// /* StructureGenerator.kt:231 */<p>The AWS KMS customer master key (CMK) of the replica that will be used for AWS KMS encryption.</p>
|
34 36 | pub kms_master_key_id: ::std::option::Option<::std::string::String>,
|
35 - | /// <p>Replica-specific provisioned throughput. If not described, uses the source table's provisioned throughput settings.</p>
|
37 + | /// /* StructureGenerator.kt:231 */<p>Replica-specific provisioned throughput. If not described, uses the source table's provisioned throughput settings.</p>
|
36 38 | pub provisioned_throughput_override: ::std::option::Option<crate::types::ProvisionedThroughputOverride>,
|
37 - | /// <p>Replica-specific global secondary index settings.</p>
|
39 + | /// /* StructureGenerator.kt:231 */<p>Replica-specific global secondary index settings.</p>
|
38 40 | pub global_secondary_indexes: ::std::option::Option<::std::vec::Vec<crate::types::ReplicaGlobalSecondaryIndexDescription>>,
|
39 - | /// <p>The time at which the replica was first detected as inaccessible. To determine cause of inaccessibility check the <code>ReplicaStatus</code> property.</p>
|
41 + | /// /* StructureGenerator.kt:231 */<p>The time at which the replica was first detected as inaccessible. To determine cause of inaccessibility check the <code>ReplicaStatus</code> property.</p>
|
40 42 | pub replica_inaccessible_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
43 + | /* StructureGenerator.kt:201 */
|
41 44 | }
|
45 + | /* StructureGenerator.kt:135 */
|
42 46 | impl ReplicaDescription {
|
43 - | /// <p>The name of the Region.</p>
|
47 + | /// /* StructureGenerator.kt:231 */<p>The name of the Region.</p>
|
48 + | /* StructureGenerator.kt:166 */
|
44 49 | pub fn region_name(&self) -> ::std::option::Option<&str> {
|
50 + | /* StructureGenerator.kt:169 */
|
45 51 | self.region_name.as_deref()
|
52 + | /* StructureGenerator.kt:166 */
|
46 53 | }
|
47 - | /// <p>The current state of the replica:</p>
|
54 + | /// /* StructureGenerator.kt:231 */<p>The current state of the replica:</p>
|
48 55 | /// <ul>
|
49 56 | /// <li>
|
50 57 | /// <p><code>CREATING</code> - The replica is being created.</p></li>
|
51 58 | /// <li>
|
52 59 | /// <p><code>UPDATING</code> - The replica is being updated.</p></li>
|
53 60 | /// <li>
|
54 61 | /// <p><code>DELETING</code> - The replica is being deleted.</p></li>
|
55 62 | /// <li>
|
56 63 | /// <p><code>ACTIVE</code> - The replica is ready for use.</p></li>
|
57 64 | /// <li>
|
58 65 | /// <p><code>REGION_DISABLED</code> - The replica is inaccessible because the AWS Region has been disabled.</p><note>
|
59 66 | /// <p>If the AWS Region remains inaccessible for more than 20 hours, DynamoDB will remove this replica from the replication group. The replica will not be deleted and replication will stop from and to this region.</p>
|
60 67 | /// </note></li>
|
61 68 | /// <li>
|
62 69 | /// <p><code>INACCESSIBLE_ENCRYPTION_CREDENTIALS </code> - The AWS KMS key used to encrypt the table is inaccessible.</p><note>
|
63 70 | /// <p>If the AWS KMS key remains inaccessible for more than 20 hours, DynamoDB will remove this replica from the replication group. The replica will not be deleted and replication will stop from and to this region.</p>
|
64 71 | /// </note></li>
|
65 72 | /// </ul>
|
73 + | /* StructureGenerator.kt:166 */
|
66 74 | pub fn replica_status(&self) -> ::std::option::Option<&crate::types::ReplicaStatus> {
|
75 + | /* StructureGenerator.kt:170 */
|
67 76 | self.replica_status.as_ref()
|
77 + | /* StructureGenerator.kt:166 */
|
68 78 | }
|
69 - | /// <p>Detailed information about the replica status.</p>
|
79 + | /// /* StructureGenerator.kt:231 */<p>Detailed information about the replica status.</p>
|
80 + | /* StructureGenerator.kt:166 */
|
70 81 | pub fn replica_status_description(&self) -> ::std::option::Option<&str> {
|
82 + | /* StructureGenerator.kt:169 */
|
71 83 | self.replica_status_description.as_deref()
|
84 + | /* StructureGenerator.kt:166 */
|
72 85 | }
|
73 - | /// <p>Specifies the progress of a Create, Update, or Delete action on the replica as a percentage.</p>
|
86 + | /// /* StructureGenerator.kt:231 */<p>Specifies the progress of a Create, Update, or Delete action on the replica as a percentage.</p>
|
87 + | /* StructureGenerator.kt:166 */
|
74 88 | pub fn replica_status_percent_progress(&self) -> ::std::option::Option<&str> {
|
89 + | /* StructureGenerator.kt:169 */
|
75 90 | self.replica_status_percent_progress.as_deref()
|
91 + | /* StructureGenerator.kt:166 */
|
76 92 | }
|
77 - | /// <p>The AWS KMS customer master key (CMK) of the replica that will be used for AWS KMS encryption.</p>
|
93 + | /// /* StructureGenerator.kt:231 */<p>The AWS KMS customer master key (CMK) of the replica that will be used for AWS KMS encryption.</p>
|
94 + | /* StructureGenerator.kt:166 */
|
78 95 | pub fn kms_master_key_id(&self) -> ::std::option::Option<&str> {
|
96 + | /* StructureGenerator.kt:169 */
|
79 97 | self.kms_master_key_id.as_deref()
|
98 + | /* StructureGenerator.kt:166 */
|
80 99 | }
|
81 - | /// <p>Replica-specific provisioned throughput. If not described, uses the source table's provisioned throughput settings.</p>
|
100 + | /// /* StructureGenerator.kt:231 */<p>Replica-specific provisioned throughput. If not described, uses the source table's provisioned throughput settings.</p>
|
101 + | /* StructureGenerator.kt:166 */
|
82 102 | pub fn provisioned_throughput_override(&self) -> ::std::option::Option<&crate::types::ProvisionedThroughputOverride> {
|
103 + | /* StructureGenerator.kt:170 */
|
83 104 | self.provisioned_throughput_override.as_ref()
|
105 + | /* StructureGenerator.kt:166 */
|
84 106 | }
|
85 - | /// <p>Replica-specific global secondary index settings.</p>
|
86 - | ///
|
87 - | /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.global_secondary_indexes.is_none()`.
|
107 + | /// /* StructureGenerator.kt:231 */<p>Replica-specific global secondary index settings.</p>
|
108 + | /// /* StructureGenerator.kt:162 */
|
109 + | /// /* 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 `.global_secondary_indexes.is_none()`.
|
110 + | /* StructureGenerator.kt:166 */
|
88 111 | pub fn global_secondary_indexes(&self) -> &[crate::types::ReplicaGlobalSecondaryIndexDescription] {
|
89 - | self.global_secondary_indexes.as_deref().unwrap_or_default()
|
90 - | }
|
91 - | /// <p>The time at which the replica was first detected as inaccessible. To determine cause of inaccessibility check the <code>ReplicaStatus</code> property.</p>
|
112 + | /* StructureGenerator.kt:169 */
|
113 + | self.global_secondary_indexes
|
114 + | .as_deref()
|
115 + | /* StructureGenerator.kt:175 */
|
116 + | .unwrap_or_default()
|
117 + | /* StructureGenerator.kt:166 */
|
118 + | }
|
119 + | /// /* StructureGenerator.kt:231 */<p>The time at which the replica was first detected as inaccessible. To determine cause of inaccessibility check the <code>ReplicaStatus</code> property.</p>
|
120 + | /* StructureGenerator.kt:166 */
|
92 121 | pub fn replica_inaccessible_date_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
122 + | /* StructureGenerator.kt:170 */
|
93 123 | self.replica_inaccessible_date_time.as_ref()
|
124 + | /* StructureGenerator.kt:166 */
|
94 125 | }
|
126 + | /* StructureGenerator.kt:135 */
|
95 127 | }
|
128 + | /* ClientCodegenVisitor.kt:237 */
|
96 129 | impl ReplicaDescription {
|
97 - | /// Creates a new builder-style object to manufacture [`ReplicaDescription`](crate::types::ReplicaDescription).
|
130 + | /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ReplicaDescription`](crate::types::ReplicaDescription).
|
131 + | /* BuilderGenerator.kt:175 */
|
98 132 | pub fn builder() -> crate::types::builders::ReplicaDescriptionBuilder {
|
133 + | /* BuilderGenerator.kt:176 */
|
99 134 | crate::types::builders::ReplicaDescriptionBuilder::default()
|
135 + | /* BuilderGenerator.kt:175 */
|
100 136 | }
|
137 + | /* ClientCodegenVisitor.kt:237 */
|
101 138 | }
|
102 139 |
|
103 - | /// A builder for [`ReplicaDescription`](crate::types::ReplicaDescription).
|
140 + | /// /* BuilderGenerator.kt:342 */A builder for [`ReplicaDescription`](crate::types::ReplicaDescription).
|
141 + | /* RustType.kt:516 */
|
104 142 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
143 + | /* RustType.kt:516 */
|
105 144 | #[non_exhaustive]
|
145 + | /* BuilderGenerator.kt:345 */
|
106 146 | pub struct ReplicaDescriptionBuilder {
|
107 - | pub(crate) region_name: ::std::option::Option<::std::string::String>,
|
108 - | pub(crate) replica_status: ::std::option::Option<crate::types::ReplicaStatus>,
|
109 - | pub(crate) replica_status_description: ::std::option::Option<::std::string::String>,
|
110 - | pub(crate) replica_status_percent_progress: ::std::option::Option<::std::string::String>,
|
111 - | pub(crate) kms_master_key_id: ::std::option::Option<::std::string::String>,
|
147 + | /* BuilderGenerator.kt:275 */ pub(crate) region_name: ::std::option::Option<::std::string::String>,
|
148 + | /* BuilderGenerator.kt:275 */ pub(crate) replica_status: ::std::option::Option<crate::types::ReplicaStatus>,
|
149 + | /* BuilderGenerator.kt:275 */ pub(crate) replica_status_description: ::std::option::Option<::std::string::String>,
|
150 + | /* BuilderGenerator.kt:275 */ pub(crate) replica_status_percent_progress: ::std::option::Option<::std::string::String>,
|
151 + | /* BuilderGenerator.kt:275 */ pub(crate) kms_master_key_id: ::std::option::Option<::std::string::String>,
|
152 + | /* BuilderGenerator.kt:275 */
|
112 153 | pub(crate) provisioned_throughput_override: ::std::option::Option<crate::types::ProvisionedThroughputOverride>,
|
154 + | /* BuilderGenerator.kt:275 */
|
113 155 | pub(crate) global_secondary_indexes: ::std::option::Option<::std::vec::Vec<crate::types::ReplicaGlobalSecondaryIndexDescription>>,
|
156 + | /* BuilderGenerator.kt:275 */
|
114 157 | pub(crate) replica_inaccessible_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
158 + | /* BuilderGenerator.kt:345 */
|
115 159 | }
|
160 + | /* BuilderGenerator.kt:355 */
|
116 161 | impl ReplicaDescriptionBuilder {
|
117 - | /// <p>The name of the Region.</p>
|
162 + | /// /* BuilderGenerator.kt:286 */<p>The name of the Region.</p>
|
163 + | /* BuilderGenerator.kt:291 */
|
118 164 | pub fn region_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
165 + | /* BuilderGenerator.kt:292 */
|
119 166 | self.region_name = ::std::option::Option::Some(input.into());
|
167 + | /* BuilderGenerator.kt:293 */
|
120 168 | self
|
169 + | /* BuilderGenerator.kt:291 */
|
121 170 | }
|
122 - | /// <p>The name of the Region.</p>
|
171 + | /// /* BuilderGenerator.kt:312 */<p>The name of the Region.</p>
|
172 + | /* BuilderGenerator.kt:314 */
|
123 173 | pub fn set_region_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
174 + | /* BuilderGenerator.kt:315 */
|
124 175 | self.region_name = input;
|
125 176 | self
|
177 + | /* BuilderGenerator.kt:314 */
|
126 178 | }
|
127 - | /// <p>The name of the Region.</p>
|
179 + | /// /* BuilderGenerator.kt:334 */<p>The name of the Region.</p>
|
180 + | /* BuilderGenerator.kt:336 */
|
128 181 | pub fn get_region_name(&self) -> &::std::option::Option<::std::string::String> {
|
182 + | /* BuilderGenerator.kt:337 */
|
129 183 | &self.region_name
|
184 + | /* BuilderGenerator.kt:336 */
|
130 185 | }
|
131 - | /// <p>The current state of the replica:</p>
|
186 + | /// /* BuilderGenerator.kt:286 */<p>The current state of the replica:</p>
|
132 187 | /// <ul>
|
133 188 | /// <li>
|
134 189 | /// <p><code>CREATING</code> - The replica is being created.</p></li>
|
135 190 | /// <li>
|
136 191 | /// <p><code>UPDATING</code> - The replica is being updated.</p></li>
|
137 192 | /// <li>
|
138 193 | /// <p><code>DELETING</code> - The replica is being deleted.</p></li>
|
139 194 | /// <li>
|
140 195 | /// <p><code>ACTIVE</code> - The replica is ready for use.</p></li>
|
141 196 | /// <li>
|
142 197 | /// <p><code>REGION_DISABLED</code> - The replica is inaccessible because the AWS Region has been disabled.</p><note>
|
143 198 | /// <p>If the AWS Region remains inaccessible for more than 20 hours, DynamoDB will remove this replica from the replication group. The replica will not be deleted and replication will stop from and to this region.</p>
|
144 199 | /// </note></li>
|
145 200 | /// <li>
|
146 201 | /// <p><code>INACCESSIBLE_ENCRYPTION_CREDENTIALS </code> - The AWS KMS key used to encrypt the table is inaccessible.</p><note>
|
147 202 | /// <p>If the AWS KMS key remains inaccessible for more than 20 hours, DynamoDB will remove this replica from the replication group. The replica will not be deleted and replication will stop from and to this region.</p>
|
148 203 | /// </note></li>
|
149 204 | /// </ul>
|
205 + | /* BuilderGenerator.kt:291 */
|
150 206 | pub fn replica_status(mut self, input: crate::types::ReplicaStatus) -> Self {
|
207 + | /* BuilderGenerator.kt:292 */
|
151 208 | self.replica_status = ::std::option::Option::Some(input);
|
209 + | /* BuilderGenerator.kt:293 */
|
152 210 | self
|
211 + | /* BuilderGenerator.kt:291 */
|
153 212 | }
|
154 - | /// <p>The current state of the replica:</p>
|
213 + | /// /* BuilderGenerator.kt:312 */<p>The current state of the replica:</p>
|
155 214 | /// <ul>
|
156 215 | /// <li>
|
157 216 | /// <p><code>CREATING</code> - The replica is being created.</p></li>
|
158 217 | /// <li>
|
159 218 | /// <p><code>UPDATING</code> - The replica is being updated.</p></li>
|
160 219 | /// <li>
|
161 220 | /// <p><code>DELETING</code> - The replica is being deleted.</p></li>
|
162 221 | /// <li>
|
163 222 | /// <p><code>ACTIVE</code> - The replica is ready for use.</p></li>
|
164 223 | /// <li>
|
165 224 | /// <p><code>REGION_DISABLED</code> - The replica is inaccessible because the AWS Region has been disabled.</p><note>
|
166 225 | /// <p>If the AWS Region remains inaccessible for more than 20 hours, DynamoDB will remove this replica from the replication group. The replica will not be deleted and replication will stop from and to this region.</p>
|
167 226 | /// </note></li>
|
168 227 | /// <li>
|
169 228 | /// <p><code>INACCESSIBLE_ENCRYPTION_CREDENTIALS </code> - The AWS KMS key used to encrypt the table is inaccessible.</p><note>
|
170 229 | /// <p>If the AWS KMS key remains inaccessible for more than 20 hours, DynamoDB will remove this replica from the replication group. The replica will not be deleted and replication will stop from and to this region.</p>
|
171 230 | /// </note></li>
|
172 231 | /// </ul>
|
232 + | /* BuilderGenerator.kt:314 */
|
173 233 | pub fn set_replica_status(mut self, input: ::std::option::Option<crate::types::ReplicaStatus>) -> Self {
|
234 + | /* BuilderGenerator.kt:315 */
|
174 235 | self.replica_status = input;
|
175 236 | self
|
237 + | /* BuilderGenerator.kt:314 */
|
176 238 | }
|
177 - | /// <p>The current state of the replica:</p>
|
239 + | /// /* BuilderGenerator.kt:334 */<p>The current state of the replica:</p>
|
178 240 | /// <ul>
|
179 241 | /// <li>
|
180 242 | /// <p><code>CREATING</code> - The replica is being created.</p></li>
|
181 243 | /// <li>
|
182 244 | /// <p><code>UPDATING</code> - The replica is being updated.</p></li>
|
183 245 | /// <li>
|
184 246 | /// <p><code>DELETING</code> - The replica is being deleted.</p></li>
|
185 247 | /// <li>
|
186 248 | /// <p><code>ACTIVE</code> - The replica is ready for use.</p></li>
|
187 249 | /// <li>
|
188 250 | /// <p><code>REGION_DISABLED</code> - The replica is inaccessible because the AWS Region has been disabled.</p><note>
|
189 251 | /// <p>If the AWS Region remains inaccessible for more than 20 hours, DynamoDB will remove this replica from the replication group. The replica will not be deleted and replication will stop from and to this region.</p>
|
190 252 | /// </note></li>
|
191 253 | /// <li>
|
192 254 | /// <p><code>INACCESSIBLE_ENCRYPTION_CREDENTIALS </code> - The AWS KMS key used to encrypt the table is inaccessible.</p><note>
|
193 255 | /// <p>If the AWS KMS key remains inaccessible for more than 20 hours, DynamoDB will remove this replica from the replication group. The replica will not be deleted and replication will stop from and to this region.</p>
|
194 256 | /// </note></li>
|
195 257 | /// </ul>
|
258 + | /* BuilderGenerator.kt:336 */
|
196 259 | pub fn get_replica_status(&self) -> &::std::option::Option<crate::types::ReplicaStatus> {
|
260 + | /* BuilderGenerator.kt:337 */
|
197 261 | &self.replica_status
|
262 + | /* BuilderGenerator.kt:336 */
|
198 263 | }
|
199 - | /// <p>Detailed information about the replica status.</p>
|
264 + | /// /* BuilderGenerator.kt:286 */<p>Detailed information about the replica status.</p>
|
265 + | /* BuilderGenerator.kt:291 */
|
200 266 | pub fn replica_status_description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
267 + | /* BuilderGenerator.kt:292 */
|
201 268 | self.replica_status_description = ::std::option::Option::Some(input.into());
|
269 + | /* BuilderGenerator.kt:293 */
|
202 270 | self
|
271 + | /* BuilderGenerator.kt:291 */
|
203 272 | }
|
204 - | /// <p>Detailed information about the replica status.</p>
|
273 + | /// /* BuilderGenerator.kt:312 */<p>Detailed information about the replica status.</p>
|
274 + | /* BuilderGenerator.kt:314 */
|
205 275 | pub fn set_replica_status_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
276 + | /* BuilderGenerator.kt:315 */
|
206 277 | self.replica_status_description = input;
|
207 278 | self
|
279 + | /* BuilderGenerator.kt:314 */
|
208 280 | }
|
209 - | /// <p>Detailed information about the replica status.</p>
|
281 + | /// /* BuilderGenerator.kt:334 */<p>Detailed information about the replica status.</p>
|
282 + | /* BuilderGenerator.kt:336 */
|
210 283 | pub fn get_replica_status_description(&self) -> &::std::option::Option<::std::string::String> {
|
284 + | /* BuilderGenerator.kt:337 */
|
211 285 | &self.replica_status_description
|
286 + | /* BuilderGenerator.kt:336 */
|
212 287 | }
|
213 - | /// <p>Specifies the progress of a Create, Update, or Delete action on the replica as a percentage.</p>
|
288 + | /// /* BuilderGenerator.kt:286 */<p>Specifies the progress of a Create, Update, or Delete action on the replica as a percentage.</p>
|
289 + | /* BuilderGenerator.kt:291 */
|
214 290 | pub fn replica_status_percent_progress(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
291 + | /* BuilderGenerator.kt:292 */
|
215 292 | self.replica_status_percent_progress = ::std::option::Option::Some(input.into());
|
293 + | /* BuilderGenerator.kt:293 */
|
216 294 | self
|
295 + | /* BuilderGenerator.kt:291 */
|
217 296 | }
|
218 - | /// <p>Specifies the progress of a Create, Update, or Delete action on the replica as a percentage.</p>
|
297 + | /// /* BuilderGenerator.kt:312 */<p>Specifies the progress of a Create, Update, or Delete action on the replica as a percentage.</p>
|
298 + | /* BuilderGenerator.kt:314 */
|
219 299 | pub fn set_replica_status_percent_progress(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
300 + | /* BuilderGenerator.kt:315 */
|
220 301 | self.replica_status_percent_progress = input;
|
221 302 | self
|
303 + | /* BuilderGenerator.kt:314 */
|
222 304 | }
|
223 - | /// <p>Specifies the progress of a Create, Update, or Delete action on the replica as a percentage.</p>
|
305 + | /// /* BuilderGenerator.kt:334 */<p>Specifies the progress of a Create, Update, or Delete action on the replica as a percentage.</p>
|
306 + | /* BuilderGenerator.kt:336 */
|
224 307 | pub fn get_replica_status_percent_progress(&self) -> &::std::option::Option<::std::string::String> {
|
308 + | /* BuilderGenerator.kt:337 */
|
225 309 | &self.replica_status_percent_progress
|
310 + | /* BuilderGenerator.kt:336 */
|
226 311 | }
|
227 - | /// <p>The AWS KMS customer master key (CMK) of the replica that will be used for AWS KMS encryption.</p>
|
312 + | /// /* BuilderGenerator.kt:286 */<p>The AWS KMS customer master key (CMK) of the replica that will be used for AWS KMS encryption.</p>
|
313 + | /* BuilderGenerator.kt:291 */
|
228 314 | pub fn kms_master_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
315 + | /* BuilderGenerator.kt:292 */
|
229 316 | self.kms_master_key_id = ::std::option::Option::Some(input.into());
|
317 + | /* BuilderGenerator.kt:293 */
|
230 318 | self
|
319 + | /* BuilderGenerator.kt:291 */
|
231 320 | }
|
232 - | /// <p>The AWS KMS customer master key (CMK) of the replica that will be used for AWS KMS encryption.</p>
|
321 + | /// /* BuilderGenerator.kt:312 */<p>The AWS KMS customer master key (CMK) of the replica that will be used for AWS KMS encryption.</p>
|
322 + | /* BuilderGenerator.kt:314 */
|
233 323 | pub fn set_kms_master_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
324 + | /* BuilderGenerator.kt:315 */
|
234 325 | self.kms_master_key_id = input;
|
235 326 | self
|
327 + | /* BuilderGenerator.kt:314 */
|
236 328 | }
|
237 - | /// <p>The AWS KMS customer master key (CMK) of the replica that will be used for AWS KMS encryption.</p>
|
329 + | /// /* BuilderGenerator.kt:334 */<p>The AWS KMS customer master key (CMK) of the replica that will be used for AWS KMS encryption.</p>
|
330 + | /* BuilderGenerator.kt:336 */
|
238 331 | pub fn get_kms_master_key_id(&self) -> &::std::option::Option<::std::string::String> {
|
332 + | /* BuilderGenerator.kt:337 */
|
239 333 | &self.kms_master_key_id
|
334 + | /* BuilderGenerator.kt:336 */
|
240 335 | }
|
241 - | /// <p>Replica-specific provisioned throughput. If not described, uses the source table's provisioned throughput settings.</p>
|
336 + | /// /* BuilderGenerator.kt:286 */<p>Replica-specific provisioned throughput. If not described, uses the source table's provisioned throughput settings.</p>
|
337 + | /* BuilderGenerator.kt:291 */
|
242 338 | pub fn provisioned_throughput_override(mut self, input: crate::types::ProvisionedThroughputOverride) -> Self {
|
339 + | /* BuilderGenerator.kt:292 */
|
243 340 | self.provisioned_throughput_override = ::std::option::Option::Some(input);
|
341 + | /* BuilderGenerator.kt:293 */
|
244 342 | self
|
343 + | /* BuilderGenerator.kt:291 */
|
245 344 | }
|
246 - | /// <p>Replica-specific provisioned throughput. If not described, uses the source table's provisioned throughput settings.</p>
|
345 + | /// /* BuilderGenerator.kt:312 */<p>Replica-specific provisioned throughput. If not described, uses the source table's provisioned throughput settings.</p>
|
346 + | /* BuilderGenerator.kt:314 */
|
247 347 | pub fn set_provisioned_throughput_override(mut self, input: ::std::option::Option<crate::types::ProvisionedThroughputOverride>) -> Self {
|
348 + | /* BuilderGenerator.kt:315 */
|
248 349 | self.provisioned_throughput_override = input;
|
249 350 | self
|
351 + | /* BuilderGenerator.kt:314 */
|
250 352 | }
|
251 - | /// <p>Replica-specific provisioned throughput. If not described, uses the source table's provisioned throughput settings.</p>
|
353 + | /// /* BuilderGenerator.kt:334 */<p>Replica-specific provisioned throughput. If not described, uses the source table's provisioned throughput settings.</p>
|
354 + | /* BuilderGenerator.kt:336 */
|
252 355 | pub fn get_provisioned_throughput_override(&self) -> &::std::option::Option<crate::types::ProvisionedThroughputOverride> {
|
356 + | /* BuilderGenerator.kt:337 */
|
253 357 | &self.provisioned_throughput_override
|
358 + | /* BuilderGenerator.kt:336 */
|
254 359 | }
|
255 - | /// Appends an item to `global_secondary_indexes`.
|
360 + | /// /* BuilderGenerator.kt:410 */Appends an item to `global_secondary_indexes`.
|
361 + | /* BuilderGenerator.kt:411 */
|
256 362 | ///
|
257 - | /// To override the contents of this collection use [`set_global_secondary_indexes`](Self::set_global_secondary_indexes).
|
363 + | /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_global_secondary_indexes`](Self::set_global_secondary_indexes).
|
364 + | /* BuilderGenerator.kt:413 */
|
258 365 | ///
|
259 - | /// <p>Replica-specific global secondary index settings.</p>
|
366 + | /// /* BuilderGenerator.kt:414 */<p>Replica-specific global secondary index settings.</p>
|
367 + | /* BuilderGenerator.kt:418 */
|
260 368 | pub fn global_secondary_indexes(mut self, input: crate::types::ReplicaGlobalSecondaryIndexDescription) -> Self {
|
369 + | /* BuilderGenerator.kt:419 */
|
261 370 | let mut v = self.global_secondary_indexes.unwrap_or_default();
|
262 371 | v.push(input);
|
263 372 | self.global_secondary_indexes = ::std::option::Option::Some(v);
|
264 373 | self
|
374 + | /* BuilderGenerator.kt:418 */
|
265 375 | }
|
266 - | /// <p>Replica-specific global secondary index settings.</p>
|
376 + | /// /* BuilderGenerator.kt:312 */<p>Replica-specific global secondary index settings.</p>
|
377 + | /* BuilderGenerator.kt:314 */
|
267 378 | pub fn set_global_secondary_indexes(
|
268 379 | mut self,
|
269 380 | input: ::std::option::Option<::std::vec::Vec<crate::types::ReplicaGlobalSecondaryIndexDescription>>,
|
270 381 | ) -> Self {
|
382 + | /* BuilderGenerator.kt:315 */
|
271 383 | self.global_secondary_indexes = input;
|
272 384 | self
|
385 + | /* BuilderGenerator.kt:314 */
|
273 386 | }
|
274 - | /// <p>Replica-specific global secondary index settings.</p>
|
387 + | /// /* BuilderGenerator.kt:334 */<p>Replica-specific global secondary index settings.</p>
|
388 + | /* BuilderGenerator.kt:336 */
|
275 389 | pub fn get_global_secondary_indexes(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ReplicaGlobalSecondaryIndexDescription>> {
|
390 + | /* BuilderGenerator.kt:337 */
|
276 391 | &self.global_secondary_indexes
|
392 + | /* BuilderGenerator.kt:336 */
|
277 393 | }
|
278 - | /// <p>The time at which the replica was first detected as inaccessible. To determine cause of inaccessibility check the <code>ReplicaStatus</code> property.</p>
|
394 + | /// /* BuilderGenerator.kt:286 */<p>The time at which the replica was first detected as inaccessible. To determine cause of inaccessibility check the <code>ReplicaStatus</code> property.</p>
|
395 + | /* BuilderGenerator.kt:291 */
|
279 396 | pub fn replica_inaccessible_date_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
397 + | /* BuilderGenerator.kt:292 */
|
280 398 | self.replica_inaccessible_date_time = ::std::option::Option::Some(input);
|
399 + | /* BuilderGenerator.kt:293 */
|
281 400 | self
|
401 + | /* BuilderGenerator.kt:291 */
|
282 402 | }
|
283 - | /// <p>The time at which the replica was first detected as inaccessible. To determine cause of inaccessibility check the <code>ReplicaStatus</code> property.</p>
|
403 + | /// /* BuilderGenerator.kt:312 */<p>The time at which the replica was first detected as inaccessible. To determine cause of inaccessibility check the <code>ReplicaStatus</code> property.</p>
|
404 + | /* BuilderGenerator.kt:314 */
|
284 405 | pub fn set_replica_inaccessible_date_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
|
406 + | /* BuilderGenerator.kt:315 */
|
285 407 | self.replica_inaccessible_date_time = input;
|
286 408 | self
|
409 + | /* BuilderGenerator.kt:314 */
|
287 410 | }
|
288 - | /// <p>The time at which the replica was first detected as inaccessible. To determine cause of inaccessibility check the <code>ReplicaStatus</code> property.</p>
|
411 + | /// /* BuilderGenerator.kt:334 */<p>The time at which the replica was first detected as inaccessible. To determine cause of inaccessibility check the <code>ReplicaStatus</code> property.</p>
|
412 + | /* BuilderGenerator.kt:336 */
|
289 413 | pub fn get_replica_inaccessible_date_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
|
414 + | /* BuilderGenerator.kt:337 */
|
290 415 | &self.replica_inaccessible_date_time
|
416 + | /* BuilderGenerator.kt:336 */
|
291 417 | }
|
292 - | /// Consumes the builder and constructs a [`ReplicaDescription`](crate::types::ReplicaDescription).
|
418 + | /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ReplicaDescription`](crate::types::ReplicaDescription).
|
419 + | /* BuilderGenerator.kt:253 */
|
293 420 | pub fn build(self) -> crate::types::ReplicaDescription {
|
421 + | /* BuilderGenerator.kt:477 */
|
294 422 | crate::types::ReplicaDescription {
|
295 - | region_name: self.region_name,
|
423 + | /* BuilderGenerator.kt:481 */ region_name: self.region_name,
|
424 + | /* BuilderGenerator.kt:481 */
|
296 425 | replica_status: self.replica_status,
|
426 + | /* BuilderGenerator.kt:481 */
|
297 427 | replica_status_description: self.replica_status_description,
|
428 + | /* BuilderGenerator.kt:481 */
|
298 429 | replica_status_percent_progress: self.replica_status_percent_progress,
|
430 + | /* BuilderGenerator.kt:481 */
|
299 431 | kms_master_key_id: self.kms_master_key_id,
|
432 + | /* BuilderGenerator.kt:481 */
|
300 433 | provisioned_throughput_override: self.provisioned_throughput_override,
|
434 + | /* BuilderGenerator.kt:481 */
|
301 435 | global_secondary_indexes: self.global_secondary_indexes,
|
436 + | /* BuilderGenerator.kt:481 */
|
302 437 | replica_inaccessible_date_time: self.replica_inaccessible_date_time,
|
438 + | /* BuilderGenerator.kt:477 */
|
303 439 | }
|
440 + | /* BuilderGenerator.kt:253 */
|
304 441 | }
|
442 + | /* BuilderGenerator.kt:355 */
|
305 443 | }
|