AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
AgentPreview.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/inspector/Inspector_EXPORTS.h>
9#include <aws/inspector/model/AgentHealth.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Inspector {
21namespace Model {
22
30 public:
31 AWS_INSPECTOR_API AgentPreview() = default;
32 AWS_INSPECTOR_API AgentPreview(Aws::Utils::Json::JsonView jsonValue);
33 AWS_INSPECTOR_API AgentPreview& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetHostname() const { return m_hostname; }
42 inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; }
43 template <typename HostnameT = Aws::String>
44 void SetHostname(HostnameT&& value) {
45 m_hostnameHasBeenSet = true;
46 m_hostname = std::forward<HostnameT>(value);
47 }
48 template <typename HostnameT = Aws::String>
49 AgentPreview& WithHostname(HostnameT&& value) {
50 SetHostname(std::forward<HostnameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetAgentId() const { return m_agentId; }
60 inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; }
61 template <typename AgentIdT = Aws::String>
62 void SetAgentId(AgentIdT&& value) {
63 m_agentIdHasBeenSet = true;
64 m_agentId = std::forward<AgentIdT>(value);
65 }
66 template <typename AgentIdT = Aws::String>
67 AgentPreview& WithAgentId(AgentIdT&& value) {
68 SetAgentId(std::forward<AgentIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetAutoScalingGroup() const { return m_autoScalingGroup; }
78 inline bool AutoScalingGroupHasBeenSet() const { return m_autoScalingGroupHasBeenSet; }
79 template <typename AutoScalingGroupT = Aws::String>
80 void SetAutoScalingGroup(AutoScalingGroupT&& value) {
81 m_autoScalingGroupHasBeenSet = true;
82 m_autoScalingGroup = std::forward<AutoScalingGroupT>(value);
83 }
84 template <typename AutoScalingGroupT = Aws::String>
85 AgentPreview& WithAutoScalingGroup(AutoScalingGroupT&& value) {
86 SetAutoScalingGroup(std::forward<AutoScalingGroupT>(value));
87 return *this;
88 }
90
92
95 inline AgentHealth GetAgentHealth() const { return m_agentHealth; }
96 inline bool AgentHealthHasBeenSet() const { return m_agentHealthHasBeenSet; }
97 inline void SetAgentHealth(AgentHealth value) {
98 m_agentHealthHasBeenSet = true;
99 m_agentHealth = value;
100 }
102 SetAgentHealth(value);
103 return *this;
104 }
106
108
111 inline const Aws::String& GetAgentVersion() const { return m_agentVersion; }
112 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
113 template <typename AgentVersionT = Aws::String>
114 void SetAgentVersion(AgentVersionT&& value) {
115 m_agentVersionHasBeenSet = true;
116 m_agentVersion = std::forward<AgentVersionT>(value);
117 }
118 template <typename AgentVersionT = Aws::String>
119 AgentPreview& WithAgentVersion(AgentVersionT&& value) {
120 SetAgentVersion(std::forward<AgentVersionT>(value));
121 return *this;
122 }
124
126
130 inline const Aws::String& GetOperatingSystem() const { return m_operatingSystem; }
131 inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; }
132 template <typename OperatingSystemT = Aws::String>
133 void SetOperatingSystem(OperatingSystemT&& value) {
134 m_operatingSystemHasBeenSet = true;
135 m_operatingSystem = std::forward<OperatingSystemT>(value);
136 }
137 template <typename OperatingSystemT = Aws::String>
138 AgentPreview& WithOperatingSystem(OperatingSystemT&& value) {
139 SetOperatingSystem(std::forward<OperatingSystemT>(value));
140 return *this;
141 }
143
145
149 inline const Aws::String& GetKernelVersion() const { return m_kernelVersion; }
150 inline bool KernelVersionHasBeenSet() const { return m_kernelVersionHasBeenSet; }
151 template <typename KernelVersionT = Aws::String>
152 void SetKernelVersion(KernelVersionT&& value) {
153 m_kernelVersionHasBeenSet = true;
154 m_kernelVersion = std::forward<KernelVersionT>(value);
155 }
156 template <typename KernelVersionT = Aws::String>
157 AgentPreview& WithKernelVersion(KernelVersionT&& value) {
158 SetKernelVersion(std::forward<KernelVersionT>(value));
159 return *this;
160 }
162
164
168 inline const Aws::String& GetIpv4Address() const { return m_ipv4Address; }
169 inline bool Ipv4AddressHasBeenSet() const { return m_ipv4AddressHasBeenSet; }
170 template <typename Ipv4AddressT = Aws::String>
171 void SetIpv4Address(Ipv4AddressT&& value) {
172 m_ipv4AddressHasBeenSet = true;
173 m_ipv4Address = std::forward<Ipv4AddressT>(value);
174 }
175 template <typename Ipv4AddressT = Aws::String>
176 AgentPreview& WithIpv4Address(Ipv4AddressT&& value) {
177 SetIpv4Address(std::forward<Ipv4AddressT>(value));
178 return *this;
179 }
181 private:
182 Aws::String m_hostname;
183
184 Aws::String m_agentId;
185
186 Aws::String m_autoScalingGroup;
187
188 AgentHealth m_agentHealth{AgentHealth::NOT_SET};
189
190 Aws::String m_agentVersion;
191
192 Aws::String m_operatingSystem;
193
194 Aws::String m_kernelVersion;
195
196 Aws::String m_ipv4Address;
197 bool m_hostnameHasBeenSet = false;
198 bool m_agentIdHasBeenSet = false;
199 bool m_autoScalingGroupHasBeenSet = false;
200 bool m_agentHealthHasBeenSet = false;
201 bool m_agentVersionHasBeenSet = false;
202 bool m_operatingSystemHasBeenSet = false;
203 bool m_kernelVersionHasBeenSet = false;
204 bool m_ipv4AddressHasBeenSet = false;
205};
206
207} // namespace Model
208} // namespace Inspector
209} // namespace Aws
void SetAgentId(AgentIdT &&value)
void SetKernelVersion(KernelVersionT &&value)
const Aws::String & GetAgentVersion() const
AgentPreview & WithAgentVersion(AgentVersionT &&value)
void SetAgentHealth(AgentHealth value)
AWS_INSPECTOR_API AgentPreview & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetOperatingSystem(OperatingSystemT &&value)
const Aws::String & GetKernelVersion() const
void SetAgentVersion(AgentVersionT &&value)
AgentPreview & WithHostname(HostnameT &&value)
AgentPreview & WithAutoScalingGroup(AutoScalingGroupT &&value)
AgentPreview & WithAgentHealth(AgentHealth value)
AgentPreview & WithIpv4Address(Ipv4AddressT &&value)
AWS_INSPECTOR_API AgentPreview(Aws::Utils::Json::JsonView jsonValue)
AgentPreview & WithAgentId(AgentIdT &&value)
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetIpv4Address() const
AWS_INSPECTOR_API AgentPreview()=default
void SetAutoScalingGroup(AutoScalingGroupT &&value)
void SetHostname(HostnameT &&value)
void SetIpv4Address(Ipv4AddressT &&value)
const Aws::String & GetOperatingSystem() const
AgentPreview & WithKernelVersion(KernelVersionT &&value)
const Aws::String & GetAutoScalingGroup() const
const Aws::String & GetHostname() const
AgentPreview & WithOperatingSystem(OperatingSystemT &&value)
const Aws::String & GetAgentId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue