/*
* 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
{
///
/// Describes the launch specification for an instance.
///
public partial class LaunchSpecification
{
private string _addressingType;
private List _allSecurityGroups = new List();
private List _blockDeviceMappings = new List();
private bool? _ebsOptimized;
private IamInstanceProfileSpecification _iamInstanceProfile;
private string _imageId;
private InstanceType _instanceType;
private string _kernelId;
private string _keyName;
private bool? _monitoringEnabled;
private List _networkInterfaces = new List();
private SpotPlacement _placement;
private string _ramdiskId;
private List _securityGroups = new List();
private string _subnetId;
private string _userData;
///
/// Gets and sets the property AddressingType.
///
/// Deprecated.
///
///
public string AddressingType
{
get { return this._addressingType; }
set { this._addressingType = value; }
}
// Check to see if AddressingType property is set
internal bool IsSetAddressingType()
{
return this._addressingType != null;
}
///
/// Gets and sets the property AllSecurityGroups.
///
/// The IDs of the security groups.
///
///
public List AllSecurityGroups
{
get { return this._allSecurityGroups; }
set { this._allSecurityGroups = value; }
}
// Check to see if AllSecurityGroups property is set
internal bool IsSetAllSecurityGroups()
{
return this._allSecurityGroups != null && this._allSecurityGroups.Count > 0;
}
///
/// Gets and sets the property BlockDeviceMappings.
///
/// The block device mapping entries.
///
///
public List BlockDeviceMappings
{
get { return this._blockDeviceMappings; }
set { this._blockDeviceMappings = value; }
}
// Check to see if BlockDeviceMappings property is set
internal bool IsSetBlockDeviceMappings()
{
return this._blockDeviceMappings != null && this._blockDeviceMappings.Count > 0;
}
///
/// Gets and sets the property EbsOptimized.
///
/// Indicates whether the instance is optimized for EBS I/O. This optimization provides
/// dedicated throughput to Amazon EBS and an optimized configuration stack to provide
/// optimal EBS I/O performance. This optimization isn't available with all instance types.
/// Additional usage charges apply when using an EBS Optimized instance.
///
///
///
/// Default: false
///
///
public bool EbsOptimized
{
get { return this._ebsOptimized.GetValueOrDefault(); }
set { this._ebsOptimized = value; }
}
// Check to see if EbsOptimized property is set
internal bool IsSetEbsOptimized()
{
return this._ebsOptimized.HasValue;
}
///
/// Gets and sets the property IamInstanceProfile.
///
/// The IAM instance profile.
///
///
public IamInstanceProfileSpecification IamInstanceProfile
{
get { return this._iamInstanceProfile; }
set { this._iamInstanceProfile = value; }
}
// Check to see if IamInstanceProfile property is set
internal bool IsSetIamInstanceProfile()
{
return this._iamInstanceProfile != null;
}
///
/// Gets and sets the property ImageId.
///
/// The ID of the AMI.
///
///
public string ImageId
{
get { return this._imageId; }
set { this._imageId = value; }
}
// Check to see if ImageId property is set
internal bool IsSetImageId()
{
return this._imageId != null;
}
///
/// Gets and sets the property InstanceType.
///
/// The instance type. Only one instance type can be specified.
///
///
public InstanceType InstanceType
{
get { return this._instanceType; }
set { this._instanceType = value; }
}
// Check to see if InstanceType property is set
internal bool IsSetInstanceType()
{
return this._instanceType != null;
}
///
/// Gets and sets the property KernelId.
///
/// The ID of the kernel.
///
///
public string KernelId
{
get { return this._kernelId; }
set { this._kernelId = value; }
}
// Check to see if KernelId property is set
internal bool IsSetKernelId()
{
return this._kernelId != null;
}
///
/// Gets and sets the property KeyName.
///
/// The name of the key pair.
///
///
public string KeyName
{
get { return this._keyName; }
set { this._keyName = value; }
}
// Check to see if KeyName property is set
internal bool IsSetKeyName()
{
return this._keyName != null;
}
///
/// Gets and sets the property MonitoringEnabled.
///
public bool MonitoringEnabled
{
get { return this._monitoringEnabled.GetValueOrDefault(); }
set { this._monitoringEnabled = value; }
}
// Check to see if MonitoringEnabled property is set
internal bool IsSetMonitoringEnabled()
{
return this._monitoringEnabled.HasValue;
}
///
/// Gets and sets the property NetworkInterfaces.
///
/// The network interfaces. If you specify a network interface, you must specify subnet
/// IDs and security group IDs using the network interface.
///
///
public List NetworkInterfaces
{
get { return this._networkInterfaces; }
set { this._networkInterfaces = value; }
}
// Check to see if NetworkInterfaces property is set
internal bool IsSetNetworkInterfaces()
{
return this._networkInterfaces != null && this._networkInterfaces.Count > 0;
}
///
/// Gets and sets the property Placement.
///
/// The placement information for the instance.
///
///
public SpotPlacement Placement
{
get { return this._placement; }
set { this._placement = value; }
}
// Check to see if Placement property is set
internal bool IsSetPlacement()
{
return this._placement != null;
}
///
/// Gets and sets the property RamdiskId.
///
/// The ID of the RAM disk.
///
///
public string RamdiskId
{
get { return this._ramdiskId; }
set { this._ramdiskId = value; }
}
// Check to see if RamdiskId property is set
internal bool IsSetRamdiskId()
{
return this._ramdiskId != null;
}
///
/// Gets and sets the property SecurityGroups.
///
/// One or more security group names.
///
///
public List SecurityGroups
{
get { return this._securityGroups; }
set { this._securityGroups = value; }
}
// Check to see if SecurityGroups property is set
internal bool IsSetSecurityGroups()
{
return this._securityGroups != null && this._securityGroups.Count > 0;
}
///
/// Gets and sets the property SubnetId.
///
/// The ID of the subnet in which to launch the instance.
///
///
public string SubnetId
{
get { return this._subnetId; }
set { this._subnetId = value; }
}
// Check to see if SubnetId property is set
internal bool IsSetSubnetId()
{
return this._subnetId != null;
}
///
/// Gets and sets the property UserData.
///
/// The base64-encoded user data that instances use when starting up. User data is limited
/// to 16 KB.
///
///
[AWSProperty(Sensitive=true)]
public string UserData
{
get { return this._userData; }
set { this._userData = value; }
}
// Check to see if UserData property is set
internal bool IsSetUserData()
{
return this._userData != null;
}
}
}