/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ApplicationDiscoveryService { namespace Model { /** *

Information about agents associated with the user’s Amazon Web Services * account. Information includes agent IDs, IP addresses, media access control * (MAC) addresses, agent or collector status, hostname where the agent resides, * and agent version for each agent.

See Also:

AWS * API Reference

*/ class AgentInfo { public: AWS_APPLICATIONDISCOVERYSERVICE_API AgentInfo(); AWS_APPLICATIONDISCOVERYSERVICE_API AgentInfo(Aws::Utils::Json::JsonView jsonValue); AWS_APPLICATIONDISCOVERYSERVICE_API AgentInfo& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_APPLICATIONDISCOVERYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The agent or collector ID.

*/ inline const Aws::String& GetAgentId() const{ return m_agentId; } /** *

The agent or collector ID.

*/ inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; } /** *

The agent or collector ID.

*/ inline void SetAgentId(const Aws::String& value) { m_agentIdHasBeenSet = true; m_agentId = value; } /** *

The agent or collector ID.

*/ inline void SetAgentId(Aws::String&& value) { m_agentIdHasBeenSet = true; m_agentId = std::move(value); } /** *

The agent or collector ID.

*/ inline void SetAgentId(const char* value) { m_agentIdHasBeenSet = true; m_agentId.assign(value); } /** *

The agent or collector ID.

*/ inline AgentInfo& WithAgentId(const Aws::String& value) { SetAgentId(value); return *this;} /** *

The agent or collector ID.

*/ inline AgentInfo& WithAgentId(Aws::String&& value) { SetAgentId(std::move(value)); return *this;} /** *

The agent or collector ID.

*/ inline AgentInfo& WithAgentId(const char* value) { SetAgentId(value); return *this;} /** *

The name of the host where the agent or collector resides. The host can be a * server or virtual machine.

*/ inline const Aws::String& GetHostName() const{ return m_hostName; } /** *

The name of the host where the agent or collector resides. The host can be a * server or virtual machine.

*/ inline bool HostNameHasBeenSet() const { return m_hostNameHasBeenSet; } /** *

The name of the host where the agent or collector resides. The host can be a * server or virtual machine.

*/ inline void SetHostName(const Aws::String& value) { m_hostNameHasBeenSet = true; m_hostName = value; } /** *

The name of the host where the agent or collector resides. The host can be a * server or virtual machine.

*/ inline void SetHostName(Aws::String&& value) { m_hostNameHasBeenSet = true; m_hostName = std::move(value); } /** *

The name of the host where the agent or collector resides. The host can be a * server or virtual machine.

*/ inline void SetHostName(const char* value) { m_hostNameHasBeenSet = true; m_hostName.assign(value); } /** *

The name of the host where the agent or collector resides. The host can be a * server or virtual machine.

*/ inline AgentInfo& WithHostName(const Aws::String& value) { SetHostName(value); return *this;} /** *

The name of the host where the agent or collector resides. The host can be a * server or virtual machine.

*/ inline AgentInfo& WithHostName(Aws::String&& value) { SetHostName(std::move(value)); return *this;} /** *

The name of the host where the agent or collector resides. The host can be a * server or virtual machine.

*/ inline AgentInfo& WithHostName(const char* value) { SetHostName(value); return *this;} /** *

Network details about the host where the agent or collector resides.

*/ inline const Aws::Vector& GetAgentNetworkInfoList() const{ return m_agentNetworkInfoList; } /** *

Network details about the host where the agent or collector resides.

*/ inline bool AgentNetworkInfoListHasBeenSet() const { return m_agentNetworkInfoListHasBeenSet; } /** *

Network details about the host where the agent or collector resides.

*/ inline void SetAgentNetworkInfoList(const Aws::Vector& value) { m_agentNetworkInfoListHasBeenSet = true; m_agentNetworkInfoList = value; } /** *

Network details about the host where the agent or collector resides.

*/ inline void SetAgentNetworkInfoList(Aws::Vector&& value) { m_agentNetworkInfoListHasBeenSet = true; m_agentNetworkInfoList = std::move(value); } /** *

Network details about the host where the agent or collector resides.

*/ inline AgentInfo& WithAgentNetworkInfoList(const Aws::Vector& value) { SetAgentNetworkInfoList(value); return *this;} /** *

Network details about the host where the agent or collector resides.

*/ inline AgentInfo& WithAgentNetworkInfoList(Aws::Vector&& value) { SetAgentNetworkInfoList(std::move(value)); return *this;} /** *

Network details about the host where the agent or collector resides.

*/ inline AgentInfo& AddAgentNetworkInfoList(const AgentNetworkInfo& value) { m_agentNetworkInfoListHasBeenSet = true; m_agentNetworkInfoList.push_back(value); return *this; } /** *

Network details about the host where the agent or collector resides.

*/ inline AgentInfo& AddAgentNetworkInfoList(AgentNetworkInfo&& value) { m_agentNetworkInfoListHasBeenSet = true; m_agentNetworkInfoList.push_back(std::move(value)); return *this; } /** *

The ID of the connector.

*/ inline const Aws::String& GetConnectorId() const{ return m_connectorId; } /** *

The ID of the connector.

*/ inline bool ConnectorIdHasBeenSet() const { return m_connectorIdHasBeenSet; } /** *

The ID of the connector.

*/ inline void SetConnectorId(const Aws::String& value) { m_connectorIdHasBeenSet = true; m_connectorId = value; } /** *

The ID of the connector.

*/ inline void SetConnectorId(Aws::String&& value) { m_connectorIdHasBeenSet = true; m_connectorId = std::move(value); } /** *

The ID of the connector.

*/ inline void SetConnectorId(const char* value) { m_connectorIdHasBeenSet = true; m_connectorId.assign(value); } /** *

The ID of the connector.

*/ inline AgentInfo& WithConnectorId(const Aws::String& value) { SetConnectorId(value); return *this;} /** *

The ID of the connector.

*/ inline AgentInfo& WithConnectorId(Aws::String&& value) { SetConnectorId(std::move(value)); return *this;} /** *

The ID of the connector.

*/ inline AgentInfo& WithConnectorId(const char* value) { SetConnectorId(value); return *this;} /** *

The agent or collector version.

*/ inline const Aws::String& GetVersion() const{ return m_version; } /** *

The agent or collector version.

*/ inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; } /** *

The agent or collector version.

*/ inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; } /** *

The agent or collector version.

*/ inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); } /** *

The agent or collector version.

*/ inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); } /** *

The agent or collector version.

*/ inline AgentInfo& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} /** *

The agent or collector version.

*/ inline AgentInfo& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} /** *

The agent or collector version.

*/ inline AgentInfo& WithVersion(const char* value) { SetVersion(value); return *this;} /** *

The health of the agent.

*/ inline const AgentStatus& GetHealth() const{ return m_health; } /** *

The health of the agent.

*/ inline bool HealthHasBeenSet() const { return m_healthHasBeenSet; } /** *

The health of the agent.

*/ inline void SetHealth(const AgentStatus& value) { m_healthHasBeenSet = true; m_health = value; } /** *

The health of the agent.

*/ inline void SetHealth(AgentStatus&& value) { m_healthHasBeenSet = true; m_health = std::move(value); } /** *

The health of the agent.

*/ inline AgentInfo& WithHealth(const AgentStatus& value) { SetHealth(value); return *this;} /** *

The health of the agent.

*/ inline AgentInfo& WithHealth(AgentStatus&& value) { SetHealth(std::move(value)); return *this;} /** *

Time since agent health was reported.

*/ inline const Aws::String& GetLastHealthPingTime() const{ return m_lastHealthPingTime; } /** *

Time since agent health was reported.

*/ inline bool LastHealthPingTimeHasBeenSet() const { return m_lastHealthPingTimeHasBeenSet; } /** *

Time since agent health was reported.

*/ inline void SetLastHealthPingTime(const Aws::String& value) { m_lastHealthPingTimeHasBeenSet = true; m_lastHealthPingTime = value; } /** *

Time since agent health was reported.

*/ inline void SetLastHealthPingTime(Aws::String&& value) { m_lastHealthPingTimeHasBeenSet = true; m_lastHealthPingTime = std::move(value); } /** *

Time since agent health was reported.

*/ inline void SetLastHealthPingTime(const char* value) { m_lastHealthPingTimeHasBeenSet = true; m_lastHealthPingTime.assign(value); } /** *

Time since agent health was reported.

*/ inline AgentInfo& WithLastHealthPingTime(const Aws::String& value) { SetLastHealthPingTime(value); return *this;} /** *

Time since agent health was reported.

*/ inline AgentInfo& WithLastHealthPingTime(Aws::String&& value) { SetLastHealthPingTime(std::move(value)); return *this;} /** *

Time since agent health was reported.

*/ inline AgentInfo& WithLastHealthPingTime(const char* value) { SetLastHealthPingTime(value); return *this;} /** *

Status of the collection process for an agent.

*/ inline const Aws::String& GetCollectionStatus() const{ return m_collectionStatus; } /** *

Status of the collection process for an agent.

*/ inline bool CollectionStatusHasBeenSet() const { return m_collectionStatusHasBeenSet; } /** *

Status of the collection process for an agent.

*/ inline void SetCollectionStatus(const Aws::String& value) { m_collectionStatusHasBeenSet = true; m_collectionStatus = value; } /** *

Status of the collection process for an agent.

*/ inline void SetCollectionStatus(Aws::String&& value) { m_collectionStatusHasBeenSet = true; m_collectionStatus = std::move(value); } /** *

Status of the collection process for an agent.

*/ inline void SetCollectionStatus(const char* value) { m_collectionStatusHasBeenSet = true; m_collectionStatus.assign(value); } /** *

Status of the collection process for an agent.

*/ inline AgentInfo& WithCollectionStatus(const Aws::String& value) { SetCollectionStatus(value); return *this;} /** *

Status of the collection process for an agent.

*/ inline AgentInfo& WithCollectionStatus(Aws::String&& value) { SetCollectionStatus(std::move(value)); return *this;} /** *

Status of the collection process for an agent.

*/ inline AgentInfo& WithCollectionStatus(const char* value) { SetCollectionStatus(value); return *this;} /** *

Type of agent.

*/ inline const Aws::String& GetAgentType() const{ return m_agentType; } /** *

Type of agent.

*/ inline bool AgentTypeHasBeenSet() const { return m_agentTypeHasBeenSet; } /** *

Type of agent.

*/ inline void SetAgentType(const Aws::String& value) { m_agentTypeHasBeenSet = true; m_agentType = value; } /** *

Type of agent.

*/ inline void SetAgentType(Aws::String&& value) { m_agentTypeHasBeenSet = true; m_agentType = std::move(value); } /** *

Type of agent.

*/ inline void SetAgentType(const char* value) { m_agentTypeHasBeenSet = true; m_agentType.assign(value); } /** *

Type of agent.

*/ inline AgentInfo& WithAgentType(const Aws::String& value) { SetAgentType(value); return *this;} /** *

Type of agent.

*/ inline AgentInfo& WithAgentType(Aws::String&& value) { SetAgentType(std::move(value)); return *this;} /** *

Type of agent.

*/ inline AgentInfo& WithAgentType(const char* value) { SetAgentType(value); return *this;} /** *

Agent's first registration timestamp in UTC.

*/ inline const Aws::String& GetRegisteredTime() const{ return m_registeredTime; } /** *

Agent's first registration timestamp in UTC.

*/ inline bool RegisteredTimeHasBeenSet() const { return m_registeredTimeHasBeenSet; } /** *

Agent's first registration timestamp in UTC.

*/ inline void SetRegisteredTime(const Aws::String& value) { m_registeredTimeHasBeenSet = true; m_registeredTime = value; } /** *

Agent's first registration timestamp in UTC.

*/ inline void SetRegisteredTime(Aws::String&& value) { m_registeredTimeHasBeenSet = true; m_registeredTime = std::move(value); } /** *

Agent's first registration timestamp in UTC.

*/ inline void SetRegisteredTime(const char* value) { m_registeredTimeHasBeenSet = true; m_registeredTime.assign(value); } /** *

Agent's first registration timestamp in UTC.

*/ inline AgentInfo& WithRegisteredTime(const Aws::String& value) { SetRegisteredTime(value); return *this;} /** *

Agent's first registration timestamp in UTC.

*/ inline AgentInfo& WithRegisteredTime(Aws::String&& value) { SetRegisteredTime(std::move(value)); return *this;} /** *

Agent's first registration timestamp in UTC.

*/ inline AgentInfo& WithRegisteredTime(const char* value) { SetRegisteredTime(value); return *this;} private: Aws::String m_agentId; bool m_agentIdHasBeenSet = false; Aws::String m_hostName; bool m_hostNameHasBeenSet = false; Aws::Vector m_agentNetworkInfoList; bool m_agentNetworkInfoListHasBeenSet = false; Aws::String m_connectorId; bool m_connectorIdHasBeenSet = false; Aws::String m_version; bool m_versionHasBeenSet = false; AgentStatus m_health; bool m_healthHasBeenSet = false; Aws::String m_lastHealthPingTime; bool m_lastHealthPingTimeHasBeenSet = false; Aws::String m_collectionStatus; bool m_collectionStatusHasBeenSet = false; Aws::String m_agentType; bool m_agentTypeHasBeenSet = false; Aws::String m_registeredTime; bool m_registeredTimeHasBeenSet = false; }; } // namespace Model } // namespace ApplicationDiscoveryService } // namespace Aws