AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AssetAttributes.h
1
6#pragma once
7#include <aws/inspector/Inspector_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/inspector/model/Tag.h>
11#include <aws/inspector/model/NetworkInterface.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 Inspector
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_INSPECTOR_API AssetAttributes() = default;
39 AWS_INSPECTOR_API AssetAttributes(Aws::Utils::Json::JsonView jsonValue);
41 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline int GetSchemaVersion() const { return m_schemaVersion; }
49 inline bool SchemaVersionHasBeenSet() const { return m_schemaVersionHasBeenSet; }
50 inline void SetSchemaVersion(int value) { m_schemaVersionHasBeenSet = true; m_schemaVersion = value; }
51 inline AssetAttributes& WithSchemaVersion(int value) { SetSchemaVersion(value); return *this;}
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) { m_agentIdHasBeenSet = true; m_agentId = std::forward<AgentIdT>(value); }
63 template<typename AgentIdT = Aws::String>
64 AssetAttributes& WithAgentId(AgentIdT&& value) { SetAgentId(std::forward<AgentIdT>(value)); return *this;}
66
68
72 inline const Aws::String& GetAutoScalingGroup() const { return m_autoScalingGroup; }
73 inline bool AutoScalingGroupHasBeenSet() const { return m_autoScalingGroupHasBeenSet; }
74 template<typename AutoScalingGroupT = Aws::String>
75 void SetAutoScalingGroup(AutoScalingGroupT&& value) { m_autoScalingGroupHasBeenSet = true; m_autoScalingGroup = std::forward<AutoScalingGroupT>(value); }
76 template<typename AutoScalingGroupT = Aws::String>
77 AssetAttributes& WithAutoScalingGroup(AutoScalingGroupT&& value) { SetAutoScalingGroup(std::forward<AutoScalingGroupT>(value)); return *this;}
79
81
85 inline const Aws::String& GetAmiId() const { return m_amiId; }
86 inline bool AmiIdHasBeenSet() const { return m_amiIdHasBeenSet; }
87 template<typename AmiIdT = Aws::String>
88 void SetAmiId(AmiIdT&& value) { m_amiIdHasBeenSet = true; m_amiId = std::forward<AmiIdT>(value); }
89 template<typename AmiIdT = Aws::String>
90 AssetAttributes& WithAmiId(AmiIdT&& value) { SetAmiId(std::forward<AmiIdT>(value)); return *this;}
92
94
97 inline const Aws::String& GetHostname() const { return m_hostname; }
98 inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; }
99 template<typename HostnameT = Aws::String>
100 void SetHostname(HostnameT&& value) { m_hostnameHasBeenSet = true; m_hostname = std::forward<HostnameT>(value); }
101 template<typename HostnameT = Aws::String>
102 AssetAttributes& WithHostname(HostnameT&& value) { SetHostname(std::forward<HostnameT>(value)); return *this;}
104
106
110 inline const Aws::Vector<Aws::String>& GetIpv4Addresses() const { return m_ipv4Addresses; }
111 inline bool Ipv4AddressesHasBeenSet() const { return m_ipv4AddressesHasBeenSet; }
112 template<typename Ipv4AddressesT = Aws::Vector<Aws::String>>
113 void SetIpv4Addresses(Ipv4AddressesT&& value) { m_ipv4AddressesHasBeenSet = true; m_ipv4Addresses = std::forward<Ipv4AddressesT>(value); }
114 template<typename Ipv4AddressesT = Aws::Vector<Aws::String>>
115 AssetAttributes& WithIpv4Addresses(Ipv4AddressesT&& value) { SetIpv4Addresses(std::forward<Ipv4AddressesT>(value)); return *this;}
116 template<typename Ipv4AddressesT = Aws::String>
117 AssetAttributes& AddIpv4Addresses(Ipv4AddressesT&& value) { m_ipv4AddressesHasBeenSet = true; m_ipv4Addresses.emplace_back(std::forward<Ipv4AddressesT>(value)); return *this; }
119
121
124 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
125 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
126 template<typename TagsT = Aws::Vector<Tag>>
127 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
128 template<typename TagsT = Aws::Vector<Tag>>
129 AssetAttributes& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
130 template<typename TagsT = Tag>
131 AssetAttributes& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
133
135
139 inline const Aws::Vector<NetworkInterface>& GetNetworkInterfaces() const { return m_networkInterfaces; }
140 inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; }
141 template<typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
142 void SetNetworkInterfaces(NetworkInterfacesT&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces = std::forward<NetworkInterfacesT>(value); }
143 template<typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
144 AssetAttributes& WithNetworkInterfaces(NetworkInterfacesT&& value) { SetNetworkInterfaces(std::forward<NetworkInterfacesT>(value)); return *this;}
145 template<typename NetworkInterfacesT = NetworkInterface>
146 AssetAttributes& AddNetworkInterfaces(NetworkInterfacesT&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.emplace_back(std::forward<NetworkInterfacesT>(value)); return *this; }
148 private:
149
150 int m_schemaVersion{0};
151 bool m_schemaVersionHasBeenSet = false;
152
153 Aws::String m_agentId;
154 bool m_agentIdHasBeenSet = false;
155
156 Aws::String m_autoScalingGroup;
157 bool m_autoScalingGroupHasBeenSet = false;
158
159 Aws::String m_amiId;
160 bool m_amiIdHasBeenSet = false;
161
162 Aws::String m_hostname;
163 bool m_hostnameHasBeenSet = false;
164
165 Aws::Vector<Aws::String> m_ipv4Addresses;
166 bool m_ipv4AddressesHasBeenSet = false;
167
168 Aws::Vector<Tag> m_tags;
169 bool m_tagsHasBeenSet = false;
170
171 Aws::Vector<NetworkInterface> m_networkInterfaces;
172 bool m_networkInterfacesHasBeenSet = false;
173 };
174
175} // namespace Model
176} // namespace Inspector
177} // 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