AWS SDK for C++

AWS SDK for C++ Version 1.11.749

Loading...
Searching...
No Matches
AssetAttributes.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/inspector/Inspector_EXPORTS.h>
10#include <aws/inspector/model/NetworkInterface.h>
11#include <aws/inspector/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Inspector {
23namespace Model {
24
32 public:
33 AWS_INSPECTOR_API AssetAttributes() = default;
34 AWS_INSPECTOR_API AssetAttributes(Aws::Utils::Json::JsonView jsonValue);
36 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline int GetSchemaVersion() const { return m_schemaVersion; }
43 inline bool SchemaVersionHasBeenSet() const { return m_schemaVersionHasBeenSet; }
44 inline void SetSchemaVersion(int value) {
45 m_schemaVersionHasBeenSet = true;
46 m_schemaVersion = value;
47 }
49 SetSchemaVersion(value);
50 return *this;
51 }
53
55
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 AssetAttributes& WithAgentId(AgentIdT&& value) {
68 SetAgentId(std::forward<AgentIdT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetAutoScalingGroup() const { return m_autoScalingGroup; }
79 inline bool AutoScalingGroupHasBeenSet() const { return m_autoScalingGroupHasBeenSet; }
80 template <typename AutoScalingGroupT = Aws::String>
81 void SetAutoScalingGroup(AutoScalingGroupT&& value) {
82 m_autoScalingGroupHasBeenSet = true;
83 m_autoScalingGroup = std::forward<AutoScalingGroupT>(value);
84 }
85 template <typename AutoScalingGroupT = Aws::String>
86 AssetAttributes& WithAutoScalingGroup(AutoScalingGroupT&& value) {
87 SetAutoScalingGroup(std::forward<AutoScalingGroupT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetAmiId() const { return m_amiId; }
98 inline bool AmiIdHasBeenSet() const { return m_amiIdHasBeenSet; }
99 template <typename AmiIdT = Aws::String>
100 void SetAmiId(AmiIdT&& value) {
101 m_amiIdHasBeenSet = true;
102 m_amiId = std::forward<AmiIdT>(value);
103 }
104 template <typename AmiIdT = Aws::String>
105 AssetAttributes& WithAmiId(AmiIdT&& value) {
106 SetAmiId(std::forward<AmiIdT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetHostname() const { return m_hostname; }
116 inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; }
117 template <typename HostnameT = Aws::String>
118 void SetHostname(HostnameT&& value) {
119 m_hostnameHasBeenSet = true;
120 m_hostname = std::forward<HostnameT>(value);
121 }
122 template <typename HostnameT = Aws::String>
123 AssetAttributes& WithHostname(HostnameT&& value) {
124 SetHostname(std::forward<HostnameT>(value));
125 return *this;
126 }
128
130
134 inline const Aws::Vector<Aws::String>& GetIpv4Addresses() const { return m_ipv4Addresses; }
135 inline bool Ipv4AddressesHasBeenSet() const { return m_ipv4AddressesHasBeenSet; }
136 template <typename Ipv4AddressesT = Aws::Vector<Aws::String>>
137 void SetIpv4Addresses(Ipv4AddressesT&& value) {
138 m_ipv4AddressesHasBeenSet = true;
139 m_ipv4Addresses = std::forward<Ipv4AddressesT>(value);
140 }
141 template <typename Ipv4AddressesT = Aws::Vector<Aws::String>>
142 AssetAttributes& WithIpv4Addresses(Ipv4AddressesT&& value) {
143 SetIpv4Addresses(std::forward<Ipv4AddressesT>(value));
144 return *this;
145 }
146 template <typename Ipv4AddressesT = Aws::String>
147 AssetAttributes& AddIpv4Addresses(Ipv4AddressesT&& value) {
148 m_ipv4AddressesHasBeenSet = true;
149 m_ipv4Addresses.emplace_back(std::forward<Ipv4AddressesT>(value));
150 return *this;
151 }
153
155
158 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
159 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
160 template <typename TagsT = Aws::Vector<Tag>>
161 void SetTags(TagsT&& value) {
162 m_tagsHasBeenSet = true;
163 m_tags = std::forward<TagsT>(value);
164 }
165 template <typename TagsT = Aws::Vector<Tag>>
166 AssetAttributes& WithTags(TagsT&& value) {
167 SetTags(std::forward<TagsT>(value));
168 return *this;
169 }
170 template <typename TagsT = Tag>
171 AssetAttributes& AddTags(TagsT&& value) {
172 m_tagsHasBeenSet = true;
173 m_tags.emplace_back(std::forward<TagsT>(value));
174 return *this;
175 }
177
179
183 inline const Aws::Vector<NetworkInterface>& GetNetworkInterfaces() const { return m_networkInterfaces; }
184 inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; }
185 template <typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
186 void SetNetworkInterfaces(NetworkInterfacesT&& value) {
187 m_networkInterfacesHasBeenSet = true;
188 m_networkInterfaces = std::forward<NetworkInterfacesT>(value);
189 }
190 template <typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
191 AssetAttributes& WithNetworkInterfaces(NetworkInterfacesT&& value) {
192 SetNetworkInterfaces(std::forward<NetworkInterfacesT>(value));
193 return *this;
194 }
195 template <typename NetworkInterfacesT = NetworkInterface>
196 AssetAttributes& AddNetworkInterfaces(NetworkInterfacesT&& value) {
197 m_networkInterfacesHasBeenSet = true;
198 m_networkInterfaces.emplace_back(std::forward<NetworkInterfacesT>(value));
199 return *this;
200 }
202 private:
203 int m_schemaVersion{0};
204
205 Aws::String m_agentId;
206
207 Aws::String m_autoScalingGroup;
208
209 Aws::String m_amiId;
210
211 Aws::String m_hostname;
212
213 Aws::Vector<Aws::String> m_ipv4Addresses;
214
215 Aws::Vector<Tag> m_tags;
216
217 Aws::Vector<NetworkInterface> m_networkInterfaces;
218 bool m_schemaVersionHasBeenSet = false;
219 bool m_agentIdHasBeenSet = false;
220 bool m_autoScalingGroupHasBeenSet = false;
221 bool m_amiIdHasBeenSet = false;
222 bool m_hostnameHasBeenSet = false;
223 bool m_ipv4AddressesHasBeenSet = false;
224 bool m_tagsHasBeenSet = false;
225 bool m_networkInterfacesHasBeenSet = false;
226};
227
228} // namespace Model
229} // namespace Inspector
230} // namespace Aws
void SetIpv4Addresses(Ipv4AddressesT &&value)
const Aws::Vector< Tag > & GetTags() const
const Aws::String & GetAutoScalingGroup() const
AssetAttributes & WithSchemaVersion(int value)
AWS_INSPECTOR_API AssetAttributes(Aws::Utils::Json::JsonView jsonValue)
AssetAttributes & AddIpv4Addresses(Ipv4AddressesT &&value)
AssetAttributes & WithHostname(HostnameT &&value)
const Aws::String & GetAgentId() const
AWS_INSPECTOR_API AssetAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
AssetAttributes & WithAmiId(AmiIdT &&value)
AWS_INSPECTOR_API AssetAttributes()=default
AssetAttributes & WithAutoScalingGroup(AutoScalingGroupT &&value)
void SetNetworkInterfaces(NetworkInterfacesT &&value)
AssetAttributes & WithAgentId(AgentIdT &&value)
void SetAutoScalingGroup(AutoScalingGroupT &&value)
AssetAttributes & WithTags(TagsT &&value)
AssetAttributes & AddNetworkInterfaces(NetworkInterfacesT &&value)
AssetAttributes & AddTags(TagsT &&value)
const Aws::String & GetHostname() const
const Aws::String & GetAmiId() const
const Aws::Vector< NetworkInterface > & GetNetworkInterfaces() const
AssetAttributes & WithIpv4Addresses(Ipv4AddressesT &&value)
AssetAttributes & WithNetworkInterfaces(NetworkInterfacesT &&value)
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetIpv4Addresses() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue