aws_sdk_dynamodb/operation/execute_statement/_execute_statement_input.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct ExecuteStatementInput {
6 /// <p>The PartiQL statement representing the operation to run.</p>
7 pub statement: ::std::option::Option<::std::string::String>,
8 /// <p>The parameters for the PartiQL statement, if any.</p>
9 pub parameters: ::std::option::Option<::std::vec::Vec::<crate::types::AttributeValue>>,
10 /// <p>The consistency of a read operation. If set to <code>true</code>, then a strongly consistent read is used; otherwise, an eventually consistent read is used.</p>
11 pub consistent_read: ::std::option::Option<bool>,
12 /// <p>Set this value to get remaining results, if <code>NextToken</code> was returned in the statement response.</p>
13 pub next_token: ::std::option::Option<::std::string::String>,
14 /// <p>Determines the level of detail about either provisioned or on-demand throughput consumption that is returned in the response:</p>
15 /// <ul>
16 /// <li>
17 /// <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>
18 /// <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>
19 /// <li>
20 /// <p><code>TOTAL</code> - The response includes only the aggregate <code>ConsumedCapacity</code> for the operation.</p></li>
21 /// <li>
22 /// <p><code>NONE</code> - No <code>ConsumedCapacity</code> details are included in the response.</p></li>
23 /// </ul>
24 pub return_consumed_capacity: ::std::option::Option<crate::types::ReturnConsumedCapacity>,
25 /// <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, along with a key in <code>LastEvaluatedKey</code> to apply in a subsequent operation so 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.</p>
26 pub limit: ::std::option::Option<i32>,
27 /// <p>An optional parameter that returns the item attributes for an <code>ExecuteStatement</code> operation that failed a condition check.</p>
28 /// <p>There is no additional cost associated with requesting a return value aside from the small network and processing overhead of receiving a larger response. No read capacity units are consumed.</p>
29 pub return_values_on_condition_check_failure: ::std::option::Option<crate::types::ReturnValuesOnConditionCheckFailure>,
30}
31impl ExecuteStatementInput {
32 /// <p>The PartiQL statement representing the operation to run.</p>
33 pub fn statement(&self) -> ::std::option::Option<&str> {
34 self.statement.as_deref()
35 }
36 /// <p>The parameters for the PartiQL statement, if any.</p>
37 ///
38 /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.parameters.is_none()`.
39 pub fn parameters(&self) -> &[crate::types::AttributeValue] {
40 self.parameters.as_deref()
41 .unwrap_or_default()
42 }
43 /// <p>The consistency of a read operation. If set to <code>true</code>, then a strongly consistent read is used; otherwise, an eventually consistent read is used.</p>
44 pub fn consistent_read(&self) -> ::std::option::Option<bool> {
45 self.consistent_read
46 }
47 /// <p>Set this value to get remaining results, if <code>NextToken</code> was returned in the statement response.</p>
48 pub fn next_token(&self) -> ::std::option::Option<&str> {
49 self.next_token.as_deref()
50 }
51 /// <p>Determines the level of detail about either provisioned or on-demand throughput consumption that is returned in the response:</p>
52 /// <ul>
53 /// <li>
54 /// <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>
55 /// <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>
56 /// <li>
57 /// <p><code>TOTAL</code> - The response includes only the aggregate <code>ConsumedCapacity</code> for the operation.</p></li>
58 /// <li>
59 /// <p><code>NONE</code> - No <code>ConsumedCapacity</code> details are included in the response.</p></li>
60 /// </ul>
61 pub fn return_consumed_capacity(&self) -> ::std::option::Option<&crate::types::ReturnConsumedCapacity> {
62 self.return_consumed_capacity.as_ref()
63 }
64 /// <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, along with a key in <code>LastEvaluatedKey</code> to apply in a subsequent operation so 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.</p>
65 pub fn limit(&self) -> ::std::option::Option<i32> {
66 self.limit
67 }
68 /// <p>An optional parameter that returns the item attributes for an <code>ExecuteStatement</code> operation that failed a condition check.</p>
69 /// <p>There is no additional cost associated with requesting a return value aside from the small network and processing overhead of receiving a larger response. No read capacity units are consumed.</p>
70 pub fn return_values_on_condition_check_failure(&self) -> ::std::option::Option<&crate::types::ReturnValuesOnConditionCheckFailure> {
71 self.return_values_on_condition_check_failure.as_ref()
72 }
73}
74static EXECUTESTATEMENTINPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.dynamodb.synthetic#ExecuteStatementInput", "com.amazonaws.dynamodb.synthetic", "ExecuteStatementInput");
75static EXECUTESTATEMENTINPUT_MEMBER_STATEMENT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
76 ::aws_smithy_schema::ShapeId::from_static(
77 "com.amazonaws.dynamodb.synthetic#ExecuteStatementInput$Statement",
78 "com.amazonaws.dynamodb.synthetic",
79 "ExecuteStatementInput",
80 ),
81 ::aws_smithy_schema::ShapeType::String,
82 "Statement",
83 0,
84 );
85static EXECUTESTATEMENTINPUT_MEMBER_PARAMETERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
86 ::aws_smithy_schema::ShapeId::from_static(
87 "com.amazonaws.dynamodb.synthetic#ExecuteStatementInput$Parameters",
88 "com.amazonaws.dynamodb.synthetic",
89 "ExecuteStatementInput",
90 ),
91 ::aws_smithy_schema::ShapeType::List,
92 "Parameters",
93 1,
94 );
95static EXECUTESTATEMENTINPUT_MEMBER_CONSISTENT_READ: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
96 ::aws_smithy_schema::ShapeId::from_static(
97 "com.amazonaws.dynamodb.synthetic#ExecuteStatementInput$ConsistentRead",
98 "com.amazonaws.dynamodb.synthetic",
99 "ExecuteStatementInput",
100 ),
101 ::aws_smithy_schema::ShapeType::Boolean,
102 "ConsistentRead",
103 2,
104 );
105static EXECUTESTATEMENTINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
106 ::aws_smithy_schema::ShapeId::from_static(
107 "com.amazonaws.dynamodb.synthetic#ExecuteStatementInput$NextToken",
108 "com.amazonaws.dynamodb.synthetic",
109 "ExecuteStatementInput",
110 ),
111 ::aws_smithy_schema::ShapeType::String,
112 "NextToken",
113 3,
114 );
115static EXECUTESTATEMENTINPUT_MEMBER_RETURN_CONSUMED_CAPACITY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
116 ::aws_smithy_schema::ShapeId::from_static(
117 "com.amazonaws.dynamodb.synthetic#ExecuteStatementInput$ReturnConsumedCapacity",
118 "com.amazonaws.dynamodb.synthetic",
119 "ExecuteStatementInput",
120 ),
121 ::aws_smithy_schema::ShapeType::String,
122 "ReturnConsumedCapacity",
123 4,
124 );
125static EXECUTESTATEMENTINPUT_MEMBER_LIMIT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
126 ::aws_smithy_schema::ShapeId::from_static(
127 "com.amazonaws.dynamodb.synthetic#ExecuteStatementInput$Limit",
128 "com.amazonaws.dynamodb.synthetic",
129 "ExecuteStatementInput",
130 ),
131 ::aws_smithy_schema::ShapeType::Integer,
132 "Limit",
133 5,
134 );
135static EXECUTESTATEMENTINPUT_MEMBER_RETURN_VALUES_ON_CONDITION_CHECK_FAILURE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
136 ::aws_smithy_schema::ShapeId::from_static(
137 "com.amazonaws.dynamodb.synthetic#ExecuteStatementInput$ReturnValuesOnConditionCheckFailure",
138 "com.amazonaws.dynamodb.synthetic",
139 "ExecuteStatementInput",
140 ),
141 ::aws_smithy_schema::ShapeType::String,
142 "ReturnValuesOnConditionCheckFailure",
143 6,
144 );
145static EXECUTESTATEMENTINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
146 EXECUTESTATEMENTINPUT_SCHEMA_ID,
147 ::aws_smithy_schema::ShapeType::Structure,
148 &[&EXECUTESTATEMENTINPUT_MEMBER_STATEMENT, &EXECUTESTATEMENTINPUT_MEMBER_PARAMETERS, &EXECUTESTATEMENTINPUT_MEMBER_CONSISTENT_READ, &EXECUTESTATEMENTINPUT_MEMBER_NEXT_TOKEN, &EXECUTESTATEMENTINPUT_MEMBER_RETURN_CONSUMED_CAPACITY, &EXECUTESTATEMENTINPUT_MEMBER_LIMIT, &EXECUTESTATEMENTINPUT_MEMBER_RETURN_VALUES_ON_CONDITION_CHECK_FAILURE],
149 );
150impl ExecuteStatementInput {
151 /// The schema for this shape.
152 pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &EXECUTESTATEMENTINPUT_SCHEMA;
153 }
154impl ::aws_smithy_schema::serde::SerializableStruct for ExecuteStatementInput {
155 #[allow(unused_variables, clippy::diverging_sub_expression)]
156 fn serialize_members(&self, ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
157 if let Some(ref val) = self.statement {
158 ser.write_string(&EXECUTESTATEMENTINPUT_MEMBER_STATEMENT, val)?;
159 }
160if let Some(ref val) = self.parameters {
161
162 ser.write_list(&EXECUTESTATEMENTINPUT_MEMBER_PARAMETERS, &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
163 for item in val {
164 ser.write_struct(crate::types::AttributeValue::SCHEMA, item)?;
165 }
166 Ok(())
167 })?;
168
169 }
170if let Some(ref val) = self.consistent_read {
171 ser.write_boolean(&EXECUTESTATEMENTINPUT_MEMBER_CONSISTENT_READ, *val)?;
172 }
173if let Some(ref val) = self.next_token {
174 ser.write_string(&EXECUTESTATEMENTINPUT_MEMBER_NEXT_TOKEN, val)?;
175 }
176if let Some(ref val) = self.return_consumed_capacity {
177 ser.write_string(&EXECUTESTATEMENTINPUT_MEMBER_RETURN_CONSUMED_CAPACITY, val.as_str())?;
178 }
179if let Some(ref val) = self.limit {
180 ser.write_integer(&EXECUTESTATEMENTINPUT_MEMBER_LIMIT, *val)?;
181 }
182if let Some(ref val) = self.return_values_on_condition_check_failure {
183 ser.write_string(&EXECUTESTATEMENTINPUT_MEMBER_RETURN_VALUES_ON_CONDITION_CHECK_FAILURE, val.as_str())?;
184 }
185 Ok(())
186 }
187 }
188impl ExecuteStatementInput {
189 /// Deserializes this structure from a [`ShapeDeserializer`].
190 pub fn deserialize(deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
191 #[allow(unused_variables, unused_mut)]
192 let mut builder = Self::builder();
193 #[allow(unused_variables, unreachable_code, clippy::single_match, clippy::match_single_binding, clippy::diverging_sub_expression)]
194 deserializer.read_struct(&EXECUTESTATEMENTINPUT_SCHEMA, &mut |member, deser| {
195 match member.member_index() {
196 Some(0) => {
197 builder.statement = Some(deser.read_string(member)?);
198 }
199Some(1) => {
200 builder.parameters = Some({ let mut container = Vec::new(); deser.read_list(member, &mut |deser| { container.push(crate::types::AttributeValue::deserialize(deser)?); Ok(()) })?; container });
201 }
202Some(2) => {
203 builder.consistent_read = Some(deser.read_boolean(member)?);
204 }
205Some(3) => {
206 builder.next_token = Some(deser.read_string(member)?);
207 }
208Some(4) => {
209 builder.return_consumed_capacity = Some(crate::types::ReturnConsumedCapacity::from(deser.read_string(member)?.as_str()));
210 }
211Some(5) => {
212 builder.limit = Some(deser.read_integer(member)?);
213 }
214Some(6) => {
215 builder.return_values_on_condition_check_failure = Some(crate::types::ReturnValuesOnConditionCheckFailure::from(deser.read_string(member)?.as_str()));
216 }
217 _ => {}
218 }
219 Ok(())
220 })?;
221 builder.statement = builder.statement.or(Some(String::new()));
222builder.build().map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
223 }
224 }
225impl ExecuteStatementInput {
226 /// Deserializes this structure from a body deserializer and HTTP response.
227 pub fn deserialize_with_response(
228 deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
229 _headers: &::aws_smithy_runtime_api::http::Headers,
230 _status: u16,
231 _body: &[u8],
232 ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
233 Self::deserialize(deserializer)
234 }
235 }
236impl ExecuteStatementInput {
237 /// Creates a new builder-style object to manufacture [`ExecuteStatementInput`](crate::operation::execute_statement::ExecuteStatementInput).
238 pub fn builder() -> crate::operation::execute_statement::builders::ExecuteStatementInputBuilder {
239 crate::operation::execute_statement::builders::ExecuteStatementInputBuilder::default()
240 }
241}
242
243/// A builder for [`ExecuteStatementInput`](crate::operation::execute_statement::ExecuteStatementInput).
244#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
245#[non_exhaustive]
246pub struct ExecuteStatementInputBuilder {
247 pub(crate) statement: ::std::option::Option<::std::string::String>,
248 pub(crate) parameters: ::std::option::Option<::std::vec::Vec::<crate::types::AttributeValue>>,
249 pub(crate) consistent_read: ::std::option::Option<bool>,
250 pub(crate) next_token: ::std::option::Option<::std::string::String>,
251 pub(crate) return_consumed_capacity: ::std::option::Option<crate::types::ReturnConsumedCapacity>,
252 pub(crate) limit: ::std::option::Option<i32>,
253 pub(crate) return_values_on_condition_check_failure: ::std::option::Option<crate::types::ReturnValuesOnConditionCheckFailure>,
254}
255impl ExecuteStatementInputBuilder {
256 /// <p>The PartiQL statement representing the operation to run.</p>
257 /// This field is required.
258 pub fn statement(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
259 self.statement = ::std::option::Option::Some(input.into());
260 self
261 }
262 /// <p>The PartiQL statement representing the operation to run.</p>
263 pub fn set_statement(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
264 self.statement = input; self
265 }
266 /// <p>The PartiQL statement representing the operation to run.</p>
267 pub fn get_statement(&self) -> &::std::option::Option<::std::string::String> {
268 &self.statement
269 }
270 /// Appends an item to `parameters`.
271 ///
272 /// To override the contents of this collection use [`set_parameters`](Self::set_parameters).
273 ///
274 /// <p>The parameters for the PartiQL statement, if any.</p>
275 pub fn parameters(mut self, input: crate::types::AttributeValue) -> Self {
276 let mut v = self.parameters.unwrap_or_default();
277 v.push(input);
278 self.parameters = ::std::option::Option::Some(v);
279 self
280 }
281 /// <p>The parameters for the PartiQL statement, if any.</p>
282 pub fn set_parameters(mut self, input: ::std::option::Option<::std::vec::Vec::<crate::types::AttributeValue>>) -> Self {
283 self.parameters = input; self
284 }
285 /// <p>The parameters for the PartiQL statement, if any.</p>
286 pub fn get_parameters(&self) -> &::std::option::Option<::std::vec::Vec::<crate::types::AttributeValue>> {
287 &self.parameters
288 }
289 /// <p>The consistency of a read operation. If set to <code>true</code>, then a strongly consistent read is used; otherwise, an eventually consistent read is used.</p>
290 pub fn consistent_read(mut self, input: bool) -> Self {
291 self.consistent_read = ::std::option::Option::Some(input);
292 self
293 }
294 /// <p>The consistency of a read operation. If set to <code>true</code>, then a strongly consistent read is used; otherwise, an eventually consistent read is used.</p>
295 pub fn set_consistent_read(mut self, input: ::std::option::Option<bool>) -> Self {
296 self.consistent_read = input; self
297 }
298 /// <p>The consistency of a read operation. If set to <code>true</code>, then a strongly consistent read is used; otherwise, an eventually consistent read is used.</p>
299 pub fn get_consistent_read(&self) -> &::std::option::Option<bool> {
300 &self.consistent_read
301 }
302 /// <p>Set this value to get remaining results, if <code>NextToken</code> was returned in the statement response.</p>
303 pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
304 self.next_token = ::std::option::Option::Some(input.into());
305 self
306 }
307 /// <p>Set this value to get remaining results, if <code>NextToken</code> was returned in the statement response.</p>
308 pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
309 self.next_token = input; self
310 }
311 /// <p>Set this value to get remaining results, if <code>NextToken</code> was returned in the statement response.</p>
312 pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
313 &self.next_token
314 }
315 /// <p>Determines the level of detail about either provisioned or on-demand throughput consumption that is returned in the response:</p>
316 /// <ul>
317 /// <li>
318 /// <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>
319 /// <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>
320 /// <li>
321 /// <p><code>TOTAL</code> - The response includes only the aggregate <code>ConsumedCapacity</code> for the operation.</p></li>
322 /// <li>
323 /// <p><code>NONE</code> - No <code>ConsumedCapacity</code> details are included in the response.</p></li>
324 /// </ul>
325 pub fn return_consumed_capacity(mut self, input: crate::types::ReturnConsumedCapacity) -> Self {
326 self.return_consumed_capacity = ::std::option::Option::Some(input);
327 self
328 }
329 /// <p>Determines the level of detail about either provisioned or on-demand throughput consumption that is returned in the response:</p>
330 /// <ul>
331 /// <li>
332 /// <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>
333 /// <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>
334 /// <li>
335 /// <p><code>TOTAL</code> - The response includes only the aggregate <code>ConsumedCapacity</code> for the operation.</p></li>
336 /// <li>
337 /// <p><code>NONE</code> - No <code>ConsumedCapacity</code> details are included in the response.</p></li>
338 /// </ul>
339 pub fn set_return_consumed_capacity(mut self, input: ::std::option::Option<crate::types::ReturnConsumedCapacity>) -> Self {
340 self.return_consumed_capacity = input; self
341 }
342 /// <p>Determines the level of detail about either provisioned or on-demand throughput consumption that is returned in the response:</p>
343 /// <ul>
344 /// <li>
345 /// <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>
346 /// <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>
347 /// <li>
348 /// <p><code>TOTAL</code> - The response includes only the aggregate <code>ConsumedCapacity</code> for the operation.</p></li>
349 /// <li>
350 /// <p><code>NONE</code> - No <code>ConsumedCapacity</code> details are included in the response.</p></li>
351 /// </ul>
352 pub fn get_return_consumed_capacity(&self) -> &::std::option::Option<crate::types::ReturnConsumedCapacity> {
353 &self.return_consumed_capacity
354 }
355 /// <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, along with a key in <code>LastEvaluatedKey</code> to apply in a subsequent operation so 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.</p>
356 pub fn limit(mut self, input: i32) -> Self {
357 self.limit = ::std::option::Option::Some(input);
358 self
359 }
360 /// <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, along with a key in <code>LastEvaluatedKey</code> to apply in a subsequent operation so 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.</p>
361 pub fn set_limit(mut self, input: ::std::option::Option<i32>) -> Self {
362 self.limit = input; self
363 }
364 /// <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, along with a key in <code>LastEvaluatedKey</code> to apply in a subsequent operation so 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.</p>
365 pub fn get_limit(&self) -> &::std::option::Option<i32> {
366 &self.limit
367 }
368 /// <p>An optional parameter that returns the item attributes for an <code>ExecuteStatement</code> operation that failed a condition check.</p>
369 /// <p>There is no additional cost associated with requesting a return value aside from the small network and processing overhead of receiving a larger response. No read capacity units are consumed.</p>
370 pub fn return_values_on_condition_check_failure(mut self, input: crate::types::ReturnValuesOnConditionCheckFailure) -> Self {
371 self.return_values_on_condition_check_failure = ::std::option::Option::Some(input);
372 self
373 }
374 /// <p>An optional parameter that returns the item attributes for an <code>ExecuteStatement</code> operation that failed a condition check.</p>
375 /// <p>There is no additional cost associated with requesting a return value aside from the small network and processing overhead of receiving a larger response. No read capacity units are consumed.</p>
376 pub fn set_return_values_on_condition_check_failure(mut self, input: ::std::option::Option<crate::types::ReturnValuesOnConditionCheckFailure>) -> Self {
377 self.return_values_on_condition_check_failure = input; self
378 }
379 /// <p>An optional parameter that returns the item attributes for an <code>ExecuteStatement</code> operation that failed a condition check.</p>
380 /// <p>There is no additional cost associated with requesting a return value aside from the small network and processing overhead of receiving a larger response. No read capacity units are consumed.</p>
381 pub fn get_return_values_on_condition_check_failure(&self) -> &::std::option::Option<crate::types::ReturnValuesOnConditionCheckFailure> {
382 &self.return_values_on_condition_check_failure
383 }
384 /// Consumes the builder and constructs a [`ExecuteStatementInput`](crate::operation::execute_statement::ExecuteStatementInput).
385 pub fn build(self) -> ::std::result::Result<crate::operation::execute_statement::ExecuteStatementInput, ::aws_smithy_types::error::operation::BuildError> {
386 ::std::result::Result::Ok(
387 crate::operation::execute_statement::ExecuteStatementInput {
388 statement: self.statement
389 ,
390 parameters: self.parameters
391 ,
392 consistent_read: self.consistent_read
393 ,
394 next_token: self.next_token
395 ,
396 return_consumed_capacity: self.return_consumed_capacity
397 ,
398 limit: self.limit
399 ,
400 return_values_on_condition_check_failure: self.return_values_on_condition_check_failure
401 ,
402 }
403 )
404 }
405}
406