/*
* Copyright 2010-2014 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 Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.DynamoDBv2.Model
{
///
/// Represents the output of a Scan
operation.
///
public partial class ScanResponse : AmazonWebServiceResponse
{
private ConsumedCapacity _consumedCapacity;
private int? _count;
private List> _items = new List>();
private Dictionary _lastEvaluatedKey = new Dictionary();
private int? _scannedCount;
///
/// Gets and sets the property ConsumedCapacity.
///
/// The capacity units consumed by the Scan
operation. The data returned
/// includes the total provisioned throughput consumed, along with statistics for the
/// table and any indexes involved in the operation. ConsumedCapacity
is
/// only returned if the ReturnConsumedCapacity
parameter was specified.
/// For more information, see Provisioned
/// Throughput in the Amazon DynamoDB Developer Guide.
///
///
public ConsumedCapacity ConsumedCapacity
{
get { return this._consumedCapacity; }
set { this._consumedCapacity = value; }
}
// Check to see if ConsumedCapacity property is set
internal bool IsSetConsumedCapacity()
{
return this._consumedCapacity != null;
}
///
/// Gets and sets the property Count.
///
/// The number of items in the response.
///
///
///
/// If you set ScanFilter
in the request, then Count
is the
/// number of items returned after the filter was applied, and ScannedCount
/// is the number of matching items before the filter was applied.
///
///
///
/// If you did not use a filter in the request, then Count
is the same as
/// ScannedCount
.
///
///
public int Count
{
get { return this._count.GetValueOrDefault(); }
set { this._count = value; }
}
// Check to see if Count property is set
internal bool IsSetCount()
{
return this._count.HasValue;
}
///
/// Gets and sets the property Items.
///
/// An array of item attributes that match the scan criteria. Each element in this array
/// consists of an attribute name and the value for that attribute.
///
///
public List> Items
{
get { return this._items; }
set { this._items = value; }
}
// Check to see if Items property is set
internal bool IsSetItems()
{
return this._items != null && this._items.Count > 0;
}
///
/// Gets and sets the property LastEvaluatedKey.
///
/// The primary key of the item where the operation stopped, inclusive of the previous
/// result set. Use this value to start a new operation, excluding this value in the new
/// request.
///
///
///
/// If LastEvaluatedKey
is empty, then the "last page" of results has been
/// processed and there is no more data to be retrieved.
///
///
///
/// If LastEvaluatedKey
is not empty, it does not necessarily mean that there
/// is more data in the result set. The only way to know when you have reached the end
/// of the result set is when LastEvaluatedKey
is empty.
///
///
public Dictionary LastEvaluatedKey
{
get { return this._lastEvaluatedKey; }
set { this._lastEvaluatedKey = value; }
}
// Check to see if LastEvaluatedKey property is set
internal bool IsSetLastEvaluatedKey()
{
return this._lastEvaluatedKey != null && this._lastEvaluatedKey.Count > 0;
}
///
/// Gets and sets the property ScannedCount.
///
/// The number of items evaluated, before any ScanFilter
is applied. A high
/// ScannedCount
value with few, or no, Count
results indicates
/// an inefficient Scan
operation. For more information, see Count
/// and ScannedCount in the Amazon DynamoDB Developer Guide.
///
///
///
/// If you did not use a filter in the request, then ScannedCount
is the
/// same as Count
.
///
///
public int ScannedCount
{
get { return this._scannedCount.GetValueOrDefault(); }
set { this._scannedCount = value; }
}
// Check to see if ScannedCount property is set
internal bool IsSetScannedCount()
{
return this._scannedCount.HasValue;
}
}
}