/* * 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 { /// /// Container for the parameters to the ImportInstance operation. /// /// /// We recommend that you use the /// ImportImage API. For more information, see Importing /// a VM as an image using VM Import/Export in the VM Import/Export User Guide. /// /// /// /// Creates an import instance task using metadata from the specified disk image. /// /// /// /// This API action is not supported by the Command Line Interface (CLI). For information /// about using the Amazon EC2 CLI, which is deprecated, see Importing /// a VM to Amazon EC2 in the Amazon EC2 CLI Reference PDF file. /// /// /// /// This API action supports only single-volume VMs. To import multi-volume VMs, use ImportImage /// instead. /// /// /// /// For information about the import manifest referenced by this API action, see VM /// Import Manifest. /// /// public partial class ImportInstanceRequest : AmazonEC2Request { private string _description; private List _diskImages = new List(); private ImportInstanceLaunchSpecification _launchSpecification; private PlatformValues _platform; /// /// Gets and sets the property Description. /// /// A description for the instance being imported. /// /// public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// /// Gets and sets the property DiskImages. /// /// The disk image. /// /// public List DiskImages { get { return this._diskImages; } set { this._diskImages = value; } } // Check to see if DiskImages property is set internal bool IsSetDiskImages() { return this._diskImages != null && this._diskImages.Count > 0; } /// /// Gets and sets the property LaunchSpecification. /// /// The launch specification. /// /// public ImportInstanceLaunchSpecification LaunchSpecification { get { return this._launchSpecification; } set { this._launchSpecification = value; } } // Check to see if LaunchSpecification property is set internal bool IsSetLaunchSpecification() { return this._launchSpecification != null; } /// /// Gets and sets the property Platform. /// /// The instance operating system. /// /// [AWSProperty(Required=true)] public PlatformValues Platform { get { return this._platform; } set { this._platform = value; } } // Check to see if Platform property is set internal bool IsSetPlatform() { return this._platform != null; } } }