1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 - |
|
3 - | /// <p>Represents a replica to be modified.</p>
|
2 + | /* StructureGenerator.kt:197 */
|
3 + | /// /* StructureGenerator.kt:197 */<p>Represents a replica to be modified.</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 UpdateReplicationGroupMemberAction {
|
7 - | /// <p>The Region where the replica exists.</p>
|
8 + | pub /* StructureGenerator.kt:201 */ struct UpdateReplicationGroupMemberAction {
|
9 + | /// /* StructureGenerator.kt:231 */<p>The Region where the replica exists.</p>
|
8 10 | pub region_name: ::std::string::String,
|
9 - | /// <p>The AWS KMS customer master key (CMK) of the replica that should be used for AWS KMS encryption. To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. Note that you should only provide this parameter if the key is different from the default DynamoDB KMS master key alias/aws/dynamodb.</p>
|
11 + | /// /* StructureGenerator.kt:231 */<p>The AWS KMS customer master key (CMK) of the replica that should be used for AWS KMS encryption. To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. Note that you should only provide this parameter if the key is different from the default DynamoDB KMS master key alias/aws/dynamodb.</p>
|
10 12 | pub kms_master_key_id: ::std::option::Option<::std::string::String>,
|
11 - | /// <p>Replica-specific provisioned throughput. If not specified, uses the source table's provisioned throughput settings.</p>
|
13 + | /// /* StructureGenerator.kt:231 */<p>Replica-specific provisioned throughput. If not specified, uses the source table's provisioned throughput settings.</p>
|
12 14 | pub provisioned_throughput_override: ::std::option::Option<crate::types::ProvisionedThroughputOverride>,
|
13 - | /// <p>Replica-specific global secondary index settings.</p>
|
15 + | /// /* StructureGenerator.kt:231 */<p>Replica-specific global secondary index settings.</p>
|
14 16 | pub global_secondary_indexes: ::std::option::Option<::std::vec::Vec<crate::types::ReplicaGlobalSecondaryIndex>>,
|
17 + | /* StructureGenerator.kt:201 */
|
15 18 | }
|
19 + | /* StructureGenerator.kt:135 */
|
16 20 | impl UpdateReplicationGroupMemberAction {
|
17 - | /// <p>The Region where the replica exists.</p>
|
21 + | /// /* StructureGenerator.kt:231 */<p>The Region where the replica exists.</p>
|
22 + | /* StructureGenerator.kt:166 */
|
18 23 | pub fn region_name(&self) -> &str {
|
24 + | /* StructureGenerator.kt:171 */
|
19 25 | use std::ops::Deref;
|
20 26 | self.region_name.deref()
|
27 + | /* StructureGenerator.kt:166 */
|
21 28 | }
|
22 - | /// <p>The AWS KMS customer master key (CMK) of the replica that should be used for AWS KMS encryption. To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. Note that you should only provide this parameter if the key is different from the default DynamoDB KMS master key alias/aws/dynamodb.</p>
|
29 + | /// /* StructureGenerator.kt:231 */<p>The AWS KMS customer master key (CMK) of the replica that should be used for AWS KMS encryption. To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. Note that you should only provide this parameter if the key is different from the default DynamoDB KMS master key alias/aws/dynamodb.</p>
|
30 + | /* StructureGenerator.kt:166 */
|
23 31 | pub fn kms_master_key_id(&self) -> ::std::option::Option<&str> {
|
32 + | /* StructureGenerator.kt:169 */
|
24 33 | self.kms_master_key_id.as_deref()
|
34 + | /* StructureGenerator.kt:166 */
|
25 35 | }
|
26 - | /// <p>Replica-specific provisioned throughput. If not specified, uses the source table's provisioned throughput settings.</p>
|
36 + | /// /* StructureGenerator.kt:231 */<p>Replica-specific provisioned throughput. If not specified, uses the source table's provisioned throughput settings.</p>
|
37 + | /* StructureGenerator.kt:166 */
|
27 38 | pub fn provisioned_throughput_override(&self) -> ::std::option::Option<&crate::types::ProvisionedThroughputOverride> {
|
39 + | /* StructureGenerator.kt:170 */
|
28 40 | self.provisioned_throughput_override.as_ref()
|
41 + | /* StructureGenerator.kt:166 */
|
29 42 | }
|
30 - | /// <p>Replica-specific global secondary index settings.</p>
|
31 - | ///
|
32 - | /// 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()`.
|
43 + | /// /* StructureGenerator.kt:231 */<p>Replica-specific global secondary index settings.</p>
|
44 + | /// /* StructureGenerator.kt:162 */
|
45 + | /// /* 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()`.
|
46 + | /* StructureGenerator.kt:166 */
|
33 47 | pub fn global_secondary_indexes(&self) -> &[crate::types::ReplicaGlobalSecondaryIndex] {
|
34 - | self.global_secondary_indexes.as_deref().unwrap_or_default()
|
35 - | }
|
48 + | /* StructureGenerator.kt:169 */
|
49 + | self.global_secondary_indexes
|
50 + | .as_deref()
|
51 + | /* StructureGenerator.kt:175 */
|
52 + | .unwrap_or_default()
|
53 + | /* StructureGenerator.kt:166 */
|
54 + | }
|
55 + | /* StructureGenerator.kt:135 */
|
36 56 | }
|
57 + | /* ClientCodegenVisitor.kt:237 */
|
37 58 | impl UpdateReplicationGroupMemberAction {
|
38 - | /// Creates a new builder-style object to manufacture [`UpdateReplicationGroupMemberAction`](crate::types::UpdateReplicationGroupMemberAction).
|
59 + | /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`UpdateReplicationGroupMemberAction`](crate::types::UpdateReplicationGroupMemberAction).
|
60 + | /* BuilderGenerator.kt:175 */
|
39 61 | pub fn builder() -> crate::types::builders::UpdateReplicationGroupMemberActionBuilder {
|
62 + | /* BuilderGenerator.kt:176 */
|
40 63 | crate::types::builders::UpdateReplicationGroupMemberActionBuilder::default()
|
64 + | /* BuilderGenerator.kt:175 */
|
41 65 | }
|
66 + | /* ClientCodegenVisitor.kt:237 */
|
42 67 | }
|
43 68 |
|
44 - | /// A builder for [`UpdateReplicationGroupMemberAction`](crate::types::UpdateReplicationGroupMemberAction).
|
69 + | /// /* BuilderGenerator.kt:342 */A builder for [`UpdateReplicationGroupMemberAction`](crate::types::UpdateReplicationGroupMemberAction).
|
70 + | /* RustType.kt:516 */
|
45 71 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
72 + | /* RustType.kt:516 */
|
46 73 | #[non_exhaustive]
|
74 + | /* BuilderGenerator.kt:345 */
|
47 75 | pub struct UpdateReplicationGroupMemberActionBuilder {
|
48 - | pub(crate) region_name: ::std::option::Option<::std::string::String>,
|
49 - | pub(crate) kms_master_key_id: ::std::option::Option<::std::string::String>,
|
76 + | /* BuilderGenerator.kt:275 */ pub(crate) region_name: ::std::option::Option<::std::string::String>,
|
77 + | /* BuilderGenerator.kt:275 */ pub(crate) kms_master_key_id: ::std::option::Option<::std::string::String>,
|
78 + | /* BuilderGenerator.kt:275 */
|
50 79 | pub(crate) provisioned_throughput_override: ::std::option::Option<crate::types::ProvisionedThroughputOverride>,
|
80 + | /* BuilderGenerator.kt:275 */
|
51 81 | pub(crate) global_secondary_indexes: ::std::option::Option<::std::vec::Vec<crate::types::ReplicaGlobalSecondaryIndex>>,
|
82 + | /* BuilderGenerator.kt:345 */
|
52 83 | }
|
84 + | /* BuilderGenerator.kt:355 */
|
53 85 | impl UpdateReplicationGroupMemberActionBuilder {
|
54 - | /// <p>The Region where the replica exists.</p>
|
55 - | /// This field is required.
|
86 + | /// /* BuilderGenerator.kt:286 */<p>The Region where the replica exists.</p>
|
87 + | /// /* BuilderGenerator.kt:288 */This field is required.
|
88 + | /* BuilderGenerator.kt:291 */
|
56 89 | pub fn region_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
90 + | /* BuilderGenerator.kt:292 */
|
57 91 | self.region_name = ::std::option::Option::Some(input.into());
|
92 + | /* BuilderGenerator.kt:293 */
|
58 93 | self
|
94 + | /* BuilderGenerator.kt:291 */
|
59 95 | }
|
60 - | /// <p>The Region where the replica exists.</p>
|
96 + | /// /* BuilderGenerator.kt:312 */<p>The Region where the replica exists.</p>
|
97 + | /* BuilderGenerator.kt:314 */
|
61 98 | pub fn set_region_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
99 + | /* BuilderGenerator.kt:315 */
|
62 100 | self.region_name = input;
|
63 101 | self
|
102 + | /* BuilderGenerator.kt:314 */
|
64 103 | }
|
65 - | /// <p>The Region where the replica exists.</p>
|
104 + | /// /* BuilderGenerator.kt:334 */<p>The Region where the replica exists.</p>
|
105 + | /* BuilderGenerator.kt:336 */
|
66 106 | pub fn get_region_name(&self) -> &::std::option::Option<::std::string::String> {
|
107 + | /* BuilderGenerator.kt:337 */
|
67 108 | &self.region_name
|
109 + | /* BuilderGenerator.kt:336 */
|
68 110 | }
|
69 - | /// <p>The AWS KMS customer master key (CMK) of the replica that should be used for AWS KMS encryption. To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. Note that you should only provide this parameter if the key is different from the default DynamoDB KMS master key alias/aws/dynamodb.</p>
|
111 + | /// /* BuilderGenerator.kt:286 */<p>The AWS KMS customer master key (CMK) of the replica that should be used for AWS KMS encryption. To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. Note that you should only provide this parameter if the key is different from the default DynamoDB KMS master key alias/aws/dynamodb.</p>
|
112 + | /* BuilderGenerator.kt:291 */
|
70 113 | pub fn kms_master_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
114 + | /* BuilderGenerator.kt:292 */
|
71 115 | self.kms_master_key_id = ::std::option::Option::Some(input.into());
|
116 + | /* BuilderGenerator.kt:293 */
|
72 117 | self
|
118 + | /* BuilderGenerator.kt:291 */
|
73 119 | }
|
74 - | /// <p>The AWS KMS customer master key (CMK) of the replica that should be used for AWS KMS encryption. To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. Note that you should only provide this parameter if the key is different from the default DynamoDB KMS master key alias/aws/dynamodb.</p>
|
120 + | /// /* BuilderGenerator.kt:312 */<p>The AWS KMS customer master key (CMK) of the replica that should be used for AWS KMS encryption. To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. Note that you should only provide this parameter if the key is different from the default DynamoDB KMS master key alias/aws/dynamodb.</p>
|
121 + | /* BuilderGenerator.kt:314 */
|
75 122 | pub fn set_kms_master_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
123 + | /* BuilderGenerator.kt:315 */
|
76 124 | self.kms_master_key_id = input;
|
77 125 | self
|
126 + | /* BuilderGenerator.kt:314 */
|
78 127 | }
|
79 - | /// <p>The AWS KMS customer master key (CMK) of the replica that should be used for AWS KMS encryption. To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. Note that you should only provide this parameter if the key is different from the default DynamoDB KMS master key alias/aws/dynamodb.</p>
|
128 + | /// /* BuilderGenerator.kt:334 */<p>The AWS KMS customer master key (CMK) of the replica that should be used for AWS KMS encryption. To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. Note that you should only provide this parameter if the key is different from the default DynamoDB KMS master key alias/aws/dynamodb.</p>
|
129 + | /* BuilderGenerator.kt:336 */
|
80 130 | pub fn get_kms_master_key_id(&self) -> &::std::option::Option<::std::string::String> {
|
131 + | /* BuilderGenerator.kt:337 */
|
81 132 | &self.kms_master_key_id
|
133 + | /* BuilderGenerator.kt:336 */
|
82 134 | }
|
83 - | /// <p>Replica-specific provisioned throughput. If not specified, uses the source table's provisioned throughput settings.</p>
|
135 + | /// /* BuilderGenerator.kt:286 */<p>Replica-specific provisioned throughput. If not specified, uses the source table's provisioned throughput settings.</p>
|
136 + | /* BuilderGenerator.kt:291 */
|
84 137 | pub fn provisioned_throughput_override(mut self, input: crate::types::ProvisionedThroughputOverride) -> Self {
|
138 + | /* BuilderGenerator.kt:292 */
|
85 139 | self.provisioned_throughput_override = ::std::option::Option::Some(input);
|
140 + | /* BuilderGenerator.kt:293 */
|
86 141 | self
|
142 + | /* BuilderGenerator.kt:291 */
|
87 143 | }
|
88 - | /// <p>Replica-specific provisioned throughput. If not specified, uses the source table's provisioned throughput settings.</p>
|
144 + | /// /* BuilderGenerator.kt:312 */<p>Replica-specific provisioned throughput. If not specified, uses the source table's provisioned throughput settings.</p>
|
145 + | /* BuilderGenerator.kt:314 */
|
89 146 | pub fn set_provisioned_throughput_override(mut self, input: ::std::option::Option<crate::types::ProvisionedThroughputOverride>) -> Self {
|
147 + | /* BuilderGenerator.kt:315 */
|
90 148 | self.provisioned_throughput_override = input;
|
91 149 | self
|
150 + | /* BuilderGenerator.kt:314 */
|
92 151 | }
|
93 - | /// <p>Replica-specific provisioned throughput. If not specified, uses the source table's provisioned throughput settings.</p>
|
152 + | /// /* BuilderGenerator.kt:334 */<p>Replica-specific provisioned throughput. If not specified, uses the source table's provisioned throughput settings.</p>
|
153 + | /* BuilderGenerator.kt:336 */
|
94 154 | pub fn get_provisioned_throughput_override(&self) -> &::std::option::Option<crate::types::ProvisionedThroughputOverride> {
|
155 + | /* BuilderGenerator.kt:337 */
|
95 156 | &self.provisioned_throughput_override
|
157 + | /* BuilderGenerator.kt:336 */
|
96 158 | }
|
97 - | /// Appends an item to `global_secondary_indexes`.
|
159 + | /// /* BuilderGenerator.kt:410 */Appends an item to `global_secondary_indexes`.
|
160 + | /* BuilderGenerator.kt:411 */
|
98 161 | ///
|
99 - | /// To override the contents of this collection use [`set_global_secondary_indexes`](Self::set_global_secondary_indexes).
|
162 + | /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_global_secondary_indexes`](Self::set_global_secondary_indexes).
|
163 + | /* BuilderGenerator.kt:413 */
|
100 164 | ///
|
101 - | /// <p>Replica-specific global secondary index settings.</p>
|
165 + | /// /* BuilderGenerator.kt:414 */<p>Replica-specific global secondary index settings.</p>
|
166 + | /* BuilderGenerator.kt:418 */
|
102 167 | pub fn global_secondary_indexes(mut self, input: crate::types::ReplicaGlobalSecondaryIndex) -> Self {
|
168 + | /* BuilderGenerator.kt:419 */
|
103 169 | let mut v = self.global_secondary_indexes.unwrap_or_default();
|
104 170 | v.push(input);
|
105 171 | self.global_secondary_indexes = ::std::option::Option::Some(v);
|
106 172 | self
|
173 + | /* BuilderGenerator.kt:418 */
|
107 174 | }
|
108 - | /// <p>Replica-specific global secondary index settings.</p>
|
175 + | /// /* BuilderGenerator.kt:312 */<p>Replica-specific global secondary index settings.</p>
|
176 + | /* BuilderGenerator.kt:314 */
|
109 177 | pub fn set_global_secondary_indexes(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ReplicaGlobalSecondaryIndex>>) -> Self {
|
178 + | /* BuilderGenerator.kt:315 */
|
110 179 | self.global_secondary_indexes = input;
|
111 180 | self
|
181 + | /* BuilderGenerator.kt:314 */
|
112 182 | }
|
113 - | /// <p>Replica-specific global secondary index settings.</p>
|
183 + | /// /* BuilderGenerator.kt:334 */<p>Replica-specific global secondary index settings.</p>
|
184 + | /* BuilderGenerator.kt:336 */
|
114 185 | pub fn get_global_secondary_indexes(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ReplicaGlobalSecondaryIndex>> {
|
186 + | /* BuilderGenerator.kt:337 */
|
115 187 | &self.global_secondary_indexes
|
188 + | /* BuilderGenerator.kt:336 */
|
116 189 | }
|
117 - | /// Consumes the builder and constructs a [`UpdateReplicationGroupMemberAction`](crate::types::UpdateReplicationGroupMemberAction).
|
118 - | /// This method will fail if any of the following fields are not set:
|
119 - | /// - [`region_name`](crate::types::builders::UpdateReplicationGroupMemberActionBuilder::region_name)
|
190 + | /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`UpdateReplicationGroupMemberAction`](crate::types::UpdateReplicationGroupMemberAction).
|
191 + | /// /* BuilderGenerator.kt:243 */This method will fail if any of the following fields are not set:
|
192 + | /// /* BuilderGenerator.kt:246 */- [`region_name`](crate::types::builders::UpdateReplicationGroupMemberActionBuilder::region_name)
|
193 + | /* BuilderGenerator.kt:253 */
|
120 194 | pub fn build(self) -> ::std::result::Result<crate::types::UpdateReplicationGroupMemberAction, ::aws_smithy_types::error::operation::BuildError> {
|
121 - | ::std::result::Result::Ok(crate::types::UpdateReplicationGroupMemberAction {
|
122 - | region_name: self.region_name.ok_or_else(|| {
|
123 - | ::aws_smithy_types::error::operation::BuildError::missing_field(
|
124 - | "region_name",
|
125 - | "region_name was not specified but it is required when building UpdateReplicationGroupMemberAction",
|
126 - | )
|
127 - | })?,
|
128 - | kms_master_key_id: self.kms_master_key_id,
|
129 - | provisioned_throughput_override: self.provisioned_throughput_override,
|
130 - | global_secondary_indexes: self.global_secondary_indexes,
|
131 - | })
|
132 - | }
|
195 + | /* BuilderGenerator.kt:254 */
|
196 + | ::std::result::Result::Ok(
|
197 + | /* BuilderGenerator.kt:477 */crate::types::UpdateReplicationGroupMemberAction {
|
198 + | /* BuilderGenerator.kt:481 */region_name: self.region_name
|
199 + | /* BuilderGenerator.kt:494 */.ok_or_else(||
|
200 + | /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("region_name", "region_name was not specified but it is required when building UpdateReplicationGroupMemberAction")
|
201 + | /* BuilderGenerator.kt:494 */)?
|
202 + | ,
|
203 + | /* BuilderGenerator.kt:481 */kms_master_key_id: self.kms_master_key_id
|
204 + | ,
|
205 + | /* BuilderGenerator.kt:481 */provisioned_throughput_override: self.provisioned_throughput_override
|
206 + | ,
|
207 + | /* BuilderGenerator.kt:481 */global_secondary_indexes: self.global_secondary_indexes
|
208 + | ,
|
209 + | /* BuilderGenerator.kt:477 */}
|
210 + | /* BuilderGenerator.kt:254 */)
|
211 + | /* BuilderGenerator.kt:253 */
|
212 + | }
|
213 + | /* BuilderGenerator.kt:355 */
|
133 214 | }
|