aws_sdk_dynamodb/operation/scan/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::scan::_scan_output::ScanOutputBuilder;
3
4pub use crate::operation::scan::_scan_input::ScanInputBuilder;
5
6impl crate::operation::scan::builders::ScanInputBuilder {
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::scan::ScanOutput,
10                        ::aws_smithy_runtime_api::client::result::SdkError<
11                            crate::operation::scan::ScanError,
12                            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse
13                        >
14                    > {
15                        let mut fluent_builder = client.scan();
16                        fluent_builder.inner = self;
17                        fluent_builder.send().await
18                    }
19                }
20/// Fluent builder constructing a request to `Scan`.
21/// 
22/// <p>The <code>Scan</code> operation returns one or more items and item attributes by accessing every item in a table or a secondary index. To have DynamoDB return fewer items, you can provide a <code>FilterExpression</code> operation.</p>
23/// <p>If the total size of scanned items exceeds the maximum dataset size limit of 1 MB, the scan completes and results are returned to the user. The <code>LastEvaluatedKey</code> value is also returned and the requestor can use the <code>LastEvaluatedKey</code> to continue the scan in a subsequent operation. Each scan response also includes number of items that were scanned (ScannedCount) as part of the request. If using a <code>FilterExpression</code>, a scan result can result in no items meeting the criteria and the <code>Count</code> will result in zero. If you did not use a <code>FilterExpression</code> in the scan request, then <code>Count</code> is the same as <code>ScannedCount</code>.</p><note>
24/// <p><code>Count</code> and <code>ScannedCount</code> only return the count of items specific to a single scan request and, unless the table is less than 1MB, do not represent the total number of items in the table.</p>
25/// </note>
26/// <p>A single <code>Scan</code> operation first reads up to the maximum number of items set (if using the <code>Limit</code> parameter) or a maximum of 1 MB of data and then applies any filtering to the results if a <code>FilterExpression</code> is provided. If <code>LastEvaluatedKey</code> is present in the response, pagination is required to complete the full table scan. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Scan.html#Scan.Pagination">Paginating the Results</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
27/// <p><code>Scan</code> operations proceed sequentially; however, for faster performance on a large table or secondary index, applications can request a parallel <code>Scan</code> operation by providing the <code>Segment</code> and <code>TotalSegments</code> parameters. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Scan.html#Scan.ParallelScan">Parallel Scan</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
28/// <p>By default, a <code>Scan</code> uses eventually consistent reads when accessing the items in a table. Therefore, the results from an eventually consistent <code>Scan</code> may not include the latest item changes at the time the scan iterates through each item in the table. If you require a strongly consistent read of each item as the scan iterates through the items in the table, you can set the <code>ConsistentRead</code> parameter to true. Strong consistency only relates to the consistency of the read at the item level.</p><note>
29/// <p>DynamoDB does not provide snapshot isolation for a scan operation when the <code>ConsistentRead</code> parameter is set to true. Thus, a DynamoDB scan operation does not guarantee that all reads in a scan see a consistent snapshot of the table when the scan operation was requested.</p>
30/// </note>
31#[derive(::std::clone::Clone, ::std::fmt::Debug)]
32pub struct ScanFluentBuilder {
33                handle: ::std::sync::Arc<crate::client::Handle>,
34                inner: crate::operation::scan::builders::ScanInputBuilder,
35config_override: ::std::option::Option<crate::config::Builder>,
36            }
37impl
38                crate::client::customize::internal::CustomizableSend<
39                    crate::operation::scan::ScanOutput,
40                    crate::operation::scan::ScanError,
41                > for ScanFluentBuilder
42            {
43                fn send(
44                    self,
45                    config_override: crate::config::Builder,
46                ) -> crate::client::customize::internal::BoxFuture<
47                    crate::client::customize::internal::SendResult<
48                        crate::operation::scan::ScanOutput,
49                        crate::operation::scan::ScanError,
50                    >,
51                > {
52                    ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
53                }
54            }
55impl ScanFluentBuilder {
56    /// Creates a new `ScanFluentBuilder`.
57                    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
58                        Self {
59                            handle,
60                            inner: ::std::default::Default::default(),
61    config_override: ::std::option::Option::None,
62                        }
63                    }
64    /// Access the Scan as a reference.
65                    pub fn as_input(&self) -> &crate::operation::scan::builders::ScanInputBuilder {
66                        &self.inner
67                    }
68    /// Sends the request and returns the response.
69                    ///
70                    /// If an error occurs, an `SdkError` will be returned with additional details that
71                    /// can be matched against.
72                    ///
73                    /// By default, any retryable failures will be retried twice. Retry behavior
74                    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
75                    /// set when configuring the client.
76                    pub async fn send(self) -> ::std::result::Result<crate::operation::scan::ScanOutput, ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::scan::ScanError, ::aws_smithy_runtime_api::client::orchestrator::HttpResponse>> {
77                        let input = self.inner.build().map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
78                        let runtime_plugins = crate::operation::scan::Scan::operation_runtime_plugins(
79                            self.handle.runtime_plugins.clone(),
80                            &self.handle.conf,
81                            self.config_override,
82                        );
83                        crate::operation::scan::Scan::orchestrate(&runtime_plugins, input).await
84                    }
85    
86                    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
87                    pub fn customize(
88                        self,
89                    ) -> crate::client::customize::CustomizableOperation<crate::operation::scan::ScanOutput, crate::operation::scan::ScanError, Self> {
90                        crate::client::customize::CustomizableOperation::new(self)
91                    }
92    pub(crate) fn config_override(
93                            mut self,
94                            config_override: impl ::std::convert::Into<crate::config::Builder>,
95                        ) -> Self {
96                            self.set_config_override(::std::option::Option::Some(config_override.into()));
97                            self
98                        }
99    
100                        pub(crate) fn set_config_override(
101                            &mut self,
102                            config_override: ::std::option::Option<crate::config::Builder>,
103                        ) -> &mut Self {
104                            self.config_override = config_override;
105                            self
106                        }
107    /// Create a paginator for this request
108                                ///
109                                /// Paginators are used by calling [`send().await`](crate::operation::scan::paginator::ScanPaginator::send) which returns a [`PaginationStream`](aws_smithy_async::future::pagination_stream::PaginationStream).
110                                pub fn into_paginator(self) -> crate::operation::scan::paginator::ScanPaginator {
111                                    crate::operation::scan::paginator::ScanPaginator::new(self.handle, self.inner)
112                                }
113    /// <p>The name of the table containing the requested items or if you provide <code>IndexName</code>, the name of the table to which that index belongs.</p>
114    /// <p>You can also provide the Amazon Resource Name (ARN) of the table in this parameter.</p>
115    pub fn table_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
116                    self.inner = self.inner.table_name(input.into());
117                    self
118                }
119    /// <p>The name of the table containing the requested items or if you provide <code>IndexName</code>, the name of the table to which that index belongs.</p>
120    /// <p>You can also provide the Amazon Resource Name (ARN) of the table in this parameter.</p>
121    pub fn set_table_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
122                    self.inner = self.inner.set_table_name(input);
123                    self
124                }
125    /// <p>The name of the table containing the requested items or if you provide <code>IndexName</code>, the name of the table to which that index belongs.</p>
126    /// <p>You can also provide the Amazon Resource Name (ARN) of the table in this parameter.</p>
127    pub fn get_table_name(&self) -> &::std::option::Option<::std::string::String> {
128                    self.inner.get_table_name()
129                }
130    /// <p>The name of a secondary index to scan. This index can be any local secondary index or global secondary index. Note that if you use the <code>IndexName</code> parameter, you must also provide <code>TableName</code>.</p>
131    pub fn index_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
132                    self.inner = self.inner.index_name(input.into());
133                    self
134                }
135    /// <p>The name of a secondary index to scan. This index can be any local secondary index or global secondary index. Note that if you use the <code>IndexName</code> parameter, you must also provide <code>TableName</code>.</p>
136    pub fn set_index_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
137                    self.inner = self.inner.set_index_name(input);
138                    self
139                }
140    /// <p>The name of a secondary index to scan. This index can be any local secondary index or global secondary index. Note that if you use the <code>IndexName</code> parameter, you must also provide <code>TableName</code>.</p>
141    pub fn get_index_name(&self) -> &::std::option::Option<::std::string::String> {
142                    self.inner.get_index_name()
143                }
144    /// 
145    /// Appends an item to `AttributesToGet`.
146    /// 
147    /// To override the contents of this collection use [`set_attributes_to_get`](Self::set_attributes_to_get).
148    /// 
149    /// <p>This is a legacy parameter. Use <code>ProjectionExpression</code> instead. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributesToGet.html">AttributesToGet</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
150    pub fn attributes_to_get(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
151                        self.inner = self.inner.attributes_to_get(input.into());
152                        self
153                    }
154    /// <p>This is a legacy parameter. Use <code>ProjectionExpression</code> instead. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributesToGet.html">AttributesToGet</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
155    pub fn set_attributes_to_get(mut self, input: ::std::option::Option<::std::vec::Vec::<::std::string::String>>) -> Self {
156                    self.inner = self.inner.set_attributes_to_get(input);
157                    self
158                }
159    /// <p>This is a legacy parameter. Use <code>ProjectionExpression</code> instead. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributesToGet.html">AttributesToGet</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
160    pub fn get_attributes_to_get(&self) -> &::std::option::Option<::std::vec::Vec::<::std::string::String>> {
161                    self.inner.get_attributes_to_get()
162                }
163    /// <p>The maximum number of items to evaluate (not necessarily the number of matching items). If DynamoDB processes the number of items up to the limit while processing the results, it stops the operation and returns the matching values up to that point, and a key in <code>LastEvaluatedKey</code> to apply in a subsequent operation, so that you can pick up where you left off. Also, if the processed dataset size exceeds 1 MB before DynamoDB reaches this limit, it stops the operation and returns the matching values up to the limit, and a key in <code>LastEvaluatedKey</code> to apply in a subsequent operation to continue the operation. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html">Working with Queries</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
164    pub fn limit(mut self, input: i32) -> Self {
165                    self.inner = self.inner.limit(input);
166                    self
167                }
168    /// <p>The maximum number of items to evaluate (not necessarily the number of matching items). If DynamoDB processes the number of items up to the limit while processing the results, it stops the operation and returns the matching values up to that point, and a key in <code>LastEvaluatedKey</code> to apply in a subsequent operation, so that you can pick up where you left off. Also, if the processed dataset size exceeds 1 MB before DynamoDB reaches this limit, it stops the operation and returns the matching values up to the limit, and a key in <code>LastEvaluatedKey</code> to apply in a subsequent operation to continue the operation. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html">Working with Queries</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
169    pub fn set_limit(mut self, input: ::std::option::Option<i32>) -> Self {
170                    self.inner = self.inner.set_limit(input);
171                    self
172                }
173    /// <p>The maximum number of items to evaluate (not necessarily the number of matching items). If DynamoDB processes the number of items up to the limit while processing the results, it stops the operation and returns the matching values up to that point, and a key in <code>LastEvaluatedKey</code> to apply in a subsequent operation, so that you can pick up where you left off. Also, if the processed dataset size exceeds 1 MB before DynamoDB reaches this limit, it stops the operation and returns the matching values up to the limit, and a key in <code>LastEvaluatedKey</code> to apply in a subsequent operation to continue the operation. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html">Working with Queries</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
174    pub fn get_limit(&self) -> &::std::option::Option<i32> {
175                    self.inner.get_limit()
176                }
177    /// <p>The attributes to be returned in the result. You can retrieve all item attributes, specific item attributes, the count of matching items, or in the case of an index, some or all of the attributes projected into the index.</p>
178    /// <ul>
179    /// <li>
180    /// <p><code>ALL_ATTRIBUTES</code> - Returns all of the item attributes from the specified table or index. If you query a local secondary index, then for each matching item in the index, DynamoDB fetches the entire item from the parent table. If the index is configured to project all item attributes, then all of the data can be obtained from the local secondary index, and no fetching is required.</p></li>
181    /// <li>
182    /// <p><code>ALL_PROJECTED_ATTRIBUTES</code> - Allowed only when querying an index. Retrieves all attributes that have been projected into the index. If the index is configured to project all attributes, this return value is equivalent to specifying <code>ALL_ATTRIBUTES</code>.</p></li>
183    /// <li>
184    /// <p><code>COUNT</code> - Returns the number of matching items, rather than the matching items themselves. Note that this uses the same quantity of read capacity units as getting the items, and is subject to the same item size calculations.</p></li>
185    /// <li>
186    /// <p><code>SPECIFIC_ATTRIBUTES</code> - Returns only the attributes listed in <code>ProjectionExpression</code>. This return value is equivalent to specifying <code>ProjectionExpression</code> without specifying any value for <code>Select</code>.</p>
187    /// <p>If you query or scan a local secondary index and request only attributes that are projected into that index, the operation reads only the index and not the table. If any of the requested attributes are not projected into the local secondary index, DynamoDB fetches each of these attributes from the parent table. This extra fetching incurs additional throughput cost and latency.</p>
188    /// <p>If you query or scan a global secondary index, you can only request attributes that are projected into the index. Global secondary index queries cannot fetch attributes from the parent table.</p></li>
189    /// </ul>
190    /// <p>If neither <code>Select</code> nor <code>ProjectionExpression</code> are specified, DynamoDB defaults to <code>ALL_ATTRIBUTES</code> when accessing a table, and <code>ALL_PROJECTED_ATTRIBUTES</code> when accessing an index. You cannot use both <code>Select</code> and <code>ProjectionExpression</code> together in a single request, unless the value for <code>Select</code> is <code>SPECIFIC_ATTRIBUTES</code>. (This usage is equivalent to specifying <code>ProjectionExpression</code> without any value for <code>Select</code>.)</p><note>
191    /// <p>If you use the <code>ProjectionExpression</code> parameter, then the value for <code>Select</code> can only be <code>SPECIFIC_ATTRIBUTES</code>. Any other value for <code>Select</code> will return an error.</p>
192    /// </note>
193    pub fn select(mut self, input: crate::types::Select) -> Self {
194                    self.inner = self.inner.select(input);
195                    self
196                }
197    /// <p>The attributes to be returned in the result. You can retrieve all item attributes, specific item attributes, the count of matching items, or in the case of an index, some or all of the attributes projected into the index.</p>
198    /// <ul>
199    /// <li>
200    /// <p><code>ALL_ATTRIBUTES</code> - Returns all of the item attributes from the specified table or index. If you query a local secondary index, then for each matching item in the index, DynamoDB fetches the entire item from the parent table. If the index is configured to project all item attributes, then all of the data can be obtained from the local secondary index, and no fetching is required.</p></li>
201    /// <li>
202    /// <p><code>ALL_PROJECTED_ATTRIBUTES</code> - Allowed only when querying an index. Retrieves all attributes that have been projected into the index. If the index is configured to project all attributes, this return value is equivalent to specifying <code>ALL_ATTRIBUTES</code>.</p></li>
203    /// <li>
204    /// <p><code>COUNT</code> - Returns the number of matching items, rather than the matching items themselves. Note that this uses the same quantity of read capacity units as getting the items, and is subject to the same item size calculations.</p></li>
205    /// <li>
206    /// <p><code>SPECIFIC_ATTRIBUTES</code> - Returns only the attributes listed in <code>ProjectionExpression</code>. This return value is equivalent to specifying <code>ProjectionExpression</code> without specifying any value for <code>Select</code>.</p>
207    /// <p>If you query or scan a local secondary index and request only attributes that are projected into that index, the operation reads only the index and not the table. If any of the requested attributes are not projected into the local secondary index, DynamoDB fetches each of these attributes from the parent table. This extra fetching incurs additional throughput cost and latency.</p>
208    /// <p>If you query or scan a global secondary index, you can only request attributes that are projected into the index. Global secondary index queries cannot fetch attributes from the parent table.</p></li>
209    /// </ul>
210    /// <p>If neither <code>Select</code> nor <code>ProjectionExpression</code> are specified, DynamoDB defaults to <code>ALL_ATTRIBUTES</code> when accessing a table, and <code>ALL_PROJECTED_ATTRIBUTES</code> when accessing an index. You cannot use both <code>Select</code> and <code>ProjectionExpression</code> together in a single request, unless the value for <code>Select</code> is <code>SPECIFIC_ATTRIBUTES</code>. (This usage is equivalent to specifying <code>ProjectionExpression</code> without any value for <code>Select</code>.)</p><note>
211    /// <p>If you use the <code>ProjectionExpression</code> parameter, then the value for <code>Select</code> can only be <code>SPECIFIC_ATTRIBUTES</code>. Any other value for <code>Select</code> will return an error.</p>
212    /// </note>
213    pub fn set_select(mut self, input: ::std::option::Option<crate::types::Select>) -> Self {
214                    self.inner = self.inner.set_select(input);
215                    self
216                }
217    /// <p>The attributes to be returned in the result. You can retrieve all item attributes, specific item attributes, the count of matching items, or in the case of an index, some or all of the attributes projected into the index.</p>
218    /// <ul>
219    /// <li>
220    /// <p><code>ALL_ATTRIBUTES</code> - Returns all of the item attributes from the specified table or index. If you query a local secondary index, then for each matching item in the index, DynamoDB fetches the entire item from the parent table. If the index is configured to project all item attributes, then all of the data can be obtained from the local secondary index, and no fetching is required.</p></li>
221    /// <li>
222    /// <p><code>ALL_PROJECTED_ATTRIBUTES</code> - Allowed only when querying an index. Retrieves all attributes that have been projected into the index. If the index is configured to project all attributes, this return value is equivalent to specifying <code>ALL_ATTRIBUTES</code>.</p></li>
223    /// <li>
224    /// <p><code>COUNT</code> - Returns the number of matching items, rather than the matching items themselves. Note that this uses the same quantity of read capacity units as getting the items, and is subject to the same item size calculations.</p></li>
225    /// <li>
226    /// <p><code>SPECIFIC_ATTRIBUTES</code> - Returns only the attributes listed in <code>ProjectionExpression</code>. This return value is equivalent to specifying <code>ProjectionExpression</code> without specifying any value for <code>Select</code>.</p>
227    /// <p>If you query or scan a local secondary index and request only attributes that are projected into that index, the operation reads only the index and not the table. If any of the requested attributes are not projected into the local secondary index, DynamoDB fetches each of these attributes from the parent table. This extra fetching incurs additional throughput cost and latency.</p>
228    /// <p>If you query or scan a global secondary index, you can only request attributes that are projected into the index. Global secondary index queries cannot fetch attributes from the parent table.</p></li>
229    /// </ul>
230    /// <p>If neither <code>Select</code> nor <code>ProjectionExpression</code> are specified, DynamoDB defaults to <code>ALL_ATTRIBUTES</code> when accessing a table, and <code>ALL_PROJECTED_ATTRIBUTES</code> when accessing an index. You cannot use both <code>Select</code> and <code>ProjectionExpression</code> together in a single request, unless the value for <code>Select</code> is <code>SPECIFIC_ATTRIBUTES</code>. (This usage is equivalent to specifying <code>ProjectionExpression</code> without any value for <code>Select</code>.)</p><note>
231    /// <p>If you use the <code>ProjectionExpression</code> parameter, then the value for <code>Select</code> can only be <code>SPECIFIC_ATTRIBUTES</code>. Any other value for <code>Select</code> will return an error.</p>
232    /// </note>
233    pub fn get_select(&self) -> &::std::option::Option<crate::types::Select> {
234                    self.inner.get_select()
235                }
236    /// 
237    /// Adds a key-value pair to `ScanFilter`.
238    /// 
239    /// To override the contents of this collection use [`set_scan_filter`](Self::set_scan_filter).
240    /// 
241    /// <p>This is a legacy parameter. Use <code>FilterExpression</code> instead. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ScanFilter.html">ScanFilter</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
242    pub fn scan_filter(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::Condition) -> Self {
243                    self.inner = self.inner.scan_filter(k.into(), v);
244                    self
245                }
246    /// <p>This is a legacy parameter. Use <code>FilterExpression</code> instead. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ScanFilter.html">ScanFilter</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
247    pub fn set_scan_filter(mut self, input: ::std::option::Option<::std::collections::HashMap::<::std::string::String, crate::types::Condition>>) -> Self {
248                    self.inner = self.inner.set_scan_filter(input);
249                    self
250                }
251    /// <p>This is a legacy parameter. Use <code>FilterExpression</code> instead. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ScanFilter.html">ScanFilter</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
252    pub fn get_scan_filter(&self) -> &::std::option::Option<::std::collections::HashMap::<::std::string::String, crate::types::Condition>> {
253                    self.inner.get_scan_filter()
254                }
255    /// <p>This is a legacy parameter. Use <code>FilterExpression</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>
256    pub fn conditional_operator(mut self, input: crate::types::ConditionalOperator) -> Self {
257                    self.inner = self.inner.conditional_operator(input);
258                    self
259                }
260    /// <p>This is a legacy parameter. Use <code>FilterExpression</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>
261    pub fn set_conditional_operator(mut self, input: ::std::option::Option<crate::types::ConditionalOperator>) -> Self {
262                    self.inner = self.inner.set_conditional_operator(input);
263                    self
264                }
265    /// <p>This is a legacy parameter. Use <code>FilterExpression</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>
266    pub fn get_conditional_operator(&self) -> &::std::option::Option<crate::types::ConditionalOperator> {
267                    self.inner.get_conditional_operator()
268                }
269    /// 
270    /// Adds a key-value pair to `ExclusiveStartKey`.
271    /// 
272    /// To override the contents of this collection use [`set_exclusive_start_key`](Self::set_exclusive_start_key).
273    /// 
274    /// <p>The primary key of the first item that this operation will evaluate. Use the value that was returned for <code>LastEvaluatedKey</code> in the previous operation.</p>
275    /// <p>The data type for <code>ExclusiveStartKey</code> must be String, Number or Binary. No set data types are allowed.</p>
276    /// <p>In a parallel scan, a <code>Scan</code> request that includes <code>ExclusiveStartKey</code> must specify the same segment whose previous <code>Scan</code> returned the corresponding value of <code>LastEvaluatedKey</code>.</p>
277    pub fn exclusive_start_key(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::AttributeValue) -> Self {
278                    self.inner = self.inner.exclusive_start_key(k.into(), v);
279                    self
280                }
281    /// <p>The primary key of the first item that this operation will evaluate. Use the value that was returned for <code>LastEvaluatedKey</code> in the previous operation.</p>
282    /// <p>The data type for <code>ExclusiveStartKey</code> must be String, Number or Binary. No set data types are allowed.</p>
283    /// <p>In a parallel scan, a <code>Scan</code> request that includes <code>ExclusiveStartKey</code> must specify the same segment whose previous <code>Scan</code> returned the corresponding value of <code>LastEvaluatedKey</code>.</p>
284    pub fn set_exclusive_start_key(mut self, input: ::std::option::Option<::std::collections::HashMap::<::std::string::String, crate::types::AttributeValue>>) -> Self {
285                    self.inner = self.inner.set_exclusive_start_key(input);
286                    self
287                }
288    /// <p>The primary key of the first item that this operation will evaluate. Use the value that was returned for <code>LastEvaluatedKey</code> in the previous operation.</p>
289    /// <p>The data type for <code>ExclusiveStartKey</code> must be String, Number or Binary. No set data types are allowed.</p>
290    /// <p>In a parallel scan, a <code>Scan</code> request that includes <code>ExclusiveStartKey</code> must specify the same segment whose previous <code>Scan</code> returned the corresponding value of <code>LastEvaluatedKey</code>.</p>
291    pub fn get_exclusive_start_key(&self) -> &::std::option::Option<::std::collections::HashMap::<::std::string::String, crate::types::AttributeValue>> {
292                    self.inner.get_exclusive_start_key()
293                }
294    /// <p>Determines the level of detail about either provisioned or on-demand throughput consumption that is returned in the response:</p>
295    /// <ul>
296    /// <li>
297    /// <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>
298    /// <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>
299    /// <li>
300    /// <p><code>TOTAL</code> - The response includes only the aggregate <code>ConsumedCapacity</code> for the operation.</p></li>
301    /// <li>
302    /// <p><code>NONE</code> - No <code>ConsumedCapacity</code> details are included in the response.</p></li>
303    /// </ul>
304    pub fn return_consumed_capacity(mut self, input: crate::types::ReturnConsumedCapacity) -> Self {
305                    self.inner = self.inner.return_consumed_capacity(input);
306                    self
307                }
308    /// <p>Determines the level of detail about either provisioned or on-demand throughput consumption that is returned in the response:</p>
309    /// <ul>
310    /// <li>
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>
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>
313    /// <li>
314    /// <p><code>TOTAL</code> - The response includes only the aggregate <code>ConsumedCapacity</code> for the operation.</p></li>
315    /// <li>
316    /// <p><code>NONE</code> - No <code>ConsumedCapacity</code> details are included in the response.</p></li>
317    /// </ul>
318    pub fn set_return_consumed_capacity(mut self, input: ::std::option::Option<crate::types::ReturnConsumedCapacity>) -> Self {
319                    self.inner = self.inner.set_return_consumed_capacity(input);
320                    self
321                }
322    /// <p>Determines the level of detail about either provisioned or on-demand throughput consumption that is returned in the response:</p>
323    /// <ul>
324    /// <li>
325    /// <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>
326    /// <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>
327    /// <li>
328    /// <p><code>TOTAL</code> - The response includes only the aggregate <code>ConsumedCapacity</code> for the operation.</p></li>
329    /// <li>
330    /// <p><code>NONE</code> - No <code>ConsumedCapacity</code> details are included in the response.</p></li>
331    /// </ul>
332    pub fn get_return_consumed_capacity(&self) -> &::std::option::Option<crate::types::ReturnConsumedCapacity> {
333                    self.inner.get_return_consumed_capacity()
334                }
335    /// <p>For a parallel <code>Scan</code> request, <code>TotalSegments</code> represents the total number of segments into which the <code>Scan</code> operation will be divided. The value of <code>TotalSegments</code> corresponds to the number of application workers that will perform the parallel scan. For example, if you want to use four application threads to scan a table or an index, specify a <code>TotalSegments</code> value of 4.</p>
336    /// <p>The value for <code>TotalSegments</code> must be greater than or equal to 1, and less than or equal to 1000000. If you specify a <code>TotalSegments</code> value of 1, the <code>Scan</code> operation will be sequential rather than parallel.</p>
337    /// <p>If you specify <code>TotalSegments</code>, you must also specify <code>Segment</code>.</p>
338    pub fn total_segments(mut self, input: i32) -> Self {
339                    self.inner = self.inner.total_segments(input);
340                    self
341                }
342    /// <p>For a parallel <code>Scan</code> request, <code>TotalSegments</code> represents the total number of segments into which the <code>Scan</code> operation will be divided. The value of <code>TotalSegments</code> corresponds to the number of application workers that will perform the parallel scan. For example, if you want to use four application threads to scan a table or an index, specify a <code>TotalSegments</code> value of 4.</p>
343    /// <p>The value for <code>TotalSegments</code> must be greater than or equal to 1, and less than or equal to 1000000. If you specify a <code>TotalSegments</code> value of 1, the <code>Scan</code> operation will be sequential rather than parallel.</p>
344    /// <p>If you specify <code>TotalSegments</code>, you must also specify <code>Segment</code>.</p>
345    pub fn set_total_segments(mut self, input: ::std::option::Option<i32>) -> Self {
346                    self.inner = self.inner.set_total_segments(input);
347                    self
348                }
349    /// <p>For a parallel <code>Scan</code> request, <code>TotalSegments</code> represents the total number of segments into which the <code>Scan</code> operation will be divided. The value of <code>TotalSegments</code> corresponds to the number of application workers that will perform the parallel scan. For example, if you want to use four application threads to scan a table or an index, specify a <code>TotalSegments</code> value of 4.</p>
350    /// <p>The value for <code>TotalSegments</code> must be greater than or equal to 1, and less than or equal to 1000000. If you specify a <code>TotalSegments</code> value of 1, the <code>Scan</code> operation will be sequential rather than parallel.</p>
351    /// <p>If you specify <code>TotalSegments</code>, you must also specify <code>Segment</code>.</p>
352    pub fn get_total_segments(&self) -> &::std::option::Option<i32> {
353                    self.inner.get_total_segments()
354                }
355    /// <p>For a parallel <code>Scan</code> request, <code>Segment</code> identifies an individual segment to be scanned by an application worker.</p>
356    /// <p>Segment IDs are zero-based, so the first segment is always 0. For example, if you want to use four application threads to scan a table or an index, then the first thread specifies a <code>Segment</code> value of 0, the second thread specifies 1, and so on.</p>
357    /// <p>The value of <code>LastEvaluatedKey</code> returned from a parallel <code>Scan</code> request must be used as <code>ExclusiveStartKey</code> with the same segment ID in a subsequent <code>Scan</code> operation.</p>
358    /// <p>The value for <code>Segment</code> must be greater than or equal to 0, and less than the value provided for <code>TotalSegments</code>.</p>
359    /// <p>If you provide <code>Segment</code>, you must also provide <code>TotalSegments</code>.</p>
360    pub fn segment(mut self, input: i32) -> Self {
361                    self.inner = self.inner.segment(input);
362                    self
363                }
364    /// <p>For a parallel <code>Scan</code> request, <code>Segment</code> identifies an individual segment to be scanned by an application worker.</p>
365    /// <p>Segment IDs are zero-based, so the first segment is always 0. For example, if you want to use four application threads to scan a table or an index, then the first thread specifies a <code>Segment</code> value of 0, the second thread specifies 1, and so on.</p>
366    /// <p>The value of <code>LastEvaluatedKey</code> returned from a parallel <code>Scan</code> request must be used as <code>ExclusiveStartKey</code> with the same segment ID in a subsequent <code>Scan</code> operation.</p>
367    /// <p>The value for <code>Segment</code> must be greater than or equal to 0, and less than the value provided for <code>TotalSegments</code>.</p>
368    /// <p>If you provide <code>Segment</code>, you must also provide <code>TotalSegments</code>.</p>
369    pub fn set_segment(mut self, input: ::std::option::Option<i32>) -> Self {
370                    self.inner = self.inner.set_segment(input);
371                    self
372                }
373    /// <p>For a parallel <code>Scan</code> request, <code>Segment</code> identifies an individual segment to be scanned by an application worker.</p>
374    /// <p>Segment IDs are zero-based, so the first segment is always 0. For example, if you want to use four application threads to scan a table or an index, then the first thread specifies a <code>Segment</code> value of 0, the second thread specifies 1, and so on.</p>
375    /// <p>The value of <code>LastEvaluatedKey</code> returned from a parallel <code>Scan</code> request must be used as <code>ExclusiveStartKey</code> with the same segment ID in a subsequent <code>Scan</code> operation.</p>
376    /// <p>The value for <code>Segment</code> must be greater than or equal to 0, and less than the value provided for <code>TotalSegments</code>.</p>
377    /// <p>If you provide <code>Segment</code>, you must also provide <code>TotalSegments</code>.</p>
378    pub fn get_segment(&self) -> &::std::option::Option<i32> {
379                    self.inner.get_segment()
380                }
381    /// <p>A string that identifies one or more attributes to retrieve from the specified table or index. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.</p>
382    /// <p>If no attribute names are specified, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.</p>
383    /// <p>For more information, 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>
384    pub fn projection_expression(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
385                    self.inner = self.inner.projection_expression(input.into());
386                    self
387                }
388    /// <p>A string that identifies one or more attributes to retrieve from the specified table or index. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.</p>
389    /// <p>If no attribute names are specified, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.</p>
390    /// <p>For more information, 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>
391    pub fn set_projection_expression(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
392                    self.inner = self.inner.set_projection_expression(input);
393                    self
394                }
395    /// <p>A string that identifies one or more attributes to retrieve from the specified table or index. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.</p>
396    /// <p>If no attribute names are specified, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.</p>
397    /// <p>For more information, 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>
398    pub fn get_projection_expression(&self) -> &::std::option::Option<::std::string::String> {
399                    self.inner.get_projection_expression()
400                }
401    /// <p>A string that contains conditions that DynamoDB applies after the <code>Scan</code> operation, but before the data is returned to you. Items that do not satisfy the <code>FilterExpression</code> criteria are not returned.</p><note>
402    /// <p>A <code>FilterExpression</code> is applied after the items have already been read; the process of filtering does not consume any additional read capacity units.</p>
403    /// </note>
404    /// <p>For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Scan.html#Scan.FilterExpression">Filter Expressions</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
405    pub fn filter_expression(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
406                    self.inner = self.inner.filter_expression(input.into());
407                    self
408                }
409    /// <p>A string that contains conditions that DynamoDB applies after the <code>Scan</code> operation, but before the data is returned to you. Items that do not satisfy the <code>FilterExpression</code> criteria are not returned.</p><note>
410    /// <p>A <code>FilterExpression</code> is applied after the items have already been read; the process of filtering does not consume any additional read capacity units.</p>
411    /// </note>
412    /// <p>For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Scan.html#Scan.FilterExpression">Filter Expressions</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
413    pub fn set_filter_expression(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
414                    self.inner = self.inner.set_filter_expression(input);
415                    self
416                }
417    /// <p>A string that contains conditions that DynamoDB applies after the <code>Scan</code> operation, but before the data is returned to you. Items that do not satisfy the <code>FilterExpression</code> criteria are not returned.</p><note>
418    /// <p>A <code>FilterExpression</code> is applied after the items have already been read; the process of filtering does not consume any additional read capacity units.</p>
419    /// </note>
420    /// <p>For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Scan.html#Scan.FilterExpression">Filter Expressions</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
421    pub fn get_filter_expression(&self) -> &::std::option::Option<::std::string::String> {
422                    self.inner.get_filter_expression()
423                }
424    /// 
425    /// Adds a key-value pair to `ExpressionAttributeNames`.
426    /// 
427    /// To override the contents of this collection use [`set_expression_attribute_names`](Self::set_expression_attribute_names).
428    /// 
429    /// <p>One or more substitution tokens for attribute names in an expression. The following are some use cases for using <code>ExpressionAttributeNames</code>:</p>
430    /// <ul>
431    /// <li>
432    /// <p>To access an attribute whose name conflicts with a DynamoDB reserved word.</p></li>
433    /// <li>
434    /// <p>To create a placeholder for repeating occurrences of an attribute name in an expression.</p></li>
435    /// <li>
436    /// <p>To prevent special characters in an attribute name from being misinterpreted in an expression.</p></li>
437    /// </ul>
438    /// <p>Use the <b>#</b> character in an expression to dereference an attribute name. For example, consider the following attribute name:</p>
439    /// <ul>
440    /// <li>
441    /// <p><code>Percentile</code></p></li>
442    /// </ul>
443    /// <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>
444    /// <ul>
445    /// <li>
446    /// <p><code>{"#P":"Percentile"}</code></p></li>
447    /// </ul>
448    /// <p>You could then use this substitution in an expression, as in this example:</p>
449    /// <ul>
450    /// <li>
451    /// <p><code>#P = :val</code></p></li>
452    /// </ul><note>
453    /// <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>
454    /// </note>
455    /// <p>For more information on 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>
456    pub fn expression_attribute_names(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
457                    self.inner = self.inner.expression_attribute_names(k.into(), v.into());
458                    self
459                }
460    /// <p>One or more substitution tokens for attribute names in an expression. The following are some use cases for using <code>ExpressionAttributeNames</code>:</p>
461    /// <ul>
462    /// <li>
463    /// <p>To access an attribute whose name conflicts with a DynamoDB reserved word.</p></li>
464    /// <li>
465    /// <p>To create a placeholder for repeating occurrences of an attribute name in an expression.</p></li>
466    /// <li>
467    /// <p>To prevent special characters in an attribute name from being misinterpreted in an expression.</p></li>
468    /// </ul>
469    /// <p>Use the <b>#</b> character in an expression to dereference an attribute name. For example, consider the following attribute name:</p>
470    /// <ul>
471    /// <li>
472    /// <p><code>Percentile</code></p></li>
473    /// </ul>
474    /// <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>
475    /// <ul>
476    /// <li>
477    /// <p><code>{"#P":"Percentile"}</code></p></li>
478    /// </ul>
479    /// <p>You could then use this substitution in an expression, as in this example:</p>
480    /// <ul>
481    /// <li>
482    /// <p><code>#P = :val</code></p></li>
483    /// </ul><note>
484    /// <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>
485    /// </note>
486    /// <p>For more information on 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>
487    pub fn set_expression_attribute_names(mut self, input: ::std::option::Option<::std::collections::HashMap::<::std::string::String, ::std::string::String>>) -> Self {
488                    self.inner = self.inner.set_expression_attribute_names(input);
489                    self
490                }
491    /// <p>One or more substitution tokens for attribute names in an expression. The following are some use cases for using <code>ExpressionAttributeNames</code>:</p>
492    /// <ul>
493    /// <li>
494    /// <p>To access an attribute whose name conflicts with a DynamoDB reserved word.</p></li>
495    /// <li>
496    /// <p>To create a placeholder for repeating occurrences of an attribute name in an expression.</p></li>
497    /// <li>
498    /// <p>To prevent special characters in an attribute name from being misinterpreted in an expression.</p></li>
499    /// </ul>
500    /// <p>Use the <b>#</b> character in an expression to dereference an attribute name. For example, consider the following attribute name:</p>
501    /// <ul>
502    /// <li>
503    /// <p><code>Percentile</code></p></li>
504    /// </ul>
505    /// <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>
506    /// <ul>
507    /// <li>
508    /// <p><code>{"#P":"Percentile"}</code></p></li>
509    /// </ul>
510    /// <p>You could then use this substitution in an expression, as in this example:</p>
511    /// <ul>
512    /// <li>
513    /// <p><code>#P = :val</code></p></li>
514    /// </ul><note>
515    /// <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>
516    /// </note>
517    /// <p>For more information on 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>
518    pub fn get_expression_attribute_names(&self) -> &::std::option::Option<::std::collections::HashMap::<::std::string::String, ::std::string::String>> {
519                    self.inner.get_expression_attribute_names()
520                }
521    /// 
522    /// Adds a key-value pair to `ExpressionAttributeValues`.
523    /// 
524    /// To override the contents of this collection use [`set_expression_attribute_values`](Self::set_expression_attribute_values).
525    /// 
526    /// <p>One or more values that can be substituted in an expression.</p>
527    /// <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>
528    /// <p><code>Available | Backordered | Discontinued</code></p>
529    /// <p>You would first need to specify <code>ExpressionAttributeValues</code> as follows:</p>
530    /// <p><code>{ ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} }</code></p>
531    /// <p>You could then use these values in an expression, such as this:</p>
532    /// <p><code>ProductStatus IN (:avail, :back, :disc)</code></p>
533    /// <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>
534    pub fn expression_attribute_values(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::AttributeValue) -> Self {
535                    self.inner = self.inner.expression_attribute_values(k.into(), v);
536                    self
537                }
538    /// <p>One or more values that can be substituted in an expression.</p>
539    /// <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>
540    /// <p><code>Available | Backordered | Discontinued</code></p>
541    /// <p>You would first need to specify <code>ExpressionAttributeValues</code> as follows:</p>
542    /// <p><code>{ ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} }</code></p>
543    /// <p>You could then use these values in an expression, such as this:</p>
544    /// <p><code>ProductStatus IN (:avail, :back, :disc)</code></p>
545    /// <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>
546    pub fn set_expression_attribute_values(mut self, input: ::std::option::Option<::std::collections::HashMap::<::std::string::String, crate::types::AttributeValue>>) -> Self {
547                    self.inner = self.inner.set_expression_attribute_values(input);
548                    self
549                }
550    /// <p>One or more values that can be substituted in an expression.</p>
551    /// <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>
552    /// <p><code>Available | Backordered | Discontinued</code></p>
553    /// <p>You would first need to specify <code>ExpressionAttributeValues</code> as follows:</p>
554    /// <p><code>{ ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} }</code></p>
555    /// <p>You could then use these values in an expression, such as this:</p>
556    /// <p><code>ProductStatus IN (:avail, :back, :disc)</code></p>
557    /// <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>
558    pub fn get_expression_attribute_values(&self) -> &::std::option::Option<::std::collections::HashMap::<::std::string::String, crate::types::AttributeValue>> {
559                    self.inner.get_expression_attribute_values()
560                }
561    /// <p>A Boolean value that determines the read consistency model during the scan:</p>
562    /// <ul>
563    /// <li>
564    /// <p>If <code>ConsistentRead</code> is <code>false</code>, then the data returned from <code>Scan</code> might not contain the results from other recently completed write operations (<code>PutItem</code>, <code>UpdateItem</code>, or <code>DeleteItem</code>).</p></li>
565    /// <li>
566    /// <p>If <code>ConsistentRead</code> is <code>true</code>, then all of the write operations that completed before the <code>Scan</code> began are guaranteed to be contained in the <code>Scan</code> response.</p></li>
567    /// </ul>
568    /// <p>The default setting for <code>ConsistentRead</code> is <code>false</code>.</p>
569    /// <p>The <code>ConsistentRead</code> parameter is not supported on global secondary indexes. If you scan a global secondary index with <code>ConsistentRead</code> set to true, you will receive a <code>ValidationException</code>.</p>
570    pub fn consistent_read(mut self, input: bool) -> Self {
571                    self.inner = self.inner.consistent_read(input);
572                    self
573                }
574    /// <p>A Boolean value that determines the read consistency model during the scan:</p>
575    /// <ul>
576    /// <li>
577    /// <p>If <code>ConsistentRead</code> is <code>false</code>, then the data returned from <code>Scan</code> might not contain the results from other recently completed write operations (<code>PutItem</code>, <code>UpdateItem</code>, or <code>DeleteItem</code>).</p></li>
578    /// <li>
579    /// <p>If <code>ConsistentRead</code> is <code>true</code>, then all of the write operations that completed before the <code>Scan</code> began are guaranteed to be contained in the <code>Scan</code> response.</p></li>
580    /// </ul>
581    /// <p>The default setting for <code>ConsistentRead</code> is <code>false</code>.</p>
582    /// <p>The <code>ConsistentRead</code> parameter is not supported on global secondary indexes. If you scan a global secondary index with <code>ConsistentRead</code> set to true, you will receive a <code>ValidationException</code>.</p>
583    pub fn set_consistent_read(mut self, input: ::std::option::Option<bool>) -> Self {
584                    self.inner = self.inner.set_consistent_read(input);
585                    self
586                }
587    /// <p>A Boolean value that determines the read consistency model during the scan:</p>
588    /// <ul>
589    /// <li>
590    /// <p>If <code>ConsistentRead</code> is <code>false</code>, then the data returned from <code>Scan</code> might not contain the results from other recently completed write operations (<code>PutItem</code>, <code>UpdateItem</code>, or <code>DeleteItem</code>).</p></li>
591    /// <li>
592    /// <p>If <code>ConsistentRead</code> is <code>true</code>, then all of the write operations that completed before the <code>Scan</code> began are guaranteed to be contained in the <code>Scan</code> response.</p></li>
593    /// </ul>
594    /// <p>The default setting for <code>ConsistentRead</code> is <code>false</code>.</p>
595    /// <p>The <code>ConsistentRead</code> parameter is not supported on global secondary indexes. If you scan a global secondary index with <code>ConsistentRead</code> set to true, you will receive a <code>ValidationException</code>.</p>
596    pub fn get_consistent_read(&self) -> &::std::option::Option<bool> {
597                    self.inner.get_consistent_read()
598                }
599}
600