AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SSM {
23namespace Model {
24
31 public:
32 AWS_SSM_API InstanceInfo() = default;
36
38
41 inline const Aws::String& GetAgentType() const { return m_agentType; }
42 inline bool AgentTypeHasBeenSet() const { return m_agentTypeHasBeenSet; }
43 template <typename AgentTypeT = Aws::String>
44 void SetAgentType(AgentTypeT&& value) {
45 m_agentTypeHasBeenSet = true;
46 m_agentType = std::forward<AgentTypeT>(value);
47 }
48 template <typename AgentTypeT = Aws::String>
49 InstanceInfo& WithAgentType(AgentTypeT&& value) {
50 SetAgentType(std::forward<AgentTypeT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetAgentVersion() const { return m_agentVersion; }
60 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
61 template <typename AgentVersionT = Aws::String>
62 void SetAgentVersion(AgentVersionT&& value) {
63 m_agentVersionHasBeenSet = true;
64 m_agentVersion = std::forward<AgentVersionT>(value);
65 }
66 template <typename AgentVersionT = Aws::String>
67 InstanceInfo& WithAgentVersion(AgentVersionT&& value) {
68 SetAgentVersion(std::forward<AgentVersionT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetComputerName() const { return m_computerName; }
78 inline bool ComputerNameHasBeenSet() const { return m_computerNameHasBeenSet; }
79 template <typename ComputerNameT = Aws::String>
80 void SetComputerName(ComputerNameT&& value) {
81 m_computerNameHasBeenSet = true;
82 m_computerName = std::forward<ComputerNameT>(value);
83 }
84 template <typename ComputerNameT = Aws::String>
85 InstanceInfo& WithComputerName(ComputerNameT&& value) {
86 SetComputerName(std::forward<ComputerNameT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetInstanceStatus() const { return m_instanceStatus; }
96 inline bool InstanceStatusHasBeenSet() const { return m_instanceStatusHasBeenSet; }
97 template <typename InstanceStatusT = Aws::String>
98 void SetInstanceStatus(InstanceStatusT&& value) {
99 m_instanceStatusHasBeenSet = true;
100 m_instanceStatus = std::forward<InstanceStatusT>(value);
101 }
102 template <typename InstanceStatusT = Aws::String>
103 InstanceInfo& WithInstanceStatus(InstanceStatusT&& value) {
104 SetInstanceStatus(std::forward<InstanceStatusT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
114 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
115 template <typename IpAddressT = Aws::String>
116 void SetIpAddress(IpAddressT&& value) {
117 m_ipAddressHasBeenSet = true;
118 m_ipAddress = std::forward<IpAddressT>(value);
119 }
120 template <typename IpAddressT = Aws::String>
121 InstanceInfo& WithIpAddress(IpAddressT&& value) {
122 SetIpAddress(std::forward<IpAddressT>(value));
123 return *this;
124 }
126
128
131 inline ManagedStatus GetManagedStatus() const { return m_managedStatus; }
132 inline bool ManagedStatusHasBeenSet() const { return m_managedStatusHasBeenSet; }
133 inline void SetManagedStatus(ManagedStatus value) {
134 m_managedStatusHasBeenSet = true;
135 m_managedStatus = value;
136 }
138 SetManagedStatus(value);
139 return *this;
140 }
142
144
147 inline PlatformType GetPlatformType() const { return m_platformType; }
148 inline bool PlatformTypeHasBeenSet() const { return m_platformTypeHasBeenSet; }
149 inline void SetPlatformType(PlatformType value) {
150 m_platformTypeHasBeenSet = true;
151 m_platformType = value;
152 }
154 SetPlatformType(value);
155 return *this;
156 }
158
160
163 inline const Aws::String& GetPlatformName() const { return m_platformName; }
164 inline bool PlatformNameHasBeenSet() const { return m_platformNameHasBeenSet; }
165 template <typename PlatformNameT = Aws::String>
166 void SetPlatformName(PlatformNameT&& value) {
167 m_platformNameHasBeenSet = true;
168 m_platformName = std::forward<PlatformNameT>(value);
169 }
170 template <typename PlatformNameT = Aws::String>
171 InstanceInfo& WithPlatformName(PlatformNameT&& value) {
172 SetPlatformName(std::forward<PlatformNameT>(value));
173 return *this;
174 }
176
178
181 inline const Aws::String& GetPlatformVersion() const { return m_platformVersion; }
182 inline bool PlatformVersionHasBeenSet() const { return m_platformVersionHasBeenSet; }
183 template <typename PlatformVersionT = Aws::String>
184 void SetPlatformVersion(PlatformVersionT&& value) {
185 m_platformVersionHasBeenSet = true;
186 m_platformVersion = std::forward<PlatformVersionT>(value);
187 }
188 template <typename PlatformVersionT = Aws::String>
189 InstanceInfo& WithPlatformVersion(PlatformVersionT&& value) {
190 SetPlatformVersion(std::forward<PlatformVersionT>(value));
191 return *this;
192 }
194
196
200 inline ResourceType GetResourceType() const { return m_resourceType; }
201 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
202 inline void SetResourceType(ResourceType value) {
203 m_resourceTypeHasBeenSet = true;
204 m_resourceType = value;
205 }
207 SetResourceType(value);
208 return *this;
209 }
211 private:
212 Aws::String m_agentType;
213
214 Aws::String m_agentVersion;
215
216 Aws::String m_computerName;
217
218 Aws::String m_instanceStatus;
219
220 Aws::String m_ipAddress;
221
222 ManagedStatus m_managedStatus{ManagedStatus::NOT_SET};
223
224 PlatformType m_platformType{PlatformType::NOT_SET};
225
226 Aws::String m_platformName;
227
228 Aws::String m_platformVersion;
229
230 ResourceType m_resourceType{ResourceType::NOT_SET};
231 bool m_agentTypeHasBeenSet = false;
232 bool m_agentVersionHasBeenSet = false;
233 bool m_computerNameHasBeenSet = false;
234 bool m_instanceStatusHasBeenSet = false;
235 bool m_ipAddressHasBeenSet = false;
236 bool m_managedStatusHasBeenSet = false;
237 bool m_platformTypeHasBeenSet = false;
238 bool m_platformNameHasBeenSet = false;
239 bool m_platformVersionHasBeenSet = false;
240 bool m_resourceTypeHasBeenSet = false;
241};
242
243} // namespace Model
244} // namespace SSM
245} // namespace Aws
void SetIpAddress(IpAddressT &&value)
PlatformType GetPlatformType() const
const Aws::String & GetInstanceStatus() const
void SetAgentType(AgentTypeT &&value)
AWS_SSM_API InstanceInfo()=default
void SetResourceType(ResourceType value)
InstanceInfo & WithComputerName(ComputerNameT &&value)
InstanceInfo & WithAgentVersion(AgentVersionT &&value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
bool InstanceStatusHasBeenSet() const
void SetManagedStatus(ManagedStatus value)
InstanceInfo & WithPlatformName(PlatformNameT &&value)
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)
void SetPlatformType(PlatformType value)
void SetPlatformName(PlatformNameT &&value)
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
void SetPlatformVersion(PlatformVersionT &&value)
void SetComputerName(ComputerNameT &&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