AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AgentInfo.h
1
6#pragma once
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>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ApplicationDiscoveryService
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_APPLICATIONDISCOVERYSERVICE_API AgentInfo() = default;
41 AWS_APPLICATIONDISCOVERYSERVICE_API AgentInfo(Aws::Utils::Json::JsonView jsonValue);
42 AWS_APPLICATIONDISCOVERYSERVICE_API AgentInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_APPLICATIONDISCOVERYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetAgentId() const { return m_agentId; }
51 inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; }
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>
55 AgentInfo& WithAgentId(AgentIdT&& value) { SetAgentId(std::forward<AgentIdT>(value)); return *this;}
57
59
63 inline const Aws::String& GetHostName() const { return m_hostName; }
64 inline bool HostNameHasBeenSet() const { return m_hostNameHasBeenSet; }
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>
68 AgentInfo& WithHostName(HostNameT&& value) { SetHostName(std::forward<HostNameT>(value)); return *this;}
70
72
75 inline const Aws::Vector<AgentNetworkInfo>& GetAgentNetworkInfoList() const { return m_agentNetworkInfoList; }
76 inline bool AgentNetworkInfoListHasBeenSet() const { return m_agentNetworkInfoListHasBeenSet; }
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>>
80 AgentInfo& WithAgentNetworkInfoList(AgentNetworkInfoListT&& value) { SetAgentNetworkInfoList(std::forward<AgentNetworkInfoListT>(value)); return *this;}
81 template<typename AgentNetworkInfoListT = AgentNetworkInfo>
82 AgentInfo& AddAgentNetworkInfoList(AgentNetworkInfoListT&& value) { m_agentNetworkInfoListHasBeenSet = true; m_agentNetworkInfoList.emplace_back(std::forward<AgentNetworkInfoListT>(value)); return *this; }
84
86
89 inline const Aws::String& GetConnectorId() const { return m_connectorId; }
90 inline bool ConnectorIdHasBeenSet() const { return m_connectorIdHasBeenSet; }
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>
94 AgentInfo& WithConnectorId(ConnectorIdT&& value) { SetConnectorId(std::forward<ConnectorIdT>(value)); return *this;}
96
98
101 inline const Aws::String& GetVersion() const { return m_version; }
102 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
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>
106 AgentInfo& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
108
110
113 inline AgentStatus GetHealth() const { return m_health; }
114 inline bool HealthHasBeenSet() const { return m_healthHasBeenSet; }
115 inline void SetHealth(AgentStatus value) { m_healthHasBeenSet = true; m_health = value; }
116 inline AgentInfo& WithHealth(AgentStatus value) { SetHealth(value); return *this;}
118
120
123 inline const Aws::String& GetLastHealthPingTime() const { return m_lastHealthPingTime; }
124 inline bool LastHealthPingTimeHasBeenSet() const { return m_lastHealthPingTimeHasBeenSet; }
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>
128 AgentInfo& WithLastHealthPingTime(LastHealthPingTimeT&& value) { SetLastHealthPingTime(std::forward<LastHealthPingTimeT>(value)); return *this;}
130
132
135 inline const Aws::String& GetCollectionStatus() const { return m_collectionStatus; }
136 inline bool CollectionStatusHasBeenSet() const { return m_collectionStatusHasBeenSet; }
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>
140 AgentInfo& WithCollectionStatus(CollectionStatusT&& value) { SetCollectionStatus(std::forward<CollectionStatusT>(value)); return *this;}
142
144
147 inline const Aws::String& GetAgentType() const { return m_agentType; }
148 inline bool AgentTypeHasBeenSet() const { return m_agentTypeHasBeenSet; }
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>
152 AgentInfo& WithAgentType(AgentTypeT&& value) { SetAgentType(std::forward<AgentTypeT>(value)); return *this;}
154
156
159 inline const Aws::String& GetRegisteredTime() const { return m_registeredTime; }
160 inline bool RegisteredTimeHasBeenSet() const { return m_registeredTimeHasBeenSet; }
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>
164 AgentInfo& WithRegisteredTime(RegisteredTimeT&& value) { SetRegisteredTime(std::forward<RegisteredTimeT>(value)); return *this;}
166 private:
167
168 Aws::String m_agentId;
169 bool m_agentIdHasBeenSet = false;
170
171 Aws::String m_hostName;
172 bool m_hostNameHasBeenSet = false;
173
174 Aws::Vector<AgentNetworkInfo> m_agentNetworkInfoList;
175 bool m_agentNetworkInfoListHasBeenSet = false;
176
177 Aws::String m_connectorId;
178 bool m_connectorIdHasBeenSet = false;
179
180 Aws::String m_version;
181 bool m_versionHasBeenSet = false;
182
184 bool m_healthHasBeenSet = false;
185
186 Aws::String m_lastHealthPingTime;
187 bool m_lastHealthPingTimeHasBeenSet = false;
188
189 Aws::String m_collectionStatus;
190 bool m_collectionStatusHasBeenSet = false;
191
192 Aws::String m_agentType;
193 bool m_agentTypeHasBeenSet = false;
194
195 Aws::String m_registeredTime;
196 bool m_registeredTimeHasBeenSet = false;
197 };
198
199} // namespace Model
200} // namespace ApplicationDiscoveryService
201} // namespace Aws
const Aws::String & GetCollectionStatus() const
Definition AgentInfo.h:135
const Aws::String & GetLastHealthPingTime() const
Definition AgentInfo.h:123
AgentInfo & WithHostName(HostNameT &&value)
Definition AgentInfo.h:68
AgentInfo & WithVersion(VersionT &&value)
Definition AgentInfo.h:106
AWS_APPLICATIONDISCOVERYSERVICE_API AgentInfo(Aws::Utils::Json::JsonView jsonValue)
void SetRegisteredTime(RegisteredTimeT &&value)
Definition AgentInfo.h:162
AWS_APPLICATIONDISCOVERYSERVICE_API AgentInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
AgentInfo & WithRegisteredTime(RegisteredTimeT &&value)
Definition AgentInfo.h:164
AgentInfo & WithAgentType(AgentTypeT &&value)
Definition AgentInfo.h:152
AgentInfo & WithCollectionStatus(CollectionStatusT &&value)
Definition AgentInfo.h:140
AWS_APPLICATIONDISCOVERYSERVICE_API AgentInfo()=default
void SetCollectionStatus(CollectionStatusT &&value)
Definition AgentInfo.h:138
const Aws::Vector< AgentNetworkInfo > & GetAgentNetworkInfoList() const
Definition AgentInfo.h:75
AgentInfo & WithAgentNetworkInfoList(AgentNetworkInfoListT &&value)
Definition AgentInfo.h:80
void SetAgentNetworkInfoList(AgentNetworkInfoListT &&value)
Definition AgentInfo.h:78
AgentInfo & WithConnectorId(ConnectorIdT &&value)
Definition AgentInfo.h:94
void SetLastHealthPingTime(LastHealthPingTimeT &&value)
Definition AgentInfo.h:126
AgentInfo & WithLastHealthPingTime(LastHealthPingTimeT &&value)
Definition AgentInfo.h:128
AgentInfo & WithHealth(AgentStatus value)
Definition AgentInfo.h:116
AWS_APPLICATIONDISCOVERYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AgentInfo & AddAgentNetworkInfoList(AgentNetworkInfoListT &&value)
Definition AgentInfo.h:82
const Aws::String & GetRegisteredTime() const
Definition AgentInfo.h:159
AgentInfo & WithAgentId(AgentIdT &&value)
Definition AgentInfo.h:55
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue