/*
 * 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 ebs-2019-11-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.EBS.Model
{
    /// 
    /// Container for the parameters to the ListSnapshotBlocks operation.
    /// Returns information about the blocks in an Amazon Elastic Block Store snapshot.
    /// 
    ///   
    /// 
    /// You should always retry requests that receive server (5xx) error responses,
    /// and ThrottlingException and RequestThrottledException client
    /// error responses. For more information see Error
    /// retries in the Amazon Elastic Compute Cloud User Guide.
    /// 
    ///  
    /// 
    public partial class ListSnapshotBlocksRequest : AmazonEBSRequest
    {
        private int? _maxResults;
        private string _nextToken;
        private string _snapshotId;
        private int? _startingBlockIndex;
        /// 
        /// Gets and sets the property MaxResults. 
        /// 
        /// The maximum number of blocks to be returned by the request.
        /// 
        ///  
        /// 
        /// Even if additional blocks can be retrieved from the snapshot, the request can return
        /// less blocks than MaxResults or an empty array of blocks.
        /// 
        ///  
        /// 
        /// To retrieve the next set of blocks from the snapshot, make another request with the
        /// returned NextToken value. The value of NextToken is null
        /// when there are no more blocks to return.
        /// 
        /// 
        [AWSProperty(Min=100, Max=10000)]
        public int MaxResults
        {
            get { return this._maxResults.GetValueOrDefault(); }
            set { this._maxResults = value; }
        }
        // Check to see if MaxResults property is set
        internal bool IsSetMaxResults()
        {
            return this._maxResults.HasValue; 
        }
        /// 
        /// Gets and sets the property NextToken. 
        /// 
        /// The token to request the next page of results.
        /// 
        ///  
        /// 
        /// If you specify NextToken, then StartingBlockIndex is ignored.
        /// 
        /// 
        [AWSProperty(Max=256)]
        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 SnapshotId. 
        /// 
        /// The ID of the snapshot from which to get block indexes and block tokens.
        /// 
        /// 
        [AWSProperty(Required=true, Min=1, Max=64)]
        public string SnapshotId
        {
            get { return this._snapshotId; }
            set { this._snapshotId = value; }
        }
        // Check to see if SnapshotId property is set
        internal bool IsSetSnapshotId()
        {
            return this._snapshotId != null;
        }
        /// 
        /// Gets and sets the property StartingBlockIndex. 
        /// 
        /// The block index from which the list should start. The list in the response will start
        /// from this block index or the next valid block index in the snapshot.
        /// 
        ///  
        /// 
        /// If you specify NextToken, then StartingBlockIndex is ignored.
        /// 
        /// 
        [AWSProperty(Min=0)]
        public int StartingBlockIndex
        {
            get { return this._startingBlockIndex.GetValueOrDefault(); }
            set { this._startingBlockIndex = value; }
        }
        // Check to see if StartingBlockIndex property is set
        internal bool IsSetStartingBlockIndex()
        {
            return this._startingBlockIndex.HasValue; 
        }
    }
}