aws_sdk_dynamodb/operation/scan/
_scan_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>Represents the input of a <code>Scan</code> operation.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct ScanInput  {
7    /// <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>
8    /// <p>You can also provide the Amazon Resource Name (ARN) of the table in this parameter.</p>
9    pub table_name: ::std::option::Option<::std::string::String>,
10    /// <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>
11    pub index_name: ::std::option::Option<::std::string::String>,
12    /// <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>
13    pub attributes_to_get: ::std::option::Option<::std::vec::Vec::<::std::string::String>>,
14    /// <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>
15    pub limit: ::std::option::Option<i32>,
16    /// <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>
17    /// <ul>
18    /// <li>
19    /// <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>
20    /// <li>
21    /// <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>
22    /// <li>
23    /// <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>
24    /// <li>
25    /// <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>
26    /// <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>
27    /// <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>
28    /// </ul>
29    /// <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>
30    /// <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>
31    /// </note>
32    pub select: ::std::option::Option<crate::types::Select>,
33    /// <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>
34    pub scan_filter: ::std::option::Option<::std::collections::HashMap::<::std::string::String, crate::types::Condition>>,
35    /// <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>
36    pub conditional_operator: ::std::option::Option<crate::types::ConditionalOperator>,
37    /// <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>
38    /// <p>The data type for <code>ExclusiveStartKey</code> must be String, Number or Binary. No set data types are allowed.</p>
39    /// <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>
40    pub exclusive_start_key: ::std::option::Option<::std::collections::HashMap::<::std::string::String, crate::types::AttributeValue>>,
41    /// <p>Determines the level of detail about either provisioned or on-demand throughput consumption that is returned in the response:</p>
42    /// <ul>
43    /// <li>
44    /// <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>
45    /// <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>
46    /// <li>
47    /// <p><code>TOTAL</code> - The response includes only the aggregate <code>ConsumedCapacity</code> for the operation.</p></li>
48    /// <li>
49    /// <p><code>NONE</code> - No <code>ConsumedCapacity</code> details are included in the response.</p></li>
50    /// </ul>
51    pub return_consumed_capacity: ::std::option::Option<crate::types::ReturnConsumedCapacity>,
52    /// <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>
53    /// <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>
54    /// <p>If you specify <code>TotalSegments</code>, you must also specify <code>Segment</code>.</p>
55    pub total_segments: ::std::option::Option<i32>,
56    /// <p>For a parallel <code>Scan</code> request, <code>Segment</code> identifies an individual segment to be scanned by an application worker.</p>
57    /// <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>
58    /// <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>
59    /// <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>
60    /// <p>If you provide <code>Segment</code>, you must also provide <code>TotalSegments</code>.</p>
61    pub segment: ::std::option::Option<i32>,
62    /// <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>
63    /// <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>
64    /// <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>
65    pub projection_expression: ::std::option::Option<::std::string::String>,
66    /// <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>
67    /// <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>
68    /// </note>
69    /// <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>
70    pub filter_expression: ::std::option::Option<::std::string::String>,
71    /// <p>One or more substitution tokens for attribute names in an expression. The following are some use cases for using <code>ExpressionAttributeNames</code>:</p>
72    /// <ul>
73    /// <li>
74    /// <p>To access an attribute whose name conflicts with a DynamoDB reserved word.</p></li>
75    /// <li>
76    /// <p>To create a placeholder for repeating occurrences of an attribute name in an expression.</p></li>
77    /// <li>
78    /// <p>To prevent special characters in an attribute name from being misinterpreted in an expression.</p></li>
79    /// </ul>
80    /// <p>Use the <b>#</b> character in an expression to dereference an attribute name. For example, consider the following attribute name:</p>
81    /// <ul>
82    /// <li>
83    /// <p><code>Percentile</code></p></li>
84    /// </ul>
85    /// <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>
86    /// <ul>
87    /// <li>
88    /// <p><code>{"#P":"Percentile"}</code></p></li>
89    /// </ul>
90    /// <p>You could then use this substitution in an expression, as in this example:</p>
91    /// <ul>
92    /// <li>
93    /// <p><code>#P = :val</code></p></li>
94    /// </ul><note>
95    /// <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>
96    /// </note>
97    /// <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>
98    pub expression_attribute_names: ::std::option::Option<::std::collections::HashMap::<::std::string::String, ::std::string::String>>,
99    /// <p>One or more values that can be substituted in an expression.</p>
100    /// <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>
101    /// <p><code>Available | Backordered | Discontinued</code></p>
102    /// <p>You would first need to specify <code>ExpressionAttributeValues</code> as follows:</p>
103    /// <p><code>{ ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} }</code></p>
104    /// <p>You could then use these values in an expression, such as this:</p>
105    /// <p><code>ProductStatus IN (:avail, :back, :disc)</code></p>
106    /// <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>
107    pub expression_attribute_values: ::std::option::Option<::std::collections::HashMap::<::std::string::String, crate::types::AttributeValue>>,
108    /// <p>A Boolean value that determines the read consistency model during the scan:</p>
109    /// <ul>
110    /// <li>
111    /// <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>
112    /// <li>
113    /// <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>
114    /// </ul>
115    /// <p>The default setting for <code>ConsistentRead</code> is <code>false</code>.</p>
116    /// <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>
117    pub consistent_read: ::std::option::Option<bool>,
118}
119impl  ScanInput  {
120    /// <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>
121    /// <p>You can also provide the Amazon Resource Name (ARN) of the table in this parameter.</p>
122    pub fn table_name(&self) -> ::std::option::Option<&str> {
123        self.table_name.as_deref()
124    }
125    /// <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>
126    pub fn index_name(&self) -> ::std::option::Option<&str> {
127        self.index_name.as_deref()
128    }
129    /// <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>
130    /// 
131    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.attributes_to_get.is_none()`.
132    pub fn attributes_to_get(&self) -> &[::std::string::String] {
133        self.attributes_to_get.as_deref()
134        .unwrap_or_default()
135    }
136    /// <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>
137    pub fn limit(&self) -> ::std::option::Option<i32> {
138        self.limit
139    }
140    /// <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>
141    /// <ul>
142    /// <li>
143    /// <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>
144    /// <li>
145    /// <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>
146    /// <li>
147    /// <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>
148    /// <li>
149    /// <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>
150    /// <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>
151    /// <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>
152    /// </ul>
153    /// <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>
154    /// <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>
155    /// </note>
156    pub fn select(&self) -> ::std::option::Option<&crate::types::Select> {
157        self.select.as_ref()
158    }
159    /// <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>
160    pub fn scan_filter(&self) -> ::std::option::Option<&::std::collections::HashMap::<::std::string::String, crate::types::Condition>> {
161        self.scan_filter.as_ref()
162    }
163    /// <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>
164    pub fn conditional_operator(&self) -> ::std::option::Option<&crate::types::ConditionalOperator> {
165        self.conditional_operator.as_ref()
166    }
167    /// <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>
168    /// <p>The data type for <code>ExclusiveStartKey</code> must be String, Number or Binary. No set data types are allowed.</p>
169    /// <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>
170    pub fn exclusive_start_key(&self) -> ::std::option::Option<&::std::collections::HashMap::<::std::string::String, crate::types::AttributeValue>> {
171        self.exclusive_start_key.as_ref()
172    }
173    /// <p>Determines the level of detail about either provisioned or on-demand throughput consumption that is returned in the response:</p>
174    /// <ul>
175    /// <li>
176    /// <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>
177    /// <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>
178    /// <li>
179    /// <p><code>TOTAL</code> - The response includes only the aggregate <code>ConsumedCapacity</code> for the operation.</p></li>
180    /// <li>
181    /// <p><code>NONE</code> - No <code>ConsumedCapacity</code> details are included in the response.</p></li>
182    /// </ul>
183    pub fn return_consumed_capacity(&self) -> ::std::option::Option<&crate::types::ReturnConsumedCapacity> {
184        self.return_consumed_capacity.as_ref()
185    }
186    /// <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>
187    /// <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>
188    /// <p>If you specify <code>TotalSegments</code>, you must also specify <code>Segment</code>.</p>
189    pub fn total_segments(&self) -> ::std::option::Option<i32> {
190        self.total_segments
191    }
192    /// <p>For a parallel <code>Scan</code> request, <code>Segment</code> identifies an individual segment to be scanned by an application worker.</p>
193    /// <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>
194    /// <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>
195    /// <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>
196    /// <p>If you provide <code>Segment</code>, you must also provide <code>TotalSegments</code>.</p>
197    pub fn segment(&self) -> ::std::option::Option<i32> {
198        self.segment
199    }
200    /// <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>
201    /// <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>
202    /// <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>
203    pub fn projection_expression(&self) -> ::std::option::Option<&str> {
204        self.projection_expression.as_deref()
205    }
206    /// <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>
207    /// <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>
208    /// </note>
209    /// <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>
210    pub fn filter_expression(&self) -> ::std::option::Option<&str> {
211        self.filter_expression.as_deref()
212    }
213    /// <p>One or more substitution tokens for attribute names in an expression. The following are some use cases for using <code>ExpressionAttributeNames</code>:</p>
214    /// <ul>
215    /// <li>
216    /// <p>To access an attribute whose name conflicts with a DynamoDB reserved word.</p></li>
217    /// <li>
218    /// <p>To create a placeholder for repeating occurrences of an attribute name in an expression.</p></li>
219    /// <li>
220    /// <p>To prevent special characters in an attribute name from being misinterpreted in an expression.</p></li>
221    /// </ul>
222    /// <p>Use the <b>#</b> character in an expression to dereference an attribute name. For example, consider the following attribute name:</p>
223    /// <ul>
224    /// <li>
225    /// <p><code>Percentile</code></p></li>
226    /// </ul>
227    /// <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>
228    /// <ul>
229    /// <li>
230    /// <p><code>{"#P":"Percentile"}</code></p></li>
231    /// </ul>
232    /// <p>You could then use this substitution in an expression, as in this example:</p>
233    /// <ul>
234    /// <li>
235    /// <p><code>#P = :val</code></p></li>
236    /// </ul><note>
237    /// <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>
238    /// </note>
239    /// <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>
240    pub fn expression_attribute_names(&self) -> ::std::option::Option<&::std::collections::HashMap::<::std::string::String, ::std::string::String>> {
241        self.expression_attribute_names.as_ref()
242    }
243    /// <p>One or more values that can be substituted in an expression.</p>
244    /// <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>
245    /// <p><code>Available | Backordered | Discontinued</code></p>
246    /// <p>You would first need to specify <code>ExpressionAttributeValues</code> as follows:</p>
247    /// <p><code>{ ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} }</code></p>
248    /// <p>You could then use these values in an expression, such as this:</p>
249    /// <p><code>ProductStatus IN (:avail, :back, :disc)</code></p>
250    /// <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>
251    pub fn expression_attribute_values(&self) -> ::std::option::Option<&::std::collections::HashMap::<::std::string::String, crate::types::AttributeValue>> {
252        self.expression_attribute_values.as_ref()
253    }
254    /// <p>A Boolean value that determines the read consistency model during the scan:</p>
255    /// <ul>
256    /// <li>
257    /// <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>
258    /// <li>
259    /// <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>
260    /// </ul>
261    /// <p>The default setting for <code>ConsistentRead</code> is <code>false</code>.</p>
262    /// <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>
263    pub fn consistent_read(&self) -> ::std::option::Option<bool> {
264        self.consistent_read
265    }
266}
267static SCANINPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.dynamodb.synthetic#ScanInput", "com.amazonaws.dynamodb.synthetic", "ScanInput");
268static SCANINPUT_MEMBER_TABLE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
269                            ::aws_smithy_schema::ShapeId::from_static(
270                                "com.amazonaws.dynamodb.synthetic#ScanInput$TableName",
271                                "com.amazonaws.dynamodb.synthetic",
272                                "ScanInput",
273                            ),
274                            ::aws_smithy_schema::ShapeType::String,
275                            "TableName",
276                            0,
277                        );
278static SCANINPUT_MEMBER_INDEX_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
279                            ::aws_smithy_schema::ShapeId::from_static(
280                                "com.amazonaws.dynamodb.synthetic#ScanInput$IndexName",
281                                "com.amazonaws.dynamodb.synthetic",
282                                "ScanInput",
283                            ),
284                            ::aws_smithy_schema::ShapeType::String,
285                            "IndexName",
286                            1,
287                        );
288static SCANINPUT_MEMBER_ATTRIBUTES_TO_GET: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
289                            ::aws_smithy_schema::ShapeId::from_static(
290                                "com.amazonaws.dynamodb.synthetic#ScanInput$AttributesToGet",
291                                "com.amazonaws.dynamodb.synthetic",
292                                "ScanInput",
293                            ),
294                            ::aws_smithy_schema::ShapeType::List,
295                            "AttributesToGet",
296                            2,
297                        );
298static SCANINPUT_MEMBER_LIMIT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
299                            ::aws_smithy_schema::ShapeId::from_static(
300                                "com.amazonaws.dynamodb.synthetic#ScanInput$Limit",
301                                "com.amazonaws.dynamodb.synthetic",
302                                "ScanInput",
303                            ),
304                            ::aws_smithy_schema::ShapeType::Integer,
305                            "Limit",
306                            3,
307                        );
308static SCANINPUT_MEMBER_SELECT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
309                            ::aws_smithy_schema::ShapeId::from_static(
310                                "com.amazonaws.dynamodb.synthetic#ScanInput$Select",
311                                "com.amazonaws.dynamodb.synthetic",
312                                "ScanInput",
313                            ),
314                            ::aws_smithy_schema::ShapeType::String,
315                            "Select",
316                            4,
317                        );
318static SCANINPUT_MEMBER_SCAN_FILTER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
319                            ::aws_smithy_schema::ShapeId::from_static(
320                                "com.amazonaws.dynamodb.synthetic#ScanInput$ScanFilter",
321                                "com.amazonaws.dynamodb.synthetic",
322                                "ScanInput",
323                            ),
324                            ::aws_smithy_schema::ShapeType::Map,
325                            "ScanFilter",
326                            5,
327                        );
328static SCANINPUT_MEMBER_CONDITIONAL_OPERATOR: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
329                            ::aws_smithy_schema::ShapeId::from_static(
330                                "com.amazonaws.dynamodb.synthetic#ScanInput$ConditionalOperator",
331                                "com.amazonaws.dynamodb.synthetic",
332                                "ScanInput",
333                            ),
334                            ::aws_smithy_schema::ShapeType::String,
335                            "ConditionalOperator",
336                            6,
337                        );
338static SCANINPUT_MEMBER_EXCLUSIVE_START_KEY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
339                            ::aws_smithy_schema::ShapeId::from_static(
340                                "com.amazonaws.dynamodb.synthetic#ScanInput$ExclusiveStartKey",
341                                "com.amazonaws.dynamodb.synthetic",
342                                "ScanInput",
343                            ),
344                            ::aws_smithy_schema::ShapeType::Map,
345                            "ExclusiveStartKey",
346                            7,
347                        );
348static SCANINPUT_MEMBER_RETURN_CONSUMED_CAPACITY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
349                            ::aws_smithy_schema::ShapeId::from_static(
350                                "com.amazonaws.dynamodb.synthetic#ScanInput$ReturnConsumedCapacity",
351                                "com.amazonaws.dynamodb.synthetic",
352                                "ScanInput",
353                            ),
354                            ::aws_smithy_schema::ShapeType::String,
355                            "ReturnConsumedCapacity",
356                            8,
357                        );
358static SCANINPUT_MEMBER_TOTAL_SEGMENTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
359                            ::aws_smithy_schema::ShapeId::from_static(
360                                "com.amazonaws.dynamodb.synthetic#ScanInput$TotalSegments",
361                                "com.amazonaws.dynamodb.synthetic",
362                                "ScanInput",
363                            ),
364                            ::aws_smithy_schema::ShapeType::Integer,
365                            "TotalSegments",
366                            9,
367                        );
368static SCANINPUT_MEMBER_SEGMENT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
369                            ::aws_smithy_schema::ShapeId::from_static(
370                                "com.amazonaws.dynamodb.synthetic#ScanInput$Segment",
371                                "com.amazonaws.dynamodb.synthetic",
372                                "ScanInput",
373                            ),
374                            ::aws_smithy_schema::ShapeType::Integer,
375                            "Segment",
376                            10,
377                        );
378static SCANINPUT_MEMBER_PROJECTION_EXPRESSION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
379                            ::aws_smithy_schema::ShapeId::from_static(
380                                "com.amazonaws.dynamodb.synthetic#ScanInput$ProjectionExpression",
381                                "com.amazonaws.dynamodb.synthetic",
382                                "ScanInput",
383                            ),
384                            ::aws_smithy_schema::ShapeType::String,
385                            "ProjectionExpression",
386                            11,
387                        );
388static SCANINPUT_MEMBER_FILTER_EXPRESSION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
389                            ::aws_smithy_schema::ShapeId::from_static(
390                                "com.amazonaws.dynamodb.synthetic#ScanInput$FilterExpression",
391                                "com.amazonaws.dynamodb.synthetic",
392                                "ScanInput",
393                            ),
394                            ::aws_smithy_schema::ShapeType::String,
395                            "FilterExpression",
396                            12,
397                        );
398static SCANINPUT_MEMBER_EXPRESSION_ATTRIBUTE_NAMES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
399                            ::aws_smithy_schema::ShapeId::from_static(
400                                "com.amazonaws.dynamodb.synthetic#ScanInput$ExpressionAttributeNames",
401                                "com.amazonaws.dynamodb.synthetic",
402                                "ScanInput",
403                            ),
404                            ::aws_smithy_schema::ShapeType::Map,
405                            "ExpressionAttributeNames",
406                            13,
407                        );
408static SCANINPUT_MEMBER_EXPRESSION_ATTRIBUTE_VALUES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
409                            ::aws_smithy_schema::ShapeId::from_static(
410                                "com.amazonaws.dynamodb.synthetic#ScanInput$ExpressionAttributeValues",
411                                "com.amazonaws.dynamodb.synthetic",
412                                "ScanInput",
413                            ),
414                            ::aws_smithy_schema::ShapeType::Map,
415                            "ExpressionAttributeValues",
416                            14,
417                        );
418static SCANINPUT_MEMBER_CONSISTENT_READ: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
419                            ::aws_smithy_schema::ShapeId::from_static(
420                                "com.amazonaws.dynamodb.synthetic#ScanInput$ConsistentRead",
421                                "com.amazonaws.dynamodb.synthetic",
422                                "ScanInput",
423                            ),
424                            ::aws_smithy_schema::ShapeType::Boolean,
425                            "ConsistentRead",
426                            15,
427                        );
428static SCANINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
429                            SCANINPUT_SCHEMA_ID,
430                            ::aws_smithy_schema::ShapeType::Structure,
431                            &[&SCANINPUT_MEMBER_TABLE_NAME, &SCANINPUT_MEMBER_INDEX_NAME, &SCANINPUT_MEMBER_ATTRIBUTES_TO_GET, &SCANINPUT_MEMBER_LIMIT, &SCANINPUT_MEMBER_SELECT, &SCANINPUT_MEMBER_SCAN_FILTER, &SCANINPUT_MEMBER_CONDITIONAL_OPERATOR, &SCANINPUT_MEMBER_EXCLUSIVE_START_KEY, &SCANINPUT_MEMBER_RETURN_CONSUMED_CAPACITY, &SCANINPUT_MEMBER_TOTAL_SEGMENTS, &SCANINPUT_MEMBER_SEGMENT, &SCANINPUT_MEMBER_PROJECTION_EXPRESSION, &SCANINPUT_MEMBER_FILTER_EXPRESSION, &SCANINPUT_MEMBER_EXPRESSION_ATTRIBUTE_NAMES, &SCANINPUT_MEMBER_EXPRESSION_ATTRIBUTE_VALUES, &SCANINPUT_MEMBER_CONSISTENT_READ],
432                        );
433impl ScanInput {
434                /// The schema for this shape.
435                pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &SCANINPUT_SCHEMA;
436            }
437impl ::aws_smithy_schema::serde::SerializableStruct for ScanInput {
438                #[allow(unused_variables, clippy::diverging_sub_expression)]
439                fn serialize_members(&self, ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
440                    if let Some(ref val) = self.table_name {
441                                ser.write_string(&SCANINPUT_MEMBER_TABLE_NAME, val)?;
442                            }
443if let Some(ref val) = self.index_name {
444                                ser.write_string(&SCANINPUT_MEMBER_INDEX_NAME, val)?;
445                            }
446if let Some(ref val) = self.attributes_to_get {
447                                
448                    ser.write_list(&SCANINPUT_MEMBER_ATTRIBUTES_TO_GET, &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
449                        for item in val {
450                            ser.write_string(&aws_smithy_schema::prelude::STRING, item)?;
451                        }
452                        Ok(())
453                    })?;
454                    
455                            }
456if let Some(ref val) = self.limit {
457                                ser.write_integer(&SCANINPUT_MEMBER_LIMIT, *val)?;
458                            }
459if let Some(ref val) = self.select {
460                                ser.write_string(&SCANINPUT_MEMBER_SELECT, val.as_str())?;
461                            }
462if let Some(ref val) = self.scan_filter {
463                                
464                    ser.write_map(&SCANINPUT_MEMBER_SCAN_FILTER, &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
465                        for (key, value) in val {
466                            ser.write_string(&::aws_smithy_schema::prelude::STRING, key)?;
467                            ser.write_struct(crate::types::Condition::SCHEMA, value)?;
468                        }
469                        Ok(())
470                    })?;
471                    
472                            }
473if let Some(ref val) = self.conditional_operator {
474                                ser.write_string(&SCANINPUT_MEMBER_CONDITIONAL_OPERATOR, val.as_str())?;
475                            }
476if let Some(ref val) = self.exclusive_start_key {
477                                
478                    ser.write_map(&SCANINPUT_MEMBER_EXCLUSIVE_START_KEY, &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
479                        for (key, value) in val {
480                            ser.write_string(&::aws_smithy_schema::prelude::STRING, key)?;
481                            ser.write_struct(crate::types::AttributeValue::SCHEMA, value)?;
482                        }
483                        Ok(())
484                    })?;
485                    
486                            }
487if let Some(ref val) = self.return_consumed_capacity {
488                                ser.write_string(&SCANINPUT_MEMBER_RETURN_CONSUMED_CAPACITY, val.as_str())?;
489                            }
490if let Some(ref val) = self.total_segments {
491                                ser.write_integer(&SCANINPUT_MEMBER_TOTAL_SEGMENTS, *val)?;
492                            }
493if let Some(ref val) = self.segment {
494                                ser.write_integer(&SCANINPUT_MEMBER_SEGMENT, *val)?;
495                            }
496if let Some(ref val) = self.projection_expression {
497                                ser.write_string(&SCANINPUT_MEMBER_PROJECTION_EXPRESSION, val)?;
498                            }
499if let Some(ref val) = self.filter_expression {
500                                ser.write_string(&SCANINPUT_MEMBER_FILTER_EXPRESSION, val)?;
501                            }
502if let Some(ref val) = self.expression_attribute_names {
503                                
504                    ser.write_map(&SCANINPUT_MEMBER_EXPRESSION_ATTRIBUTE_NAMES, &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
505                        for (key, value) in val {
506                            ser.write_string(&::aws_smithy_schema::prelude::STRING, key)?;
507                            ser.write_string(&::aws_smithy_schema::prelude::STRING, value)?;
508                        }
509                        Ok(())
510                    })?;
511                    
512                            }
513if let Some(ref val) = self.expression_attribute_values {
514                                
515                    ser.write_map(&SCANINPUT_MEMBER_EXPRESSION_ATTRIBUTE_VALUES, &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
516                        for (key, value) in val {
517                            ser.write_string(&::aws_smithy_schema::prelude::STRING, key)?;
518                            ser.write_struct(crate::types::AttributeValue::SCHEMA, value)?;
519                        }
520                        Ok(())
521                    })?;
522                    
523                            }
524if let Some(ref val) = self.consistent_read {
525                                ser.write_boolean(&SCANINPUT_MEMBER_CONSISTENT_READ, *val)?;
526                            }
527                    Ok(())
528                }
529            }
530impl ScanInput {
531                /// Deserializes this structure from a [`ShapeDeserializer`].
532                pub fn deserialize(deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
533                    #[allow(unused_variables, unused_mut)]
534                    let mut builder = Self::builder();
535                    #[allow(unused_variables, unreachable_code, clippy::single_match, clippy::match_single_binding, clippy::diverging_sub_expression)]
536                    deserializer.read_struct(&SCANINPUT_SCHEMA, &mut |member, deser| {
537                        match member.member_index() {
538                            Some(0) => {
539                                    builder.table_name = Some(deser.read_string(member)?);
540                                }
541Some(1) => {
542                                    builder.index_name = Some(deser.read_string(member)?);
543                                }
544Some(2) => {
545                                    builder.attributes_to_get = Some(deser.read_string_list(member)?);
546                                }
547Some(3) => {
548                                    builder.limit = Some(deser.read_integer(member)?);
549                                }
550Some(4) => {
551                                    builder.select = Some(crate::types::Select::from(deser.read_string(member)?.as_str()));
552                                }
553Some(5) => {
554                                    builder.scan_filter = Some({ let mut container = std::collections::HashMap::new(); deser.read_map(member, &mut |key, deser| { container.insert(key, crate::types::Condition::deserialize(deser)?); Ok(()) })?; container });
555                                }
556Some(6) => {
557                                    builder.conditional_operator = Some(crate::types::ConditionalOperator::from(deser.read_string(member)?.as_str()));
558                                }
559Some(7) => {
560                                    builder.exclusive_start_key = Some({ let mut container = std::collections::HashMap::new(); deser.read_map(member, &mut |key, deser| { container.insert(key, crate::types::AttributeValue::deserialize(deser)?); Ok(()) })?; container });
561                                }
562Some(8) => {
563                                    builder.return_consumed_capacity = Some(crate::types::ReturnConsumedCapacity::from(deser.read_string(member)?.as_str()));
564                                }
565Some(9) => {
566                                    builder.total_segments = Some(deser.read_integer(member)?);
567                                }
568Some(10) => {
569                                    builder.segment = Some(deser.read_integer(member)?);
570                                }
571Some(11) => {
572                                    builder.projection_expression = Some(deser.read_string(member)?);
573                                }
574Some(12) => {
575                                    builder.filter_expression = Some(deser.read_string(member)?);
576                                }
577Some(13) => {
578                                    builder.expression_attribute_names = Some(deser.read_string_string_map(member)?);
579                                }
580Some(14) => {
581                                    builder.expression_attribute_values = Some({ let mut container = std::collections::HashMap::new(); deser.read_map(member, &mut |key, deser| { container.insert(key, crate::types::AttributeValue::deserialize(deser)?); Ok(()) })?; container });
582                                }
583Some(15) => {
584                                    builder.consistent_read = Some(deser.read_boolean(member)?);
585                                }
586                            _ => {}
587                        }
588                        Ok(())
589                    })?;
590                    builder.table_name = builder.table_name.or(Some(String::new()));
591builder.build().map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
592                }
593            }
594impl ScanInput {
595                        /// Deserializes this structure from a body deserializer and HTTP response.
596                        pub fn deserialize_with_response(
597                            deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
598                            _headers: &::aws_smithy_runtime_api::http::Headers,
599                            _status: u16,
600                            _body: &[u8],
601                        ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
602                            Self::deserialize(deserializer)
603                        }
604                    }
605impl ScanInput {
606    /// Creates a new builder-style object to manufacture [`ScanInput`](crate::operation::scan::ScanInput).
607    pub fn builder() -> crate::operation::scan::builders::ScanInputBuilder {
608        crate::operation::scan::builders::ScanInputBuilder::default()
609    }
610}
611
612/// A builder for [`ScanInput`](crate::operation::scan::ScanInput).
613#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
614#[non_exhaustive]
615pub struct ScanInputBuilder {
616    pub(crate) table_name: ::std::option::Option<::std::string::String>,
617    pub(crate) index_name: ::std::option::Option<::std::string::String>,
618    pub(crate) attributes_to_get: ::std::option::Option<::std::vec::Vec::<::std::string::String>>,
619    pub(crate) limit: ::std::option::Option<i32>,
620    pub(crate) select: ::std::option::Option<crate::types::Select>,
621    pub(crate) scan_filter: ::std::option::Option<::std::collections::HashMap::<::std::string::String, crate::types::Condition>>,
622    pub(crate) conditional_operator: ::std::option::Option<crate::types::ConditionalOperator>,
623    pub(crate) exclusive_start_key: ::std::option::Option<::std::collections::HashMap::<::std::string::String, crate::types::AttributeValue>>,
624    pub(crate) return_consumed_capacity: ::std::option::Option<crate::types::ReturnConsumedCapacity>,
625    pub(crate) total_segments: ::std::option::Option<i32>,
626    pub(crate) segment: ::std::option::Option<i32>,
627    pub(crate) projection_expression: ::std::option::Option<::std::string::String>,
628    pub(crate) filter_expression: ::std::option::Option<::std::string::String>,
629    pub(crate) expression_attribute_names: ::std::option::Option<::std::collections::HashMap::<::std::string::String, ::std::string::String>>,
630    pub(crate) expression_attribute_values: ::std::option::Option<::std::collections::HashMap::<::std::string::String, crate::types::AttributeValue>>,
631    pub(crate) consistent_read: ::std::option::Option<bool>,
632}
633impl ScanInputBuilder {
634    /// <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>
635    /// <p>You can also provide the Amazon Resource Name (ARN) of the table in this parameter.</p>
636    /// This field is required.
637    pub fn table_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
638        self.table_name = ::std::option::Option::Some(input.into());
639        self
640    }
641    /// <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>
642    /// <p>You can also provide the Amazon Resource Name (ARN) of the table in this parameter.</p>
643    pub fn set_table_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
644        self.table_name = input; self
645    }
646    /// <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>
647    /// <p>You can also provide the Amazon Resource Name (ARN) of the table in this parameter.</p>
648    pub fn get_table_name(&self) -> &::std::option::Option<::std::string::String> {
649        &self.table_name
650    }
651    /// <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>
652    pub fn index_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
653        self.index_name = ::std::option::Option::Some(input.into());
654        self
655    }
656    /// <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>
657    pub fn set_index_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
658        self.index_name = input; self
659    }
660    /// <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>
661    pub fn get_index_name(&self) -> &::std::option::Option<::std::string::String> {
662        &self.index_name
663    }
664    /// Appends an item to `attributes_to_get`.
665    ///
666    /// To override the contents of this collection use [`set_attributes_to_get`](Self::set_attributes_to_get).
667    ///
668    /// <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>
669    pub fn attributes_to_get(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
670        let mut v = self.attributes_to_get.unwrap_or_default();
671                        v.push(input.into());
672                        self.attributes_to_get = ::std::option::Option::Some(v);
673                        self
674    }
675    /// <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>
676    pub fn set_attributes_to_get(mut self, input: ::std::option::Option<::std::vec::Vec::<::std::string::String>>) -> Self {
677        self.attributes_to_get = input; self
678    }
679    /// <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>
680    pub fn get_attributes_to_get(&self) -> &::std::option::Option<::std::vec::Vec::<::std::string::String>> {
681        &self.attributes_to_get
682    }
683    /// <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>
684    pub fn limit(mut self, input: i32) -> Self {
685        self.limit = ::std::option::Option::Some(input);
686        self
687    }
688    /// <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>
689    pub fn set_limit(mut self, input: ::std::option::Option<i32>) -> Self {
690        self.limit = input; self
691    }
692    /// <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>
693    pub fn get_limit(&self) -> &::std::option::Option<i32> {
694        &self.limit
695    }
696    /// <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>
697    /// <ul>
698    /// <li>
699    /// <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>
700    /// <li>
701    /// <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>
702    /// <li>
703    /// <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>
704    /// <li>
705    /// <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>
706    /// <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>
707    /// <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>
708    /// </ul>
709    /// <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>
710    /// <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>
711    /// </note>
712    pub fn select(mut self, input: crate::types::Select) -> Self {
713        self.select = ::std::option::Option::Some(input);
714        self
715    }
716    /// <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>
717    /// <ul>
718    /// <li>
719    /// <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>
720    /// <li>
721    /// <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>
722    /// <li>
723    /// <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>
724    /// <li>
725    /// <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>
726    /// <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>
727    /// <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>
728    /// </ul>
729    /// <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>
730    /// <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>
731    /// </note>
732    pub fn set_select(mut self, input: ::std::option::Option<crate::types::Select>) -> Self {
733        self.select = input; self
734    }
735    /// <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>
736    /// <ul>
737    /// <li>
738    /// <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>
739    /// <li>
740    /// <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>
741    /// <li>
742    /// <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>
743    /// <li>
744    /// <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>
745    /// <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>
746    /// <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>
747    /// </ul>
748    /// <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>
749    /// <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>
750    /// </note>
751    pub fn get_select(&self) -> &::std::option::Option<crate::types::Select> {
752        &self.select
753    }
754    /// Adds a key-value pair to `scan_filter`.
755    ///
756    /// To override the contents of this collection use [`set_scan_filter`](Self::set_scan_filter).
757    ///
758    /// <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>
759    pub fn scan_filter(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::Condition) -> Self {
760        let mut hash_map = self.scan_filter.unwrap_or_default();
761                        hash_map.insert(k.into(), v);
762                        self.scan_filter = ::std::option::Option::Some(hash_map);
763                        self
764    }
765    /// <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>
766    pub fn set_scan_filter(mut self, input: ::std::option::Option<::std::collections::HashMap::<::std::string::String, crate::types::Condition>>) -> Self {
767        self.scan_filter = input; self
768    }
769    /// <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>
770    pub fn get_scan_filter(&self) -> &::std::option::Option<::std::collections::HashMap::<::std::string::String, crate::types::Condition>> {
771        &self.scan_filter
772    }
773    /// <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>
774    pub fn conditional_operator(mut self, input: crate::types::ConditionalOperator) -> Self {
775        self.conditional_operator = ::std::option::Option::Some(input);
776        self
777    }
778    /// <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>
779    pub fn set_conditional_operator(mut self, input: ::std::option::Option<crate::types::ConditionalOperator>) -> Self {
780        self.conditional_operator = input; self
781    }
782    /// <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>
783    pub fn get_conditional_operator(&self) -> &::std::option::Option<crate::types::ConditionalOperator> {
784        &self.conditional_operator
785    }
786    /// Adds a key-value pair to `exclusive_start_key`.
787    ///
788    /// To override the contents of this collection use [`set_exclusive_start_key`](Self::set_exclusive_start_key).
789    ///
790    /// <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>
791    /// <p>The data type for <code>ExclusiveStartKey</code> must be String, Number or Binary. No set data types are allowed.</p>
792    /// <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>
793    pub fn exclusive_start_key(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::AttributeValue) -> Self {
794        let mut hash_map = self.exclusive_start_key.unwrap_or_default();
795                        hash_map.insert(k.into(), v);
796                        self.exclusive_start_key = ::std::option::Option::Some(hash_map);
797                        self
798    }
799    /// <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>
800    /// <p>The data type for <code>ExclusiveStartKey</code> must be String, Number or Binary. No set data types are allowed.</p>
801    /// <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>
802    pub fn set_exclusive_start_key(mut self, input: ::std::option::Option<::std::collections::HashMap::<::std::string::String, crate::types::AttributeValue>>) -> Self {
803        self.exclusive_start_key = input; self
804    }
805    /// <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>
806    /// <p>The data type for <code>ExclusiveStartKey</code> must be String, Number or Binary. No set data types are allowed.</p>
807    /// <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>
808    pub fn get_exclusive_start_key(&self) -> &::std::option::Option<::std::collections::HashMap::<::std::string::String, crate::types::AttributeValue>> {
809        &self.exclusive_start_key
810    }
811    /// <p>Determines the level of detail about either provisioned or on-demand throughput consumption that is returned in the response:</p>
812    /// <ul>
813    /// <li>
814    /// <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>
815    /// <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>
816    /// <li>
817    /// <p><code>TOTAL</code> - The response includes only the aggregate <code>ConsumedCapacity</code> for the operation.</p></li>
818    /// <li>
819    /// <p><code>NONE</code> - No <code>ConsumedCapacity</code> details are included in the response.</p></li>
820    /// </ul>
821    pub fn return_consumed_capacity(mut self, input: crate::types::ReturnConsumedCapacity) -> Self {
822        self.return_consumed_capacity = ::std::option::Option::Some(input);
823        self
824    }
825    /// <p>Determines the level of detail about either provisioned or on-demand throughput consumption that is returned in the response:</p>
826    /// <ul>
827    /// <li>
828    /// <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>
829    /// <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>
830    /// <li>
831    /// <p><code>TOTAL</code> - The response includes only the aggregate <code>ConsumedCapacity</code> for the operation.</p></li>
832    /// <li>
833    /// <p><code>NONE</code> - No <code>ConsumedCapacity</code> details are included in the response.</p></li>
834    /// </ul>
835    pub fn set_return_consumed_capacity(mut self, input: ::std::option::Option<crate::types::ReturnConsumedCapacity>) -> Self {
836        self.return_consumed_capacity = input; self
837    }
838    /// <p>Determines the level of detail about either provisioned or on-demand throughput consumption that is returned in the response:</p>
839    /// <ul>
840    /// <li>
841    /// <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>
842    /// <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>
843    /// <li>
844    /// <p><code>TOTAL</code> - The response includes only the aggregate <code>ConsumedCapacity</code> for the operation.</p></li>
845    /// <li>
846    /// <p><code>NONE</code> - No <code>ConsumedCapacity</code> details are included in the response.</p></li>
847    /// </ul>
848    pub fn get_return_consumed_capacity(&self) -> &::std::option::Option<crate::types::ReturnConsumedCapacity> {
849        &self.return_consumed_capacity
850    }
851    /// <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>
852    /// <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>
853    /// <p>If you specify <code>TotalSegments</code>, you must also specify <code>Segment</code>.</p>
854    pub fn total_segments(mut self, input: i32) -> Self {
855        self.total_segments = ::std::option::Option::Some(input);
856        self
857    }
858    /// <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>
859    /// <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>
860    /// <p>If you specify <code>TotalSegments</code>, you must also specify <code>Segment</code>.</p>
861    pub fn set_total_segments(mut self, input: ::std::option::Option<i32>) -> Self {
862        self.total_segments = input; self
863    }
864    /// <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>
865    /// <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>
866    /// <p>If you specify <code>TotalSegments</code>, you must also specify <code>Segment</code>.</p>
867    pub fn get_total_segments(&self) -> &::std::option::Option<i32> {
868        &self.total_segments
869    }
870    /// <p>For a parallel <code>Scan</code> request, <code>Segment</code> identifies an individual segment to be scanned by an application worker.</p>
871    /// <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>
872    /// <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>
873    /// <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>
874    /// <p>If you provide <code>Segment</code>, you must also provide <code>TotalSegments</code>.</p>
875    pub fn segment(mut self, input: i32) -> Self {
876        self.segment = ::std::option::Option::Some(input);
877        self
878    }
879    /// <p>For a parallel <code>Scan</code> request, <code>Segment</code> identifies an individual segment to be scanned by an application worker.</p>
880    /// <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>
881    /// <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>
882    /// <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>
883    /// <p>If you provide <code>Segment</code>, you must also provide <code>TotalSegments</code>.</p>
884    pub fn set_segment(mut self, input: ::std::option::Option<i32>) -> Self {
885        self.segment = input; self
886    }
887    /// <p>For a parallel <code>Scan</code> request, <code>Segment</code> identifies an individual segment to be scanned by an application worker.</p>
888    /// <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>
889    /// <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>
890    /// <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>
891    /// <p>If you provide <code>Segment</code>, you must also provide <code>TotalSegments</code>.</p>
892    pub fn get_segment(&self) -> &::std::option::Option<i32> {
893        &self.segment
894    }
895    /// <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>
896    /// <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>
897    /// <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>
898    pub fn projection_expression(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
899        self.projection_expression = ::std::option::Option::Some(input.into());
900        self
901    }
902    /// <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>
903    /// <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>
904    /// <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>
905    pub fn set_projection_expression(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
906        self.projection_expression = input; self
907    }
908    /// <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>
909    /// <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>
910    /// <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>
911    pub fn get_projection_expression(&self) -> &::std::option::Option<::std::string::String> {
912        &self.projection_expression
913    }
914    /// <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>
915    /// <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>
916    /// </note>
917    /// <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>
918    pub fn filter_expression(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
919        self.filter_expression = ::std::option::Option::Some(input.into());
920        self
921    }
922    /// <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>
923    /// <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>
924    /// </note>
925    /// <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>
926    pub fn set_filter_expression(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
927        self.filter_expression = input; self
928    }
929    /// <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>
930    /// <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>
931    /// </note>
932    /// <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>
933    pub fn get_filter_expression(&self) -> &::std::option::Option<::std::string::String> {
934        &self.filter_expression
935    }
936    /// Adds a key-value pair to `expression_attribute_names`.
937    ///
938    /// To override the contents of this collection use [`set_expression_attribute_names`](Self::set_expression_attribute_names).
939    ///
940    /// <p>One or more substitution tokens for attribute names in an expression. The following are some use cases for using <code>ExpressionAttributeNames</code>:</p>
941    /// <ul>
942    /// <li>
943    /// <p>To access an attribute whose name conflicts with a DynamoDB reserved word.</p></li>
944    /// <li>
945    /// <p>To create a placeholder for repeating occurrences of an attribute name in an expression.</p></li>
946    /// <li>
947    /// <p>To prevent special characters in an attribute name from being misinterpreted in an expression.</p></li>
948    /// </ul>
949    /// <p>Use the <b>#</b> character in an expression to dereference an attribute name. For example, consider the following attribute name:</p>
950    /// <ul>
951    /// <li>
952    /// <p><code>Percentile</code></p></li>
953    /// </ul>
954    /// <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>
955    /// <ul>
956    /// <li>
957    /// <p><code>{"#P":"Percentile"}</code></p></li>
958    /// </ul>
959    /// <p>You could then use this substitution in an expression, as in this example:</p>
960    /// <ul>
961    /// <li>
962    /// <p><code>#P = :val</code></p></li>
963    /// </ul><note>
964    /// <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>
965    /// </note>
966    /// <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>
967    pub fn expression_attribute_names(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
968        let mut hash_map = self.expression_attribute_names.unwrap_or_default();
969                        hash_map.insert(k.into(), v.into());
970                        self.expression_attribute_names = ::std::option::Option::Some(hash_map);
971                        self
972    }
973    /// <p>One or more substitution tokens for attribute names in an expression. The following are some use cases for using <code>ExpressionAttributeNames</code>:</p>
974    /// <ul>
975    /// <li>
976    /// <p>To access an attribute whose name conflicts with a DynamoDB reserved word.</p></li>
977    /// <li>
978    /// <p>To create a placeholder for repeating occurrences of an attribute name in an expression.</p></li>
979    /// <li>
980    /// <p>To prevent special characters in an attribute name from being misinterpreted in an expression.</p></li>
981    /// </ul>
982    /// <p>Use the <b>#</b> character in an expression to dereference an attribute name. For example, consider the following attribute name:</p>
983    /// <ul>
984    /// <li>
985    /// <p><code>Percentile</code></p></li>
986    /// </ul>
987    /// <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>
988    /// <ul>
989    /// <li>
990    /// <p><code>{"#P":"Percentile"}</code></p></li>
991    /// </ul>
992    /// <p>You could then use this substitution in an expression, as in this example:</p>
993    /// <ul>
994    /// <li>
995    /// <p><code>#P = :val</code></p></li>
996    /// </ul><note>
997    /// <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>
998    /// </note>
999    /// <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>
1000    pub fn set_expression_attribute_names(mut self, input: ::std::option::Option<::std::collections::HashMap::<::std::string::String, ::std::string::String>>) -> Self {
1001        self.expression_attribute_names = input; self
1002    }
1003    /// <p>One or more substitution tokens for attribute names in an expression. The following are some use cases for using <code>ExpressionAttributeNames</code>:</p>
1004    /// <ul>
1005    /// <li>
1006    /// <p>To access an attribute whose name conflicts with a DynamoDB reserved word.</p></li>
1007    /// <li>
1008    /// <p>To create a placeholder for repeating occurrences of an attribute name in an expression.</p></li>
1009    /// <li>
1010    /// <p>To prevent special characters in an attribute name from being misinterpreted in an expression.</p></li>
1011    /// </ul>
1012    /// <p>Use the <b>#</b> character in an expression to dereference an attribute name. For example, consider the following attribute name:</p>
1013    /// <ul>
1014    /// <li>
1015    /// <p><code>Percentile</code></p></li>
1016    /// </ul>
1017    /// <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>
1018    /// <ul>
1019    /// <li>
1020    /// <p><code>{"#P":"Percentile"}</code></p></li>
1021    /// </ul>
1022    /// <p>You could then use this substitution in an expression, as in this example:</p>
1023    /// <ul>
1024    /// <li>
1025    /// <p><code>#P = :val</code></p></li>
1026    /// </ul><note>
1027    /// <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>
1028    /// </note>
1029    /// <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>
1030    pub fn get_expression_attribute_names(&self) -> &::std::option::Option<::std::collections::HashMap::<::std::string::String, ::std::string::String>> {
1031        &self.expression_attribute_names
1032    }
1033    /// Adds a key-value pair to `expression_attribute_values`.
1034    ///
1035    /// To override the contents of this collection use [`set_expression_attribute_values`](Self::set_expression_attribute_values).
1036    ///
1037    /// <p>One or more values that can be substituted in an expression.</p>
1038    /// <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>
1039    /// <p><code>Available | Backordered | Discontinued</code></p>
1040    /// <p>You would first need to specify <code>ExpressionAttributeValues</code> as follows:</p>
1041    /// <p><code>{ ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} }</code></p>
1042    /// <p>You could then use these values in an expression, such as this:</p>
1043    /// <p><code>ProductStatus IN (:avail, :back, :disc)</code></p>
1044    /// <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>
1045    pub fn expression_attribute_values(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::AttributeValue) -> Self {
1046        let mut hash_map = self.expression_attribute_values.unwrap_or_default();
1047                        hash_map.insert(k.into(), v);
1048                        self.expression_attribute_values = ::std::option::Option::Some(hash_map);
1049                        self
1050    }
1051    /// <p>One or more values that can be substituted in an expression.</p>
1052    /// <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>
1053    /// <p><code>Available | Backordered | Discontinued</code></p>
1054    /// <p>You would first need to specify <code>ExpressionAttributeValues</code> as follows:</p>
1055    /// <p><code>{ ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} }</code></p>
1056    /// <p>You could then use these values in an expression, such as this:</p>
1057    /// <p><code>ProductStatus IN (:avail, :back, :disc)</code></p>
1058    /// <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>
1059    pub fn set_expression_attribute_values(mut self, input: ::std::option::Option<::std::collections::HashMap::<::std::string::String, crate::types::AttributeValue>>) -> Self {
1060        self.expression_attribute_values = input; self
1061    }
1062    /// <p>One or more values that can be substituted in an expression.</p>
1063    /// <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>
1064    /// <p><code>Available | Backordered | Discontinued</code></p>
1065    /// <p>You would first need to specify <code>ExpressionAttributeValues</code> as follows:</p>
1066    /// <p><code>{ ":avail":{"S":"Available"}, ":back":{"S":"Backordered"}, ":disc":{"S":"Discontinued"} }</code></p>
1067    /// <p>You could then use these values in an expression, such as this:</p>
1068    /// <p><code>ProductStatus IN (:avail, :back, :disc)</code></p>
1069    /// <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>
1070    pub fn get_expression_attribute_values(&self) -> &::std::option::Option<::std::collections::HashMap::<::std::string::String, crate::types::AttributeValue>> {
1071        &self.expression_attribute_values
1072    }
1073    /// <p>A Boolean value that determines the read consistency model during the scan:</p>
1074    /// <ul>
1075    /// <li>
1076    /// <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>
1077    /// <li>
1078    /// <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>
1079    /// </ul>
1080    /// <p>The default setting for <code>ConsistentRead</code> is <code>false</code>.</p>
1081    /// <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>
1082    pub fn consistent_read(mut self, input: bool) -> Self {
1083        self.consistent_read = ::std::option::Option::Some(input);
1084        self
1085    }
1086    /// <p>A Boolean value that determines the read consistency model during the scan:</p>
1087    /// <ul>
1088    /// <li>
1089    /// <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>
1090    /// <li>
1091    /// <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>
1092    /// </ul>
1093    /// <p>The default setting for <code>ConsistentRead</code> is <code>false</code>.</p>
1094    /// <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>
1095    pub fn set_consistent_read(mut self, input: ::std::option::Option<bool>) -> Self {
1096        self.consistent_read = input; self
1097    }
1098    /// <p>A Boolean value that determines the read consistency model during the scan:</p>
1099    /// <ul>
1100    /// <li>
1101    /// <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>
1102    /// <li>
1103    /// <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>
1104    /// </ul>
1105    /// <p>The default setting for <code>ConsistentRead</code> is <code>false</code>.</p>
1106    /// <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>
1107    pub fn get_consistent_read(&self) -> &::std::option::Option<bool> {
1108        &self.consistent_read
1109    }
1110    /// Consumes the builder and constructs a [`ScanInput`](crate::operation::scan::ScanInput).
1111    pub fn build(self) -> ::std::result::Result<crate::operation::scan::ScanInput, ::aws_smithy_types::error::operation::BuildError> {
1112        ::std::result::Result::Ok(
1113            crate::operation::scan::ScanInput {
1114                table_name: self.table_name
1115                ,
1116                index_name: self.index_name
1117                ,
1118                attributes_to_get: self.attributes_to_get
1119                ,
1120                limit: self.limit
1121                ,
1122                select: self.select
1123                ,
1124                scan_filter: self.scan_filter
1125                ,
1126                conditional_operator: self.conditional_operator
1127                ,
1128                exclusive_start_key: self.exclusive_start_key
1129                ,
1130                return_consumed_capacity: self.return_consumed_capacity
1131                ,
1132                total_segments: self.total_segments
1133                ,
1134                segment: self.segment
1135                ,
1136                projection_expression: self.projection_expression
1137                ,
1138                filter_expression: self.filter_expression
1139                ,
1140                expression_attribute_names: self.expression_attribute_names
1141                ,
1142                expression_attribute_values: self.expression_attribute_values
1143                ,
1144                consistent_read: self.consistent_read
1145                ,
1146            }
1147        )
1148    }
1149}
1150