/* * 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 securityhub-2018-10-26.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.SecurityHub.Model { /// /// The details of an Amazon EC2 instance. /// public partial class AwsEc2InstanceDetails { private string _iamInstanceProfileArn; private string _imageId; private List _ipV4Addresses = new List(); private List _ipV6Addresses = new List(); private string _keyName; private string _launchedAt; private AwsEc2InstanceMetadataOptions _metadataOptions; private AwsEc2InstanceMonitoringDetails _monitoring; private List _networkInterfaces = new List(); private string _subnetId; private string _type; private string _virtualizationType; private string _vpcId; /// /// Gets and sets the property IamInstanceProfileArn. /// /// The IAM profile ARN of the instance. /// /// public string IamInstanceProfileArn { get { return this._iamInstanceProfileArn; } set { this._iamInstanceProfileArn = value; } } // Check to see if IamInstanceProfileArn property is set internal bool IsSetIamInstanceProfileArn() { return this._iamInstanceProfileArn != null; } /// /// Gets and sets the property ImageId. /// /// The Amazon Machine Image (AMI) ID of the 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 IpV4Addresses. /// /// The IPv4 addresses associated with the instance. /// /// public List IpV4Addresses { get { return this._ipV4Addresses; } set { this._ipV4Addresses = value; } } // Check to see if IpV4Addresses property is set internal bool IsSetIpV4Addresses() { return this._ipV4Addresses != null && this._ipV4Addresses.Count > 0; } /// /// Gets and sets the property IpV6Addresses. /// /// The IPv6 addresses associated with the instance. /// /// public List IpV6Addresses { get { return this._ipV6Addresses; } set { this._ipV6Addresses = value; } } // Check to see if IpV6Addresses property is set internal bool IsSetIpV6Addresses() { return this._ipV6Addresses != null && this._ipV6Addresses.Count > 0; } /// /// Gets and sets the property KeyName. /// /// The key name associated with the instance. /// /// 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 LaunchedAt. /// /// Indicates when the instance was launched. /// /// /// /// Uses the date-time format specified in RFC /// 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, /// and date and time should be separated by T. For example, 2020-03-22T13:22:13.933Z. /// /// public string LaunchedAt { get { return this._launchedAt; } set { this._launchedAt = value; } } // Check to see if LaunchedAt property is set internal bool IsSetLaunchedAt() { return this._launchedAt != null; } /// /// Gets and sets the property MetadataOptions. /// /// Details about the metadata options for the Amazon EC2 instance. /// /// public AwsEc2InstanceMetadataOptions MetadataOptions { get { return this._metadataOptions; } set { this._metadataOptions = value; } } // Check to see if MetadataOptions property is set internal bool IsSetMetadataOptions() { return this._metadataOptions != null; } /// /// Gets and sets the property Monitoring. /// /// Describes the type of monitoring that’s turned on for an instance. /// /// public AwsEc2InstanceMonitoringDetails Monitoring { get { return this._monitoring; } set { this._monitoring = value; } } // Check to see if Monitoring property is set internal bool IsSetMonitoring() { return this._monitoring != null; } /// /// Gets and sets the property NetworkInterfaces. /// /// The identifiers of the network interfaces for the EC2 instance. The details for each /// network interface are in a corresponding AwsEc2NetworkInterfacesDetails /// object. /// /// 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 SubnetId. /// /// The identifier of the subnet that the instance was launched in. /// /// 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 Type. /// /// The instance type of the instance. /// /// public string Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } /// /// Gets and sets the property VirtualizationType. /// /// The virtualization type of the Amazon Machine Image (AMI) required to launch the instance. /// /// /// public string VirtualizationType { get { return this._virtualizationType; } set { this._virtualizationType = value; } } // Check to see if VirtualizationType property is set internal bool IsSetVirtualizationType() { return this._virtualizationType != null; } /// /// Gets and sets the property VpcId. /// /// The identifier of the VPC that the instance was launched in. /// /// public string VpcId { get { return this._vpcId; } set { this._vpcId = value; } } // Check to see if VpcId property is set internal bool IsSetVpcId() { return this._vpcId != null; } } }