/*
* 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 elasticmapreduce-2009-03-31.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.ElasticMapReduce.Model
{
///
/// Represents an Amazon EC2 instance provisioned as part of cluster.
///
public partial class Instance
{
private List _ebsVolumes = new List();
private string _ec2InstanceId;
private string _id;
private string _instanceFleetId;
private string _instanceGroupId;
private string _instanceType;
private MarketType _market;
private string _privateDnsName;
private string _privateIpAddress;
private string _publicDnsName;
private string _publicIpAddress;
private InstanceStatus _status;
///
/// Gets and sets the property EbsVolumes.
///
/// The list of Amazon EBS volumes that are attached to this instance.
///
///
public List EbsVolumes
{
get { return this._ebsVolumes; }
set { this._ebsVolumes = value; }
}
// Check to see if EbsVolumes property is set
internal bool IsSetEbsVolumes()
{
return this._ebsVolumes != null && this._ebsVolumes.Count > 0;
}
///
/// Gets and sets the property Ec2InstanceId.
///
/// The unique identifier of the instance in Amazon EC2.
///
///
public string Ec2InstanceId
{
get { return this._ec2InstanceId; }
set { this._ec2InstanceId = value; }
}
// Check to see if Ec2InstanceId property is set
internal bool IsSetEc2InstanceId()
{
return this._ec2InstanceId != null;
}
///
/// Gets and sets the property Id.
///
/// The unique identifier for the instance in Amazon EMR.
///
///
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
///
/// Gets and sets the property InstanceFleetId.
///
/// The unique identifier of the instance fleet to which an Amazon EC2 instance belongs.
///
///
public string InstanceFleetId
{
get { return this._instanceFleetId; }
set { this._instanceFleetId = value; }
}
// Check to see if InstanceFleetId property is set
internal bool IsSetInstanceFleetId()
{
return this._instanceFleetId != null;
}
///
/// Gets and sets the property InstanceGroupId.
///
/// The identifier of the instance group to which this instance belongs.
///
///
public string InstanceGroupId
{
get { return this._instanceGroupId; }
set { this._instanceGroupId = value; }
}
// Check to see if InstanceGroupId property is set
internal bool IsSetInstanceGroupId()
{
return this._instanceGroupId != null;
}
///
/// Gets and sets the property InstanceType.
///
/// The Amazon EC2 instance type, for example m3.xlarge
.
///
///
[AWSProperty(Min=1, Max=256)]
public string 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 Market.
///
/// The instance purchasing option. Valid values are ON_DEMAND
or SPOT
.
///
///
///
public MarketType Market
{
get { return this._market; }
set { this._market = value; }
}
// Check to see if Market property is set
internal bool IsSetMarket()
{
return this._market != null;
}
///
/// Gets and sets the property PrivateDnsName.
///
/// The private DNS name of the instance.
///
///
public string PrivateDnsName
{
get { return this._privateDnsName; }
set { this._privateDnsName = value; }
}
// Check to see if PrivateDnsName property is set
internal bool IsSetPrivateDnsName()
{
return this._privateDnsName != null;
}
///
/// Gets and sets the property PrivateIpAddress.
///
/// The private IP address of the instance.
///
///
public string PrivateIpAddress
{
get { return this._privateIpAddress; }
set { this._privateIpAddress = value; }
}
// Check to see if PrivateIpAddress property is set
internal bool IsSetPrivateIpAddress()
{
return this._privateIpAddress != null;
}
///
/// Gets and sets the property PublicDnsName.
///
/// The public DNS name of the instance.
///
///
public string PublicDnsName
{
get { return this._publicDnsName; }
set { this._publicDnsName = value; }
}
// Check to see if PublicDnsName property is set
internal bool IsSetPublicDnsName()
{
return this._publicDnsName != null;
}
///
/// Gets and sets the property PublicIpAddress.
///
/// The public IP address of the instance.
///
///
public string PublicIpAddress
{
get { return this._publicIpAddress; }
set { this._publicIpAddress = value; }
}
// Check to see if PublicIpAddress property is set
internal bool IsSetPublicIpAddress()
{
return this._publicIpAddress != null;
}
///
/// Gets and sets the property Status.
///
/// The current status of the instance.
///
///
public InstanceStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
}
}