AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsAutoScalingLaunchConfigurationDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/securityhub/model/AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails.h>
11#include <aws/securityhub/model/AwsAutoScalingLaunchConfigurationMetadataOptions.h>
12#include <aws/securityhub/model/AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails.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 AwsAutoScalingLaunchConfigurationDetails() = default;
41 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline bool GetAssociatePublicIpAddress() const { return m_associatePublicIpAddress; }
50 inline bool AssociatePublicIpAddressHasBeenSet() const { return m_associatePublicIpAddressHasBeenSet; }
51 inline void SetAssociatePublicIpAddress(bool value) { m_associatePublicIpAddressHasBeenSet = true; m_associatePublicIpAddress = value; }
54
56
60 inline bool BlockDeviceMappingsHasBeenSet() const { return m_blockDeviceMappingsHasBeenSet; }
61 template<typename BlockDeviceMappingsT = Aws::Vector<AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails>>
62 void SetBlockDeviceMappings(BlockDeviceMappingsT&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings = std::forward<BlockDeviceMappingsT>(value); }
63 template<typename BlockDeviceMappingsT = Aws::Vector<AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails>>
64 AwsAutoScalingLaunchConfigurationDetails& WithBlockDeviceMappings(BlockDeviceMappingsT&& value) { SetBlockDeviceMappings(std::forward<BlockDeviceMappingsT>(value)); return *this;}
65 template<typename BlockDeviceMappingsT = AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails>
66 AwsAutoScalingLaunchConfigurationDetails& AddBlockDeviceMappings(BlockDeviceMappingsT&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.emplace_back(std::forward<BlockDeviceMappingsT>(value)); return *this; }
68
70
74 inline const Aws::String& GetClassicLinkVpcId() const { return m_classicLinkVpcId; }
75 inline bool ClassicLinkVpcIdHasBeenSet() const { return m_classicLinkVpcIdHasBeenSet; }
76 template<typename ClassicLinkVpcIdT = Aws::String>
77 void SetClassicLinkVpcId(ClassicLinkVpcIdT&& value) { m_classicLinkVpcIdHasBeenSet = true; m_classicLinkVpcId = std::forward<ClassicLinkVpcIdT>(value); }
78 template<typename ClassicLinkVpcIdT = Aws::String>
79 AwsAutoScalingLaunchConfigurationDetails& WithClassicLinkVpcId(ClassicLinkVpcIdT&& value) { SetClassicLinkVpcId(std::forward<ClassicLinkVpcIdT>(value)); return *this;}
81
83
87 inline const Aws::Vector<Aws::String>& GetClassicLinkVpcSecurityGroups() const { return m_classicLinkVpcSecurityGroups; }
88 inline bool ClassicLinkVpcSecurityGroupsHasBeenSet() const { return m_classicLinkVpcSecurityGroupsHasBeenSet; }
89 template<typename ClassicLinkVpcSecurityGroupsT = Aws::Vector<Aws::String>>
90 void SetClassicLinkVpcSecurityGroups(ClassicLinkVpcSecurityGroupsT&& value) { m_classicLinkVpcSecurityGroupsHasBeenSet = true; m_classicLinkVpcSecurityGroups = std::forward<ClassicLinkVpcSecurityGroupsT>(value); }
91 template<typename ClassicLinkVpcSecurityGroupsT = Aws::Vector<Aws::String>>
92 AwsAutoScalingLaunchConfigurationDetails& WithClassicLinkVpcSecurityGroups(ClassicLinkVpcSecurityGroupsT&& value) { SetClassicLinkVpcSecurityGroups(std::forward<ClassicLinkVpcSecurityGroupsT>(value)); return *this;}
93 template<typename ClassicLinkVpcSecurityGroupsT = Aws::String>
94 AwsAutoScalingLaunchConfigurationDetails& AddClassicLinkVpcSecurityGroups(ClassicLinkVpcSecurityGroupsT&& value) { m_classicLinkVpcSecurityGroupsHasBeenSet = true; m_classicLinkVpcSecurityGroups.emplace_back(std::forward<ClassicLinkVpcSecurityGroupsT>(value)); return *this; }
96
98
104 inline const Aws::String& GetCreatedTime() const { return m_createdTime; }
105 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
106 template<typename CreatedTimeT = Aws::String>
107 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
108 template<typename CreatedTimeT = Aws::String>
109 AwsAutoScalingLaunchConfigurationDetails& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
111
113
116 inline bool GetEbsOptimized() const { return m_ebsOptimized; }
117 inline bool EbsOptimizedHasBeenSet() const { return m_ebsOptimizedHasBeenSet; }
118 inline void SetEbsOptimized(bool value) { m_ebsOptimizedHasBeenSet = true; m_ebsOptimized = value; }
121
123
127 inline const Aws::String& GetIamInstanceProfile() const { return m_iamInstanceProfile; }
128 inline bool IamInstanceProfileHasBeenSet() const { return m_iamInstanceProfileHasBeenSet; }
129 template<typename IamInstanceProfileT = Aws::String>
130 void SetIamInstanceProfile(IamInstanceProfileT&& value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile = std::forward<IamInstanceProfileT>(value); }
131 template<typename IamInstanceProfileT = Aws::String>
132 AwsAutoScalingLaunchConfigurationDetails& WithIamInstanceProfile(IamInstanceProfileT&& value) { SetIamInstanceProfile(std::forward<IamInstanceProfileT>(value)); return *this;}
134
136
140 inline const Aws::String& GetImageId() const { return m_imageId; }
141 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
142 template<typename ImageIdT = Aws::String>
143 void SetImageId(ImageIdT&& value) { m_imageIdHasBeenSet = true; m_imageId = std::forward<ImageIdT>(value); }
144 template<typename ImageIdT = Aws::String>
145 AwsAutoScalingLaunchConfigurationDetails& WithImageId(ImageIdT&& value) { SetImageId(std::forward<ImageIdT>(value)); return *this;}
147
149
152 inline const AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails& GetInstanceMonitoring() const { return m_instanceMonitoring; }
153 inline bool InstanceMonitoringHasBeenSet() const { return m_instanceMonitoringHasBeenSet; }
154 template<typename InstanceMonitoringT = AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails>
155 void SetInstanceMonitoring(InstanceMonitoringT&& value) { m_instanceMonitoringHasBeenSet = true; m_instanceMonitoring = std::forward<InstanceMonitoringT>(value); }
156 template<typename InstanceMonitoringT = AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails>
157 AwsAutoScalingLaunchConfigurationDetails& WithInstanceMonitoring(InstanceMonitoringT&& value) { SetInstanceMonitoring(std::forward<InstanceMonitoringT>(value)); return *this;}
159
161
164 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
165 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
166 template<typename InstanceTypeT = Aws::String>
167 void SetInstanceType(InstanceTypeT&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::forward<InstanceTypeT>(value); }
168 template<typename InstanceTypeT = Aws::String>
169 AwsAutoScalingLaunchConfigurationDetails& WithInstanceType(InstanceTypeT&& value) { SetInstanceType(std::forward<InstanceTypeT>(value)); return *this;}
171
173
176 inline const Aws::String& GetKernelId() const { return m_kernelId; }
177 inline bool KernelIdHasBeenSet() const { return m_kernelIdHasBeenSet; }
178 template<typename KernelIdT = Aws::String>
179 void SetKernelId(KernelIdT&& value) { m_kernelIdHasBeenSet = true; m_kernelId = std::forward<KernelIdT>(value); }
180 template<typename KernelIdT = Aws::String>
181 AwsAutoScalingLaunchConfigurationDetails& WithKernelId(KernelIdT&& value) { SetKernelId(std::forward<KernelIdT>(value)); return *this;}
183
185
188 inline const Aws::String& GetKeyName() const { return m_keyName; }
189 inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; }
190 template<typename KeyNameT = Aws::String>
191 void SetKeyName(KeyNameT&& value) { m_keyNameHasBeenSet = true; m_keyName = std::forward<KeyNameT>(value); }
192 template<typename KeyNameT = Aws::String>
193 AwsAutoScalingLaunchConfigurationDetails& WithKeyName(KeyNameT&& value) { SetKeyName(std::forward<KeyNameT>(value)); return *this;}
195
197
200 inline const Aws::String& GetLaunchConfigurationName() const { return m_launchConfigurationName; }
201 inline bool LaunchConfigurationNameHasBeenSet() const { return m_launchConfigurationNameHasBeenSet; }
202 template<typename LaunchConfigurationNameT = Aws::String>
203 void SetLaunchConfigurationName(LaunchConfigurationNameT&& value) { m_launchConfigurationNameHasBeenSet = true; m_launchConfigurationName = std::forward<LaunchConfigurationNameT>(value); }
204 template<typename LaunchConfigurationNameT = Aws::String>
205 AwsAutoScalingLaunchConfigurationDetails& WithLaunchConfigurationName(LaunchConfigurationNameT&& value) { SetLaunchConfigurationName(std::forward<LaunchConfigurationNameT>(value)); return *this;}
207
209
214 inline const Aws::String& GetPlacementTenancy() const { return m_placementTenancy; }
215 inline bool PlacementTenancyHasBeenSet() const { return m_placementTenancyHasBeenSet; }
216 template<typename PlacementTenancyT = Aws::String>
217 void SetPlacementTenancy(PlacementTenancyT&& value) { m_placementTenancyHasBeenSet = true; m_placementTenancy = std::forward<PlacementTenancyT>(value); }
218 template<typename PlacementTenancyT = Aws::String>
219 AwsAutoScalingLaunchConfigurationDetails& WithPlacementTenancy(PlacementTenancyT&& value) { SetPlacementTenancy(std::forward<PlacementTenancyT>(value)); return *this;}
221
223
226 inline const Aws::String& GetRamdiskId() const { return m_ramdiskId; }
227 inline bool RamdiskIdHasBeenSet() const { return m_ramdiskIdHasBeenSet; }
228 template<typename RamdiskIdT = Aws::String>
229 void SetRamdiskId(RamdiskIdT&& value) { m_ramdiskIdHasBeenSet = true; m_ramdiskId = std::forward<RamdiskIdT>(value); }
230 template<typename RamdiskIdT = Aws::String>
231 AwsAutoScalingLaunchConfigurationDetails& WithRamdiskId(RamdiskIdT&& value) { SetRamdiskId(std::forward<RamdiskIdT>(value)); return *this;}
233
235
238 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const { return m_securityGroups; }
239 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
240 template<typename SecurityGroupsT = Aws::Vector<Aws::String>>
241 void SetSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::forward<SecurityGroupsT>(value); }
242 template<typename SecurityGroupsT = Aws::Vector<Aws::String>>
243 AwsAutoScalingLaunchConfigurationDetails& WithSecurityGroups(SecurityGroupsT&& value) { SetSecurityGroups(std::forward<SecurityGroupsT>(value)); return *this;}
244 template<typename SecurityGroupsT = Aws::String>
245 AwsAutoScalingLaunchConfigurationDetails& AddSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value)); return *this; }
247
249
253 inline const Aws::String& GetSpotPrice() const { return m_spotPrice; }
254 inline bool SpotPriceHasBeenSet() const { return m_spotPriceHasBeenSet; }
255 template<typename SpotPriceT = Aws::String>
256 void SetSpotPrice(SpotPriceT&& value) { m_spotPriceHasBeenSet = true; m_spotPrice = std::forward<SpotPriceT>(value); }
257 template<typename SpotPriceT = Aws::String>
258 AwsAutoScalingLaunchConfigurationDetails& WithSpotPrice(SpotPriceT&& value) { SetSpotPrice(std::forward<SpotPriceT>(value)); return *this;}
260
262
266 inline const Aws::String& GetUserData() const { return m_userData; }
267 inline bool UserDataHasBeenSet() const { return m_userDataHasBeenSet; }
268 template<typename UserDataT = Aws::String>
269 void SetUserData(UserDataT&& value) { m_userDataHasBeenSet = true; m_userData = std::forward<UserDataT>(value); }
270 template<typename UserDataT = Aws::String>
271 AwsAutoScalingLaunchConfigurationDetails& WithUserData(UserDataT&& value) { SetUserData(std::forward<UserDataT>(value)); return *this;}
273
275
278 inline const AwsAutoScalingLaunchConfigurationMetadataOptions& GetMetadataOptions() const { return m_metadataOptions; }
279 inline bool MetadataOptionsHasBeenSet() const { return m_metadataOptionsHasBeenSet; }
280 template<typename MetadataOptionsT = AwsAutoScalingLaunchConfigurationMetadataOptions>
281 void SetMetadataOptions(MetadataOptionsT&& value) { m_metadataOptionsHasBeenSet = true; m_metadataOptions = std::forward<MetadataOptionsT>(value); }
282 template<typename MetadataOptionsT = AwsAutoScalingLaunchConfigurationMetadataOptions>
283 AwsAutoScalingLaunchConfigurationDetails& WithMetadataOptions(MetadataOptionsT&& value) { SetMetadataOptions(std::forward<MetadataOptionsT>(value)); return *this;}
285 private:
286
287 bool m_associatePublicIpAddress{false};
288 bool m_associatePublicIpAddressHasBeenSet = false;
289
291 bool m_blockDeviceMappingsHasBeenSet = false;
292
293 Aws::String m_classicLinkVpcId;
294 bool m_classicLinkVpcIdHasBeenSet = false;
295
296 Aws::Vector<Aws::String> m_classicLinkVpcSecurityGroups;
297 bool m_classicLinkVpcSecurityGroupsHasBeenSet = false;
298
299 Aws::String m_createdTime;
300 bool m_createdTimeHasBeenSet = false;
301
302 bool m_ebsOptimized{false};
303 bool m_ebsOptimizedHasBeenSet = false;
304
305 Aws::String m_iamInstanceProfile;
306 bool m_iamInstanceProfileHasBeenSet = false;
307
308 Aws::String m_imageId;
309 bool m_imageIdHasBeenSet = false;
310
311 AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails m_instanceMonitoring;
312 bool m_instanceMonitoringHasBeenSet = false;
313
314 Aws::String m_instanceType;
315 bool m_instanceTypeHasBeenSet = false;
316
317 Aws::String m_kernelId;
318 bool m_kernelIdHasBeenSet = false;
319
320 Aws::String m_keyName;
321 bool m_keyNameHasBeenSet = false;
322
323 Aws::String m_launchConfigurationName;
324 bool m_launchConfigurationNameHasBeenSet = false;
325
326 Aws::String m_placementTenancy;
327 bool m_placementTenancyHasBeenSet = false;
328
329 Aws::String m_ramdiskId;
330 bool m_ramdiskIdHasBeenSet = false;
331
332 Aws::Vector<Aws::String> m_securityGroups;
333 bool m_securityGroupsHasBeenSet = false;
334
335 Aws::String m_spotPrice;
336 bool m_spotPriceHasBeenSet = false;
337
338 Aws::String m_userData;
339 bool m_userDataHasBeenSet = false;
340
341 AwsAutoScalingLaunchConfigurationMetadataOptions m_metadataOptions;
342 bool m_metadataOptionsHasBeenSet = false;
343 };
344
345} // namespace Model
346} // namespace SecurityHub
347} // namespace Aws
AwsAutoScalingLaunchConfigurationDetails & WithKeyName(KeyNameT &&value)
AwsAutoScalingLaunchConfigurationDetails & WithSpotPrice(SpotPriceT &&value)
AwsAutoScalingLaunchConfigurationDetails & WithInstanceType(InstanceTypeT &&value)
AwsAutoScalingLaunchConfigurationDetails & WithImageId(ImageIdT &&value)
AwsAutoScalingLaunchConfigurationDetails & WithIamInstanceProfile(IamInstanceProfileT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsAutoScalingLaunchConfigurationDetails & WithBlockDeviceMappings(BlockDeviceMappingsT &&value)
AwsAutoScalingLaunchConfigurationDetails & AddClassicLinkVpcSecurityGroups(ClassicLinkVpcSecurityGroupsT &&value)
const AwsAutoScalingLaunchConfigurationMetadataOptions & GetMetadataOptions() const
AwsAutoScalingLaunchConfigurationDetails & WithCreatedTime(CreatedTimeT &&value)
AwsAutoScalingLaunchConfigurationDetails & WithClassicLinkVpcSecurityGroups(ClassicLinkVpcSecurityGroupsT &&value)
AwsAutoScalingLaunchConfigurationDetails & WithClassicLinkVpcId(ClassicLinkVpcIdT &&value)
AwsAutoScalingLaunchConfigurationDetails & WithSecurityGroups(SecurityGroupsT &&value)
AwsAutoScalingLaunchConfigurationDetails & WithLaunchConfigurationName(LaunchConfigurationNameT &&value)
AwsAutoScalingLaunchConfigurationDetails & WithPlacementTenancy(PlacementTenancyT &&value)
AwsAutoScalingLaunchConfigurationDetails & WithUserData(UserDataT &&value)
AwsAutoScalingLaunchConfigurationDetails & WithInstanceMonitoring(InstanceMonitoringT &&value)
AwsAutoScalingLaunchConfigurationDetails & WithAssociatePublicIpAddress(bool value)
const Aws::Vector< AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails > & GetBlockDeviceMappings() const
AWS_SECURITYHUB_API AwsAutoScalingLaunchConfigurationDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsAutoScalingLaunchConfigurationDetails & WithMetadataOptions(MetadataOptionsT &&value)
const AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails & GetInstanceMonitoring() const
AwsAutoScalingLaunchConfigurationDetails & WithKernelId(KernelIdT &&value)
AwsAutoScalingLaunchConfigurationDetails & AddBlockDeviceMappings(BlockDeviceMappingsT &&value)
AwsAutoScalingLaunchConfigurationDetails & AddSecurityGroups(SecurityGroupsT &&value)
AWS_SECURITYHUB_API AwsAutoScalingLaunchConfigurationDetails(Aws::Utils::Json::JsonView jsonValue)
AwsAutoScalingLaunchConfigurationDetails & WithRamdiskId(RamdiskIdT &&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