aws_sdk_dynamodb/operation/update_item/builders.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::update_item::_update_item_output::UpdateItemOutputBuilder;
3
4pub use crate::operation::update_item::_update_item_input::UpdateItemInputBuilder;
5
6impl crate::operation::update_item::builders::UpdateItemInputBuilder {
7 /// Sends a request with this input using the given client.
8 pub async fn send_with(self, client: &crate::Client) -> ::std::result::Result<
9 crate::operation::update_item::UpdateItemOutput,
10 ::aws_smithy_runtime_api::client::result::SdkError<
11 crate::operation::update_item::UpdateItemError,
12 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse
13 >
14 > {
15 let mut fluent_builder = client.update_item();
16 fluent_builder.inner = self;
17 fluent_builder.send().await
18 }
19 }
20/// Fluent builder constructing a request to `UpdateItem`.
21///
22/// <p>Edits an existing item's attributes, or adds a new item to the table if it does not already exist. You can put, delete, or add attribute values. You can also perform a conditional update on an existing item (insert a new attribute name-value pair if it doesn't exist, or replace an existing name-value pair if it has certain expected attribute values).</p>
23/// <p>You can also return the item's attribute values in the same <code>UpdateItem</code> operation using the <code>ReturnValues</code> parameter.</p>
24#[derive(::std::clone::Clone, ::std::fmt::Debug)]
25pub struct UpdateItemFluentBuilder {
26 handle: ::std::sync::Arc<crate::client::Handle>,
27 inner: crate::operation::update_item::builders::UpdateItemInputBuilder,
28config_override: ::std::option::Option<crate::config::Builder>,
29 }
30impl
31 crate::client::customize::internal::CustomizableSend<
32 crate::operation::update_item::UpdateItemOutput,
33 crate::operation::update_item::UpdateItemError,
34 > for UpdateItemFluentBuilder
35 {
36 fn send(
37 self,
38 config_override: crate::config::Builder,
39 ) -> crate::client::customize::internal::BoxFuture<
40 crate::client::customize::internal::SendResult<
41 crate::operation::update_item::UpdateItemOutput,
42 crate::operation::update_item::UpdateItemError,
43 >,
44 > {
45 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
46 }
47 }
48impl UpdateItemFluentBuilder {
49 /// Creates a new `UpdateItemFluentBuilder`.
50 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
51 Self {
52 handle,
53 inner: ::std::default::Default::default(),
54 config_override: ::std::option::Option::None,
55 }
56 }
57 /// Access the UpdateItem as a reference.
58 pub fn as_input(&self) -> &crate::operation::update_item::builders::UpdateItemInputBuilder {
59 &self.inner
60 }
61 /// Sends the request and returns the response.
62 ///
63 /// If an error occurs, an `SdkError` will be returned with additional details that
64 /// can be matched against.
65 ///
66 /// By default, any retryable failures will be retried twice. Retry behavior
67 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
68 /// set when configuring the client. Note: retries are enabled by default when using
69 /// `aws_config::load_from_env()` or when using `BehaviorVersion::v2025_01_17()` or later.
70 pub async fn send(self) -> ::std::result::Result<crate::operation::update_item::UpdateItemOutput, ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_item::UpdateItemError, ::aws_smithy_runtime_api::client::orchestrator::HttpResponse>> {
71 let input = self.inner.build().map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
72 let runtime_plugins = crate::operation::update_item::UpdateItem::operation_runtime_plugins(
73 self.handle.runtime_plugins.clone(),
74 &self.handle.conf,
75 self.config_override,
76 );
77 crate::operation::update_item::UpdateItem::orchestrate(&runtime_plugins, input).await
78 }
79
80 /// Consumes this builder, creating a customizable operation that can be modified before being sent.
81 pub fn customize(
82 self,
83 ) -> crate::client::customize::CustomizableOperation<crate::operation::update_item::UpdateItemOutput, crate::operation::update_item::UpdateItemError, Self> {
84 crate::client::customize::CustomizableOperation::new(self)
85 }
86 pub(crate) fn config_override(
87 mut self,
88 config_override: impl ::std::convert::Into<crate::config::Builder>,
89 ) -> Self {
90 self.set_config_override(::std::option::Option::Some(config_override.into()));
91 self
92 }
93
94 pub(crate) fn set_config_override(
95 &mut self,
96 config_override: ::std::option::Option<crate::config::Builder>,
97 ) -> &mut Self {
98 self.config_override = config_override;
99 self
100 }
101 /// <p>The name of the table containing the item to update. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.</p>
102 pub fn table_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
103 self.inner = self.inner.table_name(input.into());
104 self
105 }
106 /// <p>The name of the table containing the item to update. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.</p>
107 pub fn set_table_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
108 self.inner = self.inner.set_table_name(input);
109 self
110 }
111 /// <p>The name of the table containing the item to update. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.</p>
112 pub fn get_table_name(&self) -> &::std::option::Option<::std::string::String> {
113 self.inner.get_table_name()
114 }
115 ///
116 /// Adds a key-value pair to `Key`.
117 ///
118 /// To override the contents of this collection use [`set_key`](Self::set_key).
119 ///
120 /// <p>The primary key of the item to be updated. Each element consists of an attribute name and a value for that attribute.</p>
121 /// <p>For the primary key, you must provide all of the attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key.</p>
122 pub fn key(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::AttributeValue) -> Self {
123 self.inner = self.inner.key(k.into(), v);
124 self
125 }
126 /// <p>The primary key of the item to be updated. Each element consists of an attribute name and a value for that attribute.</p>
127 /// <p>For the primary key, you must provide all of the attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key.</p>
128 pub fn set_key(mut self, input: ::std::option::Option<::std::collections::HashMap::<::std::string::String, crate::types::AttributeValue>>) -> Self {
129 self.inner = self.inner.set_key(input);
130 self
131 }
132 /// <p>The primary key of the item to be updated. Each element consists of an attribute name and a value for that attribute.</p>
133 /// <p>For the primary key, you must provide all of the attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key.</p>
134 pub fn get_key(&self) -> &::std::option::Option<::std::collections::HashMap::<::std::string::String, crate::types::AttributeValue>> {
135 self.inner.get_key()
136 }
137 ///
138 /// Adds a key-value pair to `AttributeUpdates`.
139 ///
140 /// To override the contents of this collection use [`set_attribute_updates`](Self::set_attribute_updates).
141 ///
142 /// <p>This is a legacy parameter. Use <code>UpdateExpression</code> instead. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributeUpdates.html">AttributeUpdates</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
143 pub fn attribute_updates(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::AttributeValueUpdate) -> Self {
144 self.inner = self.inner.attribute_updates(k.into(), v);
145 self
146 }
147 /// <p>This is a legacy parameter. Use <code>UpdateExpression</code> instead. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributeUpdates.html">AttributeUpdates</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
148 pub fn set_attribute_updates(mut self, input: ::std::option::Option<::std::collections::HashMap::<::std::string::String, crate::types::AttributeValueUpdate>>) -> Self {
149 self.inner = self.inner.set_attribute_updates(input);
150 self
151 }
152 /// <p>This is a legacy parameter. Use <code>UpdateExpression</code> instead. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributeUpdates.html">AttributeUpdates</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
153 pub fn get_attribute_updates(&self) -> &::std::option::Option<::std::collections::HashMap::<::std::string::String, crate::types::AttributeValueUpdate>> {
154 self.inner.get_attribute_updates()
155 }
156 ///
157 /// Adds a key-value pair to `Expected`.
158 ///
159 /// To override the contents of this collection use [`set_expected`](Self::set_expected).
160 ///
161 /// <p>This is a legacy parameter. Use <code>ConditionExpression</code> instead. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.Expected.html">Expected</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
162 pub fn expected(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::ExpectedAttributeValue) -> Self {
163 self.inner = self.inner.expected(k.into(), v);
164 self
165 }
166 /// <p>This is a legacy parameter. Use <code>ConditionExpression</code> instead. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.Expected.html">Expected</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
167 pub fn set_expected(mut self, input: ::std::option::Option<::std::collections::HashMap::<::std::string::String, crate::types::ExpectedAttributeValue>>) -> Self {
168 self.inner = self.inner.set_expected(input);
169 self
170 }
171 /// <p>This is a legacy parameter. Use <code>ConditionExpression</code> instead. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.Expected.html">Expected</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
172 pub fn get_expected(&self) -> &::std::option::Option<::std::collections::HashMap::<::std::string::String, crate::types::ExpectedAttributeValue>> {
173 self.inner.get_expected()
174 }
175 /// <p>This is a legacy parameter. Use <code>ConditionExpression</code> instead. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ConditionalOperator.html">ConditionalOperator</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
176 pub fn conditional_operator(mut self, input: crate::types::ConditionalOperator) -> Self {
177 self.inner = self.inner.conditional_operator(input);
178 self
179 }
180 /// <p>This is a legacy parameter. Use <code>ConditionExpression</code> instead. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ConditionalOperator.html">ConditionalOperator</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
181 pub fn set_conditional_operator(mut self, input: ::std::option::Option<crate::types::ConditionalOperator>) -> Self {
182 self.inner = self.inner.set_conditional_operator(input);
183 self
184 }
185 /// <p>This is a legacy parameter. Use <code>ConditionExpression</code> instead. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ConditionalOperator.html">ConditionalOperator</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
186 pub fn get_conditional_operator(&self) -> &::std::option::Option<crate::types::ConditionalOperator> {
187 self.inner.get_conditional_operator()
188 }
189 /// <p>Use <code>ReturnValues</code> if you want to get the item attributes as they appear before or after they are successfully updated. For <code>UpdateItem</code>, the valid values are:</p>
190 /// <ul>
191 /// <li>
192 /// <p><code>NONE</code> - If <code>ReturnValues</code> is not specified, or if its value is <code>NONE</code>, then nothing is returned. (This setting is the default for <code>ReturnValues</code>.)</p></li>
193 /// <li>
194 /// <p><code>ALL_OLD</code> - Returns all of the attributes of the item, as they appeared before the UpdateItem operation.</p></li>
195 /// <li>
196 /// <p><code>UPDATED_OLD</code> - Returns only the updated attributes, as they appeared before the UpdateItem operation.</p></li>
197 /// <li>
198 /// <p><code>ALL_NEW</code> - Returns all of the attributes of the item, as they appear after the UpdateItem operation.</p></li>
199 /// <li>
200 /// <p><code>UPDATED_NEW</code> - Returns only the updated attributes, as they appear after the UpdateItem operation.</p></li>
201 /// </ul>
202 /// <p>There is no additional cost associated with requesting a return value aside from the small network and processing overhead of receiving a larger response. No read capacity units are consumed.</p>
203 /// <p>The values returned are strongly consistent.</p>
204 pub fn return_values(mut self, input: crate::types::ReturnValue) -> Self {
205 self.inner = self.inner.return_values(input);
206 self
207 }
208 /// <p>Use <code>ReturnValues</code> if you want to get the item attributes as they appear before or after they are successfully updated. For <code>UpdateItem</code>, the valid values are:</p>
209 /// <ul>
210 /// <li>
211 /// <p><code>NONE</code> - If <code>ReturnValues</code> is not specified, or if its value is <code>NONE</code>, then nothing is returned. (This setting is the default for <code>ReturnValues</code>.)</p></li>
212 /// <li>
213 /// <p><code>ALL_OLD</code> - Returns all of the attributes of the item, as they appeared before the UpdateItem operation.</p></li>
214 /// <li>
215 /// <p><code>UPDATED_OLD</code> - Returns only the updated attributes, as they appeared before the UpdateItem operation.</p></li>
216 /// <li>
217 /// <p><code>ALL_NEW</code> - Returns all of the attributes of the item, as they appear after the UpdateItem operation.</p></li>
218 /// <li>
219 /// <p><code>UPDATED_NEW</code> - Returns only the updated attributes, as they appear after the UpdateItem operation.</p></li>
220 /// </ul>
221 /// <p>There is no additional cost associated with requesting a return value aside from the small network and processing overhead of receiving a larger response. No read capacity units are consumed.</p>
222 /// <p>The values returned are strongly consistent.</p>
223 pub fn set_return_values(mut self, input: ::std::option::Option<crate::types::ReturnValue>) -> Self {
224 self.inner = self.inner.set_return_values(input);
225 self
226 }
227 /// <p>Use <code>ReturnValues</code> if you want to get the item attributes as they appear before or after they are successfully updated. For <code>UpdateItem</code>, the valid values are:</p>
228 /// <ul>
229 /// <li>
230 /// <p><code>NONE</code> - If <code>ReturnValues</code> is not specified, or if its value is <code>NONE</code>, then nothing is returned. (This setting is the default for <code>ReturnValues</code>.)</p></li>
231 /// <li>
232 /// <p><code>ALL_OLD</code> - Returns all of the attributes of the item, as they appeared before the UpdateItem operation.</p></li>
233 /// <li>
234 /// <p><code>UPDATED_OLD</code> - Returns only the updated attributes, as they appeared before the UpdateItem operation.</p></li>
235 /// <li>
236 /// <p><code>ALL_NEW</code> - Returns all of the attributes of the item, as they appear after the UpdateItem operation.</p></li>
237 /// <li>
238 /// <p><code>UPDATED_NEW</code> - Returns only the updated attributes, as they appear after the UpdateItem operation.</p></li>
239 /// </ul>
240 /// <p>There is no additional cost associated with requesting a return value aside from the small network and processing overhead of receiving a larger response. No read capacity units are consumed.</p>
241 /// <p>The values returned are strongly consistent.</p>
242 pub fn get_return_values(&self) -> &::std::option::Option<crate::types::ReturnValue> {
243 self.inner.get_return_values()
244 }
245 /// <p>Determines the level of detail about either provisioned or on-demand throughput consumption that is returned in the response:</p>
246 /// <ul>
247 /// <li>
248 /// <p><code>INDEXES</code> - The response includes the aggregate <code>ConsumedCapacity</code> for the operation, together with <code>ConsumedCapacity</code> for each table and secondary index that was accessed.</p>
249 /// <p>Note that some operations, such as <code>GetItem</code> and <code>BatchGetItem</code>, do not access any indexes at all. In these cases, specifying <code>INDEXES</code> will only return <code>ConsumedCapacity</code> information for table(s).</p></li>
250 /// <li>
251 /// <p><code>TOTAL</code> - The response includes only the aggregate <code>ConsumedCapacity</code> for the operation.</p></li>
252 /// <li>
253 /// <p><code>NONE</code> - No <code>ConsumedCapacity</code> details are included in the response.</p></li>
254 /// </ul>
255 pub fn return_consumed_capacity(mut self, input: crate::types::ReturnConsumedCapacity) -> Self {
256 self.inner = self.inner.return_consumed_capacity(input);
257 self
258 }
259 /// <p>Determines the level of detail about either provisioned or on-demand throughput consumption that is returned in the response:</p>
260 /// <ul>
261 /// <li>
262 /// <p><code>INDEXES</code> - The response includes the aggregate <code>ConsumedCapacity</code> for the operation, together with <code>ConsumedCapacity</code> for each table and secondary index that was accessed.</p>
263 /// <p>Note that some operations, such as <code>GetItem</code> and <code>BatchGetItem</code>, do not access any indexes at all. In these cases, specifying <code>INDEXES</code> will only return <code>ConsumedCapacity</code> information for table(s).</p></li>
264 /// <li>
265 /// <p><code>TOTAL</code> - The response includes only the aggregate <code>ConsumedCapacity</code> for the operation.</p></li>
266 /// <li>
267 /// <p><code>NONE</code> - No <code>ConsumedCapacity</code> details are included in the response.</p></li>
268 /// </ul>
269 pub fn set_return_consumed_capacity(mut self, input: ::std::option::Option<crate::types::ReturnConsumedCapacity>) -> Self {
270 self.inner = self.inner.set_return_consumed_capacity(input);
271 self
272 }
273 /// <p>Determines the level of detail about either provisioned or on-demand throughput consumption that is returned in the response:</p>
274 /// <ul>
275 /// <li>
276 /// <p><code>INDEXES</code> - The response includes the aggregate <code>ConsumedCapacity</code> for the operation, together with <code>ConsumedCapacity</code> for each table and secondary index that was accessed.</p>
277 /// <p>Note that some operations, such as <code>GetItem</code> and <code>BatchGetItem</code>, do not access any indexes at all. In these cases, specifying <code>INDEXES</code> will only return <code>ConsumedCapacity</code> information for table(s).</p></li>
278 /// <li>
279 /// <p><code>TOTAL</code> - The response includes only the aggregate <code>ConsumedCapacity</code> for the operation.</p></li>
280 /// <li>
281 /// <p><code>NONE</code> - No <code>ConsumedCapacity</code> details are included in the response.</p></li>
282 /// </ul>
283 pub fn get_return_consumed_capacity(&self) -> &::std::option::Option<crate::types::ReturnConsumedCapacity> {
284 self.inner.get_return_consumed_capacity()
285 }
286 /// <p>Determines whether item collection metrics are returned. If set to <code>SIZE</code>, the response includes statistics about item collections, if any, that were modified during the operation are returned in the response. If set to <code>NONE</code> (the default), no statistics are returned.</p>
287 pub fn return_item_collection_metrics(mut self, input: crate::types::ReturnItemCollectionMetrics) -> Self {
288 self.inner = self.inner.return_item_collection_metrics(input);
289 self
290 }
291 /// <p>Determines whether item collection metrics are returned. If set to <code>SIZE</code>, the response includes statistics about item collections, if any, that were modified during the operation are returned in the response. If set to <code>NONE</code> (the default), no statistics are returned.</p>
292 pub fn set_return_item_collection_metrics(mut self, input: ::std::option::Option<crate::types::ReturnItemCollectionMetrics>) -> Self {
293 self.inner = self.inner.set_return_item_collection_metrics(input);
294 self
295 }
296 /// <p>Determines whether item collection metrics are returned. If set to <code>SIZE</code>, the response includes statistics about item collections, if any, that were modified during the operation are returned in the response. If set to <code>NONE</code> (the default), no statistics are returned.</p>
297 pub fn get_return_item_collection_metrics(&self) -> &::std::option::Option<crate::types::ReturnItemCollectionMetrics> {
298 self.inner.get_return_item_collection_metrics()
299 }
300 /// <p>An expression that defines one or more attributes to be updated, the action to be performed on them, and new values for them.</p>
301 /// <p>The following action values are available for <code>UpdateExpression</code>.</p>
302 /// <ul>
303 /// <li>
304 /// <p><code>SET</code> - Adds one or more attributes and values to an item. If any of these attributes already exist, they are replaced by the new values. You can also use <code>SET</code> to add or subtract from an attribute that is of type Number. For example: <code>SET myNum = myNum + :val</code></p>
305 /// <p><code>SET</code> supports the following functions:</p>
306 /// <ul>
307 /// <li>
308 /// <p><code>if_not_exists (path, operand)</code> - if the item does not contain an attribute at the specified path, then <code>if_not_exists</code> evaluates to operand; otherwise, it evaluates to path. You can use this function to avoid overwriting an attribute that may already be present in the item.</p></li>
309 /// <li>
310 /// <p><code>list_append (operand, operand)</code> - evaluates to a list with a new element added to it. You can append the new element to the start or the end of the list by reversing the order of the operands.</p></li>
311 /// </ul>
312 /// <p>These function names are case-sensitive.</p></li>
313 /// <li>
314 /// <p><code>REMOVE</code> - Removes one or more attributes from an item.</p></li>
315 /// <li>
316 /// <p><code>ADD</code> - Adds the specified value to the item, if the attribute does not already exist. If the attribute does exist, then the behavior of <code>ADD</code> depends on the data type of the attribute:</p>
317 /// <ul>
318 /// <li>
319 /// <p>If the existing attribute is a number, and if <code>Value</code> is also a number, then <code>Value</code> is mathematically added to the existing attribute. If <code>Value</code> is a negative number, then it is subtracted from the existing attribute.</p><note>
320 /// <p>If you use <code>ADD</code> to increment or decrement a number value for an item that doesn't exist before the update, DynamoDB uses <code>0</code> as the initial value.</p>
321 /// <p>Similarly, if you use <code>ADD</code> for an existing item to increment or decrement an attribute value that doesn't exist before the update, DynamoDB uses <code>0</code> as the initial value. For example, suppose that the item you want to update doesn't have an attribute named <code>itemcount</code>, but you decide to <code>ADD</code> the number <code>3</code> to this attribute anyway. DynamoDB will create the <code>itemcount</code> attribute, set its initial value to <code>0</code>, and finally add <code>3</code> to it. The result will be a new <code>itemcount</code> attribute in the item, with a value of <code>3</code>.</p>
322 /// </note></li>
323 /// <li>
324 /// <p>If the existing data type is a set and if <code>Value</code> is also a set, then <code>Value</code> is added to the existing set. For example, if the attribute value is the set <code>\[1,2\]</code>, and the <code>ADD</code> action specified <code>\[3\]</code>, then the final attribute value is <code>\[1,2,3\]</code>. An error occurs if an <code>ADD</code> action is specified for a set attribute and the attribute type specified does not match the existing set type.</p>
325 /// <p>Both sets must have the same primitive data type. For example, if the existing data type is a set of strings, the <code>Value</code> must also be a set of strings.</p></li>
326 /// </ul><important>
327 /// <p>The <code>ADD</code> action only supports Number and set data types. In addition, <code>ADD</code> can only be used on top-level attributes, not nested attributes.</p>
328 /// </important></li>
329 /// <li>
330 /// <p><code>DELETE</code> - Deletes an element from a set.</p>
331 /// <p>If a set of values is specified, then those values are subtracted from the old set. For example, if the attribute value was the set <code>\[a,b,c\]</code> and the <code>DELETE</code> action specifies <code>\[a,c\]</code>, then the final attribute value is <code>\[b\]</code>. Specifying an empty set is an error.</p><important>
332 /// <p>The <code>DELETE</code> action only supports set data types. In addition, <code>DELETE</code> can only be used on top-level attributes, not nested attributes.</p>
333 /// </important></li>
334 /// </ul>
335 /// <p>You can have many actions in a single expression, such as the following: <code>SET a=:value1, b=:value2 DELETE :value3, :value4, :value5</code></p>
336 /// <p>For more information on update expressions, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.Modifying.html">Modifying Items and Attributes</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
337 pub fn update_expression(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
338 self.inner = self.inner.update_expression(input.into());
339 self
340 }
341 /// <p>An expression that defines one or more attributes to be updated, the action to be performed on them, and new values for them.</p>
342 /// <p>The following action values are available for <code>UpdateExpression</code>.</p>
343 /// <ul>
344 /// <li>
345 /// <p><code>SET</code> - Adds one or more attributes and values to an item. If any of these attributes already exist, they are replaced by the new values. You can also use <code>SET</code> to add or subtract from an attribute that is of type Number. For example: <code>SET myNum = myNum + :val</code></p>
346 /// <p><code>SET</code> supports the following functions:</p>
347 /// <ul>
348 /// <li>
349 /// <p><code>if_not_exists (path, operand)</code> - if the item does not contain an attribute at the specified path, then <code>if_not_exists</code> evaluates to operand; otherwise, it evaluates to path. You can use this function to avoid overwriting an attribute that may already be present in the item.</p></li>
350 /// <li>
351 /// <p><code>list_append (operand, operand)</code> - evaluates to a list with a new element added to it. You can append the new element to the start or the end of the list by reversing the order of the operands.</p></li>
352 /// </ul>
353 /// <p>These function names are case-sensitive.</p></li>
354 /// <li>
355 /// <p><code>REMOVE</code> - Removes one or more attributes from an item.</p></li>
356 /// <li>
357 /// <p><code>ADD</code> - Adds the specified value to the item, if the attribute does not already exist. If the attribute does exist, then the behavior of <code>ADD</code> depends on the data type of the attribute:</p>
358 /// <ul>
359 /// <li>
360 /// <p>If the existing attribute is a number, and if <code>Value</code> is also a number, then <code>Value</code> is mathematically added to the existing attribute. If <code>Value</code> is a negative number, then it is subtracted from the existing attribute.</p><note>
361 /// <p>If you use <code>ADD</code> to increment or decrement a number value for an item that doesn't exist before the update, DynamoDB uses <code>0</code> as the initial value.</p>
362 /// <p>Similarly, if you use <code>ADD</code> for an existing item to increment or decrement an attribute value that doesn't exist before the update, DynamoDB uses <code>0</code> as the initial value. For example, suppose that the item you want to update doesn't have an attribute named <code>itemcount</code>, but you decide to <code>ADD</code> the number <code>3</code> to this attribute anyway. DynamoDB will create the <code>itemcount</code> attribute, set its initial value to <code>0</code>, and finally add <code>3</code> to it. The result will be a new <code>itemcount</code> attribute in the item, with a value of <code>3</code>.</p>
363 /// </note></li>
364 /// <li>
365 /// <p>If the existing data type is a set and if <code>Value</code> is also a set, then <code>Value</code> is added to the existing set. For example, if the attribute value is the set <code>\[1,2\]</code>, and the <code>ADD</code> action specified <code>\[3\]</code>, then the final attribute value is <code>\[1,2,3\]</code>. An error occurs if an <code>ADD</code> action is specified for a set attribute and the attribute type specified does not match the existing set type.</p>
366 /// <p>Both sets must have the same primitive data type. For example, if the existing data type is a set of strings, the <code>Value</code> must also be a set of strings.</p></li>
367 /// </ul><important>
368 /// <p>The <code>ADD</code> action only supports Number and set data types. In addition, <code>ADD</code> can only be used on top-level attributes, not nested attributes.</p>
369 /// </important></li>
370 /// <li>
371 /// <p><code>DELETE</code> - Deletes an element from a set.</p>
372 /// <p>If a set of values is specified, then those values are subtracted from the old set. For example, if the attribute value was the set <code>\[a,b,c\]</code> and the <code>DELETE</code> action specifies <code>\[a,c\]</code>, then the final attribute value is <code>\[b\]</code>. Specifying an empty set is an error.</p><important>
373 /// <p>The <code>DELETE</code> action only supports set data types. In addition, <code>DELETE</code> can only be used on top-level attributes, not nested attributes.</p>
374 /// </important></li>
375 /// </ul>
376 /// <p>You can have many actions in a single expression, such as the following: <code>SET a=:value1, b=:value2 DELETE :value3, :value4, :value5</code></p>
377 /// <p>For more information on update expressions, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.Modifying.html">Modifying Items and Attributes</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
378 pub fn set_update_expression(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
379 self.inner = self.inner.set_update_expression(input);
380 self
381 }
382 /// <p>An expression that defines one or more attributes to be updated, the action to be performed on them, and new values for them.</p>
383 /// <p>The following action values are available for <code>UpdateExpression</code>.</p>
384 /// <ul>
385 /// <li>
386 /// <p><code>SET</code> - Adds one or more attributes and values to an item. If any of these attributes already exist, they are replaced by the new values. You can also use <code>SET</code> to add or subtract from an attribute that is of type Number. For example: <code>SET myNum = myNum + :val</code></p>
387 /// <p><code>SET</code> supports the following functions:</p>
388 /// <ul>
389 /// <li>
390 /// <p><code>if_not_exists (path, operand)</code> - if the item does not contain an attribute at the specified path, then <code>if_not_exists</code> evaluates to operand; otherwise, it evaluates to path. You can use this function to avoid overwriting an attribute that may already be present in the item.</p></li>
391 /// <li>
392 /// <p><code>list_append (operand, operand)</code> - evaluates to a list with a new element added to it. You can append the new element to the start or the end of the list by reversing the order of the operands.</p></li>
393 /// </ul>
394 /// <p>These function names are case-sensitive.</p></li>
395 /// <li>
396 /// <p><code>REMOVE</code> - Removes one or more attributes from an item.</p></li>
397 /// <li>
398 /// <p><code>ADD</code> - Adds the specified value to the item, if the attribute does not already exist. If the attribute does exist, then the behavior of <code>ADD</code> depends on the data type of the attribute:</p>
399 /// <ul>
400 /// <li>
401 /// <p>If the existing attribute is a number, and if <code>Value</code> is also a number, then <code>Value</code> is mathematically added to the existing attribute. If <code>Value</code> is a negative number, then it is subtracted from the existing attribute.</p><note>
402 /// <p>If you use <code>ADD</code> to increment or decrement a number value for an item that doesn't exist before the update, DynamoDB uses <code>0</code> as the initial value.</p>
403 /// <p>Similarly, if you use <code>ADD</code> for an existing item to increment or decrement an attribute value that doesn't exist before the update, DynamoDB uses <code>0</code> as the initial value. For example, suppose that the item you want to update doesn't have an attribute named <code>itemcount</code>, but you decide to <code>ADD</code> the number <code>3</code> to this attribute anyway. DynamoDB will create the <code>itemcount</code> attribute, set its initial value to <code>0</code>, and finally add <code>3</code> to it. The result will be a new <code>itemcount</code> attribute in the item, with a value of <code>3</code>.</p>
404 /// </note></li>
405 /// <li>
406 /// <p>If the existing data type is a set and if <code>Value</code> is also a set, then <code>Value</code> is added to the existing set. For example, if the attribute value is the set <code>\[1,2\]</code>, and the <code>ADD</code> action specified <code>\[3\]</code>, then the final attribute value is <code>\[1,2,3\]</code>. An error occurs if an <code>ADD</code> action is specified for a set attribute and the attribute type specified does not match the existing set type.</p>
407 /// <p>Both sets must have the same primitive data type. For example, if the existing data type is a set of strings, the <code>Value</code> must also be a set of strings.</p></li>
408 /// </ul><important>
409 /// <p>The <code>ADD</code> action only supports Number and set data types. In addition, <code>ADD</code> can only be used on top-level attributes, not nested attributes.</p>
410 /// </important></li>
411 /// <li>
412 /// <p><code>DELETE</code> - Deletes an element from a set.</p>
413 /// <p>If a set of values is specified, then those values are subtracted from the old set. For example, if the attribute value was the set <code>\[a,b,c\]</code> and the <code>DELETE</code> action specifies <code>\[a,c\]</code>, then the final attribute value is <code>\[b\]</code>. Specifying an empty set is an error.</p><important>
414 /// <p>The <code>DELETE</code> action only supports set data types. In addition, <code>DELETE</code> can only be used on top-level attributes, not nested attributes.</p>
415 /// </important></li>
416 /// </ul>
417 /// <p>You can have many actions in a single expression, such as the following: <code>SET a=:value1, b=:value2 DELETE :value3, :value4, :value5</code></p>
418 /// <p>For more information on update expressions, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.Modifying.html">Modifying Items and Attributes</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
419 pub fn get_update_expression(&self) -> &::std::option::Option<::std::string::String> {
420 self.inner.get_update_expression()
421 }
422 /// <p>A condition that must be satisfied in order for a conditional update to succeed.</p>
423 /// <p>An expression can contain any of the following:</p>
424 /// <ul>
425 /// <li>
426 /// <p>Functions: <code>attribute_exists | attribute_not_exists | attribute_type | contains | begins_with | size</code></p>
427 /// <p>These function names are case-sensitive.</p></li>
428 /// <li>
429 /// <p>Comparison operators: <code>= | <> | < | > | <= | >= | BETWEEN | IN </code></p></li>
430 /// <li>
431 /// <p>Logical operators: <code>AND | OR | NOT</code></p></li>
432 /// </ul>
433 /// <p>For more information about condition expressions, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html">Specifying Conditions</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
434 pub fn condition_expression(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
435 self.inner = self.inner.condition_expression(input.into());
436 self
437 }
438 /// <p>A condition that must be satisfied in order for a conditional update to succeed.</p>
439 /// <p>An expression can contain any of the following:</p>
440 /// <ul>
441 /// <li>
442 /// <p>Functions: <code>attribute_exists | attribute_not_exists | attribute_type | contains | begins_with | size</code></p>
443 /// <p>These function names are case-sensitive.</p></li>
444 /// <li>
445 /// <p>Comparison operators: <code>= | <> | < | > | <= | >= | BETWEEN | IN </code></p></li>
446 /// <li>
447 /// <p>Logical operators: <code>AND | OR | NOT</code></p></li>
448 /// </ul>
449 /// <p>For more information about condition expressions, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html">Specifying Conditions</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
450 pub fn set_condition_expression(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
451 self.inner = self.inner.set_condition_expression(input);
452 self
453 }
454 /// <p>A condition that must be satisfied in order for a conditional update to succeed.</p>
455 /// <p>An expression can contain any of the following:</p>
456 /// <ul>
457 /// <li>
458 /// <p>Functions: <code>attribute_exists | attribute_not_exists | attribute_type | contains | begins_with | size</code></p>
459 /// <p>These function names are case-sensitive.</p></li>
460 /// <li>
461 /// <p>Comparison operators: <code>= | <> | < | > | <= | >= | BETWEEN | IN </code></p></li>
462 /// <li>
463 /// <p>Logical operators: <code>AND | OR | NOT</code></p></li>
464 /// </ul>
465 /// <p>For more information about condition expressions, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html">Specifying Conditions</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
466 pub fn get_condition_expression(&self) -> &::std::option::Option<::std::string::String> {
467 self.inner.get_condition_expression()
468 }
469 ///
470 /// Adds a key-value pair to `ExpressionAttributeNames`.
471 ///
472 /// To override the contents of this collection use [`set_expression_attribute_names`](Self::set_expression_attribute_names).
473 ///
474 /// <p>One or more substitution tokens for attribute names in an expression. The following are some use cases for using <code>ExpressionAttributeNames</code>:</p>
475 /// <ul>
476 /// <li>
477 /// <p>To access an attribute whose name conflicts with a DynamoDB reserved word.</p></li>
478 /// <li>
479 /// <p>To create a placeholder for repeating occurrences of an attribute name in an expression.</p></li>
480 /// <li>
481 /// <p>To prevent special characters in an attribute name from being misinterpreted in an expression.</p></li>
482 /// </ul>
483 /// <p>Use the <b>#</b> character in an expression to dereference an attribute name. For example, consider the following attribute name:</p>
484 /// <ul>
485 /// <li>
486 /// <p><code>Percentile</code></p></li>
487 /// </ul>
488 /// <p>The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html">Reserved Words</a> in the <i>Amazon DynamoDB Developer Guide</i>.) To work around this, you could specify the following for <code>ExpressionAttributeNames</code>:</p>
489 /// <ul>
490 /// <li>
491 /// <p><code>{"#P":"Percentile"}</code></p></li>
492 /// </ul>
493 /// <p>You could then use this substitution in an expression, as in this example:</p>
494 /// <ul>
495 /// <li>
496 /// <p><code>#P = :val</code></p></li>
497 /// </ul><note>
498 /// <p>Tokens that begin with the <b>:</b> character are <i>expression attribute values</i>, which are placeholders for the actual value at runtime.</p>
499 /// </note>
500 /// <p>For more information about expression attribute names, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html">Specifying Item Attributes</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
501 pub fn expression_attribute_names(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
502 self.inner = self.inner.expression_attribute_names(k.into(), v.into());
503 self
504 }
505 /// <p>One or more substitution tokens for attribute names in an expression. The following are some use cases for using <code>ExpressionAttributeNames</code>:</p>
506 /// <ul>
507 /// <li>
508 /// <p>To access an attribute whose name conflicts with a DynamoDB reserved word.</p></li>
509 /// <li>
510 /// <p>To create a placeholder for repeating occurrences of an attribute name in an expression.</p></li>
511 /// <li>
512 /// <p>To prevent special characters in an attribute name from being misinterpreted in an expression.</p></li>
513 /// </ul>
514 /// <p>Use the <b>#</b> character in an expression to dereference an attribute name. For example, consider the following attribute name:</p>
515 /// <ul>
516 /// <li>
517 /// <p><code>Percentile</code></p></li>
518 /// </ul>
519 /// <p>The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html">Reserved Words</a> in the <i>Amazon DynamoDB Developer Guide</i>.) To work around this, you could specify the following for <code>ExpressionAttributeNames</code>:</p>
520 /// <ul>
521 /// <li>
522 /// <p><code>{"#P":"Percentile"}</code></p></li>
523 /// </ul>
524 /// <p>You could then use this substitution in an expression, as in this example:</p>
525 /// <ul>
526 /// <li>
527 /// <p><code>#P = :val</code></p></li>
528 /// </ul><note>
529 /// <p>Tokens that begin with the <b>:</b> character are <i>expression attribute values</i>, which are placeholders for the actual value at runtime.</p>
530 /// </note>
531 /// <p>For more information about expression attribute names, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html">Specifying Item Attributes</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
532 pub fn set_expression_attribute_names(mut self, input: ::std::option::Option<::std::collections::HashMap::<::std::string::String, ::std::string::String>>) -> Self {
533 self.inner = self.inner.set_expression_attribute_names(input);
534 self
535 }
536 /// <p>One or more substitution tokens for attribute names in an expression. The following are some use cases for using <code>ExpressionAttributeNames</code>:</p>
537 /// <ul>
538 /// <li>
539 /// <p>To access an attribute whose name conflicts with a DynamoDB reserved word.</p></li>
540 /// <li>
541 /// <p>To create a placeholder for repeating occurrences of an attribute name in an expression.</p></li>
542 /// <li>
543 /// <p>To prevent special characters in an attribute name from being misinterpreted in an expression.</p></li>
544 /// </ul>
545 /// <p>Use the <b>#</b> character in an expression to dereference an attribute name. For example, consider the following attribute name:</p>
546 /// <ul>
547 /// <li>
548 /// <p><code>Percentile</code></p></li>
549 /// </ul>
550 /// <p>The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html">Reserved Words</a> in the <i>Amazon DynamoDB Developer Guide</i>.) To work around this, you could specify the following for <code>ExpressionAttributeNames</code>:</p>
551 /// <ul>
552 /// <li>
553 /// <p><code>{"#P":"Percentile"}</code></p></li>
554 /// </ul>
555 /// <p>You could then use this substitution in an expression, as in this example:</p>
556 /// <ul>
557 /// <li>
558 /// <p><code>#P = :val</code></p></li>
559 /// </ul><note>
560 /// <p>Tokens that begin with the <b>:</b> character are <i>expression attribute values</i>, which are placeholders for the actual value at runtime.</p>
561 /// </note>
562 /// <p>For more information about expression attribute names, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html">Specifying Item Attributes</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
563 pub fn get_expression_attribute_names(&self) -> &::std::option::Option<::std::collections::HashMap::<::std::string::String, ::std::string::String>> {
564 self.inner.get_expression_attribute_names()
565 }
566 ///
567 /// Adds a key-value pair to `ExpressionAttributeValues`.
568 ///
569 /// To override the contents of this collection use [`set_expression_attribute_values`](Self::set_expression_attribute_values).
570 ///
571 /// <p>One or more values that can be substituted in an expression.</p>
572 /// <p>Use the <b>:</b> (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the <code>ProductStatus</code> attribute was one of the following:</p>
573 /// <p><code>Available | Backordered | Discontinued</code></p>
574 /// <p>You would first need to specify <code>ExpressionAttributeValues</code> as follows:</p>
575 /// <p><code>{ ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} }</code></p>
576 /// <p>You could then use these values in an expression, such as this:</p>
577 /// <p><code>ProductStatus IN (:avail, :back, :disc)</code></p>
578 /// <p>For more information on expression attribute values, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html">Condition Expressions</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
579 pub fn expression_attribute_values(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::AttributeValue) -> Self {
580 self.inner = self.inner.expression_attribute_values(k.into(), v);
581 self
582 }
583 /// <p>One or more values that can be substituted in an expression.</p>
584 /// <p>Use the <b>:</b> (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the <code>ProductStatus</code> attribute was one of the following:</p>
585 /// <p><code>Available | Backordered | Discontinued</code></p>
586 /// <p>You would first need to specify <code>ExpressionAttributeValues</code> as follows:</p>
587 /// <p><code>{ ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} }</code></p>
588 /// <p>You could then use these values in an expression, such as this:</p>
589 /// <p><code>ProductStatus IN (:avail, :back, :disc)</code></p>
590 /// <p>For more information on expression attribute values, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html">Condition Expressions</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
591 pub fn set_expression_attribute_values(mut self, input: ::std::option::Option<::std::collections::HashMap::<::std::string::String, crate::types::AttributeValue>>) -> Self {
592 self.inner = self.inner.set_expression_attribute_values(input);
593 self
594 }
595 /// <p>One or more values that can be substituted in an expression.</p>
596 /// <p>Use the <b>:</b> (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the <code>ProductStatus</code> attribute was one of the following:</p>
597 /// <p><code>Available | Backordered | Discontinued</code></p>
598 /// <p>You would first need to specify <code>ExpressionAttributeValues</code> as follows:</p>
599 /// <p><code>{ ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} }</code></p>
600 /// <p>You could then use these values in an expression, such as this:</p>
601 /// <p><code>ProductStatus IN (:avail, :back, :disc)</code></p>
602 /// <p>For more information on expression attribute values, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html">Condition Expressions</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
603 pub fn get_expression_attribute_values(&self) -> &::std::option::Option<::std::collections::HashMap::<::std::string::String, crate::types::AttributeValue>> {
604 self.inner.get_expression_attribute_values()
605 }
606 /// <p>An optional parameter that returns the item attributes for an <code>UpdateItem</code> operation that failed a condition check.</p>
607 /// <p>There is no additional cost associated with requesting a return value aside from the small network and processing overhead of receiving a larger response. No read capacity units are consumed.</p>
608 pub fn return_values_on_condition_check_failure(mut self, input: crate::types::ReturnValuesOnConditionCheckFailure) -> Self {
609 self.inner = self.inner.return_values_on_condition_check_failure(input);
610 self
611 }
612 /// <p>An optional parameter that returns the item attributes for an <code>UpdateItem</code> operation that failed a condition check.</p>
613 /// <p>There is no additional cost associated with requesting a return value aside from the small network and processing overhead of receiving a larger response. No read capacity units are consumed.</p>
614 pub fn set_return_values_on_condition_check_failure(mut self, input: ::std::option::Option<crate::types::ReturnValuesOnConditionCheckFailure>) -> Self {
615 self.inner = self.inner.set_return_values_on_condition_check_failure(input);
616 self
617 }
618 /// <p>An optional parameter that returns the item attributes for an <code>UpdateItem</code> operation that failed a condition check.</p>
619 /// <p>There is no additional cost associated with requesting a return value aside from the small network and processing overhead of receiving a larger response. No read capacity units are consumed.</p>
620 pub fn get_return_values_on_condition_check_failure(&self) -> &::std::option::Option<crate::types::ReturnValuesOnConditionCheckFailure> {
621 self.inner.get_return_values_on_condition_check_failure()
622 }
623}
624