AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsEc2InstanceDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityhub/model/AwsEc2InstanceMetadataOptions.h>
11#include <aws/securityhub/model/AwsEc2InstanceMonitoringDetails.h>
12#include <aws/securityhub/model/AwsEc2InstanceNetworkInterfacesDetails.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SecurityHub
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_SECURITYHUB_API AwsEc2InstanceDetails();
39 AWS_SECURITYHUB_API AwsEc2InstanceDetails(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetType() const{ return m_type; }
49 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
50 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
51 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
52 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
53 inline AwsEc2InstanceDetails& WithType(const Aws::String& value) { SetType(value); return *this;}
54 inline AwsEc2InstanceDetails& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
55 inline AwsEc2InstanceDetails& WithType(const char* value) { SetType(value); return *this;}
57
59
62 inline const Aws::String& GetImageId() const{ return m_imageId; }
63 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
64 inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
65 inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
66 inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
67 inline AwsEc2InstanceDetails& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
68 inline AwsEc2InstanceDetails& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
69 inline AwsEc2InstanceDetails& WithImageId(const char* value) { SetImageId(value); return *this;}
71
73
76 inline const Aws::Vector<Aws::String>& GetIpV4Addresses() const{ return m_ipV4Addresses; }
77 inline bool IpV4AddressesHasBeenSet() const { return m_ipV4AddressesHasBeenSet; }
78 inline void SetIpV4Addresses(const Aws::Vector<Aws::String>& value) { m_ipV4AddressesHasBeenSet = true; m_ipV4Addresses = value; }
79 inline void SetIpV4Addresses(Aws::Vector<Aws::String>&& value) { m_ipV4AddressesHasBeenSet = true; m_ipV4Addresses = std::move(value); }
81 inline AwsEc2InstanceDetails& WithIpV4Addresses(Aws::Vector<Aws::String>&& value) { SetIpV4Addresses(std::move(value)); return *this;}
82 inline AwsEc2InstanceDetails& AddIpV4Addresses(const Aws::String& value) { m_ipV4AddressesHasBeenSet = true; m_ipV4Addresses.push_back(value); return *this; }
83 inline AwsEc2InstanceDetails& AddIpV4Addresses(Aws::String&& value) { m_ipV4AddressesHasBeenSet = true; m_ipV4Addresses.push_back(std::move(value)); return *this; }
84 inline AwsEc2InstanceDetails& AddIpV4Addresses(const char* value) { m_ipV4AddressesHasBeenSet = true; m_ipV4Addresses.push_back(value); return *this; }
86
88
91 inline const Aws::Vector<Aws::String>& GetIpV6Addresses() const{ return m_ipV6Addresses; }
92 inline bool IpV6AddressesHasBeenSet() const { return m_ipV6AddressesHasBeenSet; }
93 inline void SetIpV6Addresses(const Aws::Vector<Aws::String>& value) { m_ipV6AddressesHasBeenSet = true; m_ipV6Addresses = value; }
94 inline void SetIpV6Addresses(Aws::Vector<Aws::String>&& value) { m_ipV6AddressesHasBeenSet = true; m_ipV6Addresses = std::move(value); }
96 inline AwsEc2InstanceDetails& WithIpV6Addresses(Aws::Vector<Aws::String>&& value) { SetIpV6Addresses(std::move(value)); return *this;}
97 inline AwsEc2InstanceDetails& AddIpV6Addresses(const Aws::String& value) { m_ipV6AddressesHasBeenSet = true; m_ipV6Addresses.push_back(value); return *this; }
98 inline AwsEc2InstanceDetails& AddIpV6Addresses(Aws::String&& value) { m_ipV6AddressesHasBeenSet = true; m_ipV6Addresses.push_back(std::move(value)); return *this; }
99 inline AwsEc2InstanceDetails& AddIpV6Addresses(const char* value) { m_ipV6AddressesHasBeenSet = true; m_ipV6Addresses.push_back(value); return *this; }
101
103
106 inline const Aws::String& GetKeyName() const{ return m_keyName; }
107 inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; }
108 inline void SetKeyName(const Aws::String& value) { m_keyNameHasBeenSet = true; m_keyName = value; }
109 inline void SetKeyName(Aws::String&& value) { m_keyNameHasBeenSet = true; m_keyName = std::move(value); }
110 inline void SetKeyName(const char* value) { m_keyNameHasBeenSet = true; m_keyName.assign(value); }
111 inline AwsEc2InstanceDetails& WithKeyName(const Aws::String& value) { SetKeyName(value); return *this;}
112 inline AwsEc2InstanceDetails& WithKeyName(Aws::String&& value) { SetKeyName(std::move(value)); return *this;}
113 inline AwsEc2InstanceDetails& WithKeyName(const char* value) { SetKeyName(value); return *this;}
115
117
120 inline const Aws::String& GetIamInstanceProfileArn() const{ return m_iamInstanceProfileArn; }
121 inline bool IamInstanceProfileArnHasBeenSet() const { return m_iamInstanceProfileArnHasBeenSet; }
122 inline void SetIamInstanceProfileArn(const Aws::String& value) { m_iamInstanceProfileArnHasBeenSet = true; m_iamInstanceProfileArn = value; }
123 inline void SetIamInstanceProfileArn(Aws::String&& value) { m_iamInstanceProfileArnHasBeenSet = true; m_iamInstanceProfileArn = std::move(value); }
124 inline void SetIamInstanceProfileArn(const char* value) { m_iamInstanceProfileArnHasBeenSet = true; m_iamInstanceProfileArn.assign(value); }
126 inline AwsEc2InstanceDetails& WithIamInstanceProfileArn(Aws::String&& value) { SetIamInstanceProfileArn(std::move(value)); return *this;}
127 inline AwsEc2InstanceDetails& WithIamInstanceProfileArn(const char* value) { SetIamInstanceProfileArn(value); return *this;}
129
131
134 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
135 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
136 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
137 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
138 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
139 inline AwsEc2InstanceDetails& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
140 inline AwsEc2InstanceDetails& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
141 inline AwsEc2InstanceDetails& WithVpcId(const char* value) { SetVpcId(value); return *this;}
143
145
148 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
149 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
150 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
151 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
152 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
153 inline AwsEc2InstanceDetails& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
154 inline AwsEc2InstanceDetails& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
155 inline AwsEc2InstanceDetails& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
157
159
176 inline const Aws::String& GetLaunchedAt() const{ return m_launchedAt; }
177 inline bool LaunchedAtHasBeenSet() const { return m_launchedAtHasBeenSet; }
178 inline void SetLaunchedAt(const Aws::String& value) { m_launchedAtHasBeenSet = true; m_launchedAt = value; }
179 inline void SetLaunchedAt(Aws::String&& value) { m_launchedAtHasBeenSet = true; m_launchedAt = std::move(value); }
180 inline void SetLaunchedAt(const char* value) { m_launchedAtHasBeenSet = true; m_launchedAt.assign(value); }
181 inline AwsEc2InstanceDetails& WithLaunchedAt(const Aws::String& value) { SetLaunchedAt(value); return *this;}
182 inline AwsEc2InstanceDetails& WithLaunchedAt(Aws::String&& value) { SetLaunchedAt(std::move(value)); return *this;}
183 inline AwsEc2InstanceDetails& WithLaunchedAt(const char* value) { SetLaunchedAt(value); return *this;}
185
187
192 inline const Aws::Vector<AwsEc2InstanceNetworkInterfacesDetails>& GetNetworkInterfaces() const{ return m_networkInterfaces; }
193 inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; }
194 inline void SetNetworkInterfaces(const Aws::Vector<AwsEc2InstanceNetworkInterfacesDetails>& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces = value; }
195 inline void SetNetworkInterfaces(Aws::Vector<AwsEc2InstanceNetworkInterfacesDetails>&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces = std::move(value); }
198 inline AwsEc2InstanceDetails& AddNetworkInterfaces(const AwsEc2InstanceNetworkInterfacesDetails& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(value); return *this; }
199 inline AwsEc2InstanceDetails& AddNetworkInterfaces(AwsEc2InstanceNetworkInterfacesDetails&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(std::move(value)); return *this; }
201
203
207 inline const Aws::String& GetVirtualizationType() const{ return m_virtualizationType; }
208 inline bool VirtualizationTypeHasBeenSet() const { return m_virtualizationTypeHasBeenSet; }
209 inline void SetVirtualizationType(const Aws::String& value) { m_virtualizationTypeHasBeenSet = true; m_virtualizationType = value; }
210 inline void SetVirtualizationType(Aws::String&& value) { m_virtualizationTypeHasBeenSet = true; m_virtualizationType = std::move(value); }
211 inline void SetVirtualizationType(const char* value) { m_virtualizationTypeHasBeenSet = true; m_virtualizationType.assign(value); }
213 inline AwsEc2InstanceDetails& WithVirtualizationType(Aws::String&& value) { SetVirtualizationType(std::move(value)); return *this;}
214 inline AwsEc2InstanceDetails& WithVirtualizationType(const char* value) { SetVirtualizationType(value); return *this;}
216
218
221 inline const AwsEc2InstanceMetadataOptions& GetMetadataOptions() const{ return m_metadataOptions; }
222 inline bool MetadataOptionsHasBeenSet() const { return m_metadataOptionsHasBeenSet; }
223 inline void SetMetadataOptions(const AwsEc2InstanceMetadataOptions& value) { m_metadataOptionsHasBeenSet = true; m_metadataOptions = value; }
224 inline void SetMetadataOptions(AwsEc2InstanceMetadataOptions&& value) { m_metadataOptionsHasBeenSet = true; m_metadataOptions = std::move(value); }
228
230
233 inline const AwsEc2InstanceMonitoringDetails& GetMonitoring() const{ return m_monitoring; }
234 inline bool MonitoringHasBeenSet() const { return m_monitoringHasBeenSet; }
235 inline void SetMonitoring(const AwsEc2InstanceMonitoringDetails& value) { m_monitoringHasBeenSet = true; m_monitoring = value; }
236 inline void SetMonitoring(AwsEc2InstanceMonitoringDetails&& value) { m_monitoringHasBeenSet = true; m_monitoring = std::move(value); }
238 inline AwsEc2InstanceDetails& WithMonitoring(AwsEc2InstanceMonitoringDetails&& value) { SetMonitoring(std::move(value)); return *this;}
240 private:
241
242 Aws::String m_type;
243 bool m_typeHasBeenSet = false;
244
245 Aws::String m_imageId;
246 bool m_imageIdHasBeenSet = false;
247
248 Aws::Vector<Aws::String> m_ipV4Addresses;
249 bool m_ipV4AddressesHasBeenSet = false;
250
251 Aws::Vector<Aws::String> m_ipV6Addresses;
252 bool m_ipV6AddressesHasBeenSet = false;
253
254 Aws::String m_keyName;
255 bool m_keyNameHasBeenSet = false;
256
257 Aws::String m_iamInstanceProfileArn;
258 bool m_iamInstanceProfileArnHasBeenSet = false;
259
260 Aws::String m_vpcId;
261 bool m_vpcIdHasBeenSet = false;
262
263 Aws::String m_subnetId;
264 bool m_subnetIdHasBeenSet = false;
265
266 Aws::String m_launchedAt;
267 bool m_launchedAtHasBeenSet = false;
268
270 bool m_networkInterfacesHasBeenSet = false;
271
272 Aws::String m_virtualizationType;
273 bool m_virtualizationTypeHasBeenSet = false;
274
275 AwsEc2InstanceMetadataOptions m_metadataOptions;
276 bool m_metadataOptionsHasBeenSet = false;
277
279 bool m_monitoringHasBeenSet = false;
280 };
281
282} // namespace Model
283} // namespace SecurityHub
284} // namespace Aws
AwsEc2InstanceDetails & WithSubnetId(Aws::String &&value)
void SetMetadataOptions(const AwsEc2InstanceMetadataOptions &value)
void SetMonitoring(const AwsEc2InstanceMonitoringDetails &value)
AwsEc2InstanceDetails & AddIpV4Addresses(const Aws::String &value)
AwsEc2InstanceDetails & WithSubnetId(const char *value)
void SetNetworkInterfaces(Aws::Vector< AwsEc2InstanceNetworkInterfacesDetails > &&value)
AwsEc2InstanceDetails & WithIamInstanceProfileArn(Aws::String &&value)
const AwsEc2InstanceMonitoringDetails & GetMonitoring() const
AwsEc2InstanceDetails & WithMetadataOptions(const AwsEc2InstanceMetadataOptions &value)
AwsEc2InstanceDetails & WithSubnetId(const Aws::String &value)
void SetNetworkInterfaces(const Aws::Vector< AwsEc2InstanceNetworkInterfacesDetails > &value)
AwsEc2InstanceDetails & WithVirtualizationType(const char *value)
AwsEc2InstanceDetails & AddIpV4Addresses(Aws::String &&value)
AwsEc2InstanceDetails & AddIpV4Addresses(const char *value)
void SetIamInstanceProfileArn(const Aws::String &value)
AwsEc2InstanceDetails & WithNetworkInterfaces(Aws::Vector< AwsEc2InstanceNetworkInterfacesDetails > &&value)
AwsEc2InstanceDetails & WithMetadataOptions(AwsEc2InstanceMetadataOptions &&value)
AwsEc2InstanceDetails & WithVpcId(Aws::String &&value)
AwsEc2InstanceDetails & AddIpV6Addresses(const Aws::String &value)
void SetIpV6Addresses(Aws::Vector< Aws::String > &&value)
AwsEc2InstanceDetails & WithMonitoring(const AwsEc2InstanceMonitoringDetails &value)
void SetMetadataOptions(AwsEc2InstanceMetadataOptions &&value)
void SetIpV4Addresses(const Aws::Vector< Aws::String > &value)
AwsEc2InstanceDetails & WithVirtualizationType(Aws::String &&value)
AwsEc2InstanceDetails & AddNetworkInterfaces(AwsEc2InstanceNetworkInterfacesDetails &&value)
AwsEc2InstanceDetails & WithIpV4Addresses(Aws::Vector< Aws::String > &&value)
AwsEc2InstanceDetails & AddIpV6Addresses(Aws::String &&value)
AwsEc2InstanceDetails & WithLaunchedAt(const char *value)
void SetMonitoring(AwsEc2InstanceMonitoringDetails &&value)
AwsEc2InstanceDetails & WithImageId(const char *value)
AwsEc2InstanceDetails & WithIamInstanceProfileArn(const char *value)
AwsEc2InstanceDetails & WithMonitoring(AwsEc2InstanceMonitoringDetails &&value)
AwsEc2InstanceDetails & WithKeyName(Aws::String &&value)
AwsEc2InstanceDetails & WithImageId(const Aws::String &value)
void SetIpV6Addresses(const Aws::Vector< Aws::String > &value)
AwsEc2InstanceDetails & WithIpV4Addresses(const Aws::Vector< Aws::String > &value)
AwsEc2InstanceDetails & WithVpcId(const Aws::String &value)
void SetIpV4Addresses(Aws::Vector< Aws::String > &&value)
AwsEc2InstanceDetails & WithVirtualizationType(const Aws::String &value)
AwsEc2InstanceDetails & AddIpV6Addresses(const char *value)
AwsEc2InstanceDetails & WithVpcId(const char *value)
AwsEc2InstanceDetails & WithKeyName(const Aws::String &value)
AwsEc2InstanceDetails & WithIamInstanceProfileArn(const Aws::String &value)
const Aws::Vector< Aws::String > & GetIpV4Addresses() const
AwsEc2InstanceDetails & WithNetworkInterfaces(const Aws::Vector< AwsEc2InstanceNetworkInterfacesDetails > &value)
AwsEc2InstanceDetails & WithType(const char *value)
AwsEc2InstanceDetails & WithKeyName(const char *value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsEc2InstanceDetails & WithImageId(Aws::String &&value)
AWS_SECURITYHUB_API AwsEc2InstanceDetails(Aws::Utils::Json::JsonView jsonValue)
const AwsEc2InstanceMetadataOptions & GetMetadataOptions() const
const Aws::Vector< AwsEc2InstanceNetworkInterfacesDetails > & GetNetworkInterfaces() const
AwsEc2InstanceDetails & WithIpV6Addresses(const Aws::Vector< Aws::String > &value)
AwsEc2InstanceDetails & WithType(Aws::String &&value)
const Aws::Vector< Aws::String > & GetIpV6Addresses() const
AwsEc2InstanceDetails & WithLaunchedAt(Aws::String &&value)
AwsEc2InstanceDetails & AddNetworkInterfaces(const AwsEc2InstanceNetworkInterfacesDetails &value)
AwsEc2InstanceDetails & WithIpV6Addresses(Aws::Vector< Aws::String > &&value)
AwsEc2InstanceDetails & WithLaunchedAt(const Aws::String &value)
AWS_SECURITYHUB_API AwsEc2InstanceDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsEc2InstanceDetails & WithType(const Aws::String &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