AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceDetails.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/guardduty/model/IamInstanceProfile.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/guardduty/model/NetworkInterface.h>
12#include <aws/guardduty/model/ProductCode.h>
13#include <aws/guardduty/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace GuardDuty
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_GUARDDUTY_API InstanceDetails();
41 AWS_GUARDDUTY_API InstanceDetails(Aws::Utils::Json::JsonView jsonValue);
43 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
51 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
52 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
53 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
54 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
55 inline InstanceDetails& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
56 inline InstanceDetails& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
57 inline InstanceDetails& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
59
61
64 inline const IamInstanceProfile& GetIamInstanceProfile() const{ return m_iamInstanceProfile; }
65 inline bool IamInstanceProfileHasBeenSet() const { return m_iamInstanceProfileHasBeenSet; }
66 inline void SetIamInstanceProfile(const IamInstanceProfile& value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile = value; }
67 inline void SetIamInstanceProfile(IamInstanceProfile&& value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile = std::move(value); }
69 inline InstanceDetails& WithIamInstanceProfile(IamInstanceProfile&& value) { SetIamInstanceProfile(std::move(value)); return *this;}
71
73
76 inline const Aws::String& GetImageDescription() const{ return m_imageDescription; }
77 inline bool ImageDescriptionHasBeenSet() const { return m_imageDescriptionHasBeenSet; }
78 inline void SetImageDescription(const Aws::String& value) { m_imageDescriptionHasBeenSet = true; m_imageDescription = value; }
79 inline void SetImageDescription(Aws::String&& value) { m_imageDescriptionHasBeenSet = true; m_imageDescription = std::move(value); }
80 inline void SetImageDescription(const char* value) { m_imageDescriptionHasBeenSet = true; m_imageDescription.assign(value); }
81 inline InstanceDetails& WithImageDescription(const Aws::String& value) { SetImageDescription(value); return *this;}
82 inline InstanceDetails& WithImageDescription(Aws::String&& value) { SetImageDescription(std::move(value)); return *this;}
83 inline InstanceDetails& WithImageDescription(const char* value) { SetImageDescription(value); return *this;}
85
87
90 inline const Aws::String& GetImageId() const{ return m_imageId; }
91 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
92 inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
93 inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
94 inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
95 inline InstanceDetails& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
96 inline InstanceDetails& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
97 inline InstanceDetails& WithImageId(const char* value) { SetImageId(value); return *this;}
99
101
104 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
105 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
106 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
107 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
108 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
109 inline InstanceDetails& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
110 inline InstanceDetails& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
111 inline InstanceDetails& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
113
115
118 inline const Aws::String& GetInstanceState() const{ return m_instanceState; }
119 inline bool InstanceStateHasBeenSet() const { return m_instanceStateHasBeenSet; }
120 inline void SetInstanceState(const Aws::String& value) { m_instanceStateHasBeenSet = true; m_instanceState = value; }
121 inline void SetInstanceState(Aws::String&& value) { m_instanceStateHasBeenSet = true; m_instanceState = std::move(value); }
122 inline void SetInstanceState(const char* value) { m_instanceStateHasBeenSet = true; m_instanceState.assign(value); }
123 inline InstanceDetails& WithInstanceState(const Aws::String& value) { SetInstanceState(value); return *this;}
124 inline InstanceDetails& WithInstanceState(Aws::String&& value) { SetInstanceState(std::move(value)); return *this;}
125 inline InstanceDetails& WithInstanceState(const char* value) { SetInstanceState(value); return *this;}
127
129
132 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
133 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
134 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
135 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
136 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
137 inline InstanceDetails& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
138 inline InstanceDetails& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
139 inline InstanceDetails& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
141
143
147 inline const Aws::String& GetOutpostArn() const{ return m_outpostArn; }
148 inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
149 inline void SetOutpostArn(const Aws::String& value) { m_outpostArnHasBeenSet = true; m_outpostArn = value; }
150 inline void SetOutpostArn(Aws::String&& value) { m_outpostArnHasBeenSet = true; m_outpostArn = std::move(value); }
151 inline void SetOutpostArn(const char* value) { m_outpostArnHasBeenSet = true; m_outpostArn.assign(value); }
152 inline InstanceDetails& WithOutpostArn(const Aws::String& value) { SetOutpostArn(value); return *this;}
153 inline InstanceDetails& WithOutpostArn(Aws::String&& value) { SetOutpostArn(std::move(value)); return *this;}
154 inline InstanceDetails& WithOutpostArn(const char* value) { SetOutpostArn(value); return *this;}
156
158
161 inline const Aws::String& GetLaunchTime() const{ return m_launchTime; }
162 inline bool LaunchTimeHasBeenSet() const { return m_launchTimeHasBeenSet; }
163 inline void SetLaunchTime(const Aws::String& value) { m_launchTimeHasBeenSet = true; m_launchTime = value; }
164 inline void SetLaunchTime(Aws::String&& value) { m_launchTimeHasBeenSet = true; m_launchTime = std::move(value); }
165 inline void SetLaunchTime(const char* value) { m_launchTimeHasBeenSet = true; m_launchTime.assign(value); }
166 inline InstanceDetails& WithLaunchTime(const Aws::String& value) { SetLaunchTime(value); return *this;}
167 inline InstanceDetails& WithLaunchTime(Aws::String&& value) { SetLaunchTime(std::move(value)); return *this;}
168 inline InstanceDetails& WithLaunchTime(const char* value) { SetLaunchTime(value); return *this;}
170
172
175 inline const Aws::Vector<NetworkInterface>& GetNetworkInterfaces() const{ return m_networkInterfaces; }
176 inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; }
177 inline void SetNetworkInterfaces(const Aws::Vector<NetworkInterface>& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces = value; }
178 inline void SetNetworkInterfaces(Aws::Vector<NetworkInterface>&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces = std::move(value); }
181 inline InstanceDetails& AddNetworkInterfaces(const NetworkInterface& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(value); return *this; }
182 inline InstanceDetails& AddNetworkInterfaces(NetworkInterface&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(std::move(value)); return *this; }
184
186
189 inline const Aws::String& GetPlatform() const{ return m_platform; }
190 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
191 inline void SetPlatform(const Aws::String& value) { m_platformHasBeenSet = true; m_platform = value; }
192 inline void SetPlatform(Aws::String&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
193 inline void SetPlatform(const char* value) { m_platformHasBeenSet = true; m_platform.assign(value); }
194 inline InstanceDetails& WithPlatform(const Aws::String& value) { SetPlatform(value); return *this;}
195 inline InstanceDetails& WithPlatform(Aws::String&& value) { SetPlatform(std::move(value)); return *this;}
196 inline InstanceDetails& WithPlatform(const char* value) { SetPlatform(value); return *this;}
198
200
203 inline const Aws::Vector<ProductCode>& GetProductCodes() const{ return m_productCodes; }
204 inline bool ProductCodesHasBeenSet() const { return m_productCodesHasBeenSet; }
205 inline void SetProductCodes(const Aws::Vector<ProductCode>& value) { m_productCodesHasBeenSet = true; m_productCodes = value; }
206 inline void SetProductCodes(Aws::Vector<ProductCode>&& value) { m_productCodesHasBeenSet = true; m_productCodes = std::move(value); }
207 inline InstanceDetails& WithProductCodes(const Aws::Vector<ProductCode>& value) { SetProductCodes(value); return *this;}
208 inline InstanceDetails& WithProductCodes(Aws::Vector<ProductCode>&& value) { SetProductCodes(std::move(value)); return *this;}
209 inline InstanceDetails& AddProductCodes(const ProductCode& value) { m_productCodesHasBeenSet = true; m_productCodes.push_back(value); return *this; }
210 inline InstanceDetails& AddProductCodes(ProductCode&& value) { m_productCodesHasBeenSet = true; m_productCodes.push_back(std::move(value)); return *this; }
212
214
217 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
218 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
219 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
220 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
221 inline InstanceDetails& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
222 inline InstanceDetails& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
223 inline InstanceDetails& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
224 inline InstanceDetails& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
226 private:
227
228 Aws::String m_availabilityZone;
229 bool m_availabilityZoneHasBeenSet = false;
230
231 IamInstanceProfile m_iamInstanceProfile;
232 bool m_iamInstanceProfileHasBeenSet = false;
233
234 Aws::String m_imageDescription;
235 bool m_imageDescriptionHasBeenSet = false;
236
237 Aws::String m_imageId;
238 bool m_imageIdHasBeenSet = false;
239
240 Aws::String m_instanceId;
241 bool m_instanceIdHasBeenSet = false;
242
243 Aws::String m_instanceState;
244 bool m_instanceStateHasBeenSet = false;
245
246 Aws::String m_instanceType;
247 bool m_instanceTypeHasBeenSet = false;
248
249 Aws::String m_outpostArn;
250 bool m_outpostArnHasBeenSet = false;
251
252 Aws::String m_launchTime;
253 bool m_launchTimeHasBeenSet = false;
254
255 Aws::Vector<NetworkInterface> m_networkInterfaces;
256 bool m_networkInterfacesHasBeenSet = false;
257
258 Aws::String m_platform;
259 bool m_platformHasBeenSet = false;
260
261 Aws::Vector<ProductCode> m_productCodes;
262 bool m_productCodesHasBeenSet = false;
263
264 Aws::Vector<Tag> m_tags;
265 bool m_tagsHasBeenSet = false;
266 };
267
268} // namespace Model
269} // namespace GuardDuty
270} // namespace Aws
void SetIamInstanceProfile(const IamInstanceProfile &value)
InstanceDetails & WithInstanceId(const char *value)
AWS_GUARDDUTY_API InstanceDetails(Aws::Utils::Json::JsonView jsonValue)
void SetImageId(const Aws::String &value)
InstanceDetails & WithImageId(Aws::String &&value)
void SetNetworkInterfaces(const Aws::Vector< NetworkInterface > &value)
InstanceDetails & AddNetworkInterfaces(NetworkInterface &&value)
void SetOutpostArn(Aws::String &&value)
InstanceDetails & AddTags(Tag &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetInstanceType() const
InstanceDetails & WithTags(const Aws::Vector< Tag > &value)
InstanceDetails & WithProductCodes(const Aws::Vector< ProductCode > &value)
void SetInstanceState(Aws::String &&value)
void SetNetworkInterfaces(Aws::Vector< NetworkInterface > &&value)
InstanceDetails & WithAvailabilityZone(const Aws::String &value)
void SetOutpostArn(const Aws::String &value)
InstanceDetails & WithImageDescription(const char *value)
const Aws::Vector< NetworkInterface > & GetNetworkInterfaces() const
const Aws::String & GetOutpostArn() const
const Aws::Vector< Tag > & GetTags() const
InstanceDetails & WithInstanceType(const char *value)
void SetTags(const Aws::Vector< Tag > &value)
InstanceDetails & WithLaunchTime(const char *value)
InstanceDetails & WithAvailabilityZone(Aws::String &&value)
InstanceDetails & WithInstanceId(const Aws::String &value)
InstanceDetails & AddNetworkInterfaces(const NetworkInterface &value)
void SetImageId(Aws::String &&value)
InstanceDetails & WithIamInstanceProfile(const IamInstanceProfile &value)
InstanceDetails & WithInstanceId(Aws::String &&value)
void SetLaunchTime(const Aws::String &value)
InstanceDetails & WithNetworkInterfaces(Aws::Vector< NetworkInterface > &&value)
InstanceDetails & WithOutpostArn(const Aws::String &value)
InstanceDetails & WithPlatform(const Aws::String &value)
void SetAvailabilityZone(const char *value)
const Aws::String & GetInstanceState() const
void SetPlatform(const Aws::String &value)
void SetInstanceId(const Aws::String &value)
void SetInstanceState(const Aws::String &value)
void SetImageDescription(const Aws::String &value)
InstanceDetails & WithLaunchTime(const Aws::String &value)
void SetAvailabilityZone(Aws::String &&value)
InstanceDetails & WithOutpostArn(Aws::String &&value)
InstanceDetails & WithImageId(const Aws::String &value)
AWS_GUARDDUTY_API InstanceDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetImageDescription(const char *value)
InstanceDetails & WithInstanceState(Aws::String &&value)
InstanceDetails & WithPlatform(const char *value)
InstanceDetails & WithLaunchTime(Aws::String &&value)
void SetLaunchTime(Aws::String &&value)
InstanceDetails & WithInstanceState(const Aws::String &value)
InstanceDetails & AddProductCodes(const ProductCode &value)
InstanceDetails & WithInstanceType(const Aws::String &value)
InstanceDetails & WithIamInstanceProfile(IamInstanceProfile &&value)
InstanceDetails & WithAvailabilityZone(const char *value)
const Aws::String & GetInstanceId() const
const Aws::Vector< ProductCode > & GetProductCodes() const
void SetProductCodes(Aws::Vector< ProductCode > &&value)
InstanceDetails & WithInstanceState(const char *value)
const Aws::String & GetLaunchTime() const
InstanceDetails & AddProductCodes(ProductCode &&value)
void SetTags(Aws::Vector< Tag > &&value)
const Aws::String & GetImageDescription() const
InstanceDetails & AddTags(const Tag &value)
InstanceDetails & WithInstanceType(Aws::String &&value)
void SetInstanceId(Aws::String &&value)
const Aws::String & GetAvailabilityZone() const
const Aws::String & GetPlatform() const
InstanceDetails & WithImageDescription(const Aws::String &value)
void SetImageDescription(Aws::String &&value)
void SetAvailabilityZone(const Aws::String &value)
void SetProductCodes(const Aws::Vector< ProductCode > &value)
void SetIamInstanceProfile(IamInstanceProfile &&value)
void SetInstanceType(Aws::String &&value)
InstanceDetails & WithProductCodes(Aws::Vector< ProductCode > &&value)
InstanceDetails & WithOutpostArn(const char *value)
InstanceDetails & WithTags(Aws::Vector< Tag > &&value)
void SetPlatform(Aws::String &&value)
InstanceDetails & WithNetworkInterfaces(const Aws::Vector< NetworkInterface > &value)
InstanceDetails & WithImageDescription(Aws::String &&value)
InstanceDetails & WithPlatform(Aws::String &&value)
const IamInstanceProfile & GetIamInstanceProfile() const
InstanceDetails & WithImageId(const char *value)
void SetInstanceType(const Aws::String &value)
const Aws::String & GetImageId() 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