AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsEc2InstanceDetails.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Inspector2
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_INSPECTOR2_API AwsEc2InstanceDetails() = default;
40 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetIamInstanceProfileArn() const { return m_iamInstanceProfileArn; }
48 inline bool IamInstanceProfileArnHasBeenSet() const { return m_iamInstanceProfileArnHasBeenSet; }
49 template<typename IamInstanceProfileArnT = Aws::String>
50 void SetIamInstanceProfileArn(IamInstanceProfileArnT&& value) { m_iamInstanceProfileArnHasBeenSet = true; m_iamInstanceProfileArn = std::forward<IamInstanceProfileArnT>(value); }
51 template<typename IamInstanceProfileArnT = Aws::String>
52 AwsEc2InstanceDetails& WithIamInstanceProfileArn(IamInstanceProfileArnT&& value) { SetIamInstanceProfileArn(std::forward<IamInstanceProfileArnT>(value)); return *this;}
54
56
59 inline const Aws::String& GetImageId() const { return m_imageId; }
60 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
61 template<typename ImageIdT = Aws::String>
62 void SetImageId(ImageIdT&& value) { m_imageIdHasBeenSet = true; m_imageId = std::forward<ImageIdT>(value); }
63 template<typename ImageIdT = Aws::String>
64 AwsEc2InstanceDetails& WithImageId(ImageIdT&& value) { SetImageId(std::forward<ImageIdT>(value)); return *this;}
66
68
71 inline const Aws::Vector<Aws::String>& GetIpV4Addresses() const { return m_ipV4Addresses; }
72 inline bool IpV4AddressesHasBeenSet() const { return m_ipV4AddressesHasBeenSet; }
73 template<typename IpV4AddressesT = Aws::Vector<Aws::String>>
74 void SetIpV4Addresses(IpV4AddressesT&& value) { m_ipV4AddressesHasBeenSet = true; m_ipV4Addresses = std::forward<IpV4AddressesT>(value); }
75 template<typename IpV4AddressesT = Aws::Vector<Aws::String>>
76 AwsEc2InstanceDetails& WithIpV4Addresses(IpV4AddressesT&& value) { SetIpV4Addresses(std::forward<IpV4AddressesT>(value)); return *this;}
77 template<typename IpV4AddressesT = Aws::String>
78 AwsEc2InstanceDetails& AddIpV4Addresses(IpV4AddressesT&& value) { m_ipV4AddressesHasBeenSet = true; m_ipV4Addresses.emplace_back(std::forward<IpV4AddressesT>(value)); return *this; }
80
82
85 inline const Aws::Vector<Aws::String>& GetIpV6Addresses() const { return m_ipV6Addresses; }
86 inline bool IpV6AddressesHasBeenSet() const { return m_ipV6AddressesHasBeenSet; }
87 template<typename IpV6AddressesT = Aws::Vector<Aws::String>>
88 void SetIpV6Addresses(IpV6AddressesT&& value) { m_ipV6AddressesHasBeenSet = true; m_ipV6Addresses = std::forward<IpV6AddressesT>(value); }
89 template<typename IpV6AddressesT = Aws::Vector<Aws::String>>
90 AwsEc2InstanceDetails& WithIpV6Addresses(IpV6AddressesT&& value) { SetIpV6Addresses(std::forward<IpV6AddressesT>(value)); return *this;}
91 template<typename IpV6AddressesT = Aws::String>
92 AwsEc2InstanceDetails& AddIpV6Addresses(IpV6AddressesT&& value) { m_ipV6AddressesHasBeenSet = true; m_ipV6Addresses.emplace_back(std::forward<IpV6AddressesT>(value)); return *this; }
94
96
99 inline const Aws::String& GetKeyName() const { return m_keyName; }
100 inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; }
101 template<typename KeyNameT = Aws::String>
102 void SetKeyName(KeyNameT&& value) { m_keyNameHasBeenSet = true; m_keyName = std::forward<KeyNameT>(value); }
103 template<typename KeyNameT = Aws::String>
104 AwsEc2InstanceDetails& WithKeyName(KeyNameT&& value) { SetKeyName(std::forward<KeyNameT>(value)); return *this;}
106
108
111 inline const Aws::Utils::DateTime& GetLaunchedAt() const { return m_launchedAt; }
112 inline bool LaunchedAtHasBeenSet() const { return m_launchedAtHasBeenSet; }
113 template<typename LaunchedAtT = Aws::Utils::DateTime>
114 void SetLaunchedAt(LaunchedAtT&& value) { m_launchedAtHasBeenSet = true; m_launchedAt = std::forward<LaunchedAtT>(value); }
115 template<typename LaunchedAtT = Aws::Utils::DateTime>
116 AwsEc2InstanceDetails& WithLaunchedAt(LaunchedAtT&& value) { SetLaunchedAt(std::forward<LaunchedAtT>(value)); return *this;}
118
120
123 inline const Aws::String& GetPlatform() const { return m_platform; }
124 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
125 template<typename PlatformT = Aws::String>
126 void SetPlatform(PlatformT&& value) { m_platformHasBeenSet = true; m_platform = std::forward<PlatformT>(value); }
127 template<typename PlatformT = Aws::String>
128 AwsEc2InstanceDetails& WithPlatform(PlatformT&& value) { SetPlatform(std::forward<PlatformT>(value)); return *this;}
130
132
135 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
136 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
137 template<typename SubnetIdT = Aws::String>
138 void SetSubnetId(SubnetIdT&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::forward<SubnetIdT>(value); }
139 template<typename SubnetIdT = Aws::String>
140 AwsEc2InstanceDetails& WithSubnetId(SubnetIdT&& value) { SetSubnetId(std::forward<SubnetIdT>(value)); return *this;}
142
144
147 inline const Aws::String& GetType() const { return m_type; }
148 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
149 template<typename TypeT = Aws::String>
150 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
151 template<typename TypeT = Aws::String>
152 AwsEc2InstanceDetails& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
154
156
159 inline const Aws::String& GetVpcId() const { return m_vpcId; }
160 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
161 template<typename VpcIdT = Aws::String>
162 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
163 template<typename VpcIdT = Aws::String>
164 AwsEc2InstanceDetails& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
166 private:
167
168 Aws::String m_iamInstanceProfileArn;
169 bool m_iamInstanceProfileArnHasBeenSet = false;
170
171 Aws::String m_imageId;
172 bool m_imageIdHasBeenSet = false;
173
174 Aws::Vector<Aws::String> m_ipV4Addresses;
175 bool m_ipV4AddressesHasBeenSet = false;
176
177 Aws::Vector<Aws::String> m_ipV6Addresses;
178 bool m_ipV6AddressesHasBeenSet = false;
179
180 Aws::String m_keyName;
181 bool m_keyNameHasBeenSet = false;
182
183 Aws::Utils::DateTime m_launchedAt{};
184 bool m_launchedAtHasBeenSet = false;
185
186 Aws::String m_platform;
187 bool m_platformHasBeenSet = false;
188
189 Aws::String m_subnetId;
190 bool m_subnetIdHasBeenSet = false;
191
192 Aws::String m_type;
193 bool m_typeHasBeenSet = false;
194
195 Aws::String m_vpcId;
196 bool m_vpcIdHasBeenSet = false;
197 };
198
199} // namespace Model
200} // namespace Inspector2
201} // namespace Aws
AwsEc2InstanceDetails & WithLaunchedAt(LaunchedAtT &&value)
AwsEc2InstanceDetails & WithPlatform(PlatformT &&value)
AwsEc2InstanceDetails & WithIpV6Addresses(IpV6AddressesT &&value)
AwsEc2InstanceDetails & WithImageId(ImageIdT &&value)
AWS_INSPECTOR2_API AwsEc2InstanceDetails(Aws::Utils::Json::JsonView jsonValue)
AwsEc2InstanceDetails & AddIpV4Addresses(IpV4AddressesT &&value)
const Aws::Utils::DateTime & GetLaunchedAt() const
AWS_INSPECTOR2_API AwsEc2InstanceDetails()=default
AwsEc2InstanceDetails & WithType(TypeT &&value)
AwsEc2InstanceDetails & WithIamInstanceProfileArn(IamInstanceProfileArnT &&value)
AwsEc2InstanceDetails & WithSubnetId(SubnetIdT &&value)
AWS_INSPECTOR2_API AwsEc2InstanceDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetIamInstanceProfileArn(IamInstanceProfileArnT &&value)
AwsEc2InstanceDetails & WithKeyName(KeyNameT &&value)
AwsEc2InstanceDetails & AddIpV6Addresses(IpV6AddressesT &&value)
AwsEc2InstanceDetails & WithVpcId(VpcIdT &&value)
const Aws::Vector< Aws::String > & GetIpV4Addresses() const
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AwsEc2InstanceDetails & WithIpV4Addresses(IpV4AddressesT &&value)
const Aws::Vector< Aws::String > & GetIpV6Addresses() 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