AWS SDK for C++

AWS SDK for C++ Version 1.11.854

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
236 inline SourceType GetSourceType() const { return m_sourceType; }
237 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
238 inline void SetSourceType(SourceType value) {
239 m_sourceTypeHasBeenSet = true;
240 m_sourceType = value;
241 }
243 SetSourceType(value);
244 return *this;
245 }
247
249
253 inline const Aws::String& GetSourceId() const { return m_sourceId; }
254 inline bool SourceIdHasBeenSet() const { return m_sourceIdHasBeenSet; }
255 template <typename SourceIdT = Aws::String>
256 void SetSourceId(SourceIdT&& value) {
257 m_sourceIdHasBeenSet = true;
258 m_sourceId = std::forward<SourceIdT>(value);
259 }
260 template <typename SourceIdT = Aws::String>
261 InstanceInfo& WithSourceId(SourceIdT&& value) {
262 SetSourceId(std::forward<SourceIdT>(value));
263 return *this;
264 }
266
268
271 inline const Aws::String& GetSourceLocation() const { return m_sourceLocation; }
272 inline bool SourceLocationHasBeenSet() const { return m_sourceLocationHasBeenSet; }
273 template <typename SourceLocationT = Aws::String>
274 void SetSourceLocation(SourceLocationT&& value) {
275 m_sourceLocationHasBeenSet = true;
276 m_sourceLocation = std::forward<SourceLocationT>(value);
277 }
278 template <typename SourceLocationT = Aws::String>
279 InstanceInfo& WithSourceLocation(SourceLocationT&& value) {
280 SetSourceLocation(std::forward<SourceLocationT>(value));
281 return *this;
282 }
284
286
289 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
290 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
291 template <typename AvailabilityZoneT = Aws::String>
292 void SetAvailabilityZone(AvailabilityZoneT&& value) {
293 m_availabilityZoneHasBeenSet = true;
294 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
295 }
296 template <typename AvailabilityZoneT = Aws::String>
297 InstanceInfo& WithAvailabilityZone(AvailabilityZoneT&& value) {
298 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
299 return *this;
300 }
302
304
307 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
308 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
309 template <typename AvailabilityZoneIdT = Aws::String>
310 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) {
311 m_availabilityZoneIdHasBeenSet = true;
312 m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value);
313 }
314 template <typename AvailabilityZoneIdT = Aws::String>
315 InstanceInfo& WithAvailabilityZoneId(AvailabilityZoneIdT&& value) {
316 SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value));
317 return *this;
318 }
320 private:
321 Aws::String m_agentType;
322
323 Aws::String m_agentVersion;
324
325 Aws::String m_computerName;
326
327 Aws::String m_instanceStatus;
328
329 Aws::String m_ipAddress;
330
331 ManagedStatus m_managedStatus{ManagedStatus::NOT_SET};
332
333 Aws::String m_name;
334
335 PlatformType m_platformType{PlatformType::NOT_SET};
336
337 Aws::String m_platformName;
338
339 Aws::String m_platformVersion;
340
341 ResourceType m_resourceType{ResourceType::NOT_SET};
342
343 SourceType m_sourceType{SourceType::NOT_SET};
344
345 Aws::String m_sourceId;
346
347 Aws::String m_sourceLocation;
348
349 Aws::String m_availabilityZone;
350
351 Aws::String m_availabilityZoneId;
352 bool m_agentTypeHasBeenSet = false;
353 bool m_agentVersionHasBeenSet = false;
354 bool m_computerNameHasBeenSet = false;
355 bool m_instanceStatusHasBeenSet = false;
356 bool m_ipAddressHasBeenSet = false;
357 bool m_managedStatusHasBeenSet = false;
358 bool m_nameHasBeenSet = false;
359 bool m_platformTypeHasBeenSet = false;
360 bool m_platformNameHasBeenSet = false;
361 bool m_platformVersionHasBeenSet = false;
362 bool m_resourceTypeHasBeenSet = false;
363 bool m_sourceTypeHasBeenSet = false;
364 bool m_sourceIdHasBeenSet = false;
365 bool m_sourceLocationHasBeenSet = false;
366 bool m_availabilityZoneHasBeenSet = false;
367 bool m_availabilityZoneIdHasBeenSet = false;
368};
369
370} // namespace Model
371} // namespace SSM
372} // 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