7#include <aws/discovery/ApplicationDiscoveryService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/discovery/model/AgentStatus.h>
11#include <aws/discovery/model/AgentNetworkInfo.h>
24namespace ApplicationDiscoveryService
40 AWS_APPLICATIONDISCOVERYSERVICE_API
AgentInfo() =
default;
52 template<
typename AgentIdT = Aws::String>
53 void SetAgentId(AgentIdT&& value) { m_agentIdHasBeenSet =
true; m_agentId = std::forward<AgentIdT>(value); }
54 template<
typename AgentIdT = Aws::String>
65 template<
typename HostNameT = Aws::String>
66 void SetHostName(HostNameT&& value) { m_hostNameHasBeenSet =
true; m_hostName = std::forward<HostNameT>(value); }
67 template<
typename HostNameT = Aws::String>
77 template<
typename AgentNetworkInfoListT = Aws::Vector<AgentNetworkInfo>>
78 void SetAgentNetworkInfoList(AgentNetworkInfoListT&& value) { m_agentNetworkInfoListHasBeenSet =
true; m_agentNetworkInfoList = std::forward<AgentNetworkInfoListT>(value); }
79 template<
typename AgentNetworkInfoListT = Aws::Vector<AgentNetworkInfo>>
81 template<
typename AgentNetworkInfoListT = AgentNetworkInfo>
82 AgentInfo&
AddAgentNetworkInfoList(AgentNetworkInfoListT&& value) { m_agentNetworkInfoListHasBeenSet =
true; m_agentNetworkInfoList.emplace_back(std::forward<AgentNetworkInfoListT>(value));
return *
this; }
91 template<
typename ConnectorIdT = Aws::String>
92 void SetConnectorId(ConnectorIdT&& value) { m_connectorIdHasBeenSet =
true; m_connectorId = std::forward<ConnectorIdT>(value); }
93 template<
typename ConnectorIdT = Aws::String>
103 template<
typename VersionT = Aws::String>
104 void SetVersion(VersionT&& value) { m_versionHasBeenSet =
true; m_version = std::forward<VersionT>(value); }
105 template<
typename VersionT = Aws::String>
125 template<
typename LastHealthPingTimeT = Aws::String>
126 void SetLastHealthPingTime(LastHealthPingTimeT&& value) { m_lastHealthPingTimeHasBeenSet =
true; m_lastHealthPingTime = std::forward<LastHealthPingTimeT>(value); }
127 template<
typename LastHealthPingTimeT = Aws::String>
137 template<
typename CollectionStatusT = Aws::String>
138 void SetCollectionStatus(CollectionStatusT&& value) { m_collectionStatusHasBeenSet =
true; m_collectionStatus = std::forward<CollectionStatusT>(value); }
139 template<
typename CollectionStatusT = Aws::String>
149 template<
typename AgentTypeT = Aws::String>
150 void SetAgentType(AgentTypeT&& value) { m_agentTypeHasBeenSet =
true; m_agentType = std::forward<AgentTypeT>(value); }
151 template<
typename AgentTypeT = Aws::String>
161 template<
typename RegisteredTimeT = Aws::String>
162 void SetRegisteredTime(RegisteredTimeT&& value) { m_registeredTimeHasBeenSet =
true; m_registeredTime = std::forward<RegisteredTimeT>(value); }
163 template<
typename RegisteredTimeT = Aws::String>
169 bool m_agentIdHasBeenSet =
false;
172 bool m_hostNameHasBeenSet =
false;
175 bool m_agentNetworkInfoListHasBeenSet =
false;
178 bool m_connectorIdHasBeenSet =
false;
181 bool m_versionHasBeenSet =
false;
184 bool m_healthHasBeenSet =
false;
187 bool m_lastHealthPingTimeHasBeenSet =
false;
190 bool m_collectionStatusHasBeenSet =
false;
193 bool m_agentTypeHasBeenSet =
false;
196 bool m_registeredTimeHasBeenSet =
false;
bool LastHealthPingTimeHasBeenSet() const
const Aws::String & GetCollectionStatus() const
bool AgentTypeHasBeenSet() const
bool CollectionStatusHasBeenSet() const
bool RegisteredTimeHasBeenSet() const
void SetAgentType(AgentTypeT &&value)
const Aws::String & GetHostName() const
const Aws::String & GetLastHealthPingTime() const
AgentInfo & WithHostName(HostNameT &&value)
bool HealthHasBeenSet() const
bool ConnectorIdHasBeenSet() const
void SetHostName(HostNameT &&value)
AgentInfo & WithVersion(VersionT &&value)
void SetHealth(AgentStatus value)
AWS_APPLICATIONDISCOVERYSERVICE_API AgentInfo(Aws::Utils::Json::JsonView jsonValue)
void SetRegisteredTime(RegisteredTimeT &&value)
const Aws::String & GetAgentId() const
bool VersionHasBeenSet() const
AWS_APPLICATIONDISCOVERYSERVICE_API AgentInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
AgentInfo & WithRegisteredTime(RegisteredTimeT &&value)
AgentInfo & WithAgentType(AgentTypeT &&value)
void SetConnectorId(ConnectorIdT &&value)
const Aws::String & GetVersion() const
const Aws::String & GetAgentType() const
AgentInfo & WithCollectionStatus(CollectionStatusT &&value)
AWS_APPLICATIONDISCOVERYSERVICE_API AgentInfo()=default
bool HostNameHasBeenSet() const
void SetCollectionStatus(CollectionStatusT &&value)
const Aws::Vector< AgentNetworkInfo > & GetAgentNetworkInfoList() const
const Aws::String & GetConnectorId() const
void SetAgentId(AgentIdT &&value)
void SetVersion(VersionT &&value)
AgentInfo & WithAgentNetworkInfoList(AgentNetworkInfoListT &&value)
void SetAgentNetworkInfoList(AgentNetworkInfoListT &&value)
AgentInfo & WithConnectorId(ConnectorIdT &&value)
void SetLastHealthPingTime(LastHealthPingTimeT &&value)
bool AgentIdHasBeenSet() const
AgentInfo & WithLastHealthPingTime(LastHealthPingTimeT &&value)
AgentInfo & WithHealth(AgentStatus value)
AWS_APPLICATIONDISCOVERYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AgentInfo & AddAgentNetworkInfoList(AgentNetworkInfoListT &&value)
const Aws::String & GetRegisteredTime() const
AgentInfo & WithAgentId(AgentIdT &&value)
bool AgentNetworkInfoListHasBeenSet() const
AgentStatus GetHealth() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue