AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAgentId(const Aws::String& value) { m_agentIdHasBeenSet = true; m_agentId = value; }
53 inline void SetAgentId(Aws::String&& value) { m_agentIdHasBeenSet = true; m_agentId = std::move(value); }
54 inline void SetAgentId(const char* value) { m_agentIdHasBeenSet = true; m_agentId.assign(value); }
55 inline AgentInfo& WithAgentId(const Aws::String& value) { SetAgentId(value); return *this;}
56 inline AgentInfo& WithAgentId(Aws::String&& value) { SetAgentId(std::move(value)); return *this;}
57 inline AgentInfo& WithAgentId(const char* value) { SetAgentId(value); return *this;}
59
61
65 inline const Aws::String& GetHostName() const{ return m_hostName; }
66 inline bool HostNameHasBeenSet() const { return m_hostNameHasBeenSet; }
67 inline void SetHostName(const Aws::String& value) { m_hostNameHasBeenSet = true; m_hostName = value; }
68 inline void SetHostName(Aws::String&& value) { m_hostNameHasBeenSet = true; m_hostName = std::move(value); }
69 inline void SetHostName(const char* value) { m_hostNameHasBeenSet = true; m_hostName.assign(value); }
70 inline AgentInfo& WithHostName(const Aws::String& value) { SetHostName(value); return *this;}
71 inline AgentInfo& WithHostName(Aws::String&& value) { SetHostName(std::move(value)); return *this;}
72 inline AgentInfo& WithHostName(const char* value) { SetHostName(value); return *this;}
74
76
79 inline const Aws::Vector<AgentNetworkInfo>& GetAgentNetworkInfoList() const{ return m_agentNetworkInfoList; }
80 inline bool AgentNetworkInfoListHasBeenSet() const { return m_agentNetworkInfoListHasBeenSet; }
81 inline void SetAgentNetworkInfoList(const Aws::Vector<AgentNetworkInfo>& value) { m_agentNetworkInfoListHasBeenSet = true; m_agentNetworkInfoList = value; }
82 inline void SetAgentNetworkInfoList(Aws::Vector<AgentNetworkInfo>&& value) { m_agentNetworkInfoListHasBeenSet = true; m_agentNetworkInfoList = std::move(value); }
85 inline AgentInfo& AddAgentNetworkInfoList(const AgentNetworkInfo& value) { m_agentNetworkInfoListHasBeenSet = true; m_agentNetworkInfoList.push_back(value); return *this; }
86 inline AgentInfo& AddAgentNetworkInfoList(AgentNetworkInfo&& value) { m_agentNetworkInfoListHasBeenSet = true; m_agentNetworkInfoList.push_back(std::move(value)); return *this; }
88
90
93 inline const Aws::String& GetConnectorId() const{ return m_connectorId; }
94 inline bool ConnectorIdHasBeenSet() const { return m_connectorIdHasBeenSet; }
95 inline void SetConnectorId(const Aws::String& value) { m_connectorIdHasBeenSet = true; m_connectorId = value; }
96 inline void SetConnectorId(Aws::String&& value) { m_connectorIdHasBeenSet = true; m_connectorId = std::move(value); }
97 inline void SetConnectorId(const char* value) { m_connectorIdHasBeenSet = true; m_connectorId.assign(value); }
98 inline AgentInfo& WithConnectorId(const Aws::String& value) { SetConnectorId(value); return *this;}
99 inline AgentInfo& WithConnectorId(Aws::String&& value) { SetConnectorId(std::move(value)); return *this;}
100 inline AgentInfo& WithConnectorId(const char* value) { SetConnectorId(value); return *this;}
102
104
107 inline const Aws::String& GetVersion() const{ return m_version; }
108 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
109 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
110 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
111 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
112 inline AgentInfo& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
113 inline AgentInfo& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
114 inline AgentInfo& WithVersion(const char* value) { SetVersion(value); return *this;}
116
118
121 inline const AgentStatus& GetHealth() const{ return m_health; }
122 inline bool HealthHasBeenSet() const { return m_healthHasBeenSet; }
123 inline void SetHealth(const AgentStatus& value) { m_healthHasBeenSet = true; m_health = value; }
124 inline void SetHealth(AgentStatus&& value) { m_healthHasBeenSet = true; m_health = std::move(value); }
125 inline AgentInfo& WithHealth(const AgentStatus& value) { SetHealth(value); return *this;}
126 inline AgentInfo& WithHealth(AgentStatus&& value) { SetHealth(std::move(value)); return *this;}
128
130
133 inline const Aws::String& GetLastHealthPingTime() const{ return m_lastHealthPingTime; }
134 inline bool LastHealthPingTimeHasBeenSet() const { return m_lastHealthPingTimeHasBeenSet; }
135 inline void SetLastHealthPingTime(const Aws::String& value) { m_lastHealthPingTimeHasBeenSet = true; m_lastHealthPingTime = value; }
136 inline void SetLastHealthPingTime(Aws::String&& value) { m_lastHealthPingTimeHasBeenSet = true; m_lastHealthPingTime = std::move(value); }
137 inline void SetLastHealthPingTime(const char* value) { m_lastHealthPingTimeHasBeenSet = true; m_lastHealthPingTime.assign(value); }
138 inline AgentInfo& WithLastHealthPingTime(const Aws::String& value) { SetLastHealthPingTime(value); return *this;}
139 inline AgentInfo& WithLastHealthPingTime(Aws::String&& value) { SetLastHealthPingTime(std::move(value)); return *this;}
140 inline AgentInfo& WithLastHealthPingTime(const char* value) { SetLastHealthPingTime(value); return *this;}
142
144
147 inline const Aws::String& GetCollectionStatus() const{ return m_collectionStatus; }
148 inline bool CollectionStatusHasBeenSet() const { return m_collectionStatusHasBeenSet; }
149 inline void SetCollectionStatus(const Aws::String& value) { m_collectionStatusHasBeenSet = true; m_collectionStatus = value; }
150 inline void SetCollectionStatus(Aws::String&& value) { m_collectionStatusHasBeenSet = true; m_collectionStatus = std::move(value); }
151 inline void SetCollectionStatus(const char* value) { m_collectionStatusHasBeenSet = true; m_collectionStatus.assign(value); }
152 inline AgentInfo& WithCollectionStatus(const Aws::String& value) { SetCollectionStatus(value); return *this;}
153 inline AgentInfo& WithCollectionStatus(Aws::String&& value) { SetCollectionStatus(std::move(value)); return *this;}
154 inline AgentInfo& WithCollectionStatus(const char* value) { SetCollectionStatus(value); return *this;}
156
158
161 inline const Aws::String& GetAgentType() const{ return m_agentType; }
162 inline bool AgentTypeHasBeenSet() const { return m_agentTypeHasBeenSet; }
163 inline void SetAgentType(const Aws::String& value) { m_agentTypeHasBeenSet = true; m_agentType = value; }
164 inline void SetAgentType(Aws::String&& value) { m_agentTypeHasBeenSet = true; m_agentType = std::move(value); }
165 inline void SetAgentType(const char* value) { m_agentTypeHasBeenSet = true; m_agentType.assign(value); }
166 inline AgentInfo& WithAgentType(const Aws::String& value) { SetAgentType(value); return *this;}
167 inline AgentInfo& WithAgentType(Aws::String&& value) { SetAgentType(std::move(value)); return *this;}
168 inline AgentInfo& WithAgentType(const char* value) { SetAgentType(value); return *this;}
170
172
175 inline const Aws::String& GetRegisteredTime() const{ return m_registeredTime; }
176 inline bool RegisteredTimeHasBeenSet() const { return m_registeredTimeHasBeenSet; }
177 inline void SetRegisteredTime(const Aws::String& value) { m_registeredTimeHasBeenSet = true; m_registeredTime = value; }
178 inline void SetRegisteredTime(Aws::String&& value) { m_registeredTimeHasBeenSet = true; m_registeredTime = std::move(value); }
179 inline void SetRegisteredTime(const char* value) { m_registeredTimeHasBeenSet = true; m_registeredTime.assign(value); }
180 inline AgentInfo& WithRegisteredTime(const Aws::String& value) { SetRegisteredTime(value); return *this;}
181 inline AgentInfo& WithRegisteredTime(Aws::String&& value) { SetRegisteredTime(std::move(value)); return *this;}
182 inline AgentInfo& WithRegisteredTime(const char* value) { SetRegisteredTime(value); return *this;}
184 private:
185
186 Aws::String m_agentId;
187 bool m_agentIdHasBeenSet = false;
188
189 Aws::String m_hostName;
190 bool m_hostNameHasBeenSet = false;
191
192 Aws::Vector<AgentNetworkInfo> m_agentNetworkInfoList;
193 bool m_agentNetworkInfoListHasBeenSet = false;
194
195 Aws::String m_connectorId;
196 bool m_connectorIdHasBeenSet = false;
197
198 Aws::String m_version;
199 bool m_versionHasBeenSet = false;
200
201 AgentStatus m_health;
202 bool m_healthHasBeenSet = false;
203
204 Aws::String m_lastHealthPingTime;
205 bool m_lastHealthPingTimeHasBeenSet = false;
206
207 Aws::String m_collectionStatus;
208 bool m_collectionStatusHasBeenSet = false;
209
210 Aws::String m_agentType;
211 bool m_agentTypeHasBeenSet = false;
212
213 Aws::String m_registeredTime;
214 bool m_registeredTimeHasBeenSet = false;
215 };
216
217} // namespace Model
218} // namespace ApplicationDiscoveryService
219} // namespace Aws
AgentInfo & WithCollectionStatus(Aws::String &&value)
Definition AgentInfo.h:153
void SetConnectorId(const Aws::String &value)
Definition AgentInfo.h:95
void SetAgentNetworkInfoList(const Aws::Vector< AgentNetworkInfo > &value)
Definition AgentInfo.h:81
const Aws::String & GetCollectionStatus() const
Definition AgentInfo.h:147
void SetVersion(const Aws::String &value)
Definition AgentInfo.h:109
AgentInfo & WithLastHealthPingTime(const Aws::String &value)
Definition AgentInfo.h:138
AgentInfo & WithVersion(const char *value)
Definition AgentInfo.h:114
AgentInfo & WithAgentId(Aws::String &&value)
Definition AgentInfo.h:56
AgentInfo & WithRegisteredTime(const Aws::String &value)
Definition AgentInfo.h:180
void SetHealth(const AgentStatus &value)
Definition AgentInfo.h:123
AgentInfo & WithHostName(Aws::String &&value)
Definition AgentInfo.h:71
AgentInfo & WithAgentId(const char *value)
Definition AgentInfo.h:57
AgentInfo & WithAgentNetworkInfoList(Aws::Vector< AgentNetworkInfo > &&value)
Definition AgentInfo.h:84
void SetAgentNetworkInfoList(Aws::Vector< AgentNetworkInfo > &&value)
Definition AgentInfo.h:82
void SetAgentType(const Aws::String &value)
Definition AgentInfo.h:163
AgentInfo & WithLastHealthPingTime(Aws::String &&value)
Definition AgentInfo.h:139
void SetAgentId(const Aws::String &value)
Definition AgentInfo.h:52
const Aws::String & GetLastHealthPingTime() const
Definition AgentInfo.h:133
AgentInfo & WithConnectorId(Aws::String &&value)
Definition AgentInfo.h:99
AgentInfo & WithVersion(Aws::String &&value)
Definition AgentInfo.h:113
AgentInfo & WithAgentType(const Aws::String &value)
Definition AgentInfo.h:166
AWS_APPLICATIONDISCOVERYSERVICE_API AgentInfo(Aws::Utils::Json::JsonView jsonValue)
void SetLastHealthPingTime(const Aws::String &value)
Definition AgentInfo.h:135
AgentInfo & WithAgentType(Aws::String &&value)
Definition AgentInfo.h:167
AgentInfo & AddAgentNetworkInfoList(AgentNetworkInfo &&value)
Definition AgentInfo.h:86
AgentInfo & WithRegisteredTime(Aws::String &&value)
Definition AgentInfo.h:181
AgentInfo & WithAgentType(const char *value)
Definition AgentInfo.h:168
AgentInfo & WithHostName(const Aws::String &value)
Definition AgentInfo.h:70
AgentInfo & WithConnectorId(const Aws::String &value)
Definition AgentInfo.h:98
AgentInfo & WithLastHealthPingTime(const char *value)
Definition AgentInfo.h:140
AgentInfo & WithCollectionStatus(const Aws::String &value)
Definition AgentInfo.h:152
AWS_APPLICATIONDISCOVERYSERVICE_API AgentInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
AgentInfo & WithRegisteredTime(const char *value)
Definition AgentInfo.h:182
AgentInfo & WithAgentNetworkInfoList(const Aws::Vector< AgentNetworkInfo > &value)
Definition AgentInfo.h:83
AgentInfo & WithConnectorId(const char *value)
Definition AgentInfo.h:100
AgentInfo & WithHostName(const char *value)
Definition AgentInfo.h:72
AgentInfo & WithHealth(AgentStatus &&value)
Definition AgentInfo.h:126
AgentInfo & WithCollectionStatus(const char *value)
Definition AgentInfo.h:154
AgentInfo & WithAgentId(const Aws::String &value)
Definition AgentInfo.h:55
const Aws::Vector< AgentNetworkInfo > & GetAgentNetworkInfoList() const
Definition AgentInfo.h:79
void SetRegisteredTime(const Aws::String &value)
Definition AgentInfo.h:177
void SetHostName(const Aws::String &value)
Definition AgentInfo.h:67
AgentInfo & WithVersion(const Aws::String &value)
Definition AgentInfo.h:112
void SetCollectionStatus(const Aws::String &value)
Definition AgentInfo.h:149
AWS_APPLICATIONDISCOVERYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRegisteredTime() const
Definition AgentInfo.h:175
AgentInfo & AddAgentNetworkInfoList(const AgentNetworkInfo &value)
Definition AgentInfo.h:85
AWS_APPLICATIONDISCOVERYSERVICE_API AgentInfo()
AgentInfo & WithHealth(const AgentStatus &value)
Definition AgentInfo.h:125
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue