1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 - |
|
3 - | /// <p>Represents the properties of a replica.</p>
|
2 + | /* StructureGenerator.kt:197 */
|
3 + | /// /* StructureGenerator.kt:197 */<p>Represents the properties of a 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 ReplicaSettingsDescription {
|
7 - | /// <p>The Region name of the replica.</p>
|
8 + | pub /* StructureGenerator.kt:201 */ struct ReplicaSettingsDescription {
|
9 + | /// /* StructureGenerator.kt:231 */<p>The Region name of the replica.</p>
|
8 10 | pub region_name: ::std::string::String,
|
9 - | /// <p>The current state of the Region:</p>
|
11 + | /// /* StructureGenerator.kt:231 */<p>The current state of the Region:</p>
|
10 12 | /// <ul>
|
11 13 | /// <li>
|
12 14 | /// <p><code>CREATING</code> - The Region is being created.</p></li>
|
13 15 | /// <li>
|
14 16 | /// <p><code>UPDATING</code> - The Region is being updated.</p></li>
|
15 17 | /// <li>
|
16 18 | /// <p><code>DELETING</code> - The Region is being deleted.</p></li>
|
17 19 | /// <li>
|
18 20 | /// <p><code>ACTIVE</code> - The Region is ready for use.</p></li>
|
19 21 | /// </ul>
|
20 22 | pub replica_status: ::std::option::Option<crate::types::ReplicaStatus>,
|
21 - | /// <p>The read/write capacity mode of the replica.</p>
|
23 + | /// /* StructureGenerator.kt:231 */<p>The read/write capacity mode of the replica.</p>
|
22 24 | pub replica_billing_mode_summary: ::std::option::Option<crate::types::BillingModeSummary>,
|
23 - | /// <p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
25 + | /// /* StructureGenerator.kt:231 */<p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
24 26 | pub replica_provisioned_read_capacity_units: ::std::option::Option<i64>,
|
25 - | /// <p>Auto scaling settings for a global table replica's read capacity units.</p>
|
27 + | /// /* StructureGenerator.kt:231 */<p>Auto scaling settings for a global table replica's read capacity units.</p>
|
26 28 | pub replica_provisioned_read_capacity_auto_scaling_settings: ::std::option::Option<crate::types::AutoScalingSettingsDescription>,
|
27 - | /// <p>The maximum number of writes consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
29 + | /// /* StructureGenerator.kt:231 */<p>The maximum number of writes consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
28 30 | pub replica_provisioned_write_capacity_units: ::std::option::Option<i64>,
|
29 - | /// <p>Auto scaling settings for a global table replica's write capacity units.</p>
|
31 + | /// /* StructureGenerator.kt:231 */<p>Auto scaling settings for a global table replica's write capacity units.</p>
|
30 32 | pub replica_provisioned_write_capacity_auto_scaling_settings: ::std::option::Option<crate::types::AutoScalingSettingsDescription>,
|
31 - | /// <p>Replica global secondary index settings for the global table.</p>
|
33 + | /// /* StructureGenerator.kt:231 */<p>Replica global secondary index settings for the global table.</p>
|
32 34 | pub replica_global_secondary_index_settings: ::std::option::Option<::std::vec::Vec<crate::types::ReplicaGlobalSecondaryIndexSettingsDescription>>,
|
35 + | /* StructureGenerator.kt:201 */
|
33 36 | }
|
37 + | /* StructureGenerator.kt:135 */
|
34 38 | impl ReplicaSettingsDescription {
|
35 - | /// <p>The Region name of the replica.</p>
|
39 + | /// /* StructureGenerator.kt:231 */<p>The Region name of the replica.</p>
|
40 + | /* StructureGenerator.kt:166 */
|
36 41 | pub fn region_name(&self) -> &str {
|
42 + | /* StructureGenerator.kt:171 */
|
37 43 | use std::ops::Deref;
|
38 44 | self.region_name.deref()
|
45 + | /* StructureGenerator.kt:166 */
|
39 46 | }
|
40 - | /// <p>The current state of the Region:</p>
|
47 + | /// /* StructureGenerator.kt:231 */<p>The current state of the Region:</p>
|
41 48 | /// <ul>
|
42 49 | /// <li>
|
43 50 | /// <p><code>CREATING</code> - The Region is being created.</p></li>
|
44 51 | /// <li>
|
45 52 | /// <p><code>UPDATING</code> - The Region is being updated.</p></li>
|
46 53 | /// <li>
|
47 54 | /// <p><code>DELETING</code> - The Region is being deleted.</p></li>
|
48 55 | /// <li>
|
49 56 | /// <p><code>ACTIVE</code> - The Region is ready for use.</p></li>
|
50 57 | /// </ul>
|
58 + | /* StructureGenerator.kt:166 */
|
51 59 | pub fn replica_status(&self) -> ::std::option::Option<&crate::types::ReplicaStatus> {
|
60 + | /* StructureGenerator.kt:170 */
|
52 61 | self.replica_status.as_ref()
|
62 + | /* StructureGenerator.kt:166 */
|
53 63 | }
|
54 - | /// <p>The read/write capacity mode of the replica.</p>
|
64 + | /// /* StructureGenerator.kt:231 */<p>The read/write capacity mode of the replica.</p>
|
65 + | /* StructureGenerator.kt:166 */
|
55 66 | pub fn replica_billing_mode_summary(&self) -> ::std::option::Option<&crate::types::BillingModeSummary> {
|
67 + | /* StructureGenerator.kt:170 */
|
56 68 | self.replica_billing_mode_summary.as_ref()
|
69 + | /* StructureGenerator.kt:166 */
|
57 70 | }
|
58 - | /// <p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
71 + | /// /* StructureGenerator.kt:231 */<p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
72 + | /* StructureGenerator.kt:166 */
|
59 73 | pub fn replica_provisioned_read_capacity_units(&self) -> ::std::option::Option<i64> {
|
74 + | /* StructureGenerator.kt:168 */
|
60 75 | self.replica_provisioned_read_capacity_units
|
76 + | /* StructureGenerator.kt:166 */
|
61 77 | }
|
62 - | /// <p>Auto scaling settings for a global table replica's read capacity units.</p>
|
78 + | /// /* StructureGenerator.kt:231 */<p>Auto scaling settings for a global table replica's read capacity units.</p>
|
79 + | /* StructureGenerator.kt:166 */
|
63 80 | pub fn replica_provisioned_read_capacity_auto_scaling_settings(&self) -> ::std::option::Option<&crate::types::AutoScalingSettingsDescription> {
|
81 + | /* StructureGenerator.kt:170 */
|
64 82 | self.replica_provisioned_read_capacity_auto_scaling_settings.as_ref()
|
83 + | /* StructureGenerator.kt:166 */
|
65 84 | }
|
66 - | /// <p>The maximum number of writes consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
85 + | /// /* StructureGenerator.kt:231 */<p>The maximum number of writes consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
86 + | /* StructureGenerator.kt:166 */
|
67 87 | pub fn replica_provisioned_write_capacity_units(&self) -> ::std::option::Option<i64> {
|
88 + | /* StructureGenerator.kt:168 */
|
68 89 | self.replica_provisioned_write_capacity_units
|
90 + | /* StructureGenerator.kt:166 */
|
69 91 | }
|
70 - | /// <p>Auto scaling settings for a global table replica's write capacity units.</p>
|
92 + | /// /* StructureGenerator.kt:231 */<p>Auto scaling settings for a global table replica's write capacity units.</p>
|
93 + | /* StructureGenerator.kt:166 */
|
71 94 | pub fn replica_provisioned_write_capacity_auto_scaling_settings(&self) -> ::std::option::Option<&crate::types::AutoScalingSettingsDescription> {
|
95 + | /* StructureGenerator.kt:170 */
|
72 96 | self.replica_provisioned_write_capacity_auto_scaling_settings.as_ref()
|
97 + | /* StructureGenerator.kt:166 */
|
73 98 | }
|
74 - | /// <p>Replica global secondary index settings for the global table.</p>
|
75 - | ///
|
76 - | /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.replica_global_secondary_index_settings.is_none()`.
|
99 + | /// /* StructureGenerator.kt:231 */<p>Replica global secondary index settings for the global table.</p>
|
100 + | /// /* StructureGenerator.kt:162 */
|
101 + | /// /* 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 `.replica_global_secondary_index_settings.is_none()`.
|
102 + | /* StructureGenerator.kt:166 */
|
77 103 | pub fn replica_global_secondary_index_settings(&self) -> &[crate::types::ReplicaGlobalSecondaryIndexSettingsDescription] {
|
78 - | self.replica_global_secondary_index_settings.as_deref().unwrap_or_default()
|
79 - | }
|
104 + | /* StructureGenerator.kt:169 */
|
105 + | self.replica_global_secondary_index_settings
|
106 + | .as_deref()
|
107 + | /* StructureGenerator.kt:175 */
|
108 + | .unwrap_or_default()
|
109 + | /* StructureGenerator.kt:166 */
|
110 + | }
|
111 + | /* StructureGenerator.kt:135 */
|
80 112 | }
|
113 + | /* ClientCodegenVisitor.kt:237 */
|
81 114 | impl ReplicaSettingsDescription {
|
82 - | /// Creates a new builder-style object to manufacture [`ReplicaSettingsDescription`](crate::types::ReplicaSettingsDescription).
|
115 + | /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`ReplicaSettingsDescription`](crate::types::ReplicaSettingsDescription).
|
116 + | /* BuilderGenerator.kt:175 */
|
83 117 | pub fn builder() -> crate::types::builders::ReplicaSettingsDescriptionBuilder {
|
118 + | /* BuilderGenerator.kt:176 */
|
84 119 | crate::types::builders::ReplicaSettingsDescriptionBuilder::default()
|
120 + | /* BuilderGenerator.kt:175 */
|
85 121 | }
|
122 + | /* ClientCodegenVisitor.kt:237 */
|
86 123 | }
|
87 124 |
|
88 - | /// A builder for [`ReplicaSettingsDescription`](crate::types::ReplicaSettingsDescription).
|
125 + | /// /* BuilderGenerator.kt:342 */A builder for [`ReplicaSettingsDescription`](crate::types::ReplicaSettingsDescription).
|
126 + | /* RustType.kt:516 */
|
89 127 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
128 + | /* RustType.kt:516 */
|
90 129 | #[non_exhaustive]
|
130 + | /* BuilderGenerator.kt:345 */
|
91 131 | pub struct ReplicaSettingsDescriptionBuilder {
|
92 - | pub(crate) region_name: ::std::option::Option<::std::string::String>,
|
93 - | pub(crate) replica_status: ::std::option::Option<crate::types::ReplicaStatus>,
|
94 - | pub(crate) replica_billing_mode_summary: ::std::option::Option<crate::types::BillingModeSummary>,
|
95 - | pub(crate) replica_provisioned_read_capacity_units: ::std::option::Option<i64>,
|
132 + | /* BuilderGenerator.kt:275 */ pub(crate) region_name: ::std::option::Option<::std::string::String>,
|
133 + | /* BuilderGenerator.kt:275 */ pub(crate) replica_status: ::std::option::Option<crate::types::ReplicaStatus>,
|
134 + | /* BuilderGenerator.kt:275 */ pub(crate) replica_billing_mode_summary: ::std::option::Option<crate::types::BillingModeSummary>,
|
135 + | /* BuilderGenerator.kt:275 */ pub(crate) replica_provisioned_read_capacity_units: ::std::option::Option<i64>,
|
136 + | /* BuilderGenerator.kt:275 */
|
96 137 | pub(crate) replica_provisioned_read_capacity_auto_scaling_settings: ::std::option::Option<crate::types::AutoScalingSettingsDescription>,
|
97 - | pub(crate) replica_provisioned_write_capacity_units: ::std::option::Option<i64>,
|
138 + | /* BuilderGenerator.kt:275 */ pub(crate) replica_provisioned_write_capacity_units: ::std::option::Option<i64>,
|
139 + | /* BuilderGenerator.kt:275 */
|
98 140 | pub(crate) replica_provisioned_write_capacity_auto_scaling_settings: ::std::option::Option<crate::types::AutoScalingSettingsDescription>,
|
141 + | /* BuilderGenerator.kt:275 */
|
99 142 | pub(crate) replica_global_secondary_index_settings:
|
100 143 | ::std::option::Option<::std::vec::Vec<crate::types::ReplicaGlobalSecondaryIndexSettingsDescription>>,
|
144 + | /* BuilderGenerator.kt:345 */
|
101 145 | }
|
146 + | /* BuilderGenerator.kt:355 */
|
102 147 | impl ReplicaSettingsDescriptionBuilder {
|
103 - | /// <p>The Region name of the replica.</p>
|
104 - | /// This field is required.
|
148 + | /// /* BuilderGenerator.kt:286 */<p>The Region name of the replica.</p>
|
149 + | /// /* BuilderGenerator.kt:288 */This field is required.
|
150 + | /* BuilderGenerator.kt:291 */
|
105 151 | pub fn region_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
152 + | /* BuilderGenerator.kt:292 */
|
106 153 | self.region_name = ::std::option::Option::Some(input.into());
|
154 + | /* BuilderGenerator.kt:293 */
|
107 155 | self
|
156 + | /* BuilderGenerator.kt:291 */
|
108 157 | }
|
109 - | /// <p>The Region name of the replica.</p>
|
158 + | /// /* BuilderGenerator.kt:312 */<p>The Region name of the replica.</p>
|
159 + | /* BuilderGenerator.kt:314 */
|
110 160 | pub fn set_region_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
161 + | /* BuilderGenerator.kt:315 */
|
111 162 | self.region_name = input;
|
112 163 | self
|
164 + | /* BuilderGenerator.kt:314 */
|
113 165 | }
|
114 - | /// <p>The Region name of the replica.</p>
|
166 + | /// /* BuilderGenerator.kt:334 */<p>The Region name of the replica.</p>
|
167 + | /* BuilderGenerator.kt:336 */
|
115 168 | pub fn get_region_name(&self) -> &::std::option::Option<::std::string::String> {
|
169 + | /* BuilderGenerator.kt:337 */
|
116 170 | &self.region_name
|
171 + | /* BuilderGenerator.kt:336 */
|
117 172 | }
|
118 - | /// <p>The current state of the Region:</p>
|
173 + | /// /* BuilderGenerator.kt:286 */<p>The current state of the Region:</p>
|
119 174 | /// <ul>
|
120 175 | /// <li>
|
121 176 | /// <p><code>CREATING</code> - The Region is being created.</p></li>
|
122 177 | /// <li>
|
123 178 | /// <p><code>UPDATING</code> - The Region is being updated.</p></li>
|
124 179 | /// <li>
|
125 180 | /// <p><code>DELETING</code> - The Region is being deleted.</p></li>
|
126 181 | /// <li>
|
127 182 | /// <p><code>ACTIVE</code> - The Region is ready for use.</p></li>
|
128 183 | /// </ul>
|
184 + | /* BuilderGenerator.kt:291 */
|
129 185 | pub fn replica_status(mut self, input: crate::types::ReplicaStatus) -> Self {
|
186 + | /* BuilderGenerator.kt:292 */
|
130 187 | self.replica_status = ::std::option::Option::Some(input);
|
188 + | /* BuilderGenerator.kt:293 */
|
131 189 | self
|
190 + | /* BuilderGenerator.kt:291 */
|
132 191 | }
|
133 - | /// <p>The current state of the Region:</p>
|
192 + | /// /* BuilderGenerator.kt:312 */<p>The current state of the Region:</p>
|
134 193 | /// <ul>
|
135 194 | /// <li>
|
136 195 | /// <p><code>CREATING</code> - The Region is being created.</p></li>
|
137 196 | /// <li>
|
138 197 | /// <p><code>UPDATING</code> - The Region is being updated.</p></li>
|
139 198 | /// <li>
|
140 199 | /// <p><code>DELETING</code> - The Region is being deleted.</p></li>
|
141 200 | /// <li>
|
142 201 | /// <p><code>ACTIVE</code> - The Region is ready for use.</p></li>
|
143 202 | /// </ul>
|
203 + | /* BuilderGenerator.kt:314 */
|
144 204 | pub fn set_replica_status(mut self, input: ::std::option::Option<crate::types::ReplicaStatus>) -> Self {
|
205 + | /* BuilderGenerator.kt:315 */
|
145 206 | self.replica_status = input;
|
146 207 | self
|
208 + | /* BuilderGenerator.kt:314 */
|
147 209 | }
|
148 - | /// <p>The current state of the Region:</p>
|
210 + | /// /* BuilderGenerator.kt:334 */<p>The current state of the Region:</p>
|
149 211 | /// <ul>
|
150 212 | /// <li>
|
151 213 | /// <p><code>CREATING</code> - The Region is being created.</p></li>
|
152 214 | /// <li>
|
153 215 | /// <p><code>UPDATING</code> - The Region is being updated.</p></li>
|
154 216 | /// <li>
|
155 217 | /// <p><code>DELETING</code> - The Region is being deleted.</p></li>
|
156 218 | /// <li>
|
157 219 | /// <p><code>ACTIVE</code> - The Region is ready for use.</p></li>
|
158 220 | /// </ul>
|
221 + | /* BuilderGenerator.kt:336 */
|
159 222 | pub fn get_replica_status(&self) -> &::std::option::Option<crate::types::ReplicaStatus> {
|
223 + | /* BuilderGenerator.kt:337 */
|
160 224 | &self.replica_status
|
225 + | /* BuilderGenerator.kt:336 */
|
161 226 | }
|
162 - | /// <p>The read/write capacity mode of the replica.</p>
|
227 + | /// /* BuilderGenerator.kt:286 */<p>The read/write capacity mode of the replica.</p>
|
228 + | /* BuilderGenerator.kt:291 */
|
163 229 | pub fn replica_billing_mode_summary(mut self, input: crate::types::BillingModeSummary) -> Self {
|
230 + | /* BuilderGenerator.kt:292 */
|
164 231 | self.replica_billing_mode_summary = ::std::option::Option::Some(input);
|
232 + | /* BuilderGenerator.kt:293 */
|
165 233 | self
|
234 + | /* BuilderGenerator.kt:291 */
|
166 235 | }
|
167 - | /// <p>The read/write capacity mode of the replica.</p>
|
236 + | /// /* BuilderGenerator.kt:312 */<p>The read/write capacity mode of the replica.</p>
|
237 + | /* BuilderGenerator.kt:314 */
|
168 238 | pub fn set_replica_billing_mode_summary(mut self, input: ::std::option::Option<crate::types::BillingModeSummary>) -> Self {
|
239 + | /* BuilderGenerator.kt:315 */
|
169 240 | self.replica_billing_mode_summary = input;
|
170 241 | self
|
242 + | /* BuilderGenerator.kt:314 */
|
171 243 | }
|
172 - | /// <p>The read/write capacity mode of the replica.</p>
|
244 + | /// /* BuilderGenerator.kt:334 */<p>The read/write capacity mode of the replica.</p>
|
245 + | /* BuilderGenerator.kt:336 */
|
173 246 | pub fn get_replica_billing_mode_summary(&self) -> &::std::option::Option<crate::types::BillingModeSummary> {
|
247 + | /* BuilderGenerator.kt:337 */
|
174 248 | &self.replica_billing_mode_summary
|
249 + | /* BuilderGenerator.kt:336 */
|
175 250 | }
|
176 - | /// <p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
251 + | /// /* BuilderGenerator.kt:286 */<p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
252 + | /* BuilderGenerator.kt:291 */
|
177 253 | pub fn replica_provisioned_read_capacity_units(mut self, input: i64) -> Self {
|
254 + | /* BuilderGenerator.kt:292 */
|
178 255 | self.replica_provisioned_read_capacity_units = ::std::option::Option::Some(input);
|
256 + | /* BuilderGenerator.kt:293 */
|
179 257 | self
|
258 + | /* BuilderGenerator.kt:291 */
|
180 259 | }
|
181 - | /// <p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
260 + | /// /* BuilderGenerator.kt:312 */<p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
261 + | /* BuilderGenerator.kt:314 */
|
182 262 | pub fn set_replica_provisioned_read_capacity_units(mut self, input: ::std::option::Option<i64>) -> Self {
|
263 + | /* BuilderGenerator.kt:315 */
|
183 264 | self.replica_provisioned_read_capacity_units = input;
|
184 265 | self
|
266 + | /* BuilderGenerator.kt:314 */
|
185 267 | }
|
186 - | /// <p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
268 + | /// /* BuilderGenerator.kt:334 */<p>The maximum number of strongly consistent reads consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
269 + | /* BuilderGenerator.kt:336 */
|
187 270 | pub fn get_replica_provisioned_read_capacity_units(&self) -> &::std::option::Option<i64> {
|
271 + | /* BuilderGenerator.kt:337 */
|
188 272 | &self.replica_provisioned_read_capacity_units
|
273 + | /* BuilderGenerator.kt:336 */
|
189 274 | }
|
190 - | /// <p>Auto scaling settings for a global table replica's read capacity units.</p>
|
275 + | /// /* BuilderGenerator.kt:286 */<p>Auto scaling settings for a global table replica's read capacity units.</p>
|
276 + | /* BuilderGenerator.kt:291 */
|
191 277 | pub fn replica_provisioned_read_capacity_auto_scaling_settings(mut self, input: crate::types::AutoScalingSettingsDescription) -> Self {
|
278 + | /* BuilderGenerator.kt:292 */
|
192 279 | self.replica_provisioned_read_capacity_auto_scaling_settings = ::std::option::Option::Some(input);
|
280 + | /* BuilderGenerator.kt:293 */
|
193 281 | self
|
282 + | /* BuilderGenerator.kt:291 */
|
194 283 | }
|
195 - | /// <p>Auto scaling settings for a global table replica's read capacity units.</p>
|
284 + | /// /* BuilderGenerator.kt:312 */<p>Auto scaling settings for a global table replica's read capacity units.</p>
|
285 + | /* BuilderGenerator.kt:314 */
|
196 286 | pub fn set_replica_provisioned_read_capacity_auto_scaling_settings(
|
197 287 | mut self,
|
198 288 | input: ::std::option::Option<crate::types::AutoScalingSettingsDescription>,
|
199 289 | ) -> Self {
|
290 + | /* BuilderGenerator.kt:315 */
|
200 291 | self.replica_provisioned_read_capacity_auto_scaling_settings = input;
|
201 292 | self
|
293 + | /* BuilderGenerator.kt:314 */
|
202 294 | }
|
203 - | /// <p>Auto scaling settings for a global table replica's read capacity units.</p>
|
295 + | /// /* BuilderGenerator.kt:334 */<p>Auto scaling settings for a global table replica's read capacity units.</p>
|
296 + | /* BuilderGenerator.kt:336 */
|
204 297 | pub fn get_replica_provisioned_read_capacity_auto_scaling_settings(
|
205 298 | &self,
|
206 299 | ) -> &::std::option::Option<crate::types::AutoScalingSettingsDescription> {
|
300 + | /* BuilderGenerator.kt:337 */
|
207 301 | &self.replica_provisioned_read_capacity_auto_scaling_settings
|
302 + | /* BuilderGenerator.kt:336 */
|
208 303 | }
|
209 - | /// <p>The maximum number of writes consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
304 + | /// /* BuilderGenerator.kt:286 */<p>The maximum number of writes consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
305 + | /* BuilderGenerator.kt:291 */
|
210 306 | pub fn replica_provisioned_write_capacity_units(mut self, input: i64) -> Self {
|
307 + | /* BuilderGenerator.kt:292 */
|
211 308 | self.replica_provisioned_write_capacity_units = ::std::option::Option::Some(input);
|
309 + | /* BuilderGenerator.kt:293 */
|
212 310 | self
|
311 + | /* BuilderGenerator.kt:291 */
|
213 312 | }
|
214 - | /// <p>The maximum number of writes consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
313 + | /// /* BuilderGenerator.kt:312 */<p>The maximum number of writes consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
314 + | /* BuilderGenerator.kt:314 */
|
215 315 | pub fn set_replica_provisioned_write_capacity_units(mut self, input: ::std::option::Option<i64>) -> Self {
|
316 + | /* BuilderGenerator.kt:315 */
|
216 317 | self.replica_provisioned_write_capacity_units = input;
|
217 318 | self
|
319 + | /* BuilderGenerator.kt:314 */
|
218 320 | }
|
219 - | /// <p>The maximum number of writes consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
321 + | /// /* BuilderGenerator.kt:334 */<p>The maximum number of writes consumed per second before DynamoDB returns a <code>ThrottlingException</code>. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput">Specifying Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
322 + | /* BuilderGenerator.kt:336 */
|
220 323 | pub fn get_replica_provisioned_write_capacity_units(&self) -> &::std::option::Option<i64> {
|
324 + | /* BuilderGenerator.kt:337 */
|
221 325 | &self.replica_provisioned_write_capacity_units
|
326 + | /* BuilderGenerator.kt:336 */
|
222 327 | }
|
223 - | /// <p>Auto scaling settings for a global table replica's write capacity units.</p>
|
328 + | /// /* BuilderGenerator.kt:286 */<p>Auto scaling settings for a global table replica's write capacity units.</p>
|
329 + | /* BuilderGenerator.kt:291 */
|
224 330 | pub fn replica_provisioned_write_capacity_auto_scaling_settings(mut self, input: crate::types::AutoScalingSettingsDescription) -> Self {
|
331 + | /* BuilderGenerator.kt:292 */
|
225 332 | self.replica_provisioned_write_capacity_auto_scaling_settings = ::std::option::Option::Some(input);
|
333 + | /* BuilderGenerator.kt:293 */
|
226 334 | self
|
335 + | /* BuilderGenerator.kt:291 */
|
227 336 | }
|
228 - | /// <p>Auto scaling settings for a global table replica's write capacity units.</p>
|
337 + | /// /* BuilderGenerator.kt:312 */<p>Auto scaling settings for a global table replica's write capacity units.</p>
|
338 + | /* BuilderGenerator.kt:314 */
|
229 339 | pub fn set_replica_provisioned_write_capacity_auto_scaling_settings(
|
230 340 | mut self,
|
231 341 | input: ::std::option::Option<crate::types::AutoScalingSettingsDescription>,
|
232 342 | ) -> Self {
|
343 + | /* BuilderGenerator.kt:315 */
|
233 344 | self.replica_provisioned_write_capacity_auto_scaling_settings = input;
|
234 345 | self
|
346 + | /* BuilderGenerator.kt:314 */
|
235 347 | }
|
236 - | /// <p>Auto scaling settings for a global table replica's write capacity units.</p>
|
348 + | /// /* BuilderGenerator.kt:334 */<p>Auto scaling settings for a global table replica's write capacity units.</p>
|
349 + | /* BuilderGenerator.kt:336 */
|
237 350 | pub fn get_replica_provisioned_write_capacity_auto_scaling_settings(
|
238 351 | &self,
|
239 352 | ) -> &::std::option::Option<crate::types::AutoScalingSettingsDescription> {
|
353 + | /* BuilderGenerator.kt:337 */
|
240 354 | &self.replica_provisioned_write_capacity_auto_scaling_settings
|
355 + | /* BuilderGenerator.kt:336 */
|
241 356 | }
|
242 - | /// Appends an item to `replica_global_secondary_index_settings`.
|
357 + | /// /* BuilderGenerator.kt:410 */Appends an item to `replica_global_secondary_index_settings`.
|
358 + | /* BuilderGenerator.kt:411 */
|
243 359 | ///
|
244 - | /// To override the contents of this collection use [`set_replica_global_secondary_index_settings`](Self::set_replica_global_secondary_index_settings).
|
360 + | /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_replica_global_secondary_index_settings`](Self::set_replica_global_secondary_index_settings).
|
361 + | /* BuilderGenerator.kt:413 */
|
245 362 | ///
|
246 - | /// <p>Replica global secondary index settings for the global table.</p>
|
363 + | /// /* BuilderGenerator.kt:414 */<p>Replica global secondary index settings for the global table.</p>
|
364 + | /* BuilderGenerator.kt:418 */
|
247 365 | pub fn replica_global_secondary_index_settings(mut self, input: crate::types::ReplicaGlobalSecondaryIndexSettingsDescription) -> Self {
|
366 + | /* BuilderGenerator.kt:419 */
|
248 367 | let mut v = self.replica_global_secondary_index_settings.unwrap_or_default();
|
249 368 | v.push(input);
|
250 369 | self.replica_global_secondary_index_settings = ::std::option::Option::Some(v);
|
251 370 | self
|
371 + | /* BuilderGenerator.kt:418 */
|
252 372 | }
|
253 - | /// <p>Replica global secondary index settings for the global table.</p>
|
373 + | /// /* BuilderGenerator.kt:312 */<p>Replica global secondary index settings for the global table.</p>
|
374 + | /* BuilderGenerator.kt:314 */
|
254 375 | pub fn set_replica_global_secondary_index_settings(
|
255 376 | mut self,
|
256 377 | input: ::std::option::Option<::std::vec::Vec<crate::types::ReplicaGlobalSecondaryIndexSettingsDescription>>,
|
257 378 | ) -> Self {
|
379 + | /* BuilderGenerator.kt:315 */
|
258 380 | self.replica_global_secondary_index_settings = input;
|
259 381 | self
|
382 + | /* BuilderGenerator.kt:314 */
|
260 383 | }
|
261 - | /// <p>Replica global secondary index settings for the global table.</p>
|
384 + | /// /* BuilderGenerator.kt:334 */<p>Replica global secondary index settings for the global table.</p>
|
385 + | /* BuilderGenerator.kt:336 */
|
262 386 | pub fn get_replica_global_secondary_index_settings(
|
263 387 | &self,
|
264 388 | ) -> &::std::option::Option<::std::vec::Vec<crate::types::ReplicaGlobalSecondaryIndexSettingsDescription>> {
|
389 + | /* BuilderGenerator.kt:337 */
|
265 390 | &self.replica_global_secondary_index_settings
|
391 + | /* BuilderGenerator.kt:336 */
|
266 392 | }
|
267 - | /// Consumes the builder and constructs a [`ReplicaSettingsDescription`](crate::types::ReplicaSettingsDescription).
|
268 - | /// This method will fail if any of the following fields are not set:
|
269 - | /// - [`region_name`](crate::types::builders::ReplicaSettingsDescriptionBuilder::region_name)
|
393 + | /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`ReplicaSettingsDescription`](crate::types::ReplicaSettingsDescription).
|
394 + | /// /* BuilderGenerator.kt:243 */This method will fail if any of the following fields are not set:
|
395 + | /// /* BuilderGenerator.kt:246 */- [`region_name`](crate::types::builders::ReplicaSettingsDescriptionBuilder::region_name)
|
396 + | /* BuilderGenerator.kt:253 */
|
270 397 | pub fn build(self) -> ::std::result::Result<crate::types::ReplicaSettingsDescription, ::aws_smithy_types::error::operation::BuildError> {
|
271 - | ::std::result::Result::Ok(crate::types::ReplicaSettingsDescription {
|
272 - | region_name: self.region_name.ok_or_else(|| {
|
273 - | ::aws_smithy_types::error::operation::BuildError::missing_field(
|
274 - | "region_name",
|
275 - | "region_name was not specified but it is required when building ReplicaSettingsDescription",
|
276 - | )
|
277 - | })?,
|
278 - | replica_status: self.replica_status,
|
279 - | replica_billing_mode_summary: self.replica_billing_mode_summary,
|
280 - | replica_provisioned_read_capacity_units: self.replica_provisioned_read_capacity_units,
|
281 - | replica_provisioned_read_capacity_auto_scaling_settings: self.replica_provisioned_read_capacity_auto_scaling_settings,
|
282 - | replica_provisioned_write_capacity_units: self.replica_provisioned_write_capacity_units,
|
283 - | replica_provisioned_write_capacity_auto_scaling_settings: self.replica_provisioned_write_capacity_auto_scaling_settings,
|
284 - | replica_global_secondary_index_settings: self.replica_global_secondary_index_settings,
|
285 - | })
|
286 - | }
|
398 + | /* BuilderGenerator.kt:254 */
|
399 + | ::std::result::Result::Ok(
|
400 + | /* BuilderGenerator.kt:477 */crate::types::ReplicaSettingsDescription {
|
401 + | /* BuilderGenerator.kt:481 */region_name: self.region_name
|
402 + | /* BuilderGenerator.kt:494 */.ok_or_else(||
|
403 + | /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("region_name", "region_name was not specified but it is required when building ReplicaSettingsDescription")
|
404 + | /* BuilderGenerator.kt:494 */)?
|
405 + | ,
|
406 + | /* BuilderGenerator.kt:481 */replica_status: self.replica_status
|
407 + | ,
|
408 + | /* BuilderGenerator.kt:481 */replica_billing_mode_summary: self.replica_billing_mode_summary
|
409 + | ,
|
410 + | /* BuilderGenerator.kt:481 */replica_provisioned_read_capacity_units: self.replica_provisioned_read_capacity_units
|
411 + | ,
|
412 + | /* BuilderGenerator.kt:481 */replica_provisioned_read_capacity_auto_scaling_settings: self.replica_provisioned_read_capacity_auto_scaling_settings
|
413 + | ,
|
414 + | /* BuilderGenerator.kt:481 */replica_provisioned_write_capacity_units: self.replica_provisioned_write_capacity_units
|
415 + | ,
|
416 + | /* BuilderGenerator.kt:481 */replica_provisioned_write_capacity_auto_scaling_settings: self.replica_provisioned_write_capacity_auto_scaling_settings
|
417 + | ,
|
418 + | /* BuilderGenerator.kt:481 */replica_global_secondary_index_settings: self.replica_global_secondary_index_settings
|
419 + | ,
|
420 + | /* BuilderGenerator.kt:477 */}
|
421 + | /* BuilderGenerator.kt:254 */)
|
422 + | /* BuilderGenerator.kt:253 */
|
423 + | }
|
424 + | /* BuilderGenerator.kt:355 */
|
287 425 | }
|