AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
InstanceInfo.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm/model/ManagedStatus.h>
10#include <aws/ssm/model/PlatformType.h>
11#include <aws/ssm/model/ResourceType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SSM
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_SSM_API InstanceInfo() = default;
41
42
44
47 inline const Aws::String& GetAgentType() const { return m_agentType; }
48 inline bool AgentTypeHasBeenSet() const { return m_agentTypeHasBeenSet; }
49 template<typename AgentTypeT = Aws::String>
50 void SetAgentType(AgentTypeT&& value) { m_agentTypeHasBeenSet = true; m_agentType = std::forward<AgentTypeT>(value); }
51 template<typename AgentTypeT = Aws::String>
52 InstanceInfo& WithAgentType(AgentTypeT&& value) { SetAgentType(std::forward<AgentTypeT>(value)); return *this;}
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) { m_agentVersionHasBeenSet = true; m_agentVersion = std::forward<AgentVersionT>(value); }
63 template<typename AgentVersionT = Aws::String>
64 InstanceInfo& WithAgentVersion(AgentVersionT&& value) { SetAgentVersion(std::forward<AgentVersionT>(value)); return *this;}
66
68
71 inline const Aws::String& GetComputerName() const { return m_computerName; }
72 inline bool ComputerNameHasBeenSet() const { return m_computerNameHasBeenSet; }
73 template<typename ComputerNameT = Aws::String>
74 void SetComputerName(ComputerNameT&& value) { m_computerNameHasBeenSet = true; m_computerName = std::forward<ComputerNameT>(value); }
75 template<typename ComputerNameT = Aws::String>
76 InstanceInfo& WithComputerName(ComputerNameT&& value) { SetComputerName(std::forward<ComputerNameT>(value)); return *this;}
78
80
83 inline const Aws::String& GetInstanceStatus() const { return m_instanceStatus; }
84 inline bool InstanceStatusHasBeenSet() const { return m_instanceStatusHasBeenSet; }
85 template<typename InstanceStatusT = Aws::String>
86 void SetInstanceStatus(InstanceStatusT&& value) { m_instanceStatusHasBeenSet = true; m_instanceStatus = std::forward<InstanceStatusT>(value); }
87 template<typename InstanceStatusT = Aws::String>
88 InstanceInfo& WithInstanceStatus(InstanceStatusT&& value) { SetInstanceStatus(std::forward<InstanceStatusT>(value)); return *this;}
90
92
95 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
96 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
97 template<typename IpAddressT = Aws::String>
98 void SetIpAddress(IpAddressT&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::forward<IpAddressT>(value); }
99 template<typename IpAddressT = Aws::String>
100 InstanceInfo& WithIpAddress(IpAddressT&& value) { SetIpAddress(std::forward<IpAddressT>(value)); return *this;}
102
104
107 inline ManagedStatus GetManagedStatus() const { return m_managedStatus; }
108 inline bool ManagedStatusHasBeenSet() const { return m_managedStatusHasBeenSet; }
109 inline void SetManagedStatus(ManagedStatus value) { m_managedStatusHasBeenSet = true; m_managedStatus = value; }
110 inline InstanceInfo& WithManagedStatus(ManagedStatus value) { SetManagedStatus(value); return *this;}
112
114
117 inline PlatformType GetPlatformType() const { return m_platformType; }
118 inline bool PlatformTypeHasBeenSet() const { return m_platformTypeHasBeenSet; }
119 inline void SetPlatformType(PlatformType value) { m_platformTypeHasBeenSet = true; m_platformType = value; }
120 inline InstanceInfo& WithPlatformType(PlatformType value) { SetPlatformType(value); return *this;}
122
124
127 inline const Aws::String& GetPlatformName() const { return m_platformName; }
128 inline bool PlatformNameHasBeenSet() const { return m_platformNameHasBeenSet; }
129 template<typename PlatformNameT = Aws::String>
130 void SetPlatformName(PlatformNameT&& value) { m_platformNameHasBeenSet = true; m_platformName = std::forward<PlatformNameT>(value); }
131 template<typename PlatformNameT = Aws::String>
132 InstanceInfo& WithPlatformName(PlatformNameT&& value) { SetPlatformName(std::forward<PlatformNameT>(value)); return *this;}
134
136
139 inline const Aws::String& GetPlatformVersion() const { return m_platformVersion; }
140 inline bool PlatformVersionHasBeenSet() const { return m_platformVersionHasBeenSet; }
141 template<typename PlatformVersionT = Aws::String>
142 void SetPlatformVersion(PlatformVersionT&& value) { m_platformVersionHasBeenSet = true; m_platformVersion = std::forward<PlatformVersionT>(value); }
143 template<typename PlatformVersionT = Aws::String>
144 InstanceInfo& WithPlatformVersion(PlatformVersionT&& value) { SetPlatformVersion(std::forward<PlatformVersionT>(value)); return *this;}
146
148
152 inline ResourceType GetResourceType() const { return m_resourceType; }
153 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
154 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
155 inline InstanceInfo& WithResourceType(ResourceType value) { SetResourceType(value); return *this;}
157 private:
158
159 Aws::String m_agentType;
160 bool m_agentTypeHasBeenSet = false;
161
162 Aws::String m_agentVersion;
163 bool m_agentVersionHasBeenSet = false;
164
165 Aws::String m_computerName;
166 bool m_computerNameHasBeenSet = false;
167
168 Aws::String m_instanceStatus;
169 bool m_instanceStatusHasBeenSet = false;
170
171 Aws::String m_ipAddress;
172 bool m_ipAddressHasBeenSet = false;
173
174 ManagedStatus m_managedStatus{ManagedStatus::NOT_SET};
175 bool m_managedStatusHasBeenSet = false;
176
177 PlatformType m_platformType{PlatformType::NOT_SET};
178 bool m_platformTypeHasBeenSet = false;
179
180 Aws::String m_platformName;
181 bool m_platformNameHasBeenSet = false;
182
183 Aws::String m_platformVersion;
184 bool m_platformVersionHasBeenSet = false;
185
186 ResourceType m_resourceType{ResourceType::NOT_SET};
187 bool m_resourceTypeHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace SSM
192} // 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