AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
InstanceInformation.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm/model/PingStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/ssm/model/PlatformType.h>
12#include <aws/ssm/model/ResourceType.h>
13#include <aws/ssm/model/InstanceAggregatedAssociationOverview.h>
14#include <aws/ssm/model/SourceType.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace SSM
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_SSM_API InstanceInformation() = default;
45
46
48
51 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
52 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
53 template<typename InstanceIdT = Aws::String>
54 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
55 template<typename InstanceIdT = Aws::String>
56 InstanceInformation& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
58
60
64 inline PingStatus GetPingStatus() const { return m_pingStatus; }
65 inline bool PingStatusHasBeenSet() const { return m_pingStatusHasBeenSet; }
66 inline void SetPingStatus(PingStatus value) { m_pingStatusHasBeenSet = true; m_pingStatus = value; }
67 inline InstanceInformation& WithPingStatus(PingStatus value) { SetPingStatus(value); return *this;}
69
71
75 inline const Aws::Utils::DateTime& GetLastPingDateTime() const { return m_lastPingDateTime; }
76 inline bool LastPingDateTimeHasBeenSet() const { return m_lastPingDateTimeHasBeenSet; }
77 template<typename LastPingDateTimeT = Aws::Utils::DateTime>
78 void SetLastPingDateTime(LastPingDateTimeT&& value) { m_lastPingDateTimeHasBeenSet = true; m_lastPingDateTime = std::forward<LastPingDateTimeT>(value); }
79 template<typename LastPingDateTimeT = Aws::Utils::DateTime>
80 InstanceInformation& WithLastPingDateTime(LastPingDateTimeT&& value) { SetLastPingDateTime(std::forward<LastPingDateTimeT>(value)); return *this;}
82
84
87 inline const Aws::String& GetAgentVersion() const { return m_agentVersion; }
88 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
89 template<typename AgentVersionT = Aws::String>
90 void SetAgentVersion(AgentVersionT&& value) { m_agentVersionHasBeenSet = true; m_agentVersion = std::forward<AgentVersionT>(value); }
91 template<typename AgentVersionT = Aws::String>
92 InstanceInformation& WithAgentVersion(AgentVersionT&& value) { SetAgentVersion(std::forward<AgentVersionT>(value)); return *this;}
94
96
102 inline bool GetIsLatestVersion() const { return m_isLatestVersion; }
103 inline bool IsLatestVersionHasBeenSet() const { return m_isLatestVersionHasBeenSet; }
104 inline void SetIsLatestVersion(bool value) { m_isLatestVersionHasBeenSet = true; m_isLatestVersion = value; }
105 inline InstanceInformation& WithIsLatestVersion(bool value) { SetIsLatestVersion(value); return *this;}
107
109
112 inline PlatformType GetPlatformType() const { return m_platformType; }
113 inline bool PlatformTypeHasBeenSet() const { return m_platformTypeHasBeenSet; }
114 inline void SetPlatformType(PlatformType value) { m_platformTypeHasBeenSet = true; m_platformType = value; }
115 inline InstanceInformation& WithPlatformType(PlatformType value) { SetPlatformType(value); return *this;}
117
119
122 inline const Aws::String& GetPlatformName() const { return m_platformName; }
123 inline bool PlatformNameHasBeenSet() const { return m_platformNameHasBeenSet; }
124 template<typename PlatformNameT = Aws::String>
125 void SetPlatformName(PlatformNameT&& value) { m_platformNameHasBeenSet = true; m_platformName = std::forward<PlatformNameT>(value); }
126 template<typename PlatformNameT = Aws::String>
127 InstanceInformation& WithPlatformName(PlatformNameT&& value) { SetPlatformName(std::forward<PlatformNameT>(value)); return *this;}
129
131
134 inline const Aws::String& GetPlatformVersion() const { return m_platformVersion; }
135 inline bool PlatformVersionHasBeenSet() const { return m_platformVersionHasBeenSet; }
136 template<typename PlatformVersionT = Aws::String>
137 void SetPlatformVersion(PlatformVersionT&& value) { m_platformVersionHasBeenSet = true; m_platformVersion = std::forward<PlatformVersionT>(value); }
138 template<typename PlatformVersionT = Aws::String>
139 InstanceInformation& WithPlatformVersion(PlatformVersionT&& value) { SetPlatformVersion(std::forward<PlatformVersionT>(value)); return *this;}
141
143
147 inline const Aws::String& GetActivationId() const { return m_activationId; }
148 inline bool ActivationIdHasBeenSet() const { return m_activationIdHasBeenSet; }
149 template<typename ActivationIdT = Aws::String>
150 void SetActivationId(ActivationIdT&& value) { m_activationIdHasBeenSet = true; m_activationId = std::forward<ActivationIdT>(value); }
151 template<typename ActivationIdT = Aws::String>
152 InstanceInformation& WithActivationId(ActivationIdT&& value) { SetActivationId(std::forward<ActivationIdT>(value)); return *this;}
154
156
168 inline const Aws::String& GetIamRole() const { return m_iamRole; }
169 inline bool IamRoleHasBeenSet() const { return m_iamRoleHasBeenSet; }
170 template<typename IamRoleT = Aws::String>
171 void SetIamRole(IamRoleT&& value) { m_iamRoleHasBeenSet = true; m_iamRole = std::forward<IamRoleT>(value); }
172 template<typename IamRoleT = Aws::String>
173 InstanceInformation& WithIamRole(IamRoleT&& value) { SetIamRole(std::forward<IamRoleT>(value)); return *this;}
175
177
181 inline const Aws::Utils::DateTime& GetRegistrationDate() const { return m_registrationDate; }
182 inline bool RegistrationDateHasBeenSet() const { return m_registrationDateHasBeenSet; }
183 template<typename RegistrationDateT = Aws::Utils::DateTime>
184 void SetRegistrationDate(RegistrationDateT&& value) { m_registrationDateHasBeenSet = true; m_registrationDate = std::forward<RegistrationDateT>(value); }
185 template<typename RegistrationDateT = Aws::Utils::DateTime>
186 InstanceInformation& WithRegistrationDate(RegistrationDateT&& value) { SetRegistrationDate(std::forward<RegistrationDateT>(value)); return *this;}
188
190
194 inline ResourceType GetResourceType() const { return m_resourceType; }
195 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
196 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
197 inline InstanceInformation& WithResourceType(ResourceType value) { SetResourceType(value); return *this;}
199
201
219 inline const Aws::String& GetName() const { return m_name; }
220 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
221 template<typename NameT = Aws::String>
222 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
223 template<typename NameT = Aws::String>
224 InstanceInformation& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
226
228
231 inline const Aws::String& GetIPAddress() const { return m_iPAddress; }
232 inline bool IPAddressHasBeenSet() const { return m_iPAddressHasBeenSet; }
233 template<typename IPAddressT = Aws::String>
234 void SetIPAddress(IPAddressT&& value) { m_iPAddressHasBeenSet = true; m_iPAddress = std::forward<IPAddressT>(value); }
235 template<typename IPAddressT = Aws::String>
236 InstanceInformation& WithIPAddress(IPAddressT&& value) { SetIPAddress(std::forward<IPAddressT>(value)); return *this;}
238
240
243 inline const Aws::String& GetComputerName() const { return m_computerName; }
244 inline bool ComputerNameHasBeenSet() const { return m_computerNameHasBeenSet; }
245 template<typename ComputerNameT = Aws::String>
246 void SetComputerName(ComputerNameT&& value) { m_computerNameHasBeenSet = true; m_computerName = std::forward<ComputerNameT>(value); }
247 template<typename ComputerNameT = Aws::String>
248 InstanceInformation& WithComputerName(ComputerNameT&& value) { SetComputerName(std::forward<ComputerNameT>(value)); return *this;}
250
252
255 inline const Aws::String& GetAssociationStatus() const { return m_associationStatus; }
256 inline bool AssociationStatusHasBeenSet() const { return m_associationStatusHasBeenSet; }
257 template<typename AssociationStatusT = Aws::String>
258 void SetAssociationStatus(AssociationStatusT&& value) { m_associationStatusHasBeenSet = true; m_associationStatus = std::forward<AssociationStatusT>(value); }
259 template<typename AssociationStatusT = Aws::String>
260 InstanceInformation& WithAssociationStatus(AssociationStatusT&& value) { SetAssociationStatus(std::forward<AssociationStatusT>(value)); return *this;}
262
264
267 inline const Aws::Utils::DateTime& GetLastAssociationExecutionDate() const { return m_lastAssociationExecutionDate; }
268 inline bool LastAssociationExecutionDateHasBeenSet() const { return m_lastAssociationExecutionDateHasBeenSet; }
269 template<typename LastAssociationExecutionDateT = Aws::Utils::DateTime>
270 void SetLastAssociationExecutionDate(LastAssociationExecutionDateT&& value) { m_lastAssociationExecutionDateHasBeenSet = true; m_lastAssociationExecutionDate = std::forward<LastAssociationExecutionDateT>(value); }
271 template<typename LastAssociationExecutionDateT = Aws::Utils::DateTime>
272 InstanceInformation& WithLastAssociationExecutionDate(LastAssociationExecutionDateT&& value) { SetLastAssociationExecutionDate(std::forward<LastAssociationExecutionDateT>(value)); return *this;}
274
276
279 inline const Aws::Utils::DateTime& GetLastSuccessfulAssociationExecutionDate() const { return m_lastSuccessfulAssociationExecutionDate; }
280 inline bool LastSuccessfulAssociationExecutionDateHasBeenSet() const { return m_lastSuccessfulAssociationExecutionDateHasBeenSet; }
281 template<typename LastSuccessfulAssociationExecutionDateT = Aws::Utils::DateTime>
282 void SetLastSuccessfulAssociationExecutionDate(LastSuccessfulAssociationExecutionDateT&& value) { m_lastSuccessfulAssociationExecutionDateHasBeenSet = true; m_lastSuccessfulAssociationExecutionDate = std::forward<LastSuccessfulAssociationExecutionDateT>(value); }
283 template<typename LastSuccessfulAssociationExecutionDateT = Aws::Utils::DateTime>
284 InstanceInformation& WithLastSuccessfulAssociationExecutionDate(LastSuccessfulAssociationExecutionDateT&& value) { SetLastSuccessfulAssociationExecutionDate(std::forward<LastSuccessfulAssociationExecutionDateT>(value)); return *this;}
286
288
291 inline const InstanceAggregatedAssociationOverview& GetAssociationOverview() const { return m_associationOverview; }
292 inline bool AssociationOverviewHasBeenSet() const { return m_associationOverviewHasBeenSet; }
293 template<typename AssociationOverviewT = InstanceAggregatedAssociationOverview>
294 void SetAssociationOverview(AssociationOverviewT&& value) { m_associationOverviewHasBeenSet = true; m_associationOverview = std::forward<AssociationOverviewT>(value); }
295 template<typename AssociationOverviewT = InstanceAggregatedAssociationOverview>
296 InstanceInformation& WithAssociationOverview(AssociationOverviewT&& value) { SetAssociationOverview(std::forward<AssociationOverviewT>(value)); return *this;}
298
300
304 inline const Aws::String& GetSourceId() const { return m_sourceId; }
305 inline bool SourceIdHasBeenSet() const { return m_sourceIdHasBeenSet; }
306 template<typename SourceIdT = Aws::String>
307 void SetSourceId(SourceIdT&& value) { m_sourceIdHasBeenSet = true; m_sourceId = std::forward<SourceIdT>(value); }
308 template<typename SourceIdT = Aws::String>
309 InstanceInformation& WithSourceId(SourceIdT&& value) { SetSourceId(std::forward<SourceIdT>(value)); return *this;}
311
313
317 inline SourceType GetSourceType() const { return m_sourceType; }
318 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
319 inline void SetSourceType(SourceType value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
320 inline InstanceInformation& WithSourceType(SourceType value) { SetSourceType(value); return *this;}
322 private:
323
324 Aws::String m_instanceId;
325 bool m_instanceIdHasBeenSet = false;
326
327 PingStatus m_pingStatus{PingStatus::NOT_SET};
328 bool m_pingStatusHasBeenSet = false;
329
330 Aws::Utils::DateTime m_lastPingDateTime{};
331 bool m_lastPingDateTimeHasBeenSet = false;
332
333 Aws::String m_agentVersion;
334 bool m_agentVersionHasBeenSet = false;
335
336 bool m_isLatestVersion{false};
337 bool m_isLatestVersionHasBeenSet = false;
338
339 PlatformType m_platformType{PlatformType::NOT_SET};
340 bool m_platformTypeHasBeenSet = false;
341
342 Aws::String m_platformName;
343 bool m_platformNameHasBeenSet = false;
344
345 Aws::String m_platformVersion;
346 bool m_platformVersionHasBeenSet = false;
347
348 Aws::String m_activationId;
349 bool m_activationIdHasBeenSet = false;
350
351 Aws::String m_iamRole;
352 bool m_iamRoleHasBeenSet = false;
353
354 Aws::Utils::DateTime m_registrationDate{};
355 bool m_registrationDateHasBeenSet = false;
356
357 ResourceType m_resourceType{ResourceType::NOT_SET};
358 bool m_resourceTypeHasBeenSet = false;
359
360 Aws::String m_name;
361 bool m_nameHasBeenSet = false;
362
363 Aws::String m_iPAddress;
364 bool m_iPAddressHasBeenSet = false;
365
366 Aws::String m_computerName;
367 bool m_computerNameHasBeenSet = false;
368
369 Aws::String m_associationStatus;
370 bool m_associationStatusHasBeenSet = false;
371
372 Aws::Utils::DateTime m_lastAssociationExecutionDate{};
373 bool m_lastAssociationExecutionDateHasBeenSet = false;
374
375 Aws::Utils::DateTime m_lastSuccessfulAssociationExecutionDate{};
376 bool m_lastSuccessfulAssociationExecutionDateHasBeenSet = false;
377
378 InstanceAggregatedAssociationOverview m_associationOverview;
379 bool m_associationOverviewHasBeenSet = false;
380
381 Aws::String m_sourceId;
382 bool m_sourceIdHasBeenSet = false;
383
384 SourceType m_sourceType{SourceType::NOT_SET};
385 bool m_sourceTypeHasBeenSet = false;
386 };
387
388} // namespace Model
389} // namespace SSM
390} // namespace Aws
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
const InstanceAggregatedAssociationOverview & GetAssociationOverview() const
const Aws::String & GetIPAddress() const
AWS_SSM_API InstanceInformation(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastPingDateTime() const
const Aws::String & GetInstanceId() const
InstanceInformation & WithIPAddress(IPAddressT &&value)
void SetPlatformVersion(PlatformVersionT &&value)
InstanceInformation & WithIamRole(IamRoleT &&value)
void SetLastSuccessfulAssociationExecutionDate(LastSuccessfulAssociationExecutionDateT &&value)
InstanceInformation & WithLastSuccessfulAssociationExecutionDate(LastSuccessfulAssociationExecutionDateT &&value)
const Aws::String & GetPlatformName() const
void SetActivationId(ActivationIdT &&value)
const Aws::Utils::DateTime & GetLastAssociationExecutionDate() const
const Aws::String & GetIamRole() const
InstanceInformation & WithPlatformVersion(PlatformVersionT &&value)
const Aws::String & GetComputerName() const
InstanceInformation & WithSourceId(SourceIdT &&value)
void SetInstanceId(InstanceIdT &&value)
InstanceInformation & WithResourceType(ResourceType value)
void SetComputerName(ComputerNameT &&value)
void SetRegistrationDate(RegistrationDateT &&value)
const Aws::String & GetSourceId() const
InstanceInformation & WithActivationId(ActivationIdT &&value)
const Aws::String & GetActivationId() const
const Aws::String & GetPlatformVersion() const
void SetAssociationStatus(AssociationStatusT &&value)
InstanceInformation & WithAssociationStatus(AssociationStatusT &&value)
void SetPlatformName(PlatformNameT &&value)
InstanceInformation & WithLastAssociationExecutionDate(LastAssociationExecutionDateT &&value)
const Aws::String & GetAssociationStatus() const
InstanceInformation & WithPingStatus(PingStatus value)
void SetAgentVersion(AgentVersionT &&value)
void SetAssociationOverview(AssociationOverviewT &&value)
InstanceInformation & WithPlatformType(PlatformType value)
InstanceInformation & WithRegistrationDate(RegistrationDateT &&value)
InstanceInformation & WithInstanceId(InstanceIdT &&value)
const Aws::Utils::DateTime & GetRegistrationDate() const
InstanceInformation & WithAgentVersion(AgentVersionT &&value)
InstanceInformation & WithName(NameT &&value)
InstanceInformation & WithPlatformName(PlatformNameT &&value)
InstanceInformation & WithSourceType(SourceType value)
void SetLastAssociationExecutionDate(LastAssociationExecutionDateT &&value)
const Aws::Utils::DateTime & GetLastSuccessfulAssociationExecutionDate() const
const Aws::String & GetAgentVersion() const
AWS_SSM_API InstanceInformation()=default
InstanceInformation & WithIsLatestVersion(bool value)
void SetLastPingDateTime(LastPingDateTimeT &&value)
InstanceInformation & WithComputerName(ComputerNameT &&value)
InstanceInformation & WithLastPingDateTime(LastPingDateTimeT &&value)
InstanceInformation & WithAssociationOverview(AssociationOverviewT &&value)
AWS_SSM_API InstanceInformation & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue