/* * 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 inspector-2016-02-16.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.Inspector.Model { /// /// A collection of attributes of the host from which the finding is generated. /// public partial class AssetAttributes { private string _agentId; private string _amiId; private string _autoScalingGroup; private string _hostname; private List _ipv4Addresses = new List(); private List _networkInterfaces = new List(); private int? _schemaVersion; private List _tags = new List(); /// /// Gets and sets the property AgentId. /// /// The ID of the agent that is installed on the EC2 instance where the finding is generated. /// /// [AWSProperty(Min=1, Max=128)] public string AgentId { get { return this._agentId; } set { this._agentId = value; } } // Check to see if AgentId property is set internal bool IsSetAgentId() { return this._agentId != null; } /// /// Gets and sets the property AmiId. /// /// The ID of the Amazon Machine Image (AMI) that is installed on the EC2 instance where /// the finding is generated. /// /// [AWSProperty(Min=0, Max=256)] public string AmiId { get { return this._amiId; } set { this._amiId = value; } } // Check to see if AmiId property is set internal bool IsSetAmiId() { return this._amiId != null; } /// /// Gets and sets the property AutoScalingGroup. /// /// The Auto Scaling group of the EC2 instance where the finding is generated. /// /// [AWSProperty(Min=1, Max=256)] public string AutoScalingGroup { get { return this._autoScalingGroup; } set { this._autoScalingGroup = value; } } // Check to see if AutoScalingGroup property is set internal bool IsSetAutoScalingGroup() { return this._autoScalingGroup != null; } /// /// Gets and sets the property Hostname. /// /// The hostname of the EC2 instance where the finding is generated. /// /// [AWSProperty(Min=0, Max=256)] public string Hostname { get { return this._hostname; } set { this._hostname = value; } } // Check to see if Hostname property is set internal bool IsSetHostname() { return this._hostname != null; } /// /// Gets and sets the property Ipv4Addresses. /// /// The list of IP v4 addresses of the EC2 instance where the finding is generated. /// /// [AWSProperty(Min=0, Max=50)] 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 NetworkInterfaces. /// /// An array of the network interfaces interacting with the EC2 instance where the finding /// is generated. /// /// 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 SchemaVersion. /// /// The schema version of this data type. /// /// [AWSProperty(Required=true, Min=0)] public int SchemaVersion { get { return this._schemaVersion.GetValueOrDefault(); } set { this._schemaVersion = value; } } // Check to see if SchemaVersion property is set internal bool IsSetSchemaVersion() { return this._schemaVersion.HasValue; } /// /// Gets and sets the property Tags. /// /// The tags related to the EC2 instance where the finding is generated. /// /// 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; } } }