AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AgentInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/discovery/ApplicationDiscoveryService_EXPORTS.h>
10#include <aws/discovery/model/AgentNetworkInfo.h>
11#include <aws/discovery/model/AgentStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ApplicationDiscoveryService {
23namespace Model {
24
33class AgentInfo {
34 public:
35 AWS_APPLICATIONDISCOVERYSERVICE_API AgentInfo() = default;
36 AWS_APPLICATIONDISCOVERYSERVICE_API AgentInfo(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APPLICATIONDISCOVERYSERVICE_API AgentInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPLICATIONDISCOVERYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetAgentId() const { return m_agentId; }
45 inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; }
46 template <typename AgentIdT = Aws::String>
47 void SetAgentId(AgentIdT&& value) {
48 m_agentIdHasBeenSet = true;
49 m_agentId = std::forward<AgentIdT>(value);
50 }
51 template <typename AgentIdT = Aws::String>
52 AgentInfo& WithAgentId(AgentIdT&& value) {
53 SetAgentId(std::forward<AgentIdT>(value));
54 return *this;
55 }
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) {
67 m_hostNameHasBeenSet = true;
68 m_hostName = std::forward<HostNameT>(value);
69 }
70 template <typename HostNameT = Aws::String>
71 AgentInfo& WithHostName(HostNameT&& value) {
72 SetHostName(std::forward<HostNameT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::Vector<AgentNetworkInfo>& GetAgentNetworkInfoList() const { return m_agentNetworkInfoList; }
82 inline bool AgentNetworkInfoListHasBeenSet() const { return m_agentNetworkInfoListHasBeenSet; }
83 template <typename AgentNetworkInfoListT = Aws::Vector<AgentNetworkInfo>>
84 void SetAgentNetworkInfoList(AgentNetworkInfoListT&& value) {
85 m_agentNetworkInfoListHasBeenSet = true;
86 m_agentNetworkInfoList = std::forward<AgentNetworkInfoListT>(value);
87 }
88 template <typename AgentNetworkInfoListT = Aws::Vector<AgentNetworkInfo>>
89 AgentInfo& WithAgentNetworkInfoList(AgentNetworkInfoListT&& value) {
90 SetAgentNetworkInfoList(std::forward<AgentNetworkInfoListT>(value));
91 return *this;
92 }
93 template <typename AgentNetworkInfoListT = AgentNetworkInfo>
94 AgentInfo& AddAgentNetworkInfoList(AgentNetworkInfoListT&& value) {
95 m_agentNetworkInfoListHasBeenSet = true;
96 m_agentNetworkInfoList.emplace_back(std::forward<AgentNetworkInfoListT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::String& GetConnectorId() const { return m_connectorId; }
106 inline bool ConnectorIdHasBeenSet() const { return m_connectorIdHasBeenSet; }
107 template <typename ConnectorIdT = Aws::String>
108 void SetConnectorId(ConnectorIdT&& value) {
109 m_connectorIdHasBeenSet = true;
110 m_connectorId = std::forward<ConnectorIdT>(value);
111 }
112 template <typename ConnectorIdT = Aws::String>
113 AgentInfo& WithConnectorId(ConnectorIdT&& value) {
114 SetConnectorId(std::forward<ConnectorIdT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::String& GetVersion() const { return m_version; }
124 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
125 template <typename VersionT = Aws::String>
126 void SetVersion(VersionT&& value) {
127 m_versionHasBeenSet = true;
128 m_version = std::forward<VersionT>(value);
129 }
130 template <typename VersionT = Aws::String>
131 AgentInfo& WithVersion(VersionT&& value) {
132 SetVersion(std::forward<VersionT>(value));
133 return *this;
134 }
136
138
141 inline AgentStatus GetHealth() const { return m_health; }
142 inline bool HealthHasBeenSet() const { return m_healthHasBeenSet; }
143 inline void SetHealth(AgentStatus value) {
144 m_healthHasBeenSet = true;
145 m_health = value;
146 }
148 SetHealth(value);
149 return *this;
150 }
152
154
157 inline const Aws::String& GetLastHealthPingTime() const { return m_lastHealthPingTime; }
158 inline bool LastHealthPingTimeHasBeenSet() const { return m_lastHealthPingTimeHasBeenSet; }
159 template <typename LastHealthPingTimeT = Aws::String>
160 void SetLastHealthPingTime(LastHealthPingTimeT&& value) {
161 m_lastHealthPingTimeHasBeenSet = true;
162 m_lastHealthPingTime = std::forward<LastHealthPingTimeT>(value);
163 }
164 template <typename LastHealthPingTimeT = Aws::String>
165 AgentInfo& WithLastHealthPingTime(LastHealthPingTimeT&& value) {
166 SetLastHealthPingTime(std::forward<LastHealthPingTimeT>(value));
167 return *this;
168 }
170
172
175 inline const Aws::String& GetCollectionStatus() const { return m_collectionStatus; }
176 inline bool CollectionStatusHasBeenSet() const { return m_collectionStatusHasBeenSet; }
177 template <typename CollectionStatusT = Aws::String>
178 void SetCollectionStatus(CollectionStatusT&& value) {
179 m_collectionStatusHasBeenSet = true;
180 m_collectionStatus = std::forward<CollectionStatusT>(value);
181 }
182 template <typename CollectionStatusT = Aws::String>
183 AgentInfo& WithCollectionStatus(CollectionStatusT&& value) {
184 SetCollectionStatus(std::forward<CollectionStatusT>(value));
185 return *this;
186 }
188
190
193 inline const Aws::String& GetAgentType() const { return m_agentType; }
194 inline bool AgentTypeHasBeenSet() const { return m_agentTypeHasBeenSet; }
195 template <typename AgentTypeT = Aws::String>
196 void SetAgentType(AgentTypeT&& value) {
197 m_agentTypeHasBeenSet = true;
198 m_agentType = std::forward<AgentTypeT>(value);
199 }
200 template <typename AgentTypeT = Aws::String>
201 AgentInfo& WithAgentType(AgentTypeT&& value) {
202 SetAgentType(std::forward<AgentTypeT>(value));
203 return *this;
204 }
206
208
211 inline const Aws::String& GetRegisteredTime() const { return m_registeredTime; }
212 inline bool RegisteredTimeHasBeenSet() const { return m_registeredTimeHasBeenSet; }
213 template <typename RegisteredTimeT = Aws::String>
214 void SetRegisteredTime(RegisteredTimeT&& value) {
215 m_registeredTimeHasBeenSet = true;
216 m_registeredTime = std::forward<RegisteredTimeT>(value);
217 }
218 template <typename RegisteredTimeT = Aws::String>
219 AgentInfo& WithRegisteredTime(RegisteredTimeT&& value) {
220 SetRegisteredTime(std::forward<RegisteredTimeT>(value));
221 return *this;
222 }
224 private:
225 Aws::String m_agentId;
226
227 Aws::String m_hostName;
228
229 Aws::Vector<AgentNetworkInfo> m_agentNetworkInfoList;
230
231 Aws::String m_connectorId;
232
233 Aws::String m_version;
234
236
237 Aws::String m_lastHealthPingTime;
238
239 Aws::String m_collectionStatus;
240
241 Aws::String m_agentType;
242
243 Aws::String m_registeredTime;
244 bool m_agentIdHasBeenSet = false;
245 bool m_hostNameHasBeenSet = false;
246 bool m_agentNetworkInfoListHasBeenSet = false;
247 bool m_connectorIdHasBeenSet = false;
248 bool m_versionHasBeenSet = false;
249 bool m_healthHasBeenSet = false;
250 bool m_lastHealthPingTimeHasBeenSet = false;
251 bool m_collectionStatusHasBeenSet = false;
252 bool m_agentTypeHasBeenSet = false;
253 bool m_registeredTimeHasBeenSet = false;
254};
255
256} // namespace Model
257} // namespace ApplicationDiscoveryService
258} // namespace Aws
const Aws::String & GetCollectionStatus() const
Definition AgentInfo.h:175
const Aws::String & GetLastHealthPingTime() const
Definition AgentInfo.h:157
AgentInfo & WithHostName(HostNameT &&value)
Definition AgentInfo.h:71
AgentInfo & WithVersion(VersionT &&value)
Definition AgentInfo.h:131
AWS_APPLICATIONDISCOVERYSERVICE_API AgentInfo(Aws::Utils::Json::JsonView jsonValue)
void SetRegisteredTime(RegisteredTimeT &&value)
Definition AgentInfo.h:214
AWS_APPLICATIONDISCOVERYSERVICE_API AgentInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
AgentInfo & WithRegisteredTime(RegisteredTimeT &&value)
Definition AgentInfo.h:219
AgentInfo & WithAgentType(AgentTypeT &&value)
Definition AgentInfo.h:201
AgentInfo & WithCollectionStatus(CollectionStatusT &&value)
Definition AgentInfo.h:183
AWS_APPLICATIONDISCOVERYSERVICE_API AgentInfo()=default
void SetCollectionStatus(CollectionStatusT &&value)
Definition AgentInfo.h:178
const Aws::Vector< AgentNetworkInfo > & GetAgentNetworkInfoList() const
Definition AgentInfo.h:81
AgentInfo & WithAgentNetworkInfoList(AgentNetworkInfoListT &&value)
Definition AgentInfo.h:89
void SetAgentNetworkInfoList(AgentNetworkInfoListT &&value)
Definition AgentInfo.h:84
AgentInfo & WithConnectorId(ConnectorIdT &&value)
Definition AgentInfo.h:113
void SetLastHealthPingTime(LastHealthPingTimeT &&value)
Definition AgentInfo.h:160
AgentInfo & WithLastHealthPingTime(LastHealthPingTimeT &&value)
Definition AgentInfo.h:165
AgentInfo & WithHealth(AgentStatus value)
Definition AgentInfo.h:147
AWS_APPLICATIONDISCOVERYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AgentInfo & AddAgentNetworkInfoList(AgentNetworkInfoListT &&value)
Definition AgentInfo.h:94
const Aws::String & GetRegisteredTime() const
Definition AgentInfo.h:211
AgentInfo & WithAgentId(AgentIdT &&value)
Definition AgentInfo.h:52
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue