AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AgentPreview.h
1
6#pragma once
7#include <aws/inspector/Inspector_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/inspector/model/AgentHealth.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Inspector
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_INSPECTOR_API AgentPreview() = default;
37 AWS_INSPECTOR_API AgentPreview(Aws::Utils::Json::JsonView jsonValue);
38 AWS_INSPECTOR_API AgentPreview& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetHostname() const { return m_hostname; }
48 inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; }
49 template<typename HostnameT = Aws::String>
50 void SetHostname(HostnameT&& value) { m_hostnameHasBeenSet = true; m_hostname = std::forward<HostnameT>(value); }
51 template<typename HostnameT = Aws::String>
52 AgentPreview& WithHostname(HostnameT&& value) { SetHostname(std::forward<HostnameT>(value)); return *this;}
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) { m_agentIdHasBeenSet = true; m_agentId = std::forward<AgentIdT>(value); }
63 template<typename AgentIdT = Aws::String>
64 AgentPreview& WithAgentId(AgentIdT&& value) { SetAgentId(std::forward<AgentIdT>(value)); return *this;}
66
68
71 inline const Aws::String& GetAutoScalingGroup() const { return m_autoScalingGroup; }
72 inline bool AutoScalingGroupHasBeenSet() const { return m_autoScalingGroupHasBeenSet; }
73 template<typename AutoScalingGroupT = Aws::String>
74 void SetAutoScalingGroup(AutoScalingGroupT&& value) { m_autoScalingGroupHasBeenSet = true; m_autoScalingGroup = std::forward<AutoScalingGroupT>(value); }
75 template<typename AutoScalingGroupT = Aws::String>
76 AgentPreview& WithAutoScalingGroup(AutoScalingGroupT&& value) { SetAutoScalingGroup(std::forward<AutoScalingGroupT>(value)); return *this;}
78
80
83 inline AgentHealth GetAgentHealth() const { return m_agentHealth; }
84 inline bool AgentHealthHasBeenSet() const { return m_agentHealthHasBeenSet; }
85 inline void SetAgentHealth(AgentHealth value) { m_agentHealthHasBeenSet = true; m_agentHealth = value; }
86 inline AgentPreview& WithAgentHealth(AgentHealth value) { SetAgentHealth(value); return *this;}
88
90
93 inline const Aws::String& GetAgentVersion() const { return m_agentVersion; }
94 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
95 template<typename AgentVersionT = Aws::String>
96 void SetAgentVersion(AgentVersionT&& value) { m_agentVersionHasBeenSet = true; m_agentVersion = std::forward<AgentVersionT>(value); }
97 template<typename AgentVersionT = Aws::String>
98 AgentPreview& WithAgentVersion(AgentVersionT&& value) { SetAgentVersion(std::forward<AgentVersionT>(value)); return *this;}
100
102
106 inline const Aws::String& GetOperatingSystem() const { return m_operatingSystem; }
107 inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; }
108 template<typename OperatingSystemT = Aws::String>
109 void SetOperatingSystem(OperatingSystemT&& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = std::forward<OperatingSystemT>(value); }
110 template<typename OperatingSystemT = Aws::String>
111 AgentPreview& WithOperatingSystem(OperatingSystemT&& value) { SetOperatingSystem(std::forward<OperatingSystemT>(value)); return *this;}
113
115
119 inline const Aws::String& GetKernelVersion() const { return m_kernelVersion; }
120 inline bool KernelVersionHasBeenSet() const { return m_kernelVersionHasBeenSet; }
121 template<typename KernelVersionT = Aws::String>
122 void SetKernelVersion(KernelVersionT&& value) { m_kernelVersionHasBeenSet = true; m_kernelVersion = std::forward<KernelVersionT>(value); }
123 template<typename KernelVersionT = Aws::String>
124 AgentPreview& WithKernelVersion(KernelVersionT&& value) { SetKernelVersion(std::forward<KernelVersionT>(value)); return *this;}
126
128
132 inline const Aws::String& GetIpv4Address() const { return m_ipv4Address; }
133 inline bool Ipv4AddressHasBeenSet() const { return m_ipv4AddressHasBeenSet; }
134 template<typename Ipv4AddressT = Aws::String>
135 void SetIpv4Address(Ipv4AddressT&& value) { m_ipv4AddressHasBeenSet = true; m_ipv4Address = std::forward<Ipv4AddressT>(value); }
136 template<typename Ipv4AddressT = Aws::String>
137 AgentPreview& WithIpv4Address(Ipv4AddressT&& value) { SetIpv4Address(std::forward<Ipv4AddressT>(value)); return *this;}
139 private:
140
141 Aws::String m_hostname;
142 bool m_hostnameHasBeenSet = false;
143
144 Aws::String m_agentId;
145 bool m_agentIdHasBeenSet = false;
146
147 Aws::String m_autoScalingGroup;
148 bool m_autoScalingGroupHasBeenSet = false;
149
150 AgentHealth m_agentHealth{AgentHealth::NOT_SET};
151 bool m_agentHealthHasBeenSet = false;
152
153 Aws::String m_agentVersion;
154 bool m_agentVersionHasBeenSet = false;
155
156 Aws::String m_operatingSystem;
157 bool m_operatingSystemHasBeenSet = false;
158
159 Aws::String m_kernelVersion;
160 bool m_kernelVersionHasBeenSet = false;
161
162 Aws::String m_ipv4Address;
163 bool m_ipv4AddressHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace Inspector
168} // 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