1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 - |
|
3 - | /// <p>Represents a request to perform a <code>DeleteItem</code> operation.</p>
|
2 + | /* StructureGenerator.kt:197 */
|
3 + | /// /* StructureGenerator.kt:197 */<p>Represents a request to perform a <code>DeleteItem</code> operation.</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 Delete {
|
7 - | /// <p>The primary key of the item to be deleted. Each element consists of an attribute name and a value for that attribute.</p>
|
8 + | pub /* StructureGenerator.kt:201 */ struct Delete {
|
9 + | /// /* StructureGenerator.kt:231 */<p>The primary key of the item to be deleted. Each element consists of an attribute name and a value for that attribute.</p>
|
8 10 | pub key: ::std::collections::HashMap<::std::string::String, crate::types::AttributeValue>,
|
9 - | /// <p>Name of the table in which the item to be deleted resides.</p>
|
11 + | /// /* StructureGenerator.kt:231 */<p>Name of the table in which the item to be deleted resides.</p>
|
10 12 | pub table_name: ::std::string::String,
|
11 - | /// <p>A condition that must be satisfied in order for a conditional delete to succeed.</p>
|
13 + | /// /* StructureGenerator.kt:231 */<p>A condition that must be satisfied in order for a conditional delete to succeed.</p>
|
12 14 | pub condition_expression: ::std::option::Option<::std::string::String>,
|
13 - | /// <p>One or more substitution tokens for attribute names in an expression.</p>
|
15 + | /// /* StructureGenerator.kt:231 */<p>One or more substitution tokens for attribute names in an expression.</p>
|
14 16 | pub expression_attribute_names: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
|
15 - | /// <p>One or more values that can be substituted in an expression.</p>
|
17 + | /// /* StructureGenerator.kt:231 */<p>One or more values that can be substituted in an expression.</p>
|
16 18 | pub expression_attribute_values: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::AttributeValue>>,
|
17 - | /// <p>Use <code>ReturnValuesOnConditionCheckFailure</code> to get the item attributes if the <code>Delete</code> condition fails. For <code>ReturnValuesOnConditionCheckFailure</code>, the valid values are: NONE and ALL_OLD.</p>
|
19 + | /// /* StructureGenerator.kt:231 */<p>Use <code>ReturnValuesOnConditionCheckFailure</code> to get the item attributes if the <code>Delete</code> condition fails. For <code>ReturnValuesOnConditionCheckFailure</code>, the valid values are: NONE and ALL_OLD.</p>
|
18 20 | pub return_values_on_condition_check_failure: ::std::option::Option<crate::types::ReturnValuesOnConditionCheckFailure>,
|
21 + | /* StructureGenerator.kt:201 */
|
19 22 | }
|
23 + | /* StructureGenerator.kt:135 */
|
20 24 | impl Delete {
|
21 - | /// <p>The primary key of the item to be deleted. Each element consists of an attribute name and a value for that attribute.</p>
|
25 + | /// /* StructureGenerator.kt:231 */<p>The primary key of the item to be deleted. Each element consists of an attribute name and a value for that attribute.</p>
|
26 + | /* StructureGenerator.kt:166 */
|
22 27 | pub fn key(&self) -> &::std::collections::HashMap<::std::string::String, crate::types::AttributeValue> {
|
28 + | /* StructureGenerator.kt:172 */
|
23 29 | &self.key
|
30 + | /* StructureGenerator.kt:166 */
|
24 31 | }
|
25 - | /// <p>Name of the table in which the item to be deleted resides.</p>
|
32 + | /// /* StructureGenerator.kt:231 */<p>Name of the table in which the item to be deleted resides.</p>
|
33 + | /* StructureGenerator.kt:166 */
|
26 34 | pub fn table_name(&self) -> &str {
|
35 + | /* StructureGenerator.kt:171 */
|
27 36 | use std::ops::Deref;
|
28 37 | self.table_name.deref()
|
38 + | /* StructureGenerator.kt:166 */
|
29 39 | }
|
30 - | /// <p>A condition that must be satisfied in order for a conditional delete to succeed.</p>
|
40 + | /// /* StructureGenerator.kt:231 */<p>A condition that must be satisfied in order for a conditional delete to succeed.</p>
|
41 + | /* StructureGenerator.kt:166 */
|
31 42 | pub fn condition_expression(&self) -> ::std::option::Option<&str> {
|
43 + | /* StructureGenerator.kt:169 */
|
32 44 | self.condition_expression.as_deref()
|
45 + | /* StructureGenerator.kt:166 */
|
33 46 | }
|
34 - | /// <p>One or more substitution tokens for attribute names in an expression.</p>
|
47 + | /// /* StructureGenerator.kt:231 */<p>One or more substitution tokens for attribute names in an expression.</p>
|
48 + | /* StructureGenerator.kt:166 */
|
35 49 | pub fn expression_attribute_names(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
|
50 + | /* StructureGenerator.kt:170 */
|
36 51 | self.expression_attribute_names.as_ref()
|
52 + | /* StructureGenerator.kt:166 */
|
37 53 | }
|
38 - | /// <p>One or more values that can be substituted in an expression.</p>
|
54 + | /// /* StructureGenerator.kt:231 */<p>One or more values that can be substituted in an expression.</p>
|
55 + | /* StructureGenerator.kt:166 */
|
39 56 | pub fn expression_attribute_values(
|
40 57 | &self,
|
41 58 | ) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, crate::types::AttributeValue>> {
|
59 + | /* StructureGenerator.kt:170 */
|
42 60 | self.expression_attribute_values.as_ref()
|
61 + | /* StructureGenerator.kt:166 */
|
43 62 | }
|
44 - | /// <p>Use <code>ReturnValuesOnConditionCheckFailure</code> to get the item attributes if the <code>Delete</code> condition fails. For <code>ReturnValuesOnConditionCheckFailure</code>, the valid values are: NONE and ALL_OLD.</p>
|
63 + | /// /* StructureGenerator.kt:231 */<p>Use <code>ReturnValuesOnConditionCheckFailure</code> to get the item attributes if the <code>Delete</code> condition fails. For <code>ReturnValuesOnConditionCheckFailure</code>, the valid values are: NONE and ALL_OLD.</p>
|
64 + | /* StructureGenerator.kt:166 */
|
45 65 | pub fn return_values_on_condition_check_failure(&self) -> ::std::option::Option<&crate::types::ReturnValuesOnConditionCheckFailure> {
|
66 + | /* StructureGenerator.kt:170 */
|
46 67 | self.return_values_on_condition_check_failure.as_ref()
|
68 + | /* StructureGenerator.kt:166 */
|
47 69 | }
|
70 + | /* StructureGenerator.kt:135 */
|
48 71 | }
|
72 + | /* ClientCodegenVisitor.kt:237 */
|
49 73 | impl Delete {
|
50 - | /// Creates a new builder-style object to manufacture [`Delete`](crate::types::Delete).
|
74 + | /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`Delete`](crate::types::Delete).
|
75 + | /* BuilderGenerator.kt:175 */
|
51 76 | pub fn builder() -> crate::types::builders::DeleteBuilder {
|
77 + | /* BuilderGenerator.kt:176 */
|
52 78 | crate::types::builders::DeleteBuilder::default()
|
79 + | /* BuilderGenerator.kt:175 */
|
53 80 | }
|
81 + | /* ClientCodegenVisitor.kt:237 */
|
54 82 | }
|
55 83 |
|
56 - | /// A builder for [`Delete`](crate::types::Delete).
|
84 + | /// /* BuilderGenerator.kt:342 */A builder for [`Delete`](crate::types::Delete).
|
85 + | /* RustType.kt:516 */
|
57 86 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
87 + | /* RustType.kt:516 */
|
58 88 | #[non_exhaustive]
|
89 + | /* BuilderGenerator.kt:345 */
|
59 90 | pub struct DeleteBuilder {
|
91 + | /* BuilderGenerator.kt:275 */
|
60 92 | pub(crate) key: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::AttributeValue>>,
|
61 - | pub(crate) table_name: ::std::option::Option<::std::string::String>,
|
62 - | pub(crate) condition_expression: ::std::option::Option<::std::string::String>,
|
93 + | /* BuilderGenerator.kt:275 */ pub(crate) table_name: ::std::option::Option<::std::string::String>,
|
94 + | /* BuilderGenerator.kt:275 */ pub(crate) condition_expression: ::std::option::Option<::std::string::String>,
|
95 + | /* BuilderGenerator.kt:275 */
|
63 96 | pub(crate) expression_attribute_names: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
|
97 + | /* BuilderGenerator.kt:275 */
|
64 98 | pub(crate) expression_attribute_values: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::AttributeValue>>,
|
99 + | /* BuilderGenerator.kt:275 */
|
65 100 | pub(crate) return_values_on_condition_check_failure: ::std::option::Option<crate::types::ReturnValuesOnConditionCheckFailure>,
|
101 + | /* BuilderGenerator.kt:345 */
|
66 102 | }
|
103 + | /* BuilderGenerator.kt:355 */
|
67 104 | impl DeleteBuilder {
|
68 - | /// Adds a key-value pair to `key`.
|
105 + | /// /* BuilderGenerator.kt:436 */Adds a key-value pair to `key`.
|
106 + | /* BuilderGenerator.kt:437 */
|
69 107 | ///
|
70 - | /// To override the contents of this collection use [`set_key`](Self::set_key).
|
108 + | /// /* BuilderGenerator.kt:438 */To override the contents of this collection use [`set_key`](Self::set_key).
|
109 + | /* BuilderGenerator.kt:439 */
|
71 110 | ///
|
72 - | /// <p>The primary key of the item to be deleted. Each element consists of an attribute name and a value for that attribute.</p>
|
111 + | /// /* BuilderGenerator.kt:440 */<p>The primary key of the item to be deleted. Each element consists of an attribute name and a value for that attribute.</p>
|
112 + | /* BuilderGenerator.kt:445 */
|
73 113 | pub fn key(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::AttributeValue) -> Self {
|
114 + | /* BuilderGenerator.kt:448 */
|
74 115 | let mut hash_map = self.key.unwrap_or_default();
|
75 116 | hash_map.insert(k.into(), v);
|
76 117 | self.key = ::std::option::Option::Some(hash_map);
|
77 118 | self
|
119 + | /* BuilderGenerator.kt:445 */
|
78 120 | }
|
79 - | /// <p>The primary key of the item to be deleted. Each element consists of an attribute name and a value for that attribute.</p>
|
121 + | /// /* BuilderGenerator.kt:312 */<p>The primary key of the item to be deleted. Each element consists of an attribute name and a value for that attribute.</p>
|
122 + | /* BuilderGenerator.kt:314 */
|
80 123 | pub fn set_key(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::AttributeValue>>) -> Self {
|
124 + | /* BuilderGenerator.kt:315 */
|
81 125 | self.key = input;
|
82 126 | self
|
127 + | /* BuilderGenerator.kt:314 */
|
83 128 | }
|
84 - | /// <p>The primary key of the item to be deleted. Each element consists of an attribute name and a value for that attribute.</p>
|
129 + | /// /* BuilderGenerator.kt:334 */<p>The primary key of the item to be deleted. Each element consists of an attribute name and a value for that attribute.</p>
|
130 + | /* BuilderGenerator.kt:336 */
|
85 131 | pub fn get_key(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::AttributeValue>> {
|
132 + | /* BuilderGenerator.kt:337 */
|
86 133 | &self.key
|
134 + | /* BuilderGenerator.kt:336 */
|
87 135 | }
|
88 - | /// <p>Name of the table in which the item to be deleted resides.</p>
|
89 - | /// This field is required.
|
136 + | /// /* BuilderGenerator.kt:286 */<p>Name of the table in which the item to be deleted resides.</p>
|
137 + | /// /* BuilderGenerator.kt:288 */This field is required.
|
138 + | /* BuilderGenerator.kt:291 */
|
90 139 | pub fn table_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
140 + | /* BuilderGenerator.kt:292 */
|
91 141 | self.table_name = ::std::option::Option::Some(input.into());
|
142 + | /* BuilderGenerator.kt:293 */
|
92 143 | self
|
144 + | /* BuilderGenerator.kt:291 */
|
93 145 | }
|
94 - | /// <p>Name of the table in which the item to be deleted resides.</p>
|
146 + | /// /* BuilderGenerator.kt:312 */<p>Name of the table in which the item to be deleted resides.</p>
|
147 + | /* BuilderGenerator.kt:314 */
|
95 148 | pub fn set_table_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
149 + | /* BuilderGenerator.kt:315 */
|
96 150 | self.table_name = input;
|
97 151 | self
|
152 + | /* BuilderGenerator.kt:314 */
|
98 153 | }
|
99 - | /// <p>Name of the table in which the item to be deleted resides.</p>
|
154 + | /// /* BuilderGenerator.kt:334 */<p>Name of the table in which the item to be deleted resides.</p>
|
155 + | /* BuilderGenerator.kt:336 */
|
100 156 | pub fn get_table_name(&self) -> &::std::option::Option<::std::string::String> {
|
157 + | /* BuilderGenerator.kt:337 */
|
101 158 | &self.table_name
|
159 + | /* BuilderGenerator.kt:336 */
|
102 160 | }
|
103 - | /// <p>A condition that must be satisfied in order for a conditional delete to succeed.</p>
|
161 + | /// /* BuilderGenerator.kt:286 */<p>A condition that must be satisfied in order for a conditional delete to succeed.</p>
|
162 + | /* BuilderGenerator.kt:291 */
|
104 163 | pub fn condition_expression(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
164 + | /* BuilderGenerator.kt:292 */
|
105 165 | self.condition_expression = ::std::option::Option::Some(input.into());
|
166 + | /* BuilderGenerator.kt:293 */
|
106 167 | self
|
168 + | /* BuilderGenerator.kt:291 */
|
107 169 | }
|
108 - | /// <p>A condition that must be satisfied in order for a conditional delete to succeed.</p>
|
170 + | /// /* BuilderGenerator.kt:312 */<p>A condition that must be satisfied in order for a conditional delete to succeed.</p>
|
171 + | /* BuilderGenerator.kt:314 */
|
109 172 | pub fn set_condition_expression(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
173 + | /* BuilderGenerator.kt:315 */
|
110 174 | self.condition_expression = input;
|
111 175 | self
|
176 + | /* BuilderGenerator.kt:314 */
|
112 177 | }
|
113 - | /// <p>A condition that must be satisfied in order for a conditional delete to succeed.</p>
|
178 + | /// /* BuilderGenerator.kt:334 */<p>A condition that must be satisfied in order for a conditional delete to succeed.</p>
|
179 + | /* BuilderGenerator.kt:336 */
|
114 180 | pub fn get_condition_expression(&self) -> &::std::option::Option<::std::string::String> {
|
181 + | /* BuilderGenerator.kt:337 */
|
115 182 | &self.condition_expression
|
183 + | /* BuilderGenerator.kt:336 */
|
116 184 | }
|
117 - | /// Adds a key-value pair to `expression_attribute_names`.
|
185 + | /// /* BuilderGenerator.kt:436 */Adds a key-value pair to `expression_attribute_names`.
|
186 + | /* BuilderGenerator.kt:437 */
|
118 187 | ///
|
119 - | /// To override the contents of this collection use [`set_expression_attribute_names`](Self::set_expression_attribute_names).
|
188 + | /// /* BuilderGenerator.kt:438 */To override the contents of this collection use [`set_expression_attribute_names`](Self::set_expression_attribute_names).
|
189 + | /* BuilderGenerator.kt:439 */
|
120 190 | ///
|
121 - | /// <p>One or more substitution tokens for attribute names in an expression.</p>
|
191 + | /// /* BuilderGenerator.kt:440 */<p>One or more substitution tokens for attribute names in an expression.</p>
|
192 + | /* BuilderGenerator.kt:445 */
|
122 193 | pub fn expression_attribute_names(
|
123 194 | mut self,
|
124 195 | k: impl ::std::convert::Into<::std::string::String>,
|
125 196 | v: impl ::std::convert::Into<::std::string::String>,
|
126 197 | ) -> Self {
|
198 + | /* BuilderGenerator.kt:448 */
|
127 199 | let mut hash_map = self.expression_attribute_names.unwrap_or_default();
|
128 200 | hash_map.insert(k.into(), v.into());
|
129 201 | self.expression_attribute_names = ::std::option::Option::Some(hash_map);
|
130 202 | self
|
203 + | /* BuilderGenerator.kt:445 */
|
131 204 | }
|
132 - | /// <p>One or more substitution tokens for attribute names in an expression.</p>
|
205 + | /// /* BuilderGenerator.kt:312 */<p>One or more substitution tokens for attribute names in an expression.</p>
|
206 + | /* BuilderGenerator.kt:314 */
|
133 207 | pub fn set_expression_attribute_names(
|
134 208 | mut self,
|
135 209 | input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
|
136 210 | ) -> Self {
|
211 + | /* BuilderGenerator.kt:315 */
|
137 212 | self.expression_attribute_names = input;
|
138 213 | self
|
214 + | /* BuilderGenerator.kt:314 */
|
139 215 | }
|
140 - | /// <p>One or more substitution tokens for attribute names in an expression.</p>
|
216 + | /// /* BuilderGenerator.kt:334 */<p>One or more substitution tokens for attribute names in an expression.</p>
|
217 + | /* BuilderGenerator.kt:336 */
|
141 218 | pub fn get_expression_attribute_names(
|
142 219 | &self,
|
143 220 | ) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
|
221 + | /* BuilderGenerator.kt:337 */
|
144 222 | &self.expression_attribute_names
|
223 + | /* BuilderGenerator.kt:336 */
|
145 224 | }
|
146 - | /// Adds a key-value pair to `expression_attribute_values`.
|
225 + | /// /* BuilderGenerator.kt:436 */Adds a key-value pair to `expression_attribute_values`.
|
226 + | /* BuilderGenerator.kt:437 */
|
147 227 | ///
|
148 - | /// To override the contents of this collection use [`set_expression_attribute_values`](Self::set_expression_attribute_values).
|
228 + | /// /* BuilderGenerator.kt:438 */To override the contents of this collection use [`set_expression_attribute_values`](Self::set_expression_attribute_values).
|
229 + | /* BuilderGenerator.kt:439 */
|
149 230 | ///
|
150 - | /// <p>One or more values that can be substituted in an expression.</p>
|
231 + | /// /* BuilderGenerator.kt:440 */<p>One or more values that can be substituted in an expression.</p>
|
232 + | /* BuilderGenerator.kt:445 */
|
151 233 | pub fn expression_attribute_values(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::AttributeValue) -> Self {
|
234 + | /* BuilderGenerator.kt:448 */
|
152 235 | let mut hash_map = self.expression_attribute_values.unwrap_or_default();
|
153 236 | hash_map.insert(k.into(), v);
|
154 237 | self.expression_attribute_values = ::std::option::Option::Some(hash_map);
|
155 238 | self
|
239 + | /* BuilderGenerator.kt:445 */
|
156 240 | }
|
157 - | /// <p>One or more values that can be substituted in an expression.</p>
|
241 + | /// /* BuilderGenerator.kt:312 */<p>One or more values that can be substituted in an expression.</p>
|
242 + | /* BuilderGenerator.kt:314 */
|
158 243 | pub fn set_expression_attribute_values(
|
159 244 | mut self,
|
160 245 | input: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::AttributeValue>>,
|
161 246 | ) -> Self {
|
247 + | /* BuilderGenerator.kt:315 */
|
162 248 | self.expression_attribute_values = input;
|
163 249 | self
|
250 + | /* BuilderGenerator.kt:314 */
|
164 251 | }
|
165 - | /// <p>One or more values that can be substituted in an expression.</p>
|
252 + | /// /* BuilderGenerator.kt:334 */<p>One or more values that can be substituted in an expression.</p>
|
253 + | /* BuilderGenerator.kt:336 */
|
166 254 | pub fn get_expression_attribute_values(
|
167 255 | &self,
|
168 256 | ) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::AttributeValue>> {
|
257 + | /* BuilderGenerator.kt:337 */
|
169 258 | &self.expression_attribute_values
|
259 + | /* BuilderGenerator.kt:336 */
|
170 260 | }
|
171 - | /// <p>Use <code>ReturnValuesOnConditionCheckFailure</code> to get the item attributes if the <code>Delete</code> condition fails. For <code>ReturnValuesOnConditionCheckFailure</code>, the valid values are: NONE and ALL_OLD.</p>
|
261 + | /// /* BuilderGenerator.kt:286 */<p>Use <code>ReturnValuesOnConditionCheckFailure</code> to get the item attributes if the <code>Delete</code> condition fails. For <code>ReturnValuesOnConditionCheckFailure</code>, the valid values are: NONE and ALL_OLD.</p>
|
262 + | /* BuilderGenerator.kt:291 */
|
172 263 | pub fn return_values_on_condition_check_failure(mut self, input: crate::types::ReturnValuesOnConditionCheckFailure) -> Self {
|
264 + | /* BuilderGenerator.kt:292 */
|
173 265 | self.return_values_on_condition_check_failure = ::std::option::Option::Some(input);
|
266 + | /* BuilderGenerator.kt:293 */
|
174 267 | self
|
268 + | /* BuilderGenerator.kt:291 */
|
175 269 | }
|
176 - | /// <p>Use <code>ReturnValuesOnConditionCheckFailure</code> to get the item attributes if the <code>Delete</code> condition fails. For <code>ReturnValuesOnConditionCheckFailure</code>, the valid values are: NONE and ALL_OLD.</p>
|
270 + | /// /* BuilderGenerator.kt:312 */<p>Use <code>ReturnValuesOnConditionCheckFailure</code> to get the item attributes if the <code>Delete</code> condition fails. For <code>ReturnValuesOnConditionCheckFailure</code>, the valid values are: NONE and ALL_OLD.</p>
|
271 + | /* BuilderGenerator.kt:314 */
|
177 272 | pub fn set_return_values_on_condition_check_failure(
|
178 273 | mut self,
|
179 274 | input: ::std::option::Option<crate::types::ReturnValuesOnConditionCheckFailure>,
|
180 275 | ) -> Self {
|
276 + | /* BuilderGenerator.kt:315 */
|
181 277 | self.return_values_on_condition_check_failure = input;
|
182 278 | self
|
279 + | /* BuilderGenerator.kt:314 */
|
183 280 | }
|
184 - | /// <p>Use <code>ReturnValuesOnConditionCheckFailure</code> to get the item attributes if the <code>Delete</code> condition fails. For <code>ReturnValuesOnConditionCheckFailure</code>, the valid values are: NONE and ALL_OLD.</p>
|
281 + | /// /* BuilderGenerator.kt:334 */<p>Use <code>ReturnValuesOnConditionCheckFailure</code> to get the item attributes if the <code>Delete</code> condition fails. For <code>ReturnValuesOnConditionCheckFailure</code>, the valid values are: NONE and ALL_OLD.</p>
|
282 + | /* BuilderGenerator.kt:336 */
|
185 283 | pub fn get_return_values_on_condition_check_failure(&self) -> &::std::option::Option<crate::types::ReturnValuesOnConditionCheckFailure> {
|
284 + | /* BuilderGenerator.kt:337 */
|
186 285 | &self.return_values_on_condition_check_failure
|
286 + | /* BuilderGenerator.kt:336 */
|
187 287 | }
|
188 - | /// Consumes the builder and constructs a [`Delete`](crate::types::Delete).
|
189 - | /// This method will fail if any of the following fields are not set:
|
190 - | /// - [`key`](crate::types::builders::DeleteBuilder::key)
|
191 - | /// - [`table_name`](crate::types::builders::DeleteBuilder::table_name)
|
288 + | /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`Delete`](crate::types::Delete).
|
289 + | /// /* BuilderGenerator.kt:243 */This method will fail if any of the following fields are not set:
|
290 + | /// /* BuilderGenerator.kt:246 */- [`key`](crate::types::builders::DeleteBuilder::key)
|
291 + | /// /* BuilderGenerator.kt:246 */- [`table_name`](crate::types::builders::DeleteBuilder::table_name)
|
292 + | /* BuilderGenerator.kt:253 */
|
192 293 | pub fn build(self) -> ::std::result::Result<crate::types::Delete, ::aws_smithy_types::error::operation::BuildError> {
|
193 - | ::std::result::Result::Ok(crate::types::Delete {
|
194 - | key: self.key.ok_or_else(|| {
|
195 - | ::aws_smithy_types::error::operation::BuildError::missing_field(
|
196 - | "key",
|
197 - | "key was not specified but it is required when building Delete",
|
198 - | )
|
199 - | })?,
|
200 - | table_name: self.table_name.ok_or_else(|| {
|
201 - | ::aws_smithy_types::error::operation::BuildError::missing_field(
|
202 - | "table_name",
|
203 - | "table_name was not specified but it is required when building Delete",
|
204 - | )
|
205 - | })?,
|
206 - | condition_expression: self.condition_expression,
|
207 - | expression_attribute_names: self.expression_attribute_names,
|
208 - | expression_attribute_values: self.expression_attribute_values,
|
209 - | return_values_on_condition_check_failure: self.return_values_on_condition_check_failure,
|
210 - | })
|
294 + | /* BuilderGenerator.kt:254 */
|
295 + | ::std::result::Result::Ok(
|
296 + | /* BuilderGenerator.kt:477 */crate::types::Delete {
|
297 + | /* BuilderGenerator.kt:481 */key: self.key
|
298 + | /* BuilderGenerator.kt:494 */.ok_or_else(||
|
299 + | /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("key", "key was not specified but it is required when building Delete")
|
300 + | /* BuilderGenerator.kt:494 */)?
|
301 + | ,
|
302 + | /* BuilderGenerator.kt:481 */table_name: self.table_name
|
303 + | /* BuilderGenerator.kt:494 */.ok_or_else(||
|
304 + | /* BuilderGenerator.kt:117 */::aws_smithy_types::error::operation::BuildError::missing_field("table_name", "table_name was not specified but it is required when building Delete")
|
305 + | /* BuilderGenerator.kt:494 */)?
|
306 + | ,
|
307 + | /* BuilderGenerator.kt:481 */condition_expression: self.condition_expression
|
308 + | ,
|
309 + | /* BuilderGenerator.kt:481 */expression_attribute_names: self.expression_attribute_names
|
310 + | ,
|
311 + | /* BuilderGenerator.kt:481 */expression_attribute_values: self.expression_attribute_values
|
312 + | ,
|
313 + | /* BuilderGenerator.kt:481 */return_values_on_condition_check_failure: self.return_values_on_condition_check_failure
|
314 + | ,
|
315 + | /* BuilderGenerator.kt:477 */}
|
316 + | /* BuilderGenerator.kt:254 */)
|
317 + | /* BuilderGenerator.kt:253 */
|
211 318 | }
|
319 + | /* BuilderGenerator.kt:355 */
|
212 320 | }
|