AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ImportInstanceLaunchSpecification.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/ArchitectureValues.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/ec2/model/UserData.h>
13#include <aws/ec2/model/InstanceType.h>
14#include <aws/ec2/model/Placement.h>
15#include <aws/ec2/model/ShutdownBehavior.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
39 {
40 public:
41 AWS_EC2_API ImportInstanceLaunchSpecification() = default;
44
45 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
47
48
50
53 inline ArchitectureValues GetArchitecture() const { return m_architecture; }
54 inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; }
55 inline void SetArchitecture(ArchitectureValues value) { m_architectureHasBeenSet = true; m_architecture = value; }
58
60
63 inline const Aws::Vector<Aws::String>& GetGroupNames() const { return m_groupNames; }
64 inline bool GroupNamesHasBeenSet() const { return m_groupNamesHasBeenSet; }
65 template<typename GroupNamesT = Aws::Vector<Aws::String>>
66 void SetGroupNames(GroupNamesT&& value) { m_groupNamesHasBeenSet = true; m_groupNames = std::forward<GroupNamesT>(value); }
67 template<typename GroupNamesT = Aws::Vector<Aws::String>>
68 ImportInstanceLaunchSpecification& WithGroupNames(GroupNamesT&& value) { SetGroupNames(std::forward<GroupNamesT>(value)); return *this;}
69 template<typename GroupNamesT = Aws::String>
70 ImportInstanceLaunchSpecification& AddGroupNames(GroupNamesT&& value) { m_groupNamesHasBeenSet = true; m_groupNames.emplace_back(std::forward<GroupNamesT>(value)); return *this; }
72
74
77 inline const Aws::Vector<Aws::String>& GetGroupIds() const { return m_groupIds; }
78 inline bool GroupIdsHasBeenSet() const { return m_groupIdsHasBeenSet; }
79 template<typename GroupIdsT = Aws::Vector<Aws::String>>
80 void SetGroupIds(GroupIdsT&& value) { m_groupIdsHasBeenSet = true; m_groupIds = std::forward<GroupIdsT>(value); }
81 template<typename GroupIdsT = Aws::Vector<Aws::String>>
82 ImportInstanceLaunchSpecification& WithGroupIds(GroupIdsT&& value) { SetGroupIds(std::forward<GroupIdsT>(value)); return *this;}
83 template<typename GroupIdsT = Aws::String>
84 ImportInstanceLaunchSpecification& AddGroupIds(GroupIdsT&& value) { m_groupIdsHasBeenSet = true; m_groupIds.emplace_back(std::forward<GroupIdsT>(value)); return *this; }
86
88
91 inline const Aws::String& GetAdditionalInfo() const { return m_additionalInfo; }
92 inline bool AdditionalInfoHasBeenSet() const { return m_additionalInfoHasBeenSet; }
93 template<typename AdditionalInfoT = Aws::String>
94 void SetAdditionalInfo(AdditionalInfoT&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = std::forward<AdditionalInfoT>(value); }
95 template<typename AdditionalInfoT = Aws::String>
96 ImportInstanceLaunchSpecification& WithAdditionalInfo(AdditionalInfoT&& value) { SetAdditionalInfo(std::forward<AdditionalInfoT>(value)); return *this;}
98
100
103 inline const UserData& GetUserData() const { return m_userData; }
104 inline bool UserDataHasBeenSet() const { return m_userDataHasBeenSet; }
105 template<typename UserDataT = UserData>
106 void SetUserData(UserDataT&& value) { m_userDataHasBeenSet = true; m_userData = std::forward<UserDataT>(value); }
107 template<typename UserDataT = UserData>
108 ImportInstanceLaunchSpecification& WithUserData(UserDataT&& value) { SetUserData(std::forward<UserDataT>(value)); return *this;}
110
112
118 inline InstanceType GetInstanceType() const { return m_instanceType; }
119 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
120 inline void SetInstanceType(InstanceType value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
123
125
128 inline const Placement& GetPlacement() const { return m_placement; }
129 inline bool PlacementHasBeenSet() const { return m_placementHasBeenSet; }
130 template<typename PlacementT = Placement>
131 void SetPlacement(PlacementT&& value) { m_placementHasBeenSet = true; m_placement = std::forward<PlacementT>(value); }
132 template<typename PlacementT = Placement>
133 ImportInstanceLaunchSpecification& WithPlacement(PlacementT&& value) { SetPlacement(std::forward<PlacementT>(value)); return *this;}
135
137
140 inline bool GetMonitoring() const { return m_monitoring; }
141 inline bool MonitoringHasBeenSet() const { return m_monitoringHasBeenSet; }
142 inline void SetMonitoring(bool value) { m_monitoringHasBeenSet = true; m_monitoring = value; }
143 inline ImportInstanceLaunchSpecification& WithMonitoring(bool value) { SetMonitoring(value); return *this;}
145
147
150 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
151 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
152 template<typename SubnetIdT = Aws::String>
153 void SetSubnetId(SubnetIdT&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::forward<SubnetIdT>(value); }
154 template<typename SubnetIdT = Aws::String>
155 ImportInstanceLaunchSpecification& WithSubnetId(SubnetIdT&& value) { SetSubnetId(std::forward<SubnetIdT>(value)); return *this;}
157
159
163 inline ShutdownBehavior GetInstanceInitiatedShutdownBehavior() const { return m_instanceInitiatedShutdownBehavior; }
164 inline bool InstanceInitiatedShutdownBehaviorHasBeenSet() const { return m_instanceInitiatedShutdownBehaviorHasBeenSet; }
165 inline void SetInstanceInitiatedShutdownBehavior(ShutdownBehavior value) { m_instanceInitiatedShutdownBehaviorHasBeenSet = true; m_instanceInitiatedShutdownBehavior = value; }
168
170
174 inline const Aws::String& GetPrivateIpAddress() const { return m_privateIpAddress; }
175 inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; }
176 template<typename PrivateIpAddressT = Aws::String>
177 void SetPrivateIpAddress(PrivateIpAddressT&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = std::forward<PrivateIpAddressT>(value); }
178 template<typename PrivateIpAddressT = Aws::String>
179 ImportInstanceLaunchSpecification& WithPrivateIpAddress(PrivateIpAddressT&& value) { SetPrivateIpAddress(std::forward<PrivateIpAddressT>(value)); return *this;}
181 private:
182
184 bool m_architectureHasBeenSet = false;
185
186 Aws::Vector<Aws::String> m_groupNames;
187 bool m_groupNamesHasBeenSet = false;
188
189 Aws::Vector<Aws::String> m_groupIds;
190 bool m_groupIdsHasBeenSet = false;
191
192 Aws::String m_additionalInfo;
193 bool m_additionalInfoHasBeenSet = false;
194
195 UserData m_userData;
196 bool m_userDataHasBeenSet = false;
197
198 InstanceType m_instanceType{InstanceType::NOT_SET};
199 bool m_instanceTypeHasBeenSet = false;
200
201 Placement m_placement;
202 bool m_placementHasBeenSet = false;
203
204 bool m_monitoring{false};
205 bool m_monitoringHasBeenSet = false;
206
207 Aws::String m_subnetId;
208 bool m_subnetIdHasBeenSet = false;
209
210 ShutdownBehavior m_instanceInitiatedShutdownBehavior{ShutdownBehavior::NOT_SET};
211 bool m_instanceInitiatedShutdownBehaviorHasBeenSet = false;
212
213 Aws::String m_privateIpAddress;
214 bool m_privateIpAddressHasBeenSet = false;
215 };
216
217} // namespace Model
218} // namespace EC2
219} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ImportInstanceLaunchSpecification & AddGroupNames(GroupNamesT &&value)
ImportInstanceLaunchSpecification & WithPlacement(PlacementT &&value)
AWS_EC2_API ImportInstanceLaunchSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ImportInstanceLaunchSpecification & AddGroupIds(GroupIdsT &&value)
ImportInstanceLaunchSpecification & WithSubnetId(SubnetIdT &&value)
ImportInstanceLaunchSpecification & WithPrivateIpAddress(PrivateIpAddressT &&value)
ImportInstanceLaunchSpecification & WithAdditionalInfo(AdditionalInfoT &&value)
ImportInstanceLaunchSpecification & WithInstanceType(InstanceType value)
ImportInstanceLaunchSpecification & WithGroupIds(GroupIdsT &&value)
ImportInstanceLaunchSpecification & WithArchitecture(ArchitectureValues value)
ImportInstanceLaunchSpecification & WithGroupNames(GroupNamesT &&value)
ImportInstanceLaunchSpecification & WithUserData(UserDataT &&value)
ImportInstanceLaunchSpecification & WithMonitoring(bool value)
ImportInstanceLaunchSpecification & WithInstanceInitiatedShutdownBehavior(ShutdownBehavior value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API ImportInstanceLaunchSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
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