AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
InstanceInformation.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm/SSM_EXPORTS.h>
10#include <aws/ssm/model/InstanceAggregatedAssociationOverview.h>
11#include <aws/ssm/model/PingStatus.h>
12#include <aws/ssm/model/PlatformType.h>
13#include <aws/ssm/model/ResourceType.h>
14#include <aws/ssm/model/SourceType.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SSM {
26namespace Model {
27
35 public:
36 AWS_SSM_API InstanceInformation() = default;
40
42
45 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
46 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
47 template <typename InstanceIdT = Aws::String>
48 void SetInstanceId(InstanceIdT&& value) {
49 m_instanceIdHasBeenSet = true;
50 m_instanceId = std::forward<InstanceIdT>(value);
51 }
52 template <typename InstanceIdT = Aws::String>
53 InstanceInformation& WithInstanceId(InstanceIdT&& value) {
54 SetInstanceId(std::forward<InstanceIdT>(value));
55 return *this;
56 }
58
60
64 inline PingStatus GetPingStatus() const { return m_pingStatus; }
65 inline bool PingStatusHasBeenSet() const { return m_pingStatusHasBeenSet; }
66 inline void SetPingStatus(PingStatus value) {
67 m_pingStatusHasBeenSet = true;
68 m_pingStatus = value;
69 }
71 SetPingStatus(value);
72 return *this;
73 }
75
77
81 inline const Aws::Utils::DateTime& GetLastPingDateTime() const { return m_lastPingDateTime; }
82 inline bool LastPingDateTimeHasBeenSet() const { return m_lastPingDateTimeHasBeenSet; }
83 template <typename LastPingDateTimeT = Aws::Utils::DateTime>
84 void SetLastPingDateTime(LastPingDateTimeT&& value) {
85 m_lastPingDateTimeHasBeenSet = true;
86 m_lastPingDateTime = std::forward<LastPingDateTimeT>(value);
87 }
88 template <typename LastPingDateTimeT = Aws::Utils::DateTime>
89 InstanceInformation& WithLastPingDateTime(LastPingDateTimeT&& value) {
90 SetLastPingDateTime(std::forward<LastPingDateTimeT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetAgentVersion() const { return m_agentVersion; }
100 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
101 template <typename AgentVersionT = Aws::String>
102 void SetAgentVersion(AgentVersionT&& value) {
103 m_agentVersionHasBeenSet = true;
104 m_agentVersion = std::forward<AgentVersionT>(value);
105 }
106 template <typename AgentVersionT = Aws::String>
107 InstanceInformation& WithAgentVersion(AgentVersionT&& value) {
108 SetAgentVersion(std::forward<AgentVersionT>(value));
109 return *this;
110 }
112
114
120 inline bool GetIsLatestVersion() const { return m_isLatestVersion; }
121 inline bool IsLatestVersionHasBeenSet() const { return m_isLatestVersionHasBeenSet; }
122 inline void SetIsLatestVersion(bool value) {
123 m_isLatestVersionHasBeenSet = true;
124 m_isLatestVersion = value;
125 }
127 SetIsLatestVersion(value);
128 return *this;
129 }
131
133
136 inline PlatformType GetPlatformType() const { return m_platformType; }
137 inline bool PlatformTypeHasBeenSet() const { return m_platformTypeHasBeenSet; }
138 inline void SetPlatformType(PlatformType value) {
139 m_platformTypeHasBeenSet = true;
140 m_platformType = value;
141 }
143 SetPlatformType(value);
144 return *this;
145 }
147
149
152 inline const Aws::String& GetPlatformName() const { return m_platformName; }
153 inline bool PlatformNameHasBeenSet() const { return m_platformNameHasBeenSet; }
154 template <typename PlatformNameT = Aws::String>
155 void SetPlatformName(PlatformNameT&& value) {
156 m_platformNameHasBeenSet = true;
157 m_platformName = std::forward<PlatformNameT>(value);
158 }
159 template <typename PlatformNameT = Aws::String>
160 InstanceInformation& WithPlatformName(PlatformNameT&& value) {
161 SetPlatformName(std::forward<PlatformNameT>(value));
162 return *this;
163 }
165
167
170 inline const Aws::String& GetPlatformVersion() const { return m_platformVersion; }
171 inline bool PlatformVersionHasBeenSet() const { return m_platformVersionHasBeenSet; }
172 template <typename PlatformVersionT = Aws::String>
173 void SetPlatformVersion(PlatformVersionT&& value) {
174 m_platformVersionHasBeenSet = true;
175 m_platformVersion = std::forward<PlatformVersionT>(value);
176 }
177 template <typename PlatformVersionT = Aws::String>
178 InstanceInformation& WithPlatformVersion(PlatformVersionT&& value) {
179 SetPlatformVersion(std::forward<PlatformVersionT>(value));
180 return *this;
181 }
183
185
189 inline const Aws::String& GetActivationId() const { return m_activationId; }
190 inline bool ActivationIdHasBeenSet() const { return m_activationIdHasBeenSet; }
191 template <typename ActivationIdT = Aws::String>
192 void SetActivationId(ActivationIdT&& value) {
193 m_activationIdHasBeenSet = true;
194 m_activationId = std::forward<ActivationIdT>(value);
195 }
196 template <typename ActivationIdT = Aws::String>
197 InstanceInformation& WithActivationId(ActivationIdT&& value) {
198 SetActivationId(std::forward<ActivationIdT>(value));
199 return *this;
200 }
202
204
216 inline const Aws::String& GetIamRole() const { return m_iamRole; }
217 inline bool IamRoleHasBeenSet() const { return m_iamRoleHasBeenSet; }
218 template <typename IamRoleT = Aws::String>
219 void SetIamRole(IamRoleT&& value) {
220 m_iamRoleHasBeenSet = true;
221 m_iamRole = std::forward<IamRoleT>(value);
222 }
223 template <typename IamRoleT = Aws::String>
224 InstanceInformation& WithIamRole(IamRoleT&& value) {
225 SetIamRole(std::forward<IamRoleT>(value));
226 return *this;
227 }
229
231
235 inline const Aws::Utils::DateTime& GetRegistrationDate() const { return m_registrationDate; }
236 inline bool RegistrationDateHasBeenSet() const { return m_registrationDateHasBeenSet; }
237 template <typename RegistrationDateT = Aws::Utils::DateTime>
238 void SetRegistrationDate(RegistrationDateT&& value) {
239 m_registrationDateHasBeenSet = true;
240 m_registrationDate = std::forward<RegistrationDateT>(value);
241 }
242 template <typename RegistrationDateT = Aws::Utils::DateTime>
243 InstanceInformation& WithRegistrationDate(RegistrationDateT&& value) {
244 SetRegistrationDate(std::forward<RegistrationDateT>(value));
245 return *this;
246 }
248
250
254 inline ResourceType GetResourceType() const { return m_resourceType; }
255 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
256 inline void SetResourceType(ResourceType value) {
257 m_resourceTypeHasBeenSet = true;
258 m_resourceType = value;
259 }
261 SetResourceType(value);
262 return *this;
263 }
265
267
285 inline const Aws::String& GetName() const { return m_name; }
286 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
287 template <typename NameT = Aws::String>
288 void SetName(NameT&& value) {
289 m_nameHasBeenSet = true;
290 m_name = std::forward<NameT>(value);
291 }
292 template <typename NameT = Aws::String>
294 SetName(std::forward<NameT>(value));
295 return *this;
296 }
298
300
303 inline const Aws::String& GetIPAddress() const { return m_iPAddress; }
304 inline bool IPAddressHasBeenSet() const { return m_iPAddressHasBeenSet; }
305 template <typename IPAddressT = Aws::String>
306 void SetIPAddress(IPAddressT&& value) {
307 m_iPAddressHasBeenSet = true;
308 m_iPAddress = std::forward<IPAddressT>(value);
309 }
310 template <typename IPAddressT = Aws::String>
311 InstanceInformation& WithIPAddress(IPAddressT&& value) {
312 SetIPAddress(std::forward<IPAddressT>(value));
313 return *this;
314 }
316
318
321 inline const Aws::String& GetComputerName() const { return m_computerName; }
322 inline bool ComputerNameHasBeenSet() const { return m_computerNameHasBeenSet; }
323 template <typename ComputerNameT = Aws::String>
324 void SetComputerName(ComputerNameT&& value) {
325 m_computerNameHasBeenSet = true;
326 m_computerName = std::forward<ComputerNameT>(value);
327 }
328 template <typename ComputerNameT = Aws::String>
329 InstanceInformation& WithComputerName(ComputerNameT&& value) {
330 SetComputerName(std::forward<ComputerNameT>(value));
331 return *this;
332 }
334
336
339 inline const Aws::String& GetAssociationStatus() const { return m_associationStatus; }
340 inline bool AssociationStatusHasBeenSet() const { return m_associationStatusHasBeenSet; }
341 template <typename AssociationStatusT = Aws::String>
342 void SetAssociationStatus(AssociationStatusT&& value) {
343 m_associationStatusHasBeenSet = true;
344 m_associationStatus = std::forward<AssociationStatusT>(value);
345 }
346 template <typename AssociationStatusT = Aws::String>
347 InstanceInformation& WithAssociationStatus(AssociationStatusT&& value) {
348 SetAssociationStatus(std::forward<AssociationStatusT>(value));
349 return *this;
350 }
352
354
357 inline const Aws::Utils::DateTime& GetLastAssociationExecutionDate() const { return m_lastAssociationExecutionDate; }
358 inline bool LastAssociationExecutionDateHasBeenSet() const { return m_lastAssociationExecutionDateHasBeenSet; }
359 template <typename LastAssociationExecutionDateT = Aws::Utils::DateTime>
360 void SetLastAssociationExecutionDate(LastAssociationExecutionDateT&& value) {
361 m_lastAssociationExecutionDateHasBeenSet = true;
362 m_lastAssociationExecutionDate = std::forward<LastAssociationExecutionDateT>(value);
363 }
364 template <typename LastAssociationExecutionDateT = Aws::Utils::DateTime>
365 InstanceInformation& WithLastAssociationExecutionDate(LastAssociationExecutionDateT&& value) {
366 SetLastAssociationExecutionDate(std::forward<LastAssociationExecutionDateT>(value));
367 return *this;
368 }
370
372
375 inline const Aws::Utils::DateTime& GetLastSuccessfulAssociationExecutionDate() const { return m_lastSuccessfulAssociationExecutionDate; }
376 inline bool LastSuccessfulAssociationExecutionDateHasBeenSet() const { return m_lastSuccessfulAssociationExecutionDateHasBeenSet; }
377 template <typename LastSuccessfulAssociationExecutionDateT = Aws::Utils::DateTime>
378 void SetLastSuccessfulAssociationExecutionDate(LastSuccessfulAssociationExecutionDateT&& value) {
379 m_lastSuccessfulAssociationExecutionDateHasBeenSet = true;
380 m_lastSuccessfulAssociationExecutionDate = std::forward<LastSuccessfulAssociationExecutionDateT>(value);
381 }
382 template <typename LastSuccessfulAssociationExecutionDateT = Aws::Utils::DateTime>
383 InstanceInformation& WithLastSuccessfulAssociationExecutionDate(LastSuccessfulAssociationExecutionDateT&& value) {
384 SetLastSuccessfulAssociationExecutionDate(std::forward<LastSuccessfulAssociationExecutionDateT>(value));
385 return *this;
386 }
388
390
393 inline const InstanceAggregatedAssociationOverview& GetAssociationOverview() const { return m_associationOverview; }
394 inline bool AssociationOverviewHasBeenSet() const { return m_associationOverviewHasBeenSet; }
395 template <typename AssociationOverviewT = InstanceAggregatedAssociationOverview>
396 void SetAssociationOverview(AssociationOverviewT&& value) {
397 m_associationOverviewHasBeenSet = true;
398 m_associationOverview = std::forward<AssociationOverviewT>(value);
399 }
400 template <typename AssociationOverviewT = InstanceAggregatedAssociationOverview>
401 InstanceInformation& WithAssociationOverview(AssociationOverviewT&& value) {
402 SetAssociationOverview(std::forward<AssociationOverviewT>(value));
403 return *this;
404 }
406
408
412 inline const Aws::String& GetSourceId() const { return m_sourceId; }
413 inline bool SourceIdHasBeenSet() const { return m_sourceIdHasBeenSet; }
414 template <typename SourceIdT = Aws::String>
415 void SetSourceId(SourceIdT&& value) {
416 m_sourceIdHasBeenSet = true;
417 m_sourceId = std::forward<SourceIdT>(value);
418 }
419 template <typename SourceIdT = Aws::String>
420 InstanceInformation& WithSourceId(SourceIdT&& value) {
421 SetSourceId(std::forward<SourceIdT>(value));
422 return *this;
423 }
425
427
431 inline SourceType GetSourceType() const { return m_sourceType; }
432 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
433 inline void SetSourceType(SourceType value) {
434 m_sourceTypeHasBeenSet = true;
435 m_sourceType = value;
436 }
438 SetSourceType(value);
439 return *this;
440 }
442 private:
443 Aws::String m_instanceId;
444
445 PingStatus m_pingStatus{PingStatus::NOT_SET};
446
447 Aws::Utils::DateTime m_lastPingDateTime{};
448
449 Aws::String m_agentVersion;
450
451 bool m_isLatestVersion{false};
452
453 PlatformType m_platformType{PlatformType::NOT_SET};
454
455 Aws::String m_platformName;
456
457 Aws::String m_platformVersion;
458
459 Aws::String m_activationId;
460
461 Aws::String m_iamRole;
462
463 Aws::Utils::DateTime m_registrationDate{};
464
465 ResourceType m_resourceType{ResourceType::NOT_SET};
466
467 Aws::String m_name;
468
469 Aws::String m_iPAddress;
470
471 Aws::String m_computerName;
472
473 Aws::String m_associationStatus;
474
475 Aws::Utils::DateTime m_lastAssociationExecutionDate{};
476
477 Aws::Utils::DateTime m_lastSuccessfulAssociationExecutionDate{};
478
479 InstanceAggregatedAssociationOverview m_associationOverview;
480
481 Aws::String m_sourceId;
482
483 SourceType m_sourceType{SourceType::NOT_SET};
484 bool m_instanceIdHasBeenSet = false;
485 bool m_pingStatusHasBeenSet = false;
486 bool m_lastPingDateTimeHasBeenSet = false;
487 bool m_agentVersionHasBeenSet = false;
488 bool m_isLatestVersionHasBeenSet = false;
489 bool m_platformTypeHasBeenSet = false;
490 bool m_platformNameHasBeenSet = false;
491 bool m_platformVersionHasBeenSet = false;
492 bool m_activationIdHasBeenSet = false;
493 bool m_iamRoleHasBeenSet = false;
494 bool m_registrationDateHasBeenSet = false;
495 bool m_resourceTypeHasBeenSet = false;
496 bool m_nameHasBeenSet = false;
497 bool m_iPAddressHasBeenSet = false;
498 bool m_computerNameHasBeenSet = false;
499 bool m_associationStatusHasBeenSet = false;
500 bool m_lastAssociationExecutionDateHasBeenSet = false;
501 bool m_lastSuccessfulAssociationExecutionDateHasBeenSet = false;
502 bool m_associationOverviewHasBeenSet = false;
503 bool m_sourceIdHasBeenSet = false;
504 bool m_sourceTypeHasBeenSet = false;
505};
506
507} // namespace Model
508} // namespace SSM
509} // 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