1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + | /* CodegenDelegator.kt:255 */
|
2 3 | pub use crate::operation::update_item::_update_item_output::UpdateItemOutputBuilder;
|
3 4 |
|
5 + | /* CodegenDelegator.kt:255 */
|
4 6 | pub use crate::operation::update_item::_update_item_input::UpdateItemInputBuilder;
|
5 7 |
|
8 + | /* FluentBuilderGenerator.kt:408 */
|
6 9 | impl crate::operation::update_item::builders::UpdateItemInputBuilder {
|
7 10 | /// Sends a request with this input using the given client.
|
8 11 | pub async fn send_with(
|
9 12 | self,
|
10 13 | client: &crate::Client,
|
11 14 | ) -> ::std::result::Result<
|
12 15 | crate::operation::update_item::UpdateItemOutput,
|
13 16 | ::aws_smithy_runtime_api::client::result::SdkError<
|
14 17 | crate::operation::update_item::UpdateItemError,
|
15 18 | ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
|
16 19 | >,
|
17 20 | > {
|
18 21 | let mut fluent_builder = client.update_item();
|
19 22 | fluent_builder.inner = self;
|
20 23 | fluent_builder.send().await
|
21 24 | }
|
22 25 | }
|
23 - | /// Fluent builder constructing a request to `UpdateItem`.
|
26 + | /// /* FluentBuilderGenerator.kt:129 */Fluent builder constructing a request to `UpdateItem`.
|
24 27 | ///
|
25 - | /// <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>
|
28 + | /// /* FluentBuilderGenerator.kt:130 */<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>
|
26 29 | /// <p>You can also return the item's attribute values in the same <code>UpdateItem</code> operation using the <code>ReturnValues</code> parameter.</p>
|
30 + | /* RustType.kt:516 */
|
27 31 | #[derive(::std::clone::Clone, ::std::fmt::Debug)]
|
32 + | /* FluentBuilderGenerator.kt:270 */
|
28 33 | pub struct UpdateItemFluentBuilder {
|
29 34 | handle: ::std::sync::Arc<crate::client::Handle>,
|
30 35 | inner: crate::operation::update_item::builders::UpdateItemInputBuilder,
|
31 36 | config_override: ::std::option::Option<crate::config::Builder>,
|
32 37 | }
|
38 + | /* FluentBuilderGenerator.kt:381 */
|
33 39 | impl
|
34 40 | crate::client::customize::internal::CustomizableSend<
|
35 41 | crate::operation::update_item::UpdateItemOutput,
|
36 42 | crate::operation::update_item::UpdateItemError,
|
37 43 | > for UpdateItemFluentBuilder
|
38 44 | {
|
39 45 | fn send(
|
40 46 | self,
|
41 47 | config_override: crate::config::Builder,
|
42 48 | ) -> crate::client::customize::internal::BoxFuture<
|
43 49 | crate::client::customize::internal::SendResult<
|
44 50 | crate::operation::update_item::UpdateItemOutput,
|
45 51 | crate::operation::update_item::UpdateItemError,
|
46 52 | >,
|
47 53 | > {
|
48 54 | ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
|
49 55 | }
|
50 56 | }
|
57 + | /* FluentBuilderGenerator.kt:282 */
|
51 58 | impl UpdateItemFluentBuilder {
|
59 + | /* FluentBuilderGenerator.kt:288 */
|
52 60 | /// Creates a new `UpdateItemFluentBuilder`.
|
53 61 | pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
|
54 62 | Self {
|
55 63 | handle,
|
56 64 | inner: ::std::default::Default::default(),
|
57 65 | config_override: ::std::option::Option::None,
|
58 66 | }
|
59 67 | }
|
68 + | /* FluentBuilderGenerator.kt:301 */
|
60 69 | /// Access the UpdateItem as a reference.
|
61 70 | pub fn as_input(&self) -> &crate::operation::update_item::builders::UpdateItemInputBuilder {
|
62 71 | &self.inner
|
63 72 | }
|
73 + | /* FluentBuilderGenerator.kt:145 */
|
64 74 | /// Sends the request and returns the response.
|
65 75 | ///
|
66 76 | /// If an error occurs, an `SdkError` will be returned with additional details that
|
67 77 | /// can be matched against.
|
68 78 | ///
|
69 79 | /// By default, any retryable failures will be retried twice. Retry behavior
|
70 80 | /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
|
71 81 | /// set when configuring the client.
|
72 82 | pub async fn send(
|
73 83 | self,
|
74 84 | ) -> ::std::result::Result<
|
75 85 | crate::operation::update_item::UpdateItemOutput,
|
76 86 | ::aws_smithy_runtime_api::client::result::SdkError<
|
77 87 | crate::operation::update_item::UpdateItemError,
|
78 88 | ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
|
79 89 | >,
|
80 90 | > {
|
81 91 | let input = self
|
82 92 | .inner
|
83 93 | .build()
|
84 94 | .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
|
85 95 | let runtime_plugins = crate::operation::update_item::UpdateItem::operation_runtime_plugins(
|
86 96 | self.handle.runtime_plugins.clone(),
|
87 97 | &self.handle.conf,
|
88 98 | self.config_override,
|
89 99 | );
|
90 100 | crate::operation::update_item::UpdateItem::orchestrate(&runtime_plugins, input).await
|
91 101 | }
|
92 102 |
|
93 103 | /// Consumes this builder, creating a customizable operation that can be modified before being sent.
|
94 104 | pub fn customize(
|
95 105 | self,
|
96 106 | ) -> crate::client::customize::CustomizableOperation<
|
97 107 | crate::operation::update_item::UpdateItemOutput,
|
98 108 | crate::operation::update_item::UpdateItemError,
|
99 109 | Self,
|
100 110 | > {
|
101 111 | crate::client::customize::CustomizableOperation::new(self)
|
102 112 | }
|
113 + | /* FluentBuilderGenerator.kt:315 */
|
103 114 | pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
|
104 115 | self.set_config_override(::std::option::Option::Some(config_override.into()));
|
105 116 | self
|
106 117 | }
|
107 118 |
|
108 119 | pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
|
109 120 | self.config_override = config_override;
|
110 121 | self
|
111 122 | }
|
112 - | /// <p>The name of the table containing the item to update.</p>
|
123 + | /// /* FluentBuilderGenerator.kt:498 */<p>The name of the table containing the item to update.</p>
|
124 + | /* FluentBuilderGenerator.kt:500 */
|
113 125 | pub fn table_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
114 126 | self.inner = self.inner.table_name(input.into());
|
115 127 | self
|
116 128 | }
|
117 - | /// <p>The name of the table containing the item to update.</p>
|
129 + | /// /* FluentBuilderGenerator.kt:498 */<p>The name of the table containing the item to update.</p>
|
130 + | /* FluentBuilderGenerator.kt:500 */
|
118 131 | pub fn set_table_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
119 132 | self.inner = self.inner.set_table_name(input);
|
120 133 | self
|
121 134 | }
|
122 - | /// <p>The name of the table containing the item to update.</p>
|
135 + | /// /* FluentBuilderGenerator.kt:518 */<p>The name of the table containing the item to update.</p>
|
136 + | /* FluentBuilderGenerator.kt:520 */
|
123 137 | pub fn get_table_name(&self) -> &::std::option::Option<::std::string::String> {
|
124 138 | self.inner.get_table_name()
|
125 139 | }
|
126 - | ///
|
140 + | /// /* FluentBuilderGenerator.kt:466 */
|
127 141 | /// Adds a key-value pair to `Key`.
|
128 142 | ///
|
129 143 | /// To override the contents of this collection use [`set_key`](Self::set_key).
|
130 144 | ///
|
131 - | /// <p>The primary key of the item to be updated. Each element consists of an attribute name and a value for that attribute.</p>
|
145 + | /// /* FluentBuilderGenerator.kt:473 */<p>The primary key of the item to be updated. Each element consists of an attribute name and a value for that attribute.</p>
|
132 146 | /// <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>
|
147 + | /* FluentBuilderGenerator.kt:475 */
|
133 148 | pub fn key(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::AttributeValue) -> Self {
|
134 149 | self.inner = self.inner.key(k.into(), v);
|
135 150 | self
|
136 151 | }
|
137 - | /// <p>The primary key of the item to be updated. Each element consists of an attribute name and a value for that attribute.</p>
|
152 + | /// /* FluentBuilderGenerator.kt:498 */<p>The primary key of the item to be updated. Each element consists of an attribute name and a value for that attribute.</p>
|
138 153 | /// <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>
|
154 + | /* FluentBuilderGenerator.kt:500 */
|
139 155 | pub fn set_key(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::AttributeValue>>) -> Self {
|
140 156 | self.inner = self.inner.set_key(input);
|
141 157 | self
|
142 158 | }
|
143 - | /// <p>The primary key of the item to be updated. Each element consists of an attribute name and a value for that attribute.</p>
|
159 + | /// /* FluentBuilderGenerator.kt:518 */<p>The primary key of the item to be updated. Each element consists of an attribute name and a value for that attribute.</p>
|
144 160 | /// <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>
|
161 + | /* FluentBuilderGenerator.kt:520 */
|
145 162 | pub fn get_key(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::AttributeValue>> {
|
146 163 | self.inner.get_key()
|
147 164 | }
|
148 - | ///
|
165 + | /// /* FluentBuilderGenerator.kt:466 */
|
149 166 | /// Adds a key-value pair to `AttributeUpdates`.
|
150 167 | ///
|
151 168 | /// To override the contents of this collection use [`set_attribute_updates`](Self::set_attribute_updates).
|
152 169 | ///
|
153 - | /// <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>
|
170 + | /// /* FluentBuilderGenerator.kt:473 */<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>
|
171 + | /* FluentBuilderGenerator.kt:475 */
|
154 172 | pub fn attribute_updates(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::AttributeValueUpdate) -> Self {
|
155 173 | self.inner = self.inner.attribute_updates(k.into(), v);
|
156 174 | self
|
157 175 | }
|
158 - | /// <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>
|
176 + | /// /* FluentBuilderGenerator.kt:498 */<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>
|
177 + | /* FluentBuilderGenerator.kt:500 */
|
159 178 | pub fn set_attribute_updates(
|
160 179 | mut self,
|
161 180 | input: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::AttributeValueUpdate>>,
|
162 181 | ) -> Self {
|
163 182 | self.inner = self.inner.set_attribute_updates(input);
|
164 183 | self
|
165 184 | }
|
166 - | /// <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>
|
185 + | /// /* FluentBuilderGenerator.kt:518 */<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>
|
186 + | /* FluentBuilderGenerator.kt:520 */
|
167 187 | pub fn get_attribute_updates(
|
168 188 | &self,
|
169 189 | ) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::AttributeValueUpdate>> {
|
170 190 | self.inner.get_attribute_updates()
|
171 191 | }
|
172 - | ///
|
192 + | /// /* FluentBuilderGenerator.kt:466 */
|
173 193 | /// Adds a key-value pair to `Expected`.
|
174 194 | ///
|
175 195 | /// To override the contents of this collection use [`set_expected`](Self::set_expected).
|
176 196 | ///
|
177 - | /// <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>
|
197 + | /// /* FluentBuilderGenerator.kt:473 */<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>
|
198 + | /* FluentBuilderGenerator.kt:475 */
|
178 199 | pub fn expected(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::ExpectedAttributeValue) -> Self {
|
179 200 | self.inner = self.inner.expected(k.into(), v);
|
180 201 | self
|
181 202 | }
|
182 - | /// <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>
|
203 + | /// /* FluentBuilderGenerator.kt:498 */<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>
|
204 + | /* FluentBuilderGenerator.kt:500 */
|
183 205 | pub fn set_expected(
|
184 206 | mut self,
|
185 207 | input: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::ExpectedAttributeValue>>,
|
186 208 | ) -> Self {
|
187 209 | self.inner = self.inner.set_expected(input);
|
188 210 | self
|
189 211 | }
|
190 - | /// <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>
|
212 + | /// /* FluentBuilderGenerator.kt:518 */<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>
|
213 + | /* FluentBuilderGenerator.kt:520 */
|
191 214 | pub fn get_expected(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::ExpectedAttributeValue>> {
|
192 215 | self.inner.get_expected()
|
193 216 | }
|
194 - | /// <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>
|
217 + | /// /* FluentBuilderGenerator.kt:498 */<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>
|
218 + | /* FluentBuilderGenerator.kt:500 */
|
195 219 | pub fn conditional_operator(mut self, input: crate::types::ConditionalOperator) -> Self {
|
196 220 | self.inner = self.inner.conditional_operator(input);
|
197 221 | self
|
198 222 | }
|
199 - | /// <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>
|
223 + | /// /* FluentBuilderGenerator.kt:498 */<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>
|
224 + | /* FluentBuilderGenerator.kt:500 */
|
200 225 | pub fn set_conditional_operator(mut self, input: ::std::option::Option<crate::types::ConditionalOperator>) -> Self {
|
201 226 | self.inner = self.inner.set_conditional_operator(input);
|
202 227 | self
|
203 228 | }
|
204 - | /// <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>
|
229 + | /// /* FluentBuilderGenerator.kt:518 */<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>
|
230 + | /* FluentBuilderGenerator.kt:520 */
|
205 231 | pub fn get_conditional_operator(&self) -> &::std::option::Option<crate::types::ConditionalOperator> {
|
206 232 | self.inner.get_conditional_operator()
|
207 233 | }
|
208 - | /// <p>Use <code>ReturnValues</code> if you want to get the item attributes as they appear before or after they are updated. For <code>UpdateItem</code>, the valid values are:</p>
|
234 + | /// /* FluentBuilderGenerator.kt:498 */<p>Use <code>ReturnValues</code> if you want to get the item attributes as they appear before or after they are updated. For <code>UpdateItem</code>, the valid values are:</p>
|
209 235 | /// <ul>
|
210 236 | /// <li>
|
211 237 | /// <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 238 | /// <li>
|
213 239 | /// <p><code>ALL_OLD</code> - Returns all of the attributes of the item, as they appeared before the UpdateItem operation.</p></li>
|
214 240 | /// <li>
|
215 241 | /// <p><code>UPDATED_OLD</code> - Returns only the updated attributes, as they appeared before the UpdateItem operation.</p></li>
|
216 242 | /// <li>
|
217 243 | /// <p><code>ALL_NEW</code> - Returns all of the attributes of the item, as they appear after the UpdateItem operation.</p></li>
|
218 244 | /// <li>
|
219 245 | /// <p><code>UPDATED_NEW</code> - Returns only the updated attributes, as they appear after the UpdateItem operation.</p></li>
|
220 246 | /// </ul>
|
221 247 | /// <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 248 | /// <p>The values returned are strongly consistent.</p>
|
249 + | /* FluentBuilderGenerator.kt:500 */
|
223 250 | pub fn return_values(mut self, input: crate::types::ReturnValue) -> Self {
|
224 251 | self.inner = self.inner.return_values(input);
|
225 252 | self
|
226 253 | }
|
227 - | /// <p>Use <code>ReturnValues</code> if you want to get the item attributes as they appear before or after they are updated. For <code>UpdateItem</code>, the valid values are:</p>
|
254 + | /// /* FluentBuilderGenerator.kt:498 */<p>Use <code>ReturnValues</code> if you want to get the item attributes as they appear before or after they are updated. For <code>UpdateItem</code>, the valid values are:</p>
|
228 255 | /// <ul>
|
229 256 | /// <li>
|
230 257 | /// <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 258 | /// <li>
|
232 259 | /// <p><code>ALL_OLD</code> - Returns all of the attributes of the item, as they appeared before the UpdateItem operation.</p></li>
|
233 260 | /// <li>
|
234 261 | /// <p><code>UPDATED_OLD</code> - Returns only the updated attributes, as they appeared before the UpdateItem operation.</p></li>
|
235 262 | /// <li>
|
236 263 | /// <p><code>ALL_NEW</code> - Returns all of the attributes of the item, as they appear after the UpdateItem operation.</p></li>
|
237 264 | /// <li>
|
238 265 | /// <p><code>UPDATED_NEW</code> - Returns only the updated attributes, as they appear after the UpdateItem operation.</p></li>
|
239 266 | /// </ul>
|
240 267 | /// <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 268 | /// <p>The values returned are strongly consistent.</p>
|
269 + | /* FluentBuilderGenerator.kt:500 */
|
242 270 | pub fn set_return_values(mut self, input: ::std::option::Option<crate::types::ReturnValue>) -> Self {
|
243 271 | self.inner = self.inner.set_return_values(input);
|
244 272 | self
|
245 273 | }
|
246 - | /// <p>Use <code>ReturnValues</code> if you want to get the item attributes as they appear before or after they are updated. For <code>UpdateItem</code>, the valid values are:</p>
|
274 + | /// /* FluentBuilderGenerator.kt:518 */<p>Use <code>ReturnValues</code> if you want to get the item attributes as they appear before or after they are updated. For <code>UpdateItem</code>, the valid values are:</p>
|
247 275 | /// <ul>
|
248 276 | /// <li>
|
249 277 | /// <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>
|
250 278 | /// <li>
|
251 279 | /// <p><code>ALL_OLD</code> - Returns all of the attributes of the item, as they appeared before the UpdateItem operation.</p></li>
|
252 280 | /// <li>
|
253 281 | /// <p><code>UPDATED_OLD</code> - Returns only the updated attributes, as they appeared before the UpdateItem operation.</p></li>
|
254 282 | /// <li>
|
255 283 | /// <p><code>ALL_NEW</code> - Returns all of the attributes of the item, as they appear after the UpdateItem operation.</p></li>
|
256 284 | /// <li>
|
257 285 | /// <p><code>UPDATED_NEW</code> - Returns only the updated attributes, as they appear after the UpdateItem operation.</p></li>
|
258 286 | /// </ul>
|
259 287 | /// <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>
|
260 288 | /// <p>The values returned are strongly consistent.</p>
|
289 + | /* FluentBuilderGenerator.kt:520 */
|
261 290 | pub fn get_return_values(&self) -> &::std::option::Option<crate::types::ReturnValue> {
|
262 291 | self.inner.get_return_values()
|
263 292 | }
|
264 - | /// <p>Determines the level of detail about provisioned throughput consumption that is returned in the response:</p>
|
293 + | /// /* FluentBuilderGenerator.kt:498 */<p>Determines the level of detail about provisioned throughput consumption that is returned in the response:</p>
|
265 294 | /// <ul>
|
266 295 | /// <li>
|
267 296 | /// <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>
|
268 297 | /// <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>
|
269 298 | /// <li>
|
270 299 | /// <p><code>TOTAL</code> - The response includes only the aggregate <code>ConsumedCapacity</code> for the operation.</p></li>
|
271 300 | /// <li>
|
272 301 | /// <p><code>NONE</code> - No <code>ConsumedCapacity</code> details are included in the response.</p></li>
|
273 302 | /// </ul>
|
303 + | /* FluentBuilderGenerator.kt:500 */
|
274 304 | pub fn return_consumed_capacity(mut self, input: crate::types::ReturnConsumedCapacity) -> Self {
|
275 305 | self.inner = self.inner.return_consumed_capacity(input);
|
276 306 | self
|
277 307 | }
|
278 - | /// <p>Determines the level of detail about provisioned throughput consumption that is returned in the response:</p>
|
308 + | /// /* FluentBuilderGenerator.kt:498 */<p>Determines the level of detail about provisioned throughput consumption that is returned in the response:</p>
|
279 309 | /// <ul>
|
280 310 | /// <li>
|
281 311 | /// <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>
|
282 312 | /// <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>
|
283 313 | /// <li>
|
284 314 | /// <p><code>TOTAL</code> - The response includes only the aggregate <code>ConsumedCapacity</code> for the operation.</p></li>
|
285 315 | /// <li>
|
286 316 | /// <p><code>NONE</code> - No <code>ConsumedCapacity</code> details are included in the response.</p></li>
|
287 317 | /// </ul>
|
318 + | /* FluentBuilderGenerator.kt:500 */
|
288 319 | pub fn set_return_consumed_capacity(mut self, input: ::std::option::Option<crate::types::ReturnConsumedCapacity>) -> Self {
|
289 320 | self.inner = self.inner.set_return_consumed_capacity(input);
|
290 321 | self
|
291 322 | }
|
292 - | /// <p>Determines the level of detail about provisioned throughput consumption that is returned in the response:</p>
|
323 + | /// /* FluentBuilderGenerator.kt:518 */<p>Determines the level of detail about provisioned throughput consumption that is returned in the response:</p>
|
293 324 | /// <ul>
|
294 325 | /// <li>
|
295 326 | /// <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>
|
296 327 | /// <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>
|
297 328 | /// <li>
|
298 329 | /// <p><code>TOTAL</code> - The response includes only the aggregate <code>ConsumedCapacity</code> for the operation.</p></li>
|
299 330 | /// <li>
|
300 331 | /// <p><code>NONE</code> - No <code>ConsumedCapacity</code> details are included in the response.</p></li>
|
301 332 | /// </ul>
|
333 + | /* FluentBuilderGenerator.kt:520 */
|
302 334 | pub fn get_return_consumed_capacity(&self) -> &::std::option::Option<crate::types::ReturnConsumedCapacity> {
|
303 335 | self.inner.get_return_consumed_capacity()
|
304 336 | }
|
305 - | /// <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>
|
337 + | /// /* FluentBuilderGenerator.kt:498 */<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>
|
338 + | /* FluentBuilderGenerator.kt:500 */
|
306 339 | pub fn return_item_collection_metrics(mut self, input: crate::types::ReturnItemCollectionMetrics) -> Self {
|
307 340 | self.inner = self.inner.return_item_collection_metrics(input);
|
308 341 | self
|
309 342 | }
|
310 - | /// <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>
|
343 + | /// /* FluentBuilderGenerator.kt:498 */<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>
|
344 + | /* FluentBuilderGenerator.kt:500 */
|
311 345 | pub fn set_return_item_collection_metrics(mut self, input: ::std::option::Option<crate::types::ReturnItemCollectionMetrics>) -> Self {
|
312 346 | self.inner = self.inner.set_return_item_collection_metrics(input);
|
313 347 | self
|
314 348 | }
|
315 - | /// <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>
|
349 + | /// /* FluentBuilderGenerator.kt:518 */<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>
|
350 + | /* FluentBuilderGenerator.kt:520 */
|
316 351 | pub fn get_return_item_collection_metrics(&self) -> &::std::option::Option<crate::types::ReturnItemCollectionMetrics> {
|
317 352 | self.inner.get_return_item_collection_metrics()
|
318 353 | }
|
319 - | /// <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>
|
354 + | /// /* FluentBuilderGenerator.kt:498 */<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>
|
320 355 | /// <p>The following action values are available for <code>UpdateExpression</code>.</p>
|
321 356 | /// <ul>
|
322 357 | /// <li>
|
323 358 | /// <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>
|
324 359 | /// <p><code>SET</code> supports the following functions:</p>
|
325 360 | /// <ul>
|
326 361 | /// <li>
|
327 362 | /// <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>
|
328 363 | /// <li>
|
329 364 | /// <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>
|
330 365 | /// </ul>
|
331 366 | /// <p>These function names are case-sensitive.</p></li>
|
332 367 | /// <li>
|
333 368 | /// <p><code>REMOVE</code> - Removes one or more attributes from an item.</p></li>
|
334 369 | /// <li>
|
335 370 | /// <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>
|
336 371 | /// <ul>
|
337 372 | /// <li>
|
338 373 | /// <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>
|
339 374 | /// <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>
|
340 375 | /// <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>
|
341 376 | /// </note></li>
|
342 377 | /// <li>
|
343 378 | /// <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>
|
344 379 | /// <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>
|
345 380 | /// </ul><important>
|
346 381 | /// <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>
|
347 382 | /// </important></li>
|
348 383 | /// <li>
|
349 384 | /// <p><code>DELETE</code> - Deletes an element from a set.</p>
|
350 385 | /// <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>
|
351 386 | /// <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>
|
352 387 | /// </important></li>
|
353 388 | /// </ul>
|
354 389 | /// <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>
|
355 390 | /// <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>
|
391 + | /* FluentBuilderGenerator.kt:500 */
|
356 392 | pub fn update_expression(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
357 393 | self.inner = self.inner.update_expression(input.into());
|
358 394 | self
|
359 395 | }
|
360 - | /// <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>
|
396 + | /// /* FluentBuilderGenerator.kt:498 */<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>
|
361 397 | /// <p>The following action values are available for <code>UpdateExpression</code>.</p>
|
362 398 | /// <ul>
|
363 399 | /// <li>
|
364 400 | /// <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>
|
365 401 | /// <p><code>SET</code> supports the following functions:</p>
|
366 402 | /// <ul>
|
367 403 | /// <li>
|
368 404 | /// <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>
|
369 405 | /// <li>
|
370 406 | /// <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>
|
371 407 | /// </ul>
|
372 408 | /// <p>These function names are case-sensitive.</p></li>
|
373 409 | /// <li>
|
374 410 | /// <p><code>REMOVE</code> - Removes one or more attributes from an item.</p></li>
|
375 411 | /// <li>
|
376 412 | /// <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>
|
377 413 | /// <ul>
|
378 414 | /// <li>
|
379 415 | /// <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>
|
380 416 | /// <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>
|
381 417 | /// <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>
|
382 418 | /// </note></li>
|
383 419 | /// <li>
|
384 420 | /// <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>
|
385 421 | /// <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>
|
386 422 | /// </ul><important>
|
387 423 | /// <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>
|
388 424 | /// </important></li>
|
389 425 | /// <li>
|
390 426 | /// <p><code>DELETE</code> - Deletes an element from a set.</p>
|
391 427 | /// <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>
|
392 428 | /// <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>
|
393 429 | /// </important></li>
|
394 430 | /// </ul>
|
395 431 | /// <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>
|
396 432 | /// <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>
|
433 + | /* FluentBuilderGenerator.kt:500 */
|
397 434 | pub fn set_update_expression(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
398 435 | self.inner = self.inner.set_update_expression(input);
|
399 436 | self
|
400 437 | }
|
401 - | /// <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>
|
438 + | /// /* FluentBuilderGenerator.kt:518 */<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>
|
402 439 | /// <p>The following action values are available for <code>UpdateExpression</code>.</p>
|
403 440 | /// <ul>
|
404 441 | /// <li>
|
405 442 | /// <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>
|
406 443 | /// <p><code>SET</code> supports the following functions:</p>
|
407 444 | /// <ul>
|
408 445 | /// <li>
|
409 446 | /// <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>
|
410 447 | /// <li>
|
411 448 | /// <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>
|
412 449 | /// </ul>
|
413 450 | /// <p>These function names are case-sensitive.</p></li>
|
414 451 | /// <li>
|
415 452 | /// <p><code>REMOVE</code> - Removes one or more attributes from an item.</p></li>
|
416 453 | /// <li>
|
417 454 | /// <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>
|
418 455 | /// <ul>
|
419 456 | /// <li>
|
420 457 | /// <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>
|
421 458 | /// <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>
|
422 459 | /// <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>
|
423 460 | /// </note></li>
|
424 461 | /// <li>
|
425 462 | /// <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>
|
426 463 | /// <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>
|
427 464 | /// </ul><important>
|
428 465 | /// <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>
|
429 466 | /// </important></li>
|
430 467 | /// <li>
|
431 468 | /// <p><code>DELETE</code> - Deletes an element from a set.</p>
|
432 469 | /// <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>
|
433 470 | /// <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>
|
434 471 | /// </important></li>
|
435 472 | /// </ul>
|
436 473 | /// <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>
|
437 474 | /// <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>
|
475 + | /* FluentBuilderGenerator.kt:520 */
|
438 476 | pub fn get_update_expression(&self) -> &::std::option::Option<::std::string::String> {
|
439 477 | self.inner.get_update_expression()
|
440 478 | }
|
441 - | /// <p>A condition that must be satisfied in order for a conditional update to succeed.</p>
|
479 + | /// /* FluentBuilderGenerator.kt:498 */<p>A condition that must be satisfied in order for a conditional update to succeed.</p>
|
442 480 | /// <p>An expression can contain any of the following:</p>
|
443 481 | /// <ul>
|
444 482 | /// <li>
|
445 483 | /// <p>Functions: <code>attribute_exists | attribute_not_exists | attribute_type | contains | begins_with | size</code></p>
|
446 484 | /// <p>These function names are case-sensitive.</p></li>
|
447 485 | /// <li>
|
448 486 | /// <p>Comparison operators: <code>= | <> | < | > | <= | >= | BETWEEN | IN </code></p></li>
|
449 487 | /// <li>
|
450 488 | /// <p>Logical operators: <code>AND | OR | NOT</code></p></li>
|
451 489 | /// </ul>
|
452 490 | /// <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>
|
491 + | /* FluentBuilderGenerator.kt:500 */
|
453 492 | pub fn condition_expression(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
454 493 | self.inner = self.inner.condition_expression(input.into());
|
455 494 | self
|
456 495 | }
|
457 - | /// <p>A condition that must be satisfied in order for a conditional update to succeed.</p>
|
496 + | /// /* FluentBuilderGenerator.kt:498 */<p>A condition that must be satisfied in order for a conditional update to succeed.</p>
|
458 497 | /// <p>An expression can contain any of the following:</p>
|
459 498 | /// <ul>
|
460 499 | /// <li>
|
461 500 | /// <p>Functions: <code>attribute_exists | attribute_not_exists | attribute_type | contains | begins_with | size</code></p>
|
462 501 | /// <p>These function names are case-sensitive.</p></li>
|
463 502 | /// <li>
|
464 503 | /// <p>Comparison operators: <code>= | <> | < | > | <= | >= | BETWEEN | IN </code></p></li>
|
465 504 | /// <li>
|
466 505 | /// <p>Logical operators: <code>AND | OR | NOT</code></p></li>
|
467 506 | /// </ul>
|
468 507 | /// <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>
|
508 + | /* FluentBuilderGenerator.kt:500 */
|
469 509 | pub fn set_condition_expression(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
470 510 | self.inner = self.inner.set_condition_expression(input);
|
471 511 | self
|
472 512 | }
|
473 - | /// <p>A condition that must be satisfied in order for a conditional update to succeed.</p>
|
513 + | /// /* FluentBuilderGenerator.kt:518 */<p>A condition that must be satisfied in order for a conditional update to succeed.</p>
|
474 514 | /// <p>An expression can contain any of the following:</p>
|
475 515 | /// <ul>
|
476 516 | /// <li>
|
477 517 | /// <p>Functions: <code>attribute_exists | attribute_not_exists | attribute_type | contains | begins_with | size</code></p>
|
478 518 | /// <p>These function names are case-sensitive.</p></li>
|
479 519 | /// <li>
|
480 520 | /// <p>Comparison operators: <code>= | <> | < | > | <= | >= | BETWEEN | IN </code></p></li>
|
481 521 | /// <li>
|
482 522 | /// <p>Logical operators: <code>AND | OR | NOT</code></p></li>
|
483 523 | /// </ul>
|
484 524 | /// <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>
|
525 + | /* FluentBuilderGenerator.kt:520 */
|
485 526 | pub fn get_condition_expression(&self) -> &::std::option::Option<::std::string::String> {
|
486 527 | self.inner.get_condition_expression()
|
487 528 | }
|
488 - | ///
|
529 + | /// /* FluentBuilderGenerator.kt:466 */
|
489 530 | /// Adds a key-value pair to `ExpressionAttributeNames`.
|
490 531 | ///
|
491 532 | /// To override the contents of this collection use [`set_expression_attribute_names`](Self::set_expression_attribute_names).
|
492 533 | ///
|
493 - | /// <p>One or more substitution tokens for attribute names in an expression. The following are some use cases for using <code>ExpressionAttributeNames</code>:</p>
|
534 + | /// /* FluentBuilderGenerator.kt:473 */<p>One or more substitution tokens for attribute names in an expression. The following are some use cases for using <code>ExpressionAttributeNames</code>:</p>
|
494 535 | /// <ul>
|
495 536 | /// <li>
|
496 537 | /// <p>To access an attribute whose name conflicts with a DynamoDB reserved word.</p></li>
|
497 538 | /// <li>
|
498 539 | /// <p>To create a placeholder for repeating occurrences of an attribute name in an expression.</p></li>
|
499 540 | /// <li>
|
500 541 | /// <p>To prevent special characters in an attribute name from being misinterpreted in an expression.</p></li>
|
501 542 | /// </ul>
|
502 543 | /// <p>Use the <b>#</b> character in an expression to dereference an attribute name. For example, consider the following attribute name:</p>
|
503 544 | /// <ul>
|
504 545 | /// <li>
|
505 546 | /// <p><code>Percentile</code></p></li>
|
506 547 | /// </ul>
|
507 548 | /// <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>
|
508 549 | /// <ul>
|
509 550 | /// <li>
|
510 551 | /// <p><code>{"#P":"Percentile"}</code></p></li>
|
511 552 | /// </ul>
|
512 553 | /// <p>You could then use this substitution in an expression, as in this example:</p>
|
513 554 | /// <ul>
|
514 555 | /// <li>
|
515 556 | /// <p><code>#P = :val</code></p></li>
|
516 557 | /// </ul><note>
|
517 558 | /// <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>
|
518 559 | /// </note>
|
519 560 | /// <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>
|
561 + | /* FluentBuilderGenerator.kt:475 */
|
520 562 | pub fn expression_attribute_names(
|
521 563 | mut self,
|
522 564 | k: impl ::std::convert::Into<::std::string::String>,
|
523 565 | v: impl ::std::convert::Into<::std::string::String>,
|
524 566 | ) -> Self {
|
525 567 | self.inner = self.inner.expression_attribute_names(k.into(), v.into());
|
526 568 | self
|
527 569 | }
|
528 - | /// <p>One or more substitution tokens for attribute names in an expression. The following are some use cases for using <code>ExpressionAttributeNames</code>:</p>
|
570 + | /// /* FluentBuilderGenerator.kt:498 */<p>One or more substitution tokens for attribute names in an expression. The following are some use cases for using <code>ExpressionAttributeNames</code>:</p>
|
529 571 | /// <ul>
|
530 572 | /// <li>
|
531 573 | /// <p>To access an attribute whose name conflicts with a DynamoDB reserved word.</p></li>
|
532 574 | /// <li>
|
533 575 | /// <p>To create a placeholder for repeating occurrences of an attribute name in an expression.</p></li>
|
534 576 | /// <li>
|
535 577 | /// <p>To prevent special characters in an attribute name from being misinterpreted in an expression.</p></li>
|
536 578 | /// </ul>
|
537 579 | /// <p>Use the <b>#</b> character in an expression to dereference an attribute name. For example, consider the following attribute name:</p>
|
538 580 | /// <ul>
|
539 581 | /// <li>
|
540 582 | /// <p><code>Percentile</code></p></li>
|
541 583 | /// </ul>
|
542 584 | /// <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>
|
543 585 | /// <ul>
|
544 586 | /// <li>
|
545 587 | /// <p><code>{"#P":"Percentile"}</code></p></li>
|
546 588 | /// </ul>
|
547 589 | /// <p>You could then use this substitution in an expression, as in this example:</p>
|
548 590 | /// <ul>
|
549 591 | /// <li>
|
550 592 | /// <p><code>#P = :val</code></p></li>
|
551 593 | /// </ul><note>
|
552 594 | /// <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>
|
553 595 | /// </note>
|
554 596 | /// <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>
|
597 + | /* FluentBuilderGenerator.kt:500 */
|
555 598 | pub fn set_expression_attribute_names(
|
556 599 | mut self,
|
557 600 | input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
|
558 601 | ) -> Self {
|
559 602 | self.inner = self.inner.set_expression_attribute_names(input);
|
560 603 | self
|
561 604 | }
|
562 - | /// <p>One or more substitution tokens for attribute names in an expression. The following are some use cases for using <code>ExpressionAttributeNames</code>:</p>
|
605 + | /// /* FluentBuilderGenerator.kt:518 */<p>One or more substitution tokens for attribute names in an expression. The following are some use cases for using <code>ExpressionAttributeNames</code>:</p>
|
563 606 | /// <ul>
|
564 607 | /// <li>
|
565 608 | /// <p>To access an attribute whose name conflicts with a DynamoDB reserved word.</p></li>
|
566 609 | /// <li>
|
567 610 | /// <p>To create a placeholder for repeating occurrences of an attribute name in an expression.</p></li>
|
568 611 | /// <li>
|
569 612 | /// <p>To prevent special characters in an attribute name from being misinterpreted in an expression.</p></li>
|
570 613 | /// </ul>
|
571 614 | /// <p>Use the <b>#</b> character in an expression to dereference an attribute name. For example, consider the following attribute name:</p>
|
572 615 | /// <ul>
|
573 616 | /// <li>
|
574 617 | /// <p><code>Percentile</code></p></li>
|
575 618 | /// </ul>
|
576 619 | /// <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>
|
577 620 | /// <ul>
|
578 621 | /// <li>
|
579 622 | /// <p><code>{"#P":"Percentile"}</code></p></li>
|
580 623 | /// </ul>
|
581 624 | /// <p>You could then use this substitution in an expression, as in this example:</p>
|
582 625 | /// <ul>
|
583 626 | /// <li>
|
584 627 | /// <p><code>#P = :val</code></p></li>
|
585 628 | /// </ul><note>
|
586 629 | /// <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>
|
587 630 | /// </note>
|
588 631 | /// <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>
|
632 + | /* FluentBuilderGenerator.kt:520 */
|
589 633 | pub fn get_expression_attribute_names(
|
590 634 | &self,
|
591 635 | ) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
|
592 636 | self.inner.get_expression_attribute_names()
|
593 637 | }
|
594 - | ///
|
638 + | /// /* FluentBuilderGenerator.kt:466 */
|
595 639 | /// Adds a key-value pair to `ExpressionAttributeValues`.
|
596 640 | ///
|
597 641 | /// To override the contents of this collection use [`set_expression_attribute_values`](Self::set_expression_attribute_values).
|
598 642 | ///
|
599 - | /// <p>One or more values that can be substituted in an expression.</p>
|
643 + | /// /* FluentBuilderGenerator.kt:473 */<p>One or more values that can be substituted in an expression.</p>
|
600 644 | /// <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>
|
601 645 | /// <p><code>Available | Backordered | Discontinued</code></p>
|
602 646 | /// <p>You would first need to specify <code>ExpressionAttributeValues</code> as follows:</p>
|
603 647 | /// <p><code>{ ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} }</code></p>
|
604 648 | /// <p>You could then use these values in an expression, such as this:</p>
|
605 649 | /// <p><code>ProductStatus IN (:avail, :back, :disc)</code></p>
|
606 650 | /// <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>
|
651 + | /* FluentBuilderGenerator.kt:475 */
|
607 652 | pub fn expression_attribute_values(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::AttributeValue) -> Self {
|
608 653 | self.inner = self.inner.expression_attribute_values(k.into(), v);
|
609 654 | self
|
610 655 | }
|
611 - | /// <p>One or more values that can be substituted in an expression.</p>
|
656 + | /// /* FluentBuilderGenerator.kt:498 */<p>One or more values that can be substituted in an expression.</p>
|
612 657 | /// <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>
|
613 658 | /// <p><code>Available | Backordered | Discontinued</code></p>
|
614 659 | /// <p>You would first need to specify <code>ExpressionAttributeValues</code> as follows:</p>
|
615 660 | /// <p><code>{ ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} }</code></p>
|
616 661 | /// <p>You could then use these values in an expression, such as this:</p>
|
617 662 | /// <p><code>ProductStatus IN (:avail, :back, :disc)</code></p>
|
618 663 | /// <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>
|
664 + | /* FluentBuilderGenerator.kt:500 */
|
619 665 | pub fn set_expression_attribute_values(
|
620 666 | mut self,
|
621 667 | input: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::AttributeValue>>,
|
622 668 | ) -> Self {
|
623 669 | self.inner = self.inner.set_expression_attribute_values(input);
|
624 670 | self
|
625 671 | }
|
626 - | /// <p>One or more values that can be substituted in an expression.</p>
|
672 + | /// /* FluentBuilderGenerator.kt:518 */<p>One or more values that can be substituted in an expression.</p>
|
627 673 | /// <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>
|
628 674 | /// <p><code>Available | Backordered | Discontinued</code></p>
|
629 675 | /// <p>You would first need to specify <code>ExpressionAttributeValues</code> as follows:</p>
|
630 676 | /// <p><code>{ ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} }</code></p>
|
631 677 | /// <p>You could then use these values in an expression, such as this:</p>
|
632 678 | /// <p><code>ProductStatus IN (:avail, :back, :disc)</code></p>
|
633 679 | /// <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>
|
680 + | /* FluentBuilderGenerator.kt:520 */
|
634 681 | pub fn get_expression_attribute_values(
|
635 682 | &self,
|
636 683 | ) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::AttributeValue>> {
|
637 684 | self.inner.get_expression_attribute_values()
|
638 685 | }
|
686 + | /* FluentBuilderGenerator.kt:282 */
|
639 687 | }
|