/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the dynamodb-2012-08-10.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.DynamoDBv2.Model
{
///
/// Container for the parameters to the ExecuteStatement operation.
/// This operation allows you to perform reads and singleton writes on data stored in
/// DynamoDB, using PartiQL.
///
///
///
/// For PartiQL reads (SELECT
statement), if the total number of processed
/// items exceeds the maximum dataset size limit of 1 MB, the read stops and results are
/// returned to the user as a LastEvaluatedKey
value to continue the read
/// in a subsequent operation. If the filter criteria in WHERE
clause does
/// not match any data, the read will return an empty result set.
///
///
///
/// A single SELECT
statement response can return up to the maximum number
/// of items (if using the Limit parameter) or a maximum of 1 MB of data (and then apply
/// any filtering to the results using WHERE
clause). If LastEvaluatedKey
/// is present in the response, you need to paginate the result set. If NextToken
/// is present, you need to paginate the result set and include NextToken
.
///
///
public partial class ExecuteStatementRequest : AmazonDynamoDBRequest
{
private bool? _consistentRead;
private int? _limit;
private string _nextToken;
private List _parameters = new List();
private ReturnConsumedCapacity _returnConsumedCapacity;
private ReturnValuesOnConditionCheckFailure _returnValuesOnConditionCheckFailure;
private string _statement;
///
/// Gets and sets the property ConsistentRead.
///
/// The consistency of a read operation. If set to true
, then a strongly
/// consistent read is used; otherwise, an eventually consistent read is used.
///
///
public bool ConsistentRead
{
get { return this._consistentRead.GetValueOrDefault(); }
set { this._consistentRead = value; }
}
// Check to see if ConsistentRead property is set
internal bool IsSetConsistentRead()
{
return this._consistentRead.HasValue;
}
///
/// Gets and sets the property Limit.
///
/// 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 LastEvaluatedKey
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 LastEvaluatedKey
to apply in a subsequent
/// operation to continue the operation.
///
///
[AWSProperty(Min=1)]
public int Limit
{
get { return this._limit.GetValueOrDefault(); }
set { this._limit = value; }
}
// Check to see if Limit property is set
internal bool IsSetLimit()
{
return this._limit.HasValue;
}
///
/// Gets and sets the property NextToken.
///
/// Set this value to get remaining results, if NextToken
was returned in
/// the statement response.
///
///
[AWSProperty(Min=1, Max=32768)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
///
/// Gets and sets the property Parameters.
///
/// The parameters for the PartiQL statement, if any.
///
///
[AWSProperty(Min=1)]
public List Parameters
{
get { return this._parameters; }
set { this._parameters = value; }
}
// Check to see if Parameters property is set
internal bool IsSetParameters()
{
return this._parameters != null && this._parameters.Count > 0;
}
///
/// Gets and sets the property ReturnConsumedCapacity.
///
public ReturnConsumedCapacity ReturnConsumedCapacity
{
get { return this._returnConsumedCapacity; }
set { this._returnConsumedCapacity = value; }
}
// Check to see if ReturnConsumedCapacity property is set
internal bool IsSetReturnConsumedCapacity()
{
return this._returnConsumedCapacity != null;
}
///
/// Gets and sets the property ReturnValuesOnConditionCheckFailure.
///
/// An optional parameter that returns the item attributes for an ExecuteStatement
/// operation that failed a condition check.
///
///
///
/// 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.
///
///
public ReturnValuesOnConditionCheckFailure ReturnValuesOnConditionCheckFailure
{
get { return this._returnValuesOnConditionCheckFailure; }
set { this._returnValuesOnConditionCheckFailure = value; }
}
// Check to see if ReturnValuesOnConditionCheckFailure property is set
internal bool IsSetReturnValuesOnConditionCheckFailure()
{
return this._returnValuesOnConditionCheckFailure != null;
}
///
/// Gets and sets the property Statement.
///
/// The PartiQL statement representing the operation to run.
///
///
[AWSProperty(Required=true, Min=1, Max=8192)]
public string Statement
{
get { return this._statement; }
set { this._statement = value; }
}
// Check to see if Statement property is set
internal bool IsSetStatement()
{
return this._statement != null;
}
}
}