/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A collection of attributes of the host from which the finding is
* generated.See Also:
AWS
* API Reference
The schema version of this data type.
*/ inline int GetSchemaVersion() const{ return m_schemaVersion; } /** *The schema version of this data type.
*/ inline bool SchemaVersionHasBeenSet() const { return m_schemaVersionHasBeenSet; } /** *The schema version of this data type.
*/ inline void SetSchemaVersion(int value) { m_schemaVersionHasBeenSet = true; m_schemaVersion = value; } /** *The schema version of this data type.
*/ inline AssetAttributes& WithSchemaVersion(int value) { SetSchemaVersion(value); return *this;} /** *The ID of the agent that is installed on the EC2 instance where the finding * is generated.
*/ inline const Aws::String& GetAgentId() const{ return m_agentId; } /** *The ID of the agent that is installed on the EC2 instance where the finding * is generated.
*/ inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; } /** *The ID of the agent that is installed on the EC2 instance where the finding * is generated.
*/ inline void SetAgentId(const Aws::String& value) { m_agentIdHasBeenSet = true; m_agentId = value; } /** *The ID of the agent that is installed on the EC2 instance where the finding * is generated.
*/ inline void SetAgentId(Aws::String&& value) { m_agentIdHasBeenSet = true; m_agentId = std::move(value); } /** *The ID of the agent that is installed on the EC2 instance where the finding * is generated.
*/ inline void SetAgentId(const char* value) { m_agentIdHasBeenSet = true; m_agentId.assign(value); } /** *The ID of the agent that is installed on the EC2 instance where the finding * is generated.
*/ inline AssetAttributes& WithAgentId(const Aws::String& value) { SetAgentId(value); return *this;} /** *The ID of the agent that is installed on the EC2 instance where the finding * is generated.
*/ inline AssetAttributes& WithAgentId(Aws::String&& value) { SetAgentId(std::move(value)); return *this;} /** *The ID of the agent that is installed on the EC2 instance where the finding * is generated.
*/ inline AssetAttributes& WithAgentId(const char* value) { SetAgentId(value); return *this;} /** *The Auto Scaling group of the EC2 instance where the finding is * generated.
*/ inline const Aws::String& GetAutoScalingGroup() const{ return m_autoScalingGroup; } /** *The Auto Scaling group of the EC2 instance where the finding is * generated.
*/ inline bool AutoScalingGroupHasBeenSet() const { return m_autoScalingGroupHasBeenSet; } /** *The Auto Scaling group of the EC2 instance where the finding is * generated.
*/ inline void SetAutoScalingGroup(const Aws::String& value) { m_autoScalingGroupHasBeenSet = true; m_autoScalingGroup = value; } /** *The Auto Scaling group of the EC2 instance where the finding is * generated.
*/ inline void SetAutoScalingGroup(Aws::String&& value) { m_autoScalingGroupHasBeenSet = true; m_autoScalingGroup = std::move(value); } /** *The Auto Scaling group of the EC2 instance where the finding is * generated.
*/ inline void SetAutoScalingGroup(const char* value) { m_autoScalingGroupHasBeenSet = true; m_autoScalingGroup.assign(value); } /** *The Auto Scaling group of the EC2 instance where the finding is * generated.
*/ inline AssetAttributes& WithAutoScalingGroup(const Aws::String& value) { SetAutoScalingGroup(value); return *this;} /** *The Auto Scaling group of the EC2 instance where the finding is * generated.
*/ inline AssetAttributes& WithAutoScalingGroup(Aws::String&& value) { SetAutoScalingGroup(std::move(value)); return *this;} /** *The Auto Scaling group of the EC2 instance where the finding is * generated.
*/ inline AssetAttributes& WithAutoScalingGroup(const char* value) { SetAutoScalingGroup(value); return *this;} /** *The ID of the Amazon Machine Image (AMI) that is installed on the EC2 * instance where the finding is generated.
*/ inline const Aws::String& GetAmiId() const{ return m_amiId; } /** *The ID of the Amazon Machine Image (AMI) that is installed on the EC2 * instance where the finding is generated.
*/ inline bool AmiIdHasBeenSet() const { return m_amiIdHasBeenSet; } /** *The ID of the Amazon Machine Image (AMI) that is installed on the EC2 * instance where the finding is generated.
*/ inline void SetAmiId(const Aws::String& value) { m_amiIdHasBeenSet = true; m_amiId = value; } /** *The ID of the Amazon Machine Image (AMI) that is installed on the EC2 * instance where the finding is generated.
*/ inline void SetAmiId(Aws::String&& value) { m_amiIdHasBeenSet = true; m_amiId = std::move(value); } /** *The ID of the Amazon Machine Image (AMI) that is installed on the EC2 * instance where the finding is generated.
*/ inline void SetAmiId(const char* value) { m_amiIdHasBeenSet = true; m_amiId.assign(value); } /** *The ID of the Amazon Machine Image (AMI) that is installed on the EC2 * instance where the finding is generated.
*/ inline AssetAttributes& WithAmiId(const Aws::String& value) { SetAmiId(value); return *this;} /** *The ID of the Amazon Machine Image (AMI) that is installed on the EC2 * instance where the finding is generated.
*/ inline AssetAttributes& WithAmiId(Aws::String&& value) { SetAmiId(std::move(value)); return *this;} /** *The ID of the Amazon Machine Image (AMI) that is installed on the EC2 * instance where the finding is generated.
*/ inline AssetAttributes& WithAmiId(const char* value) { SetAmiId(value); return *this;} /** *The hostname of the EC2 instance where the finding is generated.
*/ inline const Aws::String& GetHostname() const{ return m_hostname; } /** *The hostname of the EC2 instance where the finding is generated.
*/ inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; } /** *The hostname of the EC2 instance where the finding is generated.
*/ inline void SetHostname(const Aws::String& value) { m_hostnameHasBeenSet = true; m_hostname = value; } /** *The hostname of the EC2 instance where the finding is generated.
*/ inline void SetHostname(Aws::String&& value) { m_hostnameHasBeenSet = true; m_hostname = std::move(value); } /** *The hostname of the EC2 instance where the finding is generated.
*/ inline void SetHostname(const char* value) { m_hostnameHasBeenSet = true; m_hostname.assign(value); } /** *The hostname of the EC2 instance where the finding is generated.
*/ inline AssetAttributes& WithHostname(const Aws::String& value) { SetHostname(value); return *this;} /** *The hostname of the EC2 instance where the finding is generated.
*/ inline AssetAttributes& WithHostname(Aws::String&& value) { SetHostname(std::move(value)); return *this;} /** *The hostname of the EC2 instance where the finding is generated.
*/ inline AssetAttributes& WithHostname(const char* value) { SetHostname(value); return *this;} /** *The list of IP v4 addresses of the EC2 instance where the finding is * generated.
*/ inline const Aws::VectorThe list of IP v4 addresses of the EC2 instance where the finding is * generated.
*/ inline bool Ipv4AddressesHasBeenSet() const { return m_ipv4AddressesHasBeenSet; } /** *The list of IP v4 addresses of the EC2 instance where the finding is * generated.
*/ inline void SetIpv4Addresses(const Aws::VectorThe list of IP v4 addresses of the EC2 instance where the finding is * generated.
*/ inline void SetIpv4Addresses(Aws::VectorThe list of IP v4 addresses of the EC2 instance where the finding is * generated.
*/ inline AssetAttributes& WithIpv4Addresses(const Aws::VectorThe list of IP v4 addresses of the EC2 instance where the finding is * generated.
*/ inline AssetAttributes& WithIpv4Addresses(Aws::VectorThe list of IP v4 addresses of the EC2 instance where the finding is * generated.
*/ inline AssetAttributes& AddIpv4Addresses(const Aws::String& value) { m_ipv4AddressesHasBeenSet = true; m_ipv4Addresses.push_back(value); return *this; } /** *The list of IP v4 addresses of the EC2 instance where the finding is * generated.
*/ inline AssetAttributes& AddIpv4Addresses(Aws::String&& value) { m_ipv4AddressesHasBeenSet = true; m_ipv4Addresses.push_back(std::move(value)); return *this; } /** *The list of IP v4 addresses of the EC2 instance where the finding is * generated.
*/ inline AssetAttributes& AddIpv4Addresses(const char* value) { m_ipv4AddressesHasBeenSet = true; m_ipv4Addresses.push_back(value); return *this; } /** *The tags related to the EC2 instance where the finding is generated.
*/ inline const Aws::VectorThe tags related to the EC2 instance where the finding is generated.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *The tags related to the EC2 instance where the finding is generated.
*/ inline void SetTags(const Aws::VectorThe tags related to the EC2 instance where the finding is generated.
*/ inline void SetTags(Aws::VectorThe tags related to the EC2 instance where the finding is generated.
*/ inline AssetAttributes& WithTags(const Aws::VectorThe tags related to the EC2 instance where the finding is generated.
*/ inline AssetAttributes& WithTags(Aws::VectorThe tags related to the EC2 instance where the finding is generated.
*/ inline AssetAttributes& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *The tags related to the EC2 instance where the finding is generated.
*/ inline AssetAttributes& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *An array of the network interfaces interacting with the EC2 instance where * the finding is generated.
*/ inline const Aws::VectorAn array of the network interfaces interacting with the EC2 instance where * the finding is generated.
*/ inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; } /** *An array of the network interfaces interacting with the EC2 instance where * the finding is generated.
*/ inline void SetNetworkInterfaces(const Aws::VectorAn array of the network interfaces interacting with the EC2 instance where * the finding is generated.
*/ inline void SetNetworkInterfaces(Aws::VectorAn array of the network interfaces interacting with the EC2 instance where * the finding is generated.
*/ inline AssetAttributes& WithNetworkInterfaces(const Aws::VectorAn array of the network interfaces interacting with the EC2 instance where * the finding is generated.
*/ inline AssetAttributes& WithNetworkInterfaces(Aws::VectorAn array of the network interfaces interacting with the EC2 instance where * the finding is generated.
*/ inline AssetAttributes& AddNetworkInterfaces(const NetworkInterface& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(value); return *this; } /** *An array of the network interfaces interacting with the EC2 instance where * the finding is generated.
*/ inline AssetAttributes& AddNetworkInterfaces(NetworkInterface&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(std::move(value)); return *this; } private: int m_schemaVersion; bool m_schemaVersionHasBeenSet = false; Aws::String m_agentId; bool m_agentIdHasBeenSet = false; Aws::String m_autoScalingGroup; bool m_autoScalingGroupHasBeenSet = false; Aws::String m_amiId; bool m_amiIdHasBeenSet = false; Aws::String m_hostname; bool m_hostnameHasBeenSet = false; Aws::Vector