/*
* 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 guardduty-2017-11-28.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.GuardDuty.Model
{
///
/// Contains information about the details of an instance.
///
public partial class InstanceDetails
{
private string _availabilityZone;
private IamInstanceProfile _iamInstanceProfile;
private string _imageDescription;
private string _imageId;
private string _instanceId;
private string _instanceState;
private string _instanceType;
private string _launchTime;
private List _networkInterfaces = new List();
private string _outpostArn;
private string _platform;
private List _productCodes = new List();
private List _tags = new List();
///
/// Gets and sets the property AvailabilityZone.
///
/// The Availability Zone of the EC2 instance.
///
///
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 IamInstanceProfile.
///
/// The profile information of the EC2 instance.
///
///
public IamInstanceProfile 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 ImageDescription.
///
/// The image description of the EC2 instance.
///
///
public string ImageDescription
{
get { return this._imageDescription; }
set { this._imageDescription = value; }
}
// Check to see if ImageDescription property is set
internal bool IsSetImageDescription()
{
return this._imageDescription != null;
}
///
/// Gets and sets the property ImageId.
///
/// The image ID of the EC2 instance.
///
///
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 InstanceId.
///
/// The ID of the EC2 instance.
///
///
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;
}
///
/// Gets and sets the property InstanceState.
///
/// The state of the EC2 instance.
///
///
public string InstanceState
{
get { return this._instanceState; }
set { this._instanceState = value; }
}
// Check to see if InstanceState property is set
internal bool IsSetInstanceState()
{
return this._instanceState != null;
}
///
/// Gets and sets the property InstanceType.
///
/// The type of the EC2 instance.
///
///
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 LaunchTime.
///
/// The launch time of the EC2 instance.
///
///
public string LaunchTime
{
get { return this._launchTime; }
set { this._launchTime = value; }
}
// Check to see if LaunchTime property is set
internal bool IsSetLaunchTime()
{
return this._launchTime != null;
}
///
/// Gets and sets the property NetworkInterfaces.
///
/// The elastic network interface information of the EC2 instance.
///
///
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 OutpostArn.
///
/// The Amazon Resource Name (ARN) of the Amazon Web Services Outpost. Only applicable
/// to Amazon Web Services Outposts instances.
///
///
public string OutpostArn
{
get { return this._outpostArn; }
set { this._outpostArn = value; }
}
// Check to see if OutpostArn property is set
internal bool IsSetOutpostArn()
{
return this._outpostArn != null;
}
///
/// Gets and sets the property Platform.
///
/// The platform of the EC2 instance.
///
///
public string Platform
{
get { return this._platform; }
set { this._platform = value; }
}
// Check to see if Platform property is set
internal bool IsSetPlatform()
{
return this._platform != null;
}
///
/// Gets and sets the property ProductCodes.
///
/// The product code of the EC2 instance.
///
///
public List ProductCodes
{
get { return this._productCodes; }
set { this._productCodes = value; }
}
// Check to see if ProductCodes property is set
internal bool IsSetProductCodes()
{
return this._productCodes != null && this._productCodes.Count > 0;
}
///
/// Gets and sets the property Tags.
///
/// The tags of the EC2 instance.
///
///
public List Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
}