/* * 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 GetSnapshotBlock operation. /// Returns the data in a block 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 GetSnapshotBlockRequest : AmazonEBSRequest { private int? _blockIndex; private string _blockToken; private string _snapshotId; /// /// Gets and sets the property BlockIndex. /// /// The block index of the block in which to read the data. A block index is a logical /// index in units of 512 KiB blocks. To identify the block index, divide /// the logical offset of the data in the logical volume by the block size (logical offset /// of data/524288). The logical offset of the data must be 512 /// KiB aligned. /// /// [AWSProperty(Required=true, Min=0)] public int BlockIndex { get { return this._blockIndex.GetValueOrDefault(); } set { this._blockIndex = value; } } // Check to see if BlockIndex property is set internal bool IsSetBlockIndex() { return this._blockIndex.HasValue; } /// /// Gets and sets the property BlockToken. /// /// The block token of the block from which to get data. You can obtain the BlockToken /// by running the ListChangedBlocks or ListSnapshotBlocks operations. /// /// [AWSProperty(Required=true, Max=256)] public string BlockToken { get { return this._blockToken; } set { this._blockToken = value; } } // Check to see if BlockToken property is set internal bool IsSetBlockToken() { return this._blockToken != null; } /// /// Gets and sets the property SnapshotId. /// /// The ID of the snapshot containing the block from which to get data. /// /// /// /// If the specified snapshot is encrypted, you must have permission to use the KMS key /// that was used to encrypt the snapshot. For more information, see /// Using encryption in the Amazon Elastic Compute Cloud User Guide. /// /// /// [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; } } }