/* * 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 { /// /// A block of data in an Amazon Elastic Block Store snapshot. /// public partial class Block { private int? _blockIndex; private string _blockToken; /// /// Gets and sets the property BlockIndex. /// /// The block index. /// /// [AWSProperty(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 for the block index. /// /// [AWSProperty(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; } } }