AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ScheduledInstancesLaunchSpecification.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/model/ScheduledInstancesIamInstanceProfile.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/ec2/model/ScheduledInstancesMonitoring.h>
13#include <aws/ec2/model/ScheduledInstancesPlacement.h>
14#include <aws/ec2/model/ScheduledInstancesBlockDeviceMapping.h>
15#include <aws/ec2/model/ScheduledInstancesNetworkInterface.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Xml
23{
24 class XmlNode;
25} // namespace Xml
26} // namespace Utils
27namespace EC2
28{
29namespace Model
30{
31
41 {
42 public:
46
47 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
48 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
49
50
52
55 inline const Aws::Vector<ScheduledInstancesBlockDeviceMapping>& GetBlockDeviceMappings() const{ return m_blockDeviceMappings; }
56 inline bool BlockDeviceMappingsHasBeenSet() const { return m_blockDeviceMappingsHasBeenSet; }
57 inline void SetBlockDeviceMappings(const Aws::Vector<ScheduledInstancesBlockDeviceMapping>& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings = value; }
58 inline void SetBlockDeviceMappings(Aws::Vector<ScheduledInstancesBlockDeviceMapping>&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings = std::move(value); }
61 inline ScheduledInstancesLaunchSpecification& AddBlockDeviceMappings(const ScheduledInstancesBlockDeviceMapping& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(value); return *this; }
62 inline ScheduledInstancesLaunchSpecification& AddBlockDeviceMappings(ScheduledInstancesBlockDeviceMapping&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(std::move(value)); return *this; }
64
66
73 inline bool GetEbsOptimized() const{ return m_ebsOptimized; }
74 inline bool EbsOptimizedHasBeenSet() const { return m_ebsOptimizedHasBeenSet; }
75 inline void SetEbsOptimized(bool value) { m_ebsOptimizedHasBeenSet = true; m_ebsOptimized = value; }
76 inline ScheduledInstancesLaunchSpecification& WithEbsOptimized(bool value) { SetEbsOptimized(value); return *this;}
78
80
83 inline const ScheduledInstancesIamInstanceProfile& GetIamInstanceProfile() const{ return m_iamInstanceProfile; }
84 inline bool IamInstanceProfileHasBeenSet() const { return m_iamInstanceProfileHasBeenSet; }
85 inline void SetIamInstanceProfile(const ScheduledInstancesIamInstanceProfile& value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile = value; }
86 inline void SetIamInstanceProfile(ScheduledInstancesIamInstanceProfile&& value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile = std::move(value); }
90
92
95 inline const Aws::String& GetImageId() const{ return m_imageId; }
96 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
97 inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
98 inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
99 inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
100 inline ScheduledInstancesLaunchSpecification& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
101 inline ScheduledInstancesLaunchSpecification& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
102 inline ScheduledInstancesLaunchSpecification& WithImageId(const char* value) { SetImageId(value); return *this;}
104
106
109 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
110 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
111 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
112 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
113 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
115 inline ScheduledInstancesLaunchSpecification& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
116 inline ScheduledInstancesLaunchSpecification& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
118
120
123 inline const Aws::String& GetKernelId() const{ return m_kernelId; }
124 inline bool KernelIdHasBeenSet() const { return m_kernelIdHasBeenSet; }
125 inline void SetKernelId(const Aws::String& value) { m_kernelIdHasBeenSet = true; m_kernelId = value; }
126 inline void SetKernelId(Aws::String&& value) { m_kernelIdHasBeenSet = true; m_kernelId = std::move(value); }
127 inline void SetKernelId(const char* value) { m_kernelIdHasBeenSet = true; m_kernelId.assign(value); }
128 inline ScheduledInstancesLaunchSpecification& WithKernelId(const Aws::String& value) { SetKernelId(value); return *this;}
129 inline ScheduledInstancesLaunchSpecification& WithKernelId(Aws::String&& value) { SetKernelId(std::move(value)); return *this;}
130 inline ScheduledInstancesLaunchSpecification& WithKernelId(const char* value) { SetKernelId(value); return *this;}
132
134
137 inline const Aws::String& GetKeyName() const{ return m_keyName; }
138 inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; }
139 inline void SetKeyName(const Aws::String& value) { m_keyNameHasBeenSet = true; m_keyName = value; }
140 inline void SetKeyName(Aws::String&& value) { m_keyNameHasBeenSet = true; m_keyName = std::move(value); }
141 inline void SetKeyName(const char* value) { m_keyNameHasBeenSet = true; m_keyName.assign(value); }
142 inline ScheduledInstancesLaunchSpecification& WithKeyName(const Aws::String& value) { SetKeyName(value); return *this;}
143 inline ScheduledInstancesLaunchSpecification& WithKeyName(Aws::String&& value) { SetKeyName(std::move(value)); return *this;}
144 inline ScheduledInstancesLaunchSpecification& WithKeyName(const char* value) { SetKeyName(value); return *this;}
146
148
151 inline const ScheduledInstancesMonitoring& GetMonitoring() const{ return m_monitoring; }
152 inline bool MonitoringHasBeenSet() const { return m_monitoringHasBeenSet; }
153 inline void SetMonitoring(const ScheduledInstancesMonitoring& value) { m_monitoringHasBeenSet = true; m_monitoring = value; }
154 inline void SetMonitoring(ScheduledInstancesMonitoring&& value) { m_monitoringHasBeenSet = true; m_monitoring = std::move(value); }
158
160
163 inline const Aws::Vector<ScheduledInstancesNetworkInterface>& GetNetworkInterfaces() const{ return m_networkInterfaces; }
164 inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; }
165 inline void SetNetworkInterfaces(const Aws::Vector<ScheduledInstancesNetworkInterface>& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces = value; }
166 inline void SetNetworkInterfaces(Aws::Vector<ScheduledInstancesNetworkInterface>&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces = std::move(value); }
169 inline ScheduledInstancesLaunchSpecification& AddNetworkInterfaces(const ScheduledInstancesNetworkInterface& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(value); return *this; }
170 inline ScheduledInstancesLaunchSpecification& AddNetworkInterfaces(ScheduledInstancesNetworkInterface&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(std::move(value)); return *this; }
172
174
177 inline const ScheduledInstancesPlacement& GetPlacement() const{ return m_placement; }
178 inline bool PlacementHasBeenSet() const { return m_placementHasBeenSet; }
179 inline void SetPlacement(const ScheduledInstancesPlacement& value) { m_placementHasBeenSet = true; m_placement = value; }
180 inline void SetPlacement(ScheduledInstancesPlacement&& value) { m_placementHasBeenSet = true; m_placement = std::move(value); }
184
186
189 inline const Aws::String& GetRamdiskId() const{ return m_ramdiskId; }
190 inline bool RamdiskIdHasBeenSet() const { return m_ramdiskIdHasBeenSet; }
191 inline void SetRamdiskId(const Aws::String& value) { m_ramdiskIdHasBeenSet = true; m_ramdiskId = value; }
192 inline void SetRamdiskId(Aws::String&& value) { m_ramdiskIdHasBeenSet = true; m_ramdiskId = std::move(value); }
193 inline void SetRamdiskId(const char* value) { m_ramdiskIdHasBeenSet = true; m_ramdiskId.assign(value); }
195 inline ScheduledInstancesLaunchSpecification& WithRamdiskId(Aws::String&& value) { SetRamdiskId(std::move(value)); return *this;}
196 inline ScheduledInstancesLaunchSpecification& WithRamdiskId(const char* value) { SetRamdiskId(value); return *this;}
198
200
203 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
204 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
205 inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
206 inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
209 inline ScheduledInstancesLaunchSpecification& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
210 inline ScheduledInstancesLaunchSpecification& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
211 inline ScheduledInstancesLaunchSpecification& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
213
215
218 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
219 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
220 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
221 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
222 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
223 inline ScheduledInstancesLaunchSpecification& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
224 inline ScheduledInstancesLaunchSpecification& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
225 inline ScheduledInstancesLaunchSpecification& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
227
229
232 inline const Aws::String& GetUserData() const{ return m_userData; }
233 inline bool UserDataHasBeenSet() const { return m_userDataHasBeenSet; }
234 inline void SetUserData(const Aws::String& value) { m_userDataHasBeenSet = true; m_userData = value; }
235 inline void SetUserData(Aws::String&& value) { m_userDataHasBeenSet = true; m_userData = std::move(value); }
236 inline void SetUserData(const char* value) { m_userDataHasBeenSet = true; m_userData.assign(value); }
237 inline ScheduledInstancesLaunchSpecification& WithUserData(const Aws::String& value) { SetUserData(value); return *this;}
238 inline ScheduledInstancesLaunchSpecification& WithUserData(Aws::String&& value) { SetUserData(std::move(value)); return *this;}
239 inline ScheduledInstancesLaunchSpecification& WithUserData(const char* value) { SetUserData(value); return *this;}
241 private:
242
244 bool m_blockDeviceMappingsHasBeenSet = false;
245
246 bool m_ebsOptimized;
247 bool m_ebsOptimizedHasBeenSet = false;
248
249 ScheduledInstancesIamInstanceProfile m_iamInstanceProfile;
250 bool m_iamInstanceProfileHasBeenSet = false;
251
252 Aws::String m_imageId;
253 bool m_imageIdHasBeenSet = false;
254
255 Aws::String m_instanceType;
256 bool m_instanceTypeHasBeenSet = false;
257
258 Aws::String m_kernelId;
259 bool m_kernelIdHasBeenSet = false;
260
261 Aws::String m_keyName;
262 bool m_keyNameHasBeenSet = false;
263
264 ScheduledInstancesMonitoring m_monitoring;
265 bool m_monitoringHasBeenSet = false;
266
268 bool m_networkInterfacesHasBeenSet = false;
269
270 ScheduledInstancesPlacement m_placement;
271 bool m_placementHasBeenSet = false;
272
273 Aws::String m_ramdiskId;
274 bool m_ramdiskIdHasBeenSet = false;
275
276 Aws::Vector<Aws::String> m_securityGroupIds;
277 bool m_securityGroupIdsHasBeenSet = false;
278
279 Aws::String m_subnetId;
280 bool m_subnetIdHasBeenSet = false;
281
282 Aws::String m_userData;
283 bool m_userDataHasBeenSet = false;
284 };
285
286} // namespace Model
287} // namespace EC2
288} // namespace Aws
ScheduledInstancesLaunchSpecification & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
ScheduledInstancesLaunchSpecification & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
const Aws::Vector< ScheduledInstancesNetworkInterface > & GetNetworkInterfaces() const
ScheduledInstancesLaunchSpecification & WithMonitoring(const ScheduledInstancesMonitoring &value)
ScheduledInstancesLaunchSpecification & WithImageId(const char *value)
void SetIamInstanceProfile(const ScheduledInstancesIamInstanceProfile &value)
ScheduledInstancesLaunchSpecification & AddSecurityGroupIds(const char *value)
ScheduledInstancesLaunchSpecification & AddNetworkInterfaces(ScheduledInstancesNetworkInterface &&value)
ScheduledInstancesLaunchSpecification & WithIamInstanceProfile(ScheduledInstancesIamInstanceProfile &&value)
void SetNetworkInterfaces(Aws::Vector< ScheduledInstancesNetworkInterface > &&value)
ScheduledInstancesLaunchSpecification & AddNetworkInterfaces(const ScheduledInstancesNetworkInterface &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetIamInstanceProfile(ScheduledInstancesIamInstanceProfile &&value)
ScheduledInstancesLaunchSpecification & AddBlockDeviceMappings(const ScheduledInstancesBlockDeviceMapping &value)
void SetBlockDeviceMappings(const Aws::Vector< ScheduledInstancesBlockDeviceMapping > &value)
ScheduledInstancesLaunchSpecification & WithKernelId(Aws::String &&value)
ScheduledInstancesLaunchSpecification & WithRamdiskId(const char *value)
ScheduledInstancesLaunchSpecification & WithKeyName(const char *value)
ScheduledInstancesLaunchSpecification & WithUserData(const Aws::String &value)
ScheduledInstancesLaunchSpecification & WithUserData(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ScheduledInstancesLaunchSpecification & WithBlockDeviceMappings(const Aws::Vector< ScheduledInstancesBlockDeviceMapping > &value)
ScheduledInstancesLaunchSpecification & WithRamdiskId(Aws::String &&value)
ScheduledInstancesLaunchSpecification & WithMonitoring(ScheduledInstancesMonitoring &&value)
ScheduledInstancesLaunchSpecification & WithKeyName(const Aws::String &value)
ScheduledInstancesLaunchSpecification & WithSubnetId(const char *value)
ScheduledInstancesLaunchSpecification & WithInstanceType(Aws::String &&value)
ScheduledInstancesLaunchSpecification & WithSubnetId(Aws::String &&value)
ScheduledInstancesLaunchSpecification & AddSecurityGroupIds(const Aws::String &value)
ScheduledInstancesLaunchSpecification & WithInstanceType(const char *value)
ScheduledInstancesLaunchSpecification & WithInstanceType(const Aws::String &value)
ScheduledInstancesLaunchSpecification & WithNetworkInterfaces(Aws::Vector< ScheduledInstancesNetworkInterface > &&value)
AWS_EC2_API ScheduledInstancesLaunchSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const ScheduledInstancesIamInstanceProfile & GetIamInstanceProfile() const
ScheduledInstancesLaunchSpecification & AddBlockDeviceMappings(ScheduledInstancesBlockDeviceMapping &&value)
ScheduledInstancesLaunchSpecification & WithPlacement(ScheduledInstancesPlacement &&value)
ScheduledInstancesLaunchSpecification & WithPlacement(const ScheduledInstancesPlacement &value)
ScheduledInstancesLaunchSpecification & WithKernelId(const Aws::String &value)
ScheduledInstancesLaunchSpecification & WithIamInstanceProfile(const ScheduledInstancesIamInstanceProfile &value)
ScheduledInstancesLaunchSpecification & WithSubnetId(const Aws::String &value)
const Aws::Vector< ScheduledInstancesBlockDeviceMapping > & GetBlockDeviceMappings() const
ScheduledInstancesLaunchSpecification & WithEbsOptimized(bool value)
ScheduledInstancesLaunchSpecification & AddSecurityGroupIds(Aws::String &&value)
AWS_EC2_API ScheduledInstancesLaunchSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
ScheduledInstancesLaunchSpecification & WithImageId(Aws::String &&value)
ScheduledInstancesLaunchSpecification & WithUserData(Aws::String &&value)
ScheduledInstancesLaunchSpecification & WithImageId(const Aws::String &value)
ScheduledInstancesLaunchSpecification & WithKernelId(const char *value)
void SetBlockDeviceMappings(Aws::Vector< ScheduledInstancesBlockDeviceMapping > &&value)
ScheduledInstancesLaunchSpecification & WithNetworkInterfaces(const Aws::Vector< ScheduledInstancesNetworkInterface > &value)
ScheduledInstancesLaunchSpecification & WithKeyName(Aws::String &&value)
ScheduledInstancesLaunchSpecification & WithBlockDeviceMappings(Aws::Vector< ScheduledInstancesBlockDeviceMapping > &&value)
ScheduledInstancesLaunchSpecification & WithRamdiskId(const Aws::String &value)
void SetNetworkInterfaces(const Aws::Vector< ScheduledInstancesNetworkInterface > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream