/*
* 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 ListChangedBlocks operation.
/// Returns information about the blocks that are different between two Amazon Elastic
/// Block Store snapshots of the same volume/snapshot lineage.
///
///
///
/// 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 ListChangedBlocksRequest : AmazonEBSRequest
{
private string _firstSnapshotId;
private int? _maxResults;
private string _nextToken;
private string _secondSnapshotId;
private int? _startingBlockIndex;
///
/// Gets and sets the property FirstSnapshotId.
///
/// The ID of the first snapshot to use for the comparison.
///
///
///
/// The FirstSnapshotID
parameter must be specified with a SecondSnapshotId
/// parameter; otherwise, an error occurs.
///
///
///
[AWSProperty(Min=1, Max=64)]
public string FirstSnapshotId
{
get { return this._firstSnapshotId; }
set { this._firstSnapshotId = value; }
}
// Check to see if FirstSnapshotId property is set
internal bool IsSetFirstSnapshotId()
{
return this._firstSnapshotId != null;
}
///
/// 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 SecondSnapshotId.
///
/// The ID of the second snapshot to use for the comparison.
///
///
///
/// The SecondSnapshotId
parameter must be specified with a FirstSnapshotID
/// parameter; otherwise, an error occurs.
///
///
///
[AWSProperty(Required=true, Min=1, Max=64)]
public string SecondSnapshotId
{
get { return this._secondSnapshotId; }
set { this._secondSnapshotId = value; }
}
// Check to see if SecondSnapshotId property is set
internal bool IsSetSecondSnapshotId()
{
return this._secondSnapshotId != null;
}
///
/// Gets and sets the property StartingBlockIndex.
///
/// The block index from which the comparison should start.
///
///
///
/// The list in the response will start from this block index or the next valid block
/// index in the snapshots.
///
///
///
/// 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;
}
}
}