AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
InstanceInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ssm/SSM_EXPORTS.h>
9#include <aws/ssm/model/ManagedStatus.h>
10#include <aws/ssm/model/PlatformType.h>
11#include <aws/ssm/model/ResourceType.h>
12#include <aws/ssm/model/SourceType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SSM {
24namespace Model {
25
32 public:
33 AWS_SSM_API InstanceInfo() = default;
37
39
42 inline const Aws::String& GetAgentType() const { return m_agentType; }
43 inline bool AgentTypeHasBeenSet() const { return m_agentTypeHasBeenSet; }
44 template <typename AgentTypeT = Aws::String>
45 void SetAgentType(AgentTypeT&& value) {
46 m_agentTypeHasBeenSet = true;
47 m_agentType = std::forward<AgentTypeT>(value);
48 }
49 template <typename AgentTypeT = Aws::String>
50 InstanceInfo& WithAgentType(AgentTypeT&& value) {
51 SetAgentType(std::forward<AgentTypeT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetAgentVersion() const { return m_agentVersion; }
61 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
62 template <typename AgentVersionT = Aws::String>
63 void SetAgentVersion(AgentVersionT&& value) {
64 m_agentVersionHasBeenSet = true;
65 m_agentVersion = std::forward<AgentVersionT>(value);
66 }
67 template <typename AgentVersionT = Aws::String>
68 InstanceInfo& WithAgentVersion(AgentVersionT&& value) {
69 SetAgentVersion(std::forward<AgentVersionT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetComputerName() const { return m_computerName; }
79 inline bool ComputerNameHasBeenSet() const { return m_computerNameHasBeenSet; }
80 template <typename ComputerNameT = Aws::String>
81 void SetComputerName(ComputerNameT&& value) {
82 m_computerNameHasBeenSet = true;
83 m_computerName = std::forward<ComputerNameT>(value);
84 }
85 template <typename ComputerNameT = Aws::String>
86 InstanceInfo& WithComputerName(ComputerNameT&& value) {
87 SetComputerName(std::forward<ComputerNameT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetInstanceStatus() const { return m_instanceStatus; }
97 inline bool InstanceStatusHasBeenSet() const { return m_instanceStatusHasBeenSet; }
98 template <typename InstanceStatusT = Aws::String>
99 void SetInstanceStatus(InstanceStatusT&& value) {
100 m_instanceStatusHasBeenSet = true;
101 m_instanceStatus = std::forward<InstanceStatusT>(value);
102 }
103 template <typename InstanceStatusT = Aws::String>
104 InstanceInfo& WithInstanceStatus(InstanceStatusT&& value) {
105 SetInstanceStatus(std::forward<InstanceStatusT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
115 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
116 template <typename IpAddressT = Aws::String>
117 void SetIpAddress(IpAddressT&& value) {
118 m_ipAddressHasBeenSet = true;
119 m_ipAddress = std::forward<IpAddressT>(value);
120 }
121 template <typename IpAddressT = Aws::String>
122 InstanceInfo& WithIpAddress(IpAddressT&& value) {
123 SetIpAddress(std::forward<IpAddressT>(value));
124 return *this;
125 }
127
129
132 inline ManagedStatus GetManagedStatus() const { return m_managedStatus; }
133 inline bool ManagedStatusHasBeenSet() const { return m_managedStatusHasBeenSet; }
134 inline void SetManagedStatus(ManagedStatus value) {
135 m_managedStatusHasBeenSet = true;
136 m_managedStatus = value;
137 }
139 SetManagedStatus(value);
140 return *this;
141 }
143
145
148 inline const Aws::String& GetName() const { return m_name; }
149 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
150 template <typename NameT = Aws::String>
151 void SetName(NameT&& value) {
152 m_nameHasBeenSet = true;
153 m_name = std::forward<NameT>(value);
154 }
155 template <typename NameT = Aws::String>
156 InstanceInfo& WithName(NameT&& value) {
157 SetName(std::forward<NameT>(value));
158 return *this;
159 }
161
163
166 inline PlatformType GetPlatformType() const { return m_platformType; }
167 inline bool PlatformTypeHasBeenSet() const { return m_platformTypeHasBeenSet; }
168 inline void SetPlatformType(PlatformType value) {
169 m_platformTypeHasBeenSet = true;
170 m_platformType = value;
171 }
173 SetPlatformType(value);
174 return *this;
175 }
177
179
182 inline const Aws::String& GetPlatformName() const { return m_platformName; }
183 inline bool PlatformNameHasBeenSet() const { return m_platformNameHasBeenSet; }
184 template <typename PlatformNameT = Aws::String>
185 void SetPlatformName(PlatformNameT&& value) {
186 m_platformNameHasBeenSet = true;
187 m_platformName = std::forward<PlatformNameT>(value);
188 }
189 template <typename PlatformNameT = Aws::String>
190 InstanceInfo& WithPlatformName(PlatformNameT&& value) {
191 SetPlatformName(std::forward<PlatformNameT>(value));
192 return *this;
193 }
195
197
200 inline const Aws::String& GetPlatformVersion() const { return m_platformVersion; }
201 inline bool PlatformVersionHasBeenSet() const { return m_platformVersionHasBeenSet; }
202 template <typename PlatformVersionT = Aws::String>
203 void SetPlatformVersion(PlatformVersionT&& value) {
204 m_platformVersionHasBeenSet = true;
205 m_platformVersion = std::forward<PlatformVersionT>(value);
206 }
207 template <typename PlatformVersionT = Aws::String>
208 InstanceInfo& WithPlatformVersion(PlatformVersionT&& value) {
209 SetPlatformVersion(std::forward<PlatformVersionT>(value));
210 return *this;
211 }
213
215
219 inline ResourceType GetResourceType() const { return m_resourceType; }
220 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
221 inline void SetResourceType(ResourceType value) {
222 m_resourceTypeHasBeenSet = true;
223 m_resourceType = value;
224 }
226 SetResourceType(value);
227 return *this;
228 }
230
232
240 inline SourceType GetSourceType() const { return m_sourceType; }
241 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
242 inline void SetSourceType(SourceType value) {
243 m_sourceTypeHasBeenSet = true;
244 m_sourceType = value;
245 }
247 SetSourceType(value);
248 return *this;
249 }
251
253
257 inline const Aws::String& GetSourceId() const { return m_sourceId; }
258 inline bool SourceIdHasBeenSet() const { return m_sourceIdHasBeenSet; }
259 template <typename SourceIdT = Aws::String>
260 void SetSourceId(SourceIdT&& value) {
261 m_sourceIdHasBeenSet = true;
262 m_sourceId = std::forward<SourceIdT>(value);
263 }
264 template <typename SourceIdT = Aws::String>
265 InstanceInfo& WithSourceId(SourceIdT&& value) {
266 SetSourceId(std::forward<SourceIdT>(value));
267 return *this;
268 }
270
272
275 inline const Aws::String& GetSourceLocation() const { return m_sourceLocation; }
276 inline bool SourceLocationHasBeenSet() const { return m_sourceLocationHasBeenSet; }
277 template <typename SourceLocationT = Aws::String>
278 void SetSourceLocation(SourceLocationT&& value) {
279 m_sourceLocationHasBeenSet = true;
280 m_sourceLocation = std::forward<SourceLocationT>(value);
281 }
282 template <typename SourceLocationT = Aws::String>
283 InstanceInfo& WithSourceLocation(SourceLocationT&& value) {
284 SetSourceLocation(std::forward<SourceLocationT>(value));
285 return *this;
286 }
288
290
293 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
294 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
295 template <typename AvailabilityZoneT = Aws::String>
296 void SetAvailabilityZone(AvailabilityZoneT&& value) {
297 m_availabilityZoneHasBeenSet = true;
298 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
299 }
300 template <typename AvailabilityZoneT = Aws::String>
301 InstanceInfo& WithAvailabilityZone(AvailabilityZoneT&& value) {
302 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
303 return *this;
304 }
306
308
311 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
312 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
313 template <typename AvailabilityZoneIdT = Aws::String>
314 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) {
315 m_availabilityZoneIdHasBeenSet = true;
316 m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value);
317 }
318 template <typename AvailabilityZoneIdT = Aws::String>
319 InstanceInfo& WithAvailabilityZoneId(AvailabilityZoneIdT&& value) {
320 SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value));
321 return *this;
322 }
324 private:
325 Aws::String m_agentType;
326
327 Aws::String m_agentVersion;
328
329 Aws::String m_computerName;
330
331 Aws::String m_instanceStatus;
332
333 Aws::String m_ipAddress;
334
335 ManagedStatus m_managedStatus{ManagedStatus::NOT_SET};
336
337 Aws::String m_name;
338
339 PlatformType m_platformType{PlatformType::NOT_SET};
340
341 Aws::String m_platformName;
342
343 Aws::String m_platformVersion;
344
345 ResourceType m_resourceType{ResourceType::NOT_SET};
346
347 SourceType m_sourceType{SourceType::NOT_SET};
348
349 Aws::String m_sourceId;
350
351 Aws::String m_sourceLocation;
352
353 Aws::String m_availabilityZone;
354
355 Aws::String m_availabilityZoneId;
356 bool m_agentTypeHasBeenSet = false;
357 bool m_agentVersionHasBeenSet = false;
358 bool m_computerNameHasBeenSet = false;
359 bool m_instanceStatusHasBeenSet = false;
360 bool m_ipAddressHasBeenSet = false;
361 bool m_managedStatusHasBeenSet = false;
362 bool m_nameHasBeenSet = false;
363 bool m_platformTypeHasBeenSet = false;
364 bool m_platformNameHasBeenSet = false;
365 bool m_platformVersionHasBeenSet = false;
366 bool m_resourceTypeHasBeenSet = false;
367 bool m_sourceTypeHasBeenSet = false;
368 bool m_sourceIdHasBeenSet = false;
369 bool m_sourceLocationHasBeenSet = false;
370 bool m_availabilityZoneHasBeenSet = false;
371 bool m_availabilityZoneIdHasBeenSet = false;
372};
373
374} // namespace Model
375} // namespace SSM
376} // namespace Aws
SourceType GetSourceType() const
void SetIpAddress(IpAddressT &&value)
InstanceInfo & WithSourceType(SourceType value)
PlatformType GetPlatformType() const
const Aws::String & GetInstanceStatus() const
InstanceInfo & WithName(NameT &&value)
void SetAgentType(AgentTypeT &&value)
void SetSourceType(SourceType value)
void SetAvailabilityZone(AvailabilityZoneT &&value)
InstanceInfo & WithSourceId(SourceIdT &&value)
AWS_SSM_API InstanceInfo()=default
const Aws::String & GetSourceId() const
void SetResourceType(ResourceType value)
InstanceInfo & WithComputerName(ComputerNameT &&value)
InstanceInfo & WithAgentVersion(AgentVersionT &&value)
void SetSourceId(SourceIdT &&value)
void SetSourceLocation(SourceLocationT &&value)
void SetName(NameT &&value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
bool InstanceStatusHasBeenSet() const
bool AvailabilityZoneHasBeenSet() const
void SetManagedStatus(ManagedStatus value)
InstanceInfo & WithPlatformName(PlatformNameT &&value)
InstanceInfo & WithAvailabilityZone(AvailabilityZoneT &&value)
const Aws::String & GetSourceLocation() const
AWS_SSM_API InstanceInfo(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetComputerName() const
InstanceInfo & WithInstanceStatus(InstanceStatusT &&value)
InstanceInfo & WithAgentType(AgentTypeT &&value)
InstanceInfo & WithPlatformType(PlatformType value)
const Aws::String & GetPlatformName() const
InstanceInfo & WithResourceType(ResourceType value)
void SetAgentVersion(AgentVersionT &&value)
InstanceInfo & WithIpAddress(IpAddressT &&value)
const Aws::String & GetName() const
void SetPlatformType(PlatformType value)
InstanceInfo & WithSourceLocation(SourceLocationT &&value)
void SetPlatformName(PlatformNameT &&value)
bool AvailabilityZoneIdHasBeenSet() const
ResourceType GetResourceType() const
const Aws::String & GetPlatformVersion() const
InstanceInfo & WithManagedStatus(ManagedStatus value)
const Aws::String & GetAgentVersion() const
const Aws::String & GetIpAddress() const
void SetInstanceStatus(InstanceStatusT &&value)
InstanceInfo & WithPlatformVersion(PlatformVersionT &&value)
const Aws::String & GetAgentType() const
ManagedStatus GetManagedStatus() const
const Aws::String & GetAvailabilityZone() const
void SetPlatformVersion(PlatformVersionT &&value)
const Aws::String & GetAvailabilityZoneId() const
void SetComputerName(ComputerNameT &&value)
InstanceInfo & WithAvailabilityZoneId(AvailabilityZoneIdT &&value)
void SetAvailabilityZoneId(AvailabilityZoneIdT &&value)
AWS_SSM_API InstanceInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue