/*
* 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 ImportVolume operation.
/// Creates an import volume task using metadata from the specified disk image.
///
///
///
/// This API action supports only single-volume VMs. To import multi-volume VMs, use ImportImage
/// instead. To import a disk to a snapshot, use ImportSnapshot instead.
///
///
///
/// 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
/// Disks to Amazon EBS in the Amazon EC2 CLI Reference PDF file.
///
///
///
/// For information about the import manifest referenced by this API action, see VM
/// Import Manifest.
///
///
public partial class ImportVolumeRequest : AmazonEC2Request
{
private string _availabilityZone;
private string _description;
private DiskImageDetail _image;
private VolumeDetail _volume;
///
/// Gets and sets the property AvailabilityZone.
///
/// The Availability Zone for the resulting EBS volume.
///
///
[AWSProperty(Required=true)]
public string AvailabilityZone
{
get { return this._availabilityZone; }
set { this._availabilityZone = value; }
}
// Check to see if AvailabilityZone property is set
internal bool IsSetAvailabilityZone()
{
return this._availabilityZone != null;
}
///
/// Gets and sets the property Description.
///
/// A description of the volume.
///
///
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 Image.
///
/// The disk image.
///
///
[AWSProperty(Required=true)]
public DiskImageDetail Image
{
get { return this._image; }
set { this._image = value; }
}
// Check to see if Image property is set
internal bool IsSetImage()
{
return this._image != null;
}
///
/// Gets and sets the property Volume.
///
/// The volume size.
///
///
[AWSProperty(Required=true)]
public VolumeDetail Volume
{
get { return this._volume; }
set { this._volume = value; }
}
// Check to see if Volume property is set
internal bool IsSetVolume()
{
return this._volume != null;
}
}
}