AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAgentId(const Aws::String& value) { m_agentIdHasBeenSet = true; m_agentId = value; }
62 inline void SetAgentId(Aws::String&& value) { m_agentIdHasBeenSet = true; m_agentId = std::move(value); }
63 inline void SetAgentId(const char* value) { m_agentIdHasBeenSet = true; m_agentId.assign(value); }
64 inline AssetAttributes& WithAgentId(const Aws::String& value) { SetAgentId(value); return *this;}
65 inline AssetAttributes& WithAgentId(Aws::String&& value) { SetAgentId(std::move(value)); return *this;}
66 inline AssetAttributes& WithAgentId(const char* value) { SetAgentId(value); return *this;}
68
70
74 inline const Aws::String& GetAutoScalingGroup() const{ return m_autoScalingGroup; }
75 inline bool AutoScalingGroupHasBeenSet() const { return m_autoScalingGroupHasBeenSet; }
76 inline void SetAutoScalingGroup(const Aws::String& value) { m_autoScalingGroupHasBeenSet = true; m_autoScalingGroup = value; }
77 inline void SetAutoScalingGroup(Aws::String&& value) { m_autoScalingGroupHasBeenSet = true; m_autoScalingGroup = std::move(value); }
78 inline void SetAutoScalingGroup(const char* value) { m_autoScalingGroupHasBeenSet = true; m_autoScalingGroup.assign(value); }
79 inline AssetAttributes& WithAutoScalingGroup(const Aws::String& value) { SetAutoScalingGroup(value); return *this;}
80 inline AssetAttributes& WithAutoScalingGroup(Aws::String&& value) { SetAutoScalingGroup(std::move(value)); return *this;}
81 inline AssetAttributes& WithAutoScalingGroup(const char* value) { SetAutoScalingGroup(value); return *this;}
83
85
89 inline const Aws::String& GetAmiId() const{ return m_amiId; }
90 inline bool AmiIdHasBeenSet() const { return m_amiIdHasBeenSet; }
91 inline void SetAmiId(const Aws::String& value) { m_amiIdHasBeenSet = true; m_amiId = value; }
92 inline void SetAmiId(Aws::String&& value) { m_amiIdHasBeenSet = true; m_amiId = std::move(value); }
93 inline void SetAmiId(const char* value) { m_amiIdHasBeenSet = true; m_amiId.assign(value); }
94 inline AssetAttributes& WithAmiId(const Aws::String& value) { SetAmiId(value); return *this;}
95 inline AssetAttributes& WithAmiId(Aws::String&& value) { SetAmiId(std::move(value)); return *this;}
96 inline AssetAttributes& WithAmiId(const char* value) { SetAmiId(value); return *this;}
98
100
103 inline const Aws::String& GetHostname() const{ return m_hostname; }
104 inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; }
105 inline void SetHostname(const Aws::String& value) { m_hostnameHasBeenSet = true; m_hostname = value; }
106 inline void SetHostname(Aws::String&& value) { m_hostnameHasBeenSet = true; m_hostname = std::move(value); }
107 inline void SetHostname(const char* value) { m_hostnameHasBeenSet = true; m_hostname.assign(value); }
108 inline AssetAttributes& WithHostname(const Aws::String& value) { SetHostname(value); return *this;}
109 inline AssetAttributes& WithHostname(Aws::String&& value) { SetHostname(std::move(value)); return *this;}
110 inline AssetAttributes& WithHostname(const char* value) { SetHostname(value); return *this;}
112
114
118 inline const Aws::Vector<Aws::String>& GetIpv4Addresses() const{ return m_ipv4Addresses; }
119 inline bool Ipv4AddressesHasBeenSet() const { return m_ipv4AddressesHasBeenSet; }
120 inline void SetIpv4Addresses(const Aws::Vector<Aws::String>& value) { m_ipv4AddressesHasBeenSet = true; m_ipv4Addresses = value; }
121 inline void SetIpv4Addresses(Aws::Vector<Aws::String>&& value) { m_ipv4AddressesHasBeenSet = true; m_ipv4Addresses = std::move(value); }
122 inline AssetAttributes& WithIpv4Addresses(const Aws::Vector<Aws::String>& value) { SetIpv4Addresses(value); return *this;}
123 inline AssetAttributes& WithIpv4Addresses(Aws::Vector<Aws::String>&& value) { SetIpv4Addresses(std::move(value)); return *this;}
124 inline AssetAttributes& AddIpv4Addresses(const Aws::String& value) { m_ipv4AddressesHasBeenSet = true; m_ipv4Addresses.push_back(value); return *this; }
125 inline AssetAttributes& AddIpv4Addresses(Aws::String&& value) { m_ipv4AddressesHasBeenSet = true; m_ipv4Addresses.push_back(std::move(value)); return *this; }
126 inline AssetAttributes& AddIpv4Addresses(const char* value) { m_ipv4AddressesHasBeenSet = true; m_ipv4Addresses.push_back(value); return *this; }
128
130
133 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
134 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
135 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
136 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
137 inline AssetAttributes& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
138 inline AssetAttributes& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
139 inline AssetAttributes& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
140 inline AssetAttributes& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
142
144
148 inline const Aws::Vector<NetworkInterface>& GetNetworkInterfaces() const{ return m_networkInterfaces; }
149 inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; }
150 inline void SetNetworkInterfaces(const Aws::Vector<NetworkInterface>& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces = value; }
151 inline void SetNetworkInterfaces(Aws::Vector<NetworkInterface>&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces = std::move(value); }
154 inline AssetAttributes& AddNetworkInterfaces(const NetworkInterface& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(value); return *this; }
155 inline AssetAttributes& AddNetworkInterfaces(NetworkInterface&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(std::move(value)); return *this; }
157 private:
158
159 int m_schemaVersion;
160 bool m_schemaVersionHasBeenSet = false;
161
162 Aws::String m_agentId;
163 bool m_agentIdHasBeenSet = false;
164
165 Aws::String m_autoScalingGroup;
166 bool m_autoScalingGroupHasBeenSet = false;
167
168 Aws::String m_amiId;
169 bool m_amiIdHasBeenSet = false;
170
171 Aws::String m_hostname;
172 bool m_hostnameHasBeenSet = false;
173
174 Aws::Vector<Aws::String> m_ipv4Addresses;
175 bool m_ipv4AddressesHasBeenSet = false;
176
177 Aws::Vector<Tag> m_tags;
178 bool m_tagsHasBeenSet = false;
179
180 Aws::Vector<NetworkInterface> m_networkInterfaces;
181 bool m_networkInterfacesHasBeenSet = false;
182 };
183
184} // namespace Model
185} // namespace Inspector
186} // namespace Aws
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 & WithIpv4Addresses(const Aws::Vector< Aws::String > &value)
AssetAttributes & WithAmiId(const Aws::String &value)
AssetAttributes & WithAutoScalingGroup(const Aws::String &value)
void SetAmiId(const Aws::String &value)
AssetAttributes & WithTags(Aws::Vector< Tag > &&value)
AssetAttributes & AddTags(Tag &&value)
const Aws::String & GetAgentId() const
void SetAutoScalingGroup(Aws::String &&value)
AssetAttributes & WithAmiId(const char *value)
void SetAutoScalingGroup(const char *value)
AssetAttributes & AddTags(const Tag &value)
void SetIpv4Addresses(Aws::Vector< Aws::String > &&value)
AWS_INSPECTOR_API AssetAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
AssetAttributes & WithAgentId(Aws::String &&value)
void SetTags(Aws::Vector< Tag > &&value)
AssetAttributes & AddIpv4Addresses(const char *value)
AssetAttributes & WithHostname(Aws::String &&value)
void SetNetworkInterfaces(const Aws::Vector< NetworkInterface > &value)
AssetAttributes & WithHostname(const char *value)
AssetAttributes & WithAgentId(const Aws::String &value)
AssetAttributes & WithAutoScalingGroup(Aws::String &&value)
void SetNetworkInterfaces(Aws::Vector< NetworkInterface > &&value)
void SetAgentId(const Aws::String &value)
AssetAttributes & WithNetworkInterfaces(Aws::Vector< NetworkInterface > &&value)
AssetAttributes & WithTags(const Aws::Vector< Tag > &value)
void SetHostname(const Aws::String &value)
void SetAgentId(Aws::String &&value)
void SetIpv4Addresses(const Aws::Vector< Aws::String > &value)
AssetAttributes & AddIpv4Addresses(const Aws::String &value)
AssetAttributes & AddIpv4Addresses(Aws::String &&value)
AssetAttributes & AddNetworkInterfaces(const NetworkInterface &value)
const Aws::String & GetHostname() const
void SetHostname(Aws::String &&value)
const Aws::String & GetAmiId() const
AssetAttributes & WithIpv4Addresses(Aws::Vector< Aws::String > &&value)
void SetAutoScalingGroup(const Aws::String &value)
const Aws::Vector< NetworkInterface > & GetNetworkInterfaces() const
AssetAttributes & WithHostname(const Aws::String &value)
AssetAttributes & WithAmiId(Aws::String &&value)
AssetAttributes & WithAutoScalingGroup(const char *value)
AssetAttributes & WithAgentId(const char *value)
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetIpv4Addresses() const
void SetTags(const Aws::Vector< Tag > &value)
AssetAttributes & WithNetworkInterfaces(const Aws::Vector< NetworkInterface > &value)
AssetAttributes & AddNetworkInterfaces(NetworkInterface &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue