/* * 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 kinesis-2013-12-02.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.Kinesis.Model { /// /// Represents the output for GetRecords. /// public partial class GetRecordsResponse : AmazonWebServiceResponse { private List _childShards = new List(); private long? _millisBehindLatest; private string _nextShardIterator; private List _records = new List(); /// /// Gets and sets the property ChildShards. /// /// The list of the current shard's child shards, returned in the GetRecords /// API's response only when the end of the current shard is reached. /// /// public List ChildShards { get { return this._childShards; } set { this._childShards = value; } } // Check to see if ChildShards property is set internal bool IsSetChildShards() { return this._childShards != null && this._childShards.Count > 0; } /// /// Gets and sets the property MillisBehindLatest. /// /// The number of milliseconds the GetRecords response is from the tip of the stream, /// indicating how far behind current time the consumer is. A value of zero indicates /// that record processing is caught up, and there are no new records to process at this /// moment. /// /// [AWSProperty(Min=0)] public long MillisBehindLatest { get { return this._millisBehindLatest.GetValueOrDefault(); } set { this._millisBehindLatest = value; } } // Check to see if MillisBehindLatest property is set internal bool IsSetMillisBehindLatest() { return this._millisBehindLatest.HasValue; } /// /// Gets and sets the property NextShardIterator. /// /// The next position in the shard from which to start sequentially reading data records. /// If set to null, the shard has been closed and the requested iterator /// does not return any more data. /// /// [AWSProperty(Min=1, Max=512)] public string NextShardIterator { get { return this._nextShardIterator; } set { this._nextShardIterator = value; } } // Check to see if NextShardIterator property is set internal bool IsSetNextShardIterator() { return this._nextShardIterator != null; } /// /// Gets and sets the property Records. /// /// The data records retrieved from the shard. /// /// [AWSProperty(Required=true)] public List Records { get { return this._records; } set { this._records = value; } } // Check to see if Records property is set internal bool IsSetRecords() { return this._records != null && this._records.Count > 0; } } }