AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
InstanceProperty.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/ssm/model/PingStatus.h>
11#include <aws/ssm/model/PlatformType.h>
12#include <aws/ssm/model/InstanceAggregatedAssociationOverview.h>
13#include <aws/ssm/model/SourceType.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace SSM
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_SSM_API InstanceProperty() = default;
44
45
47
51 inline const Aws::String& GetName() const { return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 template<typename NameT = Aws::String>
54 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
55 template<typename NameT = Aws::String>
56 InstanceProperty& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
58
60
63 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
64 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
65 template<typename InstanceIdT = Aws::String>
66 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
67 template<typename InstanceIdT = Aws::String>
68 InstanceProperty& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
70
72
75 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
76 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
77 template<typename InstanceTypeT = Aws::String>
78 void SetInstanceType(InstanceTypeT&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::forward<InstanceTypeT>(value); }
79 template<typename InstanceTypeT = Aws::String>
80 InstanceProperty& WithInstanceType(InstanceTypeT&& value) { SetInstanceType(std::forward<InstanceTypeT>(value)); return *this;}
82
84
88 inline const Aws::String& GetInstanceRole() const { return m_instanceRole; }
89 inline bool InstanceRoleHasBeenSet() const { return m_instanceRoleHasBeenSet; }
90 template<typename InstanceRoleT = Aws::String>
91 void SetInstanceRole(InstanceRoleT&& value) { m_instanceRoleHasBeenSet = true; m_instanceRole = std::forward<InstanceRoleT>(value); }
92 template<typename InstanceRoleT = Aws::String>
93 InstanceProperty& WithInstanceRole(InstanceRoleT&& value) { SetInstanceRole(std::forward<InstanceRoleT>(value)); return *this;}
95
97
101 inline const Aws::String& GetKeyName() const { return m_keyName; }
102 inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; }
103 template<typename KeyNameT = Aws::String>
104 void SetKeyName(KeyNameT&& value) { m_keyNameHasBeenSet = true; m_keyName = std::forward<KeyNameT>(value); }
105 template<typename KeyNameT = Aws::String>
106 InstanceProperty& WithKeyName(KeyNameT&& value) { SetKeyName(std::forward<KeyNameT>(value)); return *this;}
108
110
113 inline const Aws::String& GetInstanceState() const { return m_instanceState; }
114 inline bool InstanceStateHasBeenSet() const { return m_instanceStateHasBeenSet; }
115 template<typename InstanceStateT = Aws::String>
116 void SetInstanceState(InstanceStateT&& value) { m_instanceStateHasBeenSet = true; m_instanceState = std::forward<InstanceStateT>(value); }
117 template<typename InstanceStateT = Aws::String>
118 InstanceProperty& WithInstanceState(InstanceStateT&& value) { SetInstanceState(std::forward<InstanceStateT>(value)); return *this;}
120
122
125 inline const Aws::String& GetArchitecture() const { return m_architecture; }
126 inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; }
127 template<typename ArchitectureT = Aws::String>
128 void SetArchitecture(ArchitectureT&& value) { m_architectureHasBeenSet = true; m_architecture = std::forward<ArchitectureT>(value); }
129 template<typename ArchitectureT = Aws::String>
130 InstanceProperty& WithArchitecture(ArchitectureT&& value) { SetArchitecture(std::forward<ArchitectureT>(value)); return *this;}
132
134
138 inline const Aws::String& GetIPAddress() const { return m_iPAddress; }
139 inline bool IPAddressHasBeenSet() const { return m_iPAddressHasBeenSet; }
140 template<typename IPAddressT = Aws::String>
141 void SetIPAddress(IPAddressT&& value) { m_iPAddressHasBeenSet = true; m_iPAddress = std::forward<IPAddressT>(value); }
142 template<typename IPAddressT = Aws::String>
143 InstanceProperty& WithIPAddress(IPAddressT&& value) { SetIPAddress(std::forward<IPAddressT>(value)); return *this;}
145
147
150 inline const Aws::Utils::DateTime& GetLaunchTime() const { return m_launchTime; }
151 inline bool LaunchTimeHasBeenSet() const { return m_launchTimeHasBeenSet; }
152 template<typename LaunchTimeT = Aws::Utils::DateTime>
153 void SetLaunchTime(LaunchTimeT&& value) { m_launchTimeHasBeenSet = true; m_launchTime = std::forward<LaunchTimeT>(value); }
154 template<typename LaunchTimeT = Aws::Utils::DateTime>
155 InstanceProperty& WithLaunchTime(LaunchTimeT&& value) { SetLaunchTime(std::forward<LaunchTimeT>(value)); return *this;}
157
159
162 inline PingStatus GetPingStatus() const { return m_pingStatus; }
163 inline bool PingStatusHasBeenSet() const { return m_pingStatusHasBeenSet; }
164 inline void SetPingStatus(PingStatus value) { m_pingStatusHasBeenSet = true; m_pingStatus = value; }
165 inline InstanceProperty& WithPingStatus(PingStatus value) { SetPingStatus(value); return *this;}
167
169
173 inline const Aws::Utils::DateTime& GetLastPingDateTime() const { return m_lastPingDateTime; }
174 inline bool LastPingDateTimeHasBeenSet() const { return m_lastPingDateTimeHasBeenSet; }
175 template<typename LastPingDateTimeT = Aws::Utils::DateTime>
176 void SetLastPingDateTime(LastPingDateTimeT&& value) { m_lastPingDateTimeHasBeenSet = true; m_lastPingDateTime = std::forward<LastPingDateTimeT>(value); }
177 template<typename LastPingDateTimeT = Aws::Utils::DateTime>
178 InstanceProperty& WithLastPingDateTime(LastPingDateTimeT&& value) { SetLastPingDateTime(std::forward<LastPingDateTimeT>(value)); return *this;}
180
182
185 inline const Aws::String& GetAgentVersion() const { return m_agentVersion; }
186 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
187 template<typename AgentVersionT = Aws::String>
188 void SetAgentVersion(AgentVersionT&& value) { m_agentVersionHasBeenSet = true; m_agentVersion = std::forward<AgentVersionT>(value); }
189 template<typename AgentVersionT = Aws::String>
190 InstanceProperty& WithAgentVersion(AgentVersionT&& value) { SetAgentVersion(std::forward<AgentVersionT>(value)); return *this;}
192
194
198 inline PlatformType GetPlatformType() const { return m_platformType; }
199 inline bool PlatformTypeHasBeenSet() const { return m_platformTypeHasBeenSet; }
200 inline void SetPlatformType(PlatformType value) { m_platformTypeHasBeenSet = true; m_platformType = value; }
201 inline InstanceProperty& WithPlatformType(PlatformType value) { SetPlatformType(value); return *this;}
203
205
208 inline const Aws::String& GetPlatformName() const { return m_platformName; }
209 inline bool PlatformNameHasBeenSet() const { return m_platformNameHasBeenSet; }
210 template<typename PlatformNameT = Aws::String>
211 void SetPlatformName(PlatformNameT&& value) { m_platformNameHasBeenSet = true; m_platformName = std::forward<PlatformNameT>(value); }
212 template<typename PlatformNameT = Aws::String>
213 InstanceProperty& WithPlatformName(PlatformNameT&& value) { SetPlatformName(std::forward<PlatformNameT>(value)); return *this;}
215
217
220 inline const Aws::String& GetPlatformVersion() const { return m_platformVersion; }
221 inline bool PlatformVersionHasBeenSet() const { return m_platformVersionHasBeenSet; }
222 template<typename PlatformVersionT = Aws::String>
223 void SetPlatformVersion(PlatformVersionT&& value) { m_platformVersionHasBeenSet = true; m_platformVersion = std::forward<PlatformVersionT>(value); }
224 template<typename PlatformVersionT = Aws::String>
225 InstanceProperty& WithPlatformVersion(PlatformVersionT&& value) { SetPlatformVersion(std::forward<PlatformVersionT>(value)); return *this;}
227
229
233 inline const Aws::String& GetActivationId() const { return m_activationId; }
234 inline bool ActivationIdHasBeenSet() const { return m_activationIdHasBeenSet; }
235 template<typename ActivationIdT = Aws::String>
236 void SetActivationId(ActivationIdT&& value) { m_activationIdHasBeenSet = true; m_activationId = std::forward<ActivationIdT>(value); }
237 template<typename ActivationIdT = Aws::String>
238 InstanceProperty& WithActivationId(ActivationIdT&& value) { SetActivationId(std::forward<ActivationIdT>(value)); return *this;}
240
242
246 inline const Aws::String& GetIamRole() const { return m_iamRole; }
247 inline bool IamRoleHasBeenSet() const { return m_iamRoleHasBeenSet; }
248 template<typename IamRoleT = Aws::String>
249 void SetIamRole(IamRoleT&& value) { m_iamRoleHasBeenSet = true; m_iamRole = std::forward<IamRoleT>(value); }
250 template<typename IamRoleT = Aws::String>
251 InstanceProperty& WithIamRole(IamRoleT&& value) { SetIamRole(std::forward<IamRoleT>(value)); return *this;}
253
255
258 inline const Aws::Utils::DateTime& GetRegistrationDate() const { return m_registrationDate; }
259 inline bool RegistrationDateHasBeenSet() const { return m_registrationDateHasBeenSet; }
260 template<typename RegistrationDateT = Aws::Utils::DateTime>
261 void SetRegistrationDate(RegistrationDateT&& value) { m_registrationDateHasBeenSet = true; m_registrationDate = std::forward<RegistrationDateT>(value); }
262 template<typename RegistrationDateT = Aws::Utils::DateTime>
263 InstanceProperty& WithRegistrationDate(RegistrationDateT&& value) { SetRegistrationDate(std::forward<RegistrationDateT>(value)); return *this;}
265
267
270 inline const Aws::String& GetResourceType() const { return m_resourceType; }
271 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
272 template<typename ResourceTypeT = Aws::String>
273 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
274 template<typename ResourceTypeT = Aws::String>
275 InstanceProperty& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
277
279
282 inline const Aws::String& GetComputerName() const { return m_computerName; }
283 inline bool ComputerNameHasBeenSet() const { return m_computerNameHasBeenSet; }
284 template<typename ComputerNameT = Aws::String>
285 void SetComputerName(ComputerNameT&& value) { m_computerNameHasBeenSet = true; m_computerName = std::forward<ComputerNameT>(value); }
286 template<typename ComputerNameT = Aws::String>
287 InstanceProperty& WithComputerName(ComputerNameT&& value) { SetComputerName(std::forward<ComputerNameT>(value)); return *this;}
289
291
294 inline const Aws::String& GetAssociationStatus() const { return m_associationStatus; }
295 inline bool AssociationStatusHasBeenSet() const { return m_associationStatusHasBeenSet; }
296 template<typename AssociationStatusT = Aws::String>
297 void SetAssociationStatus(AssociationStatusT&& value) { m_associationStatusHasBeenSet = true; m_associationStatus = std::forward<AssociationStatusT>(value); }
298 template<typename AssociationStatusT = Aws::String>
299 InstanceProperty& WithAssociationStatus(AssociationStatusT&& value) { SetAssociationStatus(std::forward<AssociationStatusT>(value)); return *this;}
301
303
306 inline const Aws::Utils::DateTime& GetLastAssociationExecutionDate() const { return m_lastAssociationExecutionDate; }
307 inline bool LastAssociationExecutionDateHasBeenSet() const { return m_lastAssociationExecutionDateHasBeenSet; }
308 template<typename LastAssociationExecutionDateT = Aws::Utils::DateTime>
309 void SetLastAssociationExecutionDate(LastAssociationExecutionDateT&& value) { m_lastAssociationExecutionDateHasBeenSet = true; m_lastAssociationExecutionDate = std::forward<LastAssociationExecutionDateT>(value); }
310 template<typename LastAssociationExecutionDateT = Aws::Utils::DateTime>
311 InstanceProperty& WithLastAssociationExecutionDate(LastAssociationExecutionDateT&& value) { SetLastAssociationExecutionDate(std::forward<LastAssociationExecutionDateT>(value)); return *this;}
313
315
318 inline const Aws::Utils::DateTime& GetLastSuccessfulAssociationExecutionDate() const { return m_lastSuccessfulAssociationExecutionDate; }
319 inline bool LastSuccessfulAssociationExecutionDateHasBeenSet() const { return m_lastSuccessfulAssociationExecutionDateHasBeenSet; }
320 template<typename LastSuccessfulAssociationExecutionDateT = Aws::Utils::DateTime>
321 void SetLastSuccessfulAssociationExecutionDate(LastSuccessfulAssociationExecutionDateT&& value) { m_lastSuccessfulAssociationExecutionDateHasBeenSet = true; m_lastSuccessfulAssociationExecutionDate = std::forward<LastSuccessfulAssociationExecutionDateT>(value); }
322 template<typename LastSuccessfulAssociationExecutionDateT = Aws::Utils::DateTime>
323 InstanceProperty& WithLastSuccessfulAssociationExecutionDate(LastSuccessfulAssociationExecutionDateT&& value) { SetLastSuccessfulAssociationExecutionDate(std::forward<LastSuccessfulAssociationExecutionDateT>(value)); return *this;}
325
327
328 inline const InstanceAggregatedAssociationOverview& GetAssociationOverview() const { return m_associationOverview; }
329 inline bool AssociationOverviewHasBeenSet() const { return m_associationOverviewHasBeenSet; }
330 template<typename AssociationOverviewT = InstanceAggregatedAssociationOverview>
331 void SetAssociationOverview(AssociationOverviewT&& value) { m_associationOverviewHasBeenSet = true; m_associationOverview = std::forward<AssociationOverviewT>(value); }
332 template<typename AssociationOverviewT = InstanceAggregatedAssociationOverview>
333 InstanceProperty& WithAssociationOverview(AssociationOverviewT&& value) { SetAssociationOverview(std::forward<AssociationOverviewT>(value)); return *this;}
335
337
340 inline const Aws::String& GetSourceId() const { return m_sourceId; }
341 inline bool SourceIdHasBeenSet() const { return m_sourceIdHasBeenSet; }
342 template<typename SourceIdT = Aws::String>
343 void SetSourceId(SourceIdT&& value) { m_sourceIdHasBeenSet = true; m_sourceId = std::forward<SourceIdT>(value); }
344 template<typename SourceIdT = Aws::String>
345 InstanceProperty& WithSourceId(SourceIdT&& value) { SetSourceId(std::forward<SourceIdT>(value)); return *this;}
347
349
352 inline SourceType GetSourceType() const { return m_sourceType; }
353 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
354 inline void SetSourceType(SourceType value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
355 inline InstanceProperty& WithSourceType(SourceType value) { SetSourceType(value); return *this;}
357 private:
358
359 Aws::String m_name;
360 bool m_nameHasBeenSet = false;
361
362 Aws::String m_instanceId;
363 bool m_instanceIdHasBeenSet = false;
364
365 Aws::String m_instanceType;
366 bool m_instanceTypeHasBeenSet = false;
367
368 Aws::String m_instanceRole;
369 bool m_instanceRoleHasBeenSet = false;
370
371 Aws::String m_keyName;
372 bool m_keyNameHasBeenSet = false;
373
374 Aws::String m_instanceState;
375 bool m_instanceStateHasBeenSet = false;
376
377 Aws::String m_architecture;
378 bool m_architectureHasBeenSet = false;
379
380 Aws::String m_iPAddress;
381 bool m_iPAddressHasBeenSet = false;
382
383 Aws::Utils::DateTime m_launchTime{};
384 bool m_launchTimeHasBeenSet = false;
385
386 PingStatus m_pingStatus{PingStatus::NOT_SET};
387 bool m_pingStatusHasBeenSet = false;
388
389 Aws::Utils::DateTime m_lastPingDateTime{};
390 bool m_lastPingDateTimeHasBeenSet = false;
391
392 Aws::String m_agentVersion;
393 bool m_agentVersionHasBeenSet = false;
394
395 PlatformType m_platformType{PlatformType::NOT_SET};
396 bool m_platformTypeHasBeenSet = false;
397
398 Aws::String m_platformName;
399 bool m_platformNameHasBeenSet = false;
400
401 Aws::String m_platformVersion;
402 bool m_platformVersionHasBeenSet = false;
403
404 Aws::String m_activationId;
405 bool m_activationIdHasBeenSet = false;
406
407 Aws::String m_iamRole;
408 bool m_iamRoleHasBeenSet = false;
409
410 Aws::Utils::DateTime m_registrationDate{};
411 bool m_registrationDateHasBeenSet = false;
412
413 Aws::String m_resourceType;
414 bool m_resourceTypeHasBeenSet = false;
415
416 Aws::String m_computerName;
417 bool m_computerNameHasBeenSet = false;
418
419 Aws::String m_associationStatus;
420 bool m_associationStatusHasBeenSet = false;
421
422 Aws::Utils::DateTime m_lastAssociationExecutionDate{};
423 bool m_lastAssociationExecutionDateHasBeenSet = false;
424
425 Aws::Utils::DateTime m_lastSuccessfulAssociationExecutionDate{};
426 bool m_lastSuccessfulAssociationExecutionDateHasBeenSet = false;
427
428 InstanceAggregatedAssociationOverview m_associationOverview;
429 bool m_associationOverviewHasBeenSet = false;
430
431 Aws::String m_sourceId;
432 bool m_sourceIdHasBeenSet = false;
433
434 SourceType m_sourceType{SourceType::NOT_SET};
435 bool m_sourceTypeHasBeenSet = false;
436 };
437
438} // namespace Model
439} // namespace SSM
440} // namespace Aws
InstanceProperty & WithAgentVersion(AgentVersionT &&value)
void SetSourceId(SourceIdT &&value)
const Aws::String & GetComputerName() const
void SetAgentVersion(AgentVersionT &&value)
InstanceProperty & WithSourceId(SourceIdT &&value)
const Aws::Utils::DateTime & GetLastPingDateTime() const
InstanceProperty & WithArchitecture(ArchitectureT &&value)
const Aws::Utils::DateTime & GetLastSuccessfulAssociationExecutionDate() const
void SetLastPingDateTime(LastPingDateTimeT &&value)
const Aws::Utils::DateTime & GetLastAssociationExecutionDate() const
void SetLaunchTime(LaunchTimeT &&value)
InstanceProperty & WithLastAssociationExecutionDate(LastAssociationExecutionDateT &&value)
const Aws::Utils::DateTime & GetLaunchTime() const
InstanceProperty & WithInstanceState(InstanceStateT &&value)
void SetRegistrationDate(RegistrationDateT &&value)
void SetPingStatus(PingStatus value)
const InstanceAggregatedAssociationOverview & GetAssociationOverview() const
void SetInstanceId(InstanceIdT &&value)
void SetSourceType(SourceType value)
const Aws::String & GetInstanceId() const
const Aws::String & GetIPAddress() const
InstanceProperty & WithLastPingDateTime(LastPingDateTimeT &&value)
void SetComputerName(ComputerNameT &&value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLastAssociationExecutionDate(LastAssociationExecutionDateT &&value)
void SetLastSuccessfulAssociationExecutionDate(LastSuccessfulAssociationExecutionDateT &&value)
const Aws::String & GetInstanceType() const
AWS_SSM_API InstanceProperty(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPlatformVersion() const
void SetInstanceType(InstanceTypeT &&value)
const Aws::String & GetSourceId() const
InstanceProperty & WithName(NameT &&value)
const Aws::String & GetPlatformName() const
void SetArchitecture(ArchitectureT &&value)
const Aws::String & GetResourceType() const
bool LastSuccessfulAssociationExecutionDateHasBeenSet() const
InstanceProperty & WithComputerName(ComputerNameT &&value)
InstanceProperty & WithIamRole(IamRoleT &&value)
InstanceProperty & WithInstanceType(InstanceTypeT &&value)
InstanceProperty & WithPlatformType(PlatformType value)
void SetActivationId(ActivationIdT &&value)
const Aws::String & GetInstanceRole() const
AWS_SSM_API InstanceProperty & operator=(Aws::Utils::Json::JsonView jsonValue)
InstanceProperty & WithAssociationOverview(AssociationOverviewT &&value)
const Aws::String & GetAgentVersion() const
InstanceProperty & WithActivationId(ActivationIdT &&value)
InstanceProperty & WithPlatformVersion(PlatformVersionT &&value)
void SetAssociationOverview(AssociationOverviewT &&value)
const Aws::String & GetAssociationStatus() const
InstanceProperty & WithPlatformName(PlatformNameT &&value)
void SetInstanceState(InstanceStateT &&value)
InstanceProperty & WithSourceType(SourceType value)
InstanceProperty & WithInstanceRole(InstanceRoleT &&value)
const Aws::String & GetKeyName() const
const Aws::String & GetActivationId() const
InstanceProperty & WithRegistrationDate(RegistrationDateT &&value)
void SetInstanceRole(InstanceRoleT &&value)
void SetAssociationStatus(AssociationStatusT &&value)
InstanceProperty & WithKeyName(KeyNameT &&value)
const Aws::String & GetArchitecture() const
InstanceProperty & WithLastSuccessfulAssociationExecutionDate(LastSuccessfulAssociationExecutionDateT &&value)
void SetIPAddress(IPAddressT &&value)
InstanceProperty & WithResourceType(ResourceTypeT &&value)
InstanceProperty & WithAssociationStatus(AssociationStatusT &&value)
void SetPlatformType(PlatformType value)
const Aws::String & GetInstanceState() const
InstanceProperty & WithPingStatus(PingStatus value)
InstanceProperty & WithIPAddress(IPAddressT &&value)
const Aws::Utils::DateTime & GetRegistrationDate() const
AWS_SSM_API InstanceProperty()=default
const Aws::String & GetName() const
InstanceProperty & WithInstanceId(InstanceIdT &&value)
void SetResourceType(ResourceTypeT &&value)
void SetPlatformName(PlatformNameT &&value)
const Aws::String & GetIamRole() const
void SetPlatformVersion(PlatformVersionT &&value)
InstanceProperty & WithLaunchTime(LaunchTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue