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/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();
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 inline void SetIamInstanceProfileArn(const Aws::String& value) { m_iamInstanceProfileArnHasBeenSet = true; m_iamInstanceProfileArn = value; }
50 inline void SetIamInstanceProfileArn(Aws::String&& value) { m_iamInstanceProfileArnHasBeenSet = true; m_iamInstanceProfileArn = std::move(value); }
51 inline void SetIamInstanceProfileArn(const char* value) { m_iamInstanceProfileArnHasBeenSet = true; m_iamInstanceProfileArn.assign(value); }
53 inline AwsEc2InstanceDetails& WithIamInstanceProfileArn(Aws::String&& value) { SetIamInstanceProfileArn(std::move(value)); return *this;}
54 inline AwsEc2InstanceDetails& WithIamInstanceProfileArn(const char* value) { SetIamInstanceProfileArn(value); return *this;}
56
58
61 inline const Aws::String& GetImageId() const{ return m_imageId; }
62 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
63 inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
64 inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
65 inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
66 inline AwsEc2InstanceDetails& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
67 inline AwsEc2InstanceDetails& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
68 inline AwsEc2InstanceDetails& WithImageId(const char* value) { SetImageId(value); return *this;}
70
72
75 inline const Aws::Vector<Aws::String>& GetIpV4Addresses() const{ return m_ipV4Addresses; }
76 inline bool IpV4AddressesHasBeenSet() const { return m_ipV4AddressesHasBeenSet; }
77 inline void SetIpV4Addresses(const Aws::Vector<Aws::String>& value) { m_ipV4AddressesHasBeenSet = true; m_ipV4Addresses = value; }
78 inline void SetIpV4Addresses(Aws::Vector<Aws::String>&& value) { m_ipV4AddressesHasBeenSet = true; m_ipV4Addresses = std::move(value); }
80 inline AwsEc2InstanceDetails& WithIpV4Addresses(Aws::Vector<Aws::String>&& value) { SetIpV4Addresses(std::move(value)); return *this;}
81 inline AwsEc2InstanceDetails& AddIpV4Addresses(const Aws::String& value) { m_ipV4AddressesHasBeenSet = true; m_ipV4Addresses.push_back(value); return *this; }
82 inline AwsEc2InstanceDetails& AddIpV4Addresses(Aws::String&& value) { m_ipV4AddressesHasBeenSet = true; m_ipV4Addresses.push_back(std::move(value)); return *this; }
83 inline AwsEc2InstanceDetails& AddIpV4Addresses(const char* value) { m_ipV4AddressesHasBeenSet = true; m_ipV4Addresses.push_back(value); return *this; }
85
87
90 inline const Aws::Vector<Aws::String>& GetIpV6Addresses() const{ return m_ipV6Addresses; }
91 inline bool IpV6AddressesHasBeenSet() const { return m_ipV6AddressesHasBeenSet; }
92 inline void SetIpV6Addresses(const Aws::Vector<Aws::String>& value) { m_ipV6AddressesHasBeenSet = true; m_ipV6Addresses = value; }
93 inline void SetIpV6Addresses(Aws::Vector<Aws::String>&& value) { m_ipV6AddressesHasBeenSet = true; m_ipV6Addresses = std::move(value); }
95 inline AwsEc2InstanceDetails& WithIpV6Addresses(Aws::Vector<Aws::String>&& value) { SetIpV6Addresses(std::move(value)); return *this;}
96 inline AwsEc2InstanceDetails& AddIpV6Addresses(const Aws::String& value) { m_ipV6AddressesHasBeenSet = true; m_ipV6Addresses.push_back(value); return *this; }
97 inline AwsEc2InstanceDetails& AddIpV6Addresses(Aws::String&& value) { m_ipV6AddressesHasBeenSet = true; m_ipV6Addresses.push_back(std::move(value)); return *this; }
98 inline AwsEc2InstanceDetails& AddIpV6Addresses(const char* value) { m_ipV6AddressesHasBeenSet = true; m_ipV6Addresses.push_back(value); return *this; }
100
102
105 inline const Aws::String& GetKeyName() const{ return m_keyName; }
106 inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; }
107 inline void SetKeyName(const Aws::String& value) { m_keyNameHasBeenSet = true; m_keyName = value; }
108 inline void SetKeyName(Aws::String&& value) { m_keyNameHasBeenSet = true; m_keyName = std::move(value); }
109 inline void SetKeyName(const char* value) { m_keyNameHasBeenSet = true; m_keyName.assign(value); }
110 inline AwsEc2InstanceDetails& WithKeyName(const Aws::String& value) { SetKeyName(value); return *this;}
111 inline AwsEc2InstanceDetails& WithKeyName(Aws::String&& value) { SetKeyName(std::move(value)); return *this;}
112 inline AwsEc2InstanceDetails& WithKeyName(const char* value) { SetKeyName(value); return *this;}
114
116
119 inline const Aws::Utils::DateTime& GetLaunchedAt() const{ return m_launchedAt; }
120 inline bool LaunchedAtHasBeenSet() const { return m_launchedAtHasBeenSet; }
121 inline void SetLaunchedAt(const Aws::Utils::DateTime& value) { m_launchedAtHasBeenSet = true; m_launchedAt = value; }
122 inline void SetLaunchedAt(Aws::Utils::DateTime&& value) { m_launchedAtHasBeenSet = true; m_launchedAt = std::move(value); }
123 inline AwsEc2InstanceDetails& WithLaunchedAt(const Aws::Utils::DateTime& value) { SetLaunchedAt(value); return *this;}
124 inline AwsEc2InstanceDetails& WithLaunchedAt(Aws::Utils::DateTime&& value) { SetLaunchedAt(std::move(value)); return *this;}
126
128
131 inline const Aws::String& GetPlatform() const{ return m_platform; }
132 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
133 inline void SetPlatform(const Aws::String& value) { m_platformHasBeenSet = true; m_platform = value; }
134 inline void SetPlatform(Aws::String&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
135 inline void SetPlatform(const char* value) { m_platformHasBeenSet = true; m_platform.assign(value); }
136 inline AwsEc2InstanceDetails& WithPlatform(const Aws::String& value) { SetPlatform(value); return *this;}
137 inline AwsEc2InstanceDetails& WithPlatform(Aws::String&& value) { SetPlatform(std::move(value)); return *this;}
138 inline AwsEc2InstanceDetails& WithPlatform(const char* value) { SetPlatform(value); return *this;}
140
142
145 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
146 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
147 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
148 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
149 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
150 inline AwsEc2InstanceDetails& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
151 inline AwsEc2InstanceDetails& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
152 inline AwsEc2InstanceDetails& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
154
156
159 inline const Aws::String& GetType() const{ return m_type; }
160 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
161 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
162 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
163 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
164 inline AwsEc2InstanceDetails& WithType(const Aws::String& value) { SetType(value); return *this;}
165 inline AwsEc2InstanceDetails& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
166 inline AwsEc2InstanceDetails& WithType(const char* value) { SetType(value); return *this;}
168
170
173 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
174 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
175 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
176 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
177 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
178 inline AwsEc2InstanceDetails& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
179 inline AwsEc2InstanceDetails& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
180 inline AwsEc2InstanceDetails& WithVpcId(const char* value) { SetVpcId(value); return *this;}
182 private:
183
184 Aws::String m_iamInstanceProfileArn;
185 bool m_iamInstanceProfileArnHasBeenSet = false;
186
187 Aws::String m_imageId;
188 bool m_imageIdHasBeenSet = false;
189
190 Aws::Vector<Aws::String> m_ipV4Addresses;
191 bool m_ipV4AddressesHasBeenSet = false;
192
193 Aws::Vector<Aws::String> m_ipV6Addresses;
194 bool m_ipV6AddressesHasBeenSet = false;
195
196 Aws::String m_keyName;
197 bool m_keyNameHasBeenSet = false;
198
199 Aws::Utils::DateTime m_launchedAt;
200 bool m_launchedAtHasBeenSet = false;
201
202 Aws::String m_platform;
203 bool m_platformHasBeenSet = false;
204
205 Aws::String m_subnetId;
206 bool m_subnetIdHasBeenSet = false;
207
208 Aws::String m_type;
209 bool m_typeHasBeenSet = false;
210
211 Aws::String m_vpcId;
212 bool m_vpcIdHasBeenSet = false;
213 };
214
215} // namespace Model
216} // namespace Inspector2
217} // namespace Aws
AwsEc2InstanceDetails & WithImageId(const char *value)
AwsEc2InstanceDetails & AddIpV4Addresses(const Aws::String &value)
AwsEc2InstanceDetails & AddIpV4Addresses(Aws::String &&value)
AwsEc2InstanceDetails & WithVpcId(Aws::String &&value)
AwsEc2InstanceDetails & WithKeyName(const Aws::String &value)
AwsEc2InstanceDetails & WithIpV6Addresses(const Aws::Vector< Aws::String > &value)
AwsEc2InstanceDetails & AddIpV4Addresses(const char *value)
AwsEc2InstanceDetails & WithIpV4Addresses(const Aws::Vector< Aws::String > &value)
AwsEc2InstanceDetails & WithImageId(const Aws::String &value)
AwsEc2InstanceDetails & WithPlatform(Aws::String &&value)
AwsEc2InstanceDetails & WithIamInstanceProfileArn(const char *value)
AwsEc2InstanceDetails & WithKeyName(Aws::String &&value)
AwsEc2InstanceDetails & WithType(const Aws::String &value)
AwsEc2InstanceDetails & WithImageId(Aws::String &&value)
AwsEc2InstanceDetails & WithSubnetId(Aws::String &&value)
AwsEc2InstanceDetails & AddIpV6Addresses(Aws::String &&value)
void SetIamInstanceProfileArn(const Aws::String &value)
void SetLaunchedAt(Aws::Utils::DateTime &&value)
AWS_INSPECTOR2_API AwsEc2InstanceDetails(Aws::Utils::Json::JsonView jsonValue)
AwsEc2InstanceDetails & WithLaunchedAt(Aws::Utils::DateTime &&value)
AwsEc2InstanceDetails & WithPlatform(const char *value)
AwsEc2InstanceDetails & WithIamInstanceProfileArn(Aws::String &&value)
void SetIpV6Addresses(const Aws::Vector< Aws::String > &value)
const Aws::Utils::DateTime & GetLaunchedAt() const
AwsEc2InstanceDetails & WithSubnetId(const Aws::String &value)
AwsEc2InstanceDetails & WithLaunchedAt(const Aws::Utils::DateTime &value)
AwsEc2InstanceDetails & WithIpV6Addresses(Aws::Vector< Aws::String > &&value)
void SetIpV6Addresses(Aws::Vector< Aws::String > &&value)
void SetIpV4Addresses(const Aws::Vector< Aws::String > &value)
AwsEc2InstanceDetails & WithVpcId(const Aws::String &value)
AwsEc2InstanceDetails & WithType(Aws::String &&value)
AwsEc2InstanceDetails & WithIamInstanceProfileArn(const Aws::String &value)
AWS_INSPECTOR2_API AwsEc2InstanceDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsEc2InstanceDetails & AddIpV6Addresses(const char *value)
AwsEc2InstanceDetails & WithIpV4Addresses(Aws::Vector< Aws::String > &&value)
void SetLaunchedAt(const Aws::Utils::DateTime &value)
AwsEc2InstanceDetails & WithPlatform(const Aws::String &value)
AwsEc2InstanceDetails & WithType(const char *value)
AwsEc2InstanceDetails & AddIpV6Addresses(const Aws::String &value)
AwsEc2InstanceDetails & WithSubnetId(const char *value)
const Aws::Vector< Aws::String > & GetIpV4Addresses() const
AwsEc2InstanceDetails & WithKeyName(const char *value)
AwsEc2InstanceDetails & WithVpcId(const char *value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetIpV4Addresses(Aws::Vector< Aws::String > &&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