/* * 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 ec2-2016-11-15.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.EC2.Model { /// /// The instance details to specify which volumes should be snapshotted. /// public partial class InstanceSpecification { private bool? _excludeBootVolume; private List _excludeDataVolumeIds = new List(); private string _instanceId; /// /// Gets and sets the property ExcludeBootVolume. /// /// Excludes the root volume from being snapshotted. /// /// public bool ExcludeBootVolume { get { return this._excludeBootVolume.GetValueOrDefault(); } set { this._excludeBootVolume = value; } } // Check to see if ExcludeBootVolume property is set internal bool IsSetExcludeBootVolume() { return this._excludeBootVolume.HasValue; } /// /// Gets and sets the property ExcludeDataVolumeIds. /// /// The IDs of the data (non-root) volumes to exclude from the multi-volume snapshot set. /// If you specify the ID of the root volume, the request fails. To exclude the root volume, /// use ExcludeBootVolume. /// /// /// /// You can specify up to 40 volume IDs per request. /// /// public List ExcludeDataVolumeIds { get { return this._excludeDataVolumeIds; } set { this._excludeDataVolumeIds = value; } } // Check to see if ExcludeDataVolumeIds property is set internal bool IsSetExcludeDataVolumeIds() { return this._excludeDataVolumeIds != null && this._excludeDataVolumeIds.Count > 0; } /// /// Gets and sets the property InstanceId. /// /// The instance to specify which volumes should be snapshotted. /// /// [AWSProperty(Required=true)] public string InstanceId { get { return this._instanceId; } set { this._instanceId = value; } } // Check to see if InstanceId property is set internal bool IsSetInstanceId() { return this._instanceId != null; } } }