AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 const ArchitectureValues& GetArchitecture() const{ return m_architecture; }
54 inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; }
55 inline void SetArchitecture(const ArchitectureValues& value) { m_architectureHasBeenSet = true; m_architecture = value; }
56 inline void SetArchitecture(ArchitectureValues&& value) { m_architectureHasBeenSet = true; m_architecture = std::move(value); }
58 inline ImportInstanceLaunchSpecification& WithArchitecture(ArchitectureValues&& value) { SetArchitecture(std::move(value)); return *this;}
60
62
65 inline const Aws::Vector<Aws::String>& GetGroupNames() const{ return m_groupNames; }
66 inline bool GroupNamesHasBeenSet() const { return m_groupNamesHasBeenSet; }
67 inline void SetGroupNames(const Aws::Vector<Aws::String>& value) { m_groupNamesHasBeenSet = true; m_groupNames = value; }
68 inline void SetGroupNames(Aws::Vector<Aws::String>&& value) { m_groupNamesHasBeenSet = true; m_groupNames = std::move(value); }
71 inline ImportInstanceLaunchSpecification& AddGroupNames(const Aws::String& value) { m_groupNamesHasBeenSet = true; m_groupNames.push_back(value); return *this; }
72 inline ImportInstanceLaunchSpecification& AddGroupNames(Aws::String&& value) { m_groupNamesHasBeenSet = true; m_groupNames.push_back(std::move(value)); return *this; }
73 inline ImportInstanceLaunchSpecification& AddGroupNames(const char* value) { m_groupNamesHasBeenSet = true; m_groupNames.push_back(value); return *this; }
75
77
80 inline const Aws::Vector<Aws::String>& GetGroupIds() const{ return m_groupIds; }
81 inline bool GroupIdsHasBeenSet() const { return m_groupIdsHasBeenSet; }
82 inline void SetGroupIds(const Aws::Vector<Aws::String>& value) { m_groupIdsHasBeenSet = true; m_groupIds = value; }
83 inline void SetGroupIds(Aws::Vector<Aws::String>&& value) { m_groupIdsHasBeenSet = true; m_groupIds = std::move(value); }
85 inline ImportInstanceLaunchSpecification& WithGroupIds(Aws::Vector<Aws::String>&& value) { SetGroupIds(std::move(value)); return *this;}
86 inline ImportInstanceLaunchSpecification& AddGroupIds(const Aws::String& value) { m_groupIdsHasBeenSet = true; m_groupIds.push_back(value); return *this; }
87 inline ImportInstanceLaunchSpecification& AddGroupIds(Aws::String&& value) { m_groupIdsHasBeenSet = true; m_groupIds.push_back(std::move(value)); return *this; }
88 inline ImportInstanceLaunchSpecification& AddGroupIds(const char* value) { m_groupIdsHasBeenSet = true; m_groupIds.push_back(value); return *this; }
90
92
95 inline const Aws::String& GetAdditionalInfo() const{ return m_additionalInfo; }
96 inline bool AdditionalInfoHasBeenSet() const { return m_additionalInfoHasBeenSet; }
97 inline void SetAdditionalInfo(const Aws::String& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = value; }
98 inline void SetAdditionalInfo(Aws::String&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = std::move(value); }
99 inline void SetAdditionalInfo(const char* value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.assign(value); }
101 inline ImportInstanceLaunchSpecification& WithAdditionalInfo(Aws::String&& value) { SetAdditionalInfo(std::move(value)); return *this;}
102 inline ImportInstanceLaunchSpecification& WithAdditionalInfo(const char* value) { SetAdditionalInfo(value); return *this;}
104
106
109 inline const UserData& GetUserData() const{ return m_userData; }
110 inline bool UserDataHasBeenSet() const { return m_userDataHasBeenSet; }
111 inline void SetUserData(const UserData& value) { m_userDataHasBeenSet = true; m_userData = value; }
112 inline void SetUserData(UserData&& value) { m_userDataHasBeenSet = true; m_userData = std::move(value); }
113 inline ImportInstanceLaunchSpecification& WithUserData(const UserData& value) { SetUserData(value); return *this;}
114 inline ImportInstanceLaunchSpecification& WithUserData(UserData&& value) { SetUserData(std::move(value)); return *this;}
116
118
124 inline const InstanceType& GetInstanceType() const{ return m_instanceType; }
125 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
126 inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
127 inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
129 inline ImportInstanceLaunchSpecification& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
131
133
136 inline const Placement& GetPlacement() const{ return m_placement; }
137 inline bool PlacementHasBeenSet() const { return m_placementHasBeenSet; }
138 inline void SetPlacement(const Placement& value) { m_placementHasBeenSet = true; m_placement = value; }
139 inline void SetPlacement(Placement&& value) { m_placementHasBeenSet = true; m_placement = std::move(value); }
140 inline ImportInstanceLaunchSpecification& WithPlacement(const Placement& value) { SetPlacement(value); return *this;}
141 inline ImportInstanceLaunchSpecification& WithPlacement(Placement&& value) { SetPlacement(std::move(value)); return *this;}
143
145
148 inline bool GetMonitoring() const{ return m_monitoring; }
149 inline bool MonitoringHasBeenSet() const { return m_monitoringHasBeenSet; }
150 inline void SetMonitoring(bool value) { m_monitoringHasBeenSet = true; m_monitoring = value; }
151 inline ImportInstanceLaunchSpecification& WithMonitoring(bool value) { SetMonitoring(value); return *this;}
153
155
158 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
159 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
160 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
161 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
162 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
163 inline ImportInstanceLaunchSpecification& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
164 inline ImportInstanceLaunchSpecification& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
165 inline ImportInstanceLaunchSpecification& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
167
169
173 inline const ShutdownBehavior& GetInstanceInitiatedShutdownBehavior() const{ return m_instanceInitiatedShutdownBehavior; }
174 inline bool InstanceInitiatedShutdownBehaviorHasBeenSet() const { return m_instanceInitiatedShutdownBehaviorHasBeenSet; }
175 inline void SetInstanceInitiatedShutdownBehavior(const ShutdownBehavior& value) { m_instanceInitiatedShutdownBehaviorHasBeenSet = true; m_instanceInitiatedShutdownBehavior = value; }
176 inline void SetInstanceInitiatedShutdownBehavior(ShutdownBehavior&& value) { m_instanceInitiatedShutdownBehaviorHasBeenSet = true; m_instanceInitiatedShutdownBehavior = std::move(value); }
180
182
186 inline const Aws::String& GetPrivateIpAddress() const{ return m_privateIpAddress; }
187 inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; }
188 inline void SetPrivateIpAddress(const Aws::String& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; }
189 inline void SetPrivateIpAddress(Aws::String&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = std::move(value); }
190 inline void SetPrivateIpAddress(const char* value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress.assign(value); }
193 inline ImportInstanceLaunchSpecification& WithPrivateIpAddress(const char* value) { SetPrivateIpAddress(value); return *this;}
195 private:
196
197 ArchitectureValues m_architecture;
198 bool m_architectureHasBeenSet = false;
199
200 Aws::Vector<Aws::String> m_groupNames;
201 bool m_groupNamesHasBeenSet = false;
202
203 Aws::Vector<Aws::String> m_groupIds;
204 bool m_groupIdsHasBeenSet = false;
205
206 Aws::String m_additionalInfo;
207 bool m_additionalInfoHasBeenSet = false;
208
209 UserData m_userData;
210 bool m_userDataHasBeenSet = false;
211
212 InstanceType m_instanceType;
213 bool m_instanceTypeHasBeenSet = false;
214
215 Placement m_placement;
216 bool m_placementHasBeenSet = false;
217
218 bool m_monitoring;
219 bool m_monitoringHasBeenSet = false;
220
221 Aws::String m_subnetId;
222 bool m_subnetIdHasBeenSet = false;
223
224 ShutdownBehavior m_instanceInitiatedShutdownBehavior;
225 bool m_instanceInitiatedShutdownBehaviorHasBeenSet = false;
226
227 Aws::String m_privateIpAddress;
228 bool m_privateIpAddressHasBeenSet = false;
229 };
230
231} // namespace Model
232} // namespace EC2
233} // namespace Aws
ImportInstanceLaunchSpecification & AddGroupNames(Aws::String &&value)
ImportInstanceLaunchSpecification & WithSubnetId(const Aws::String &value)
ImportInstanceLaunchSpecification & AddGroupIds(Aws::String &&value)
ImportInstanceLaunchSpecification & WithGroupNames(Aws::Vector< Aws::String > &&value)
void SetGroupNames(const Aws::Vector< Aws::String > &value)
ImportInstanceLaunchSpecification & WithAdditionalInfo(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetGroupIds(const Aws::Vector< Aws::String > &value)
ImportInstanceLaunchSpecification & AddGroupNames(const char *value)
ImportInstanceLaunchSpecification & WithAdditionalInfo(Aws::String &&value)
ImportInstanceLaunchSpecification & WithPrivateIpAddress(const Aws::String &value)
ImportInstanceLaunchSpecification & WithPlacement(const Placement &value)
ImportInstanceLaunchSpecification & WithGroupNames(const Aws::Vector< Aws::String > &value)
ImportInstanceLaunchSpecification & WithInstanceInitiatedShutdownBehavior(const ShutdownBehavior &value)
ImportInstanceLaunchSpecification & WithSubnetId(const char *value)
ImportInstanceLaunchSpecification & WithInstanceType(InstanceType &&value)
AWS_EC2_API ImportInstanceLaunchSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ImportInstanceLaunchSpecification & WithGroupIds(Aws::Vector< Aws::String > &&value)
ImportInstanceLaunchSpecification & WithPrivateIpAddress(const char *value)
ImportInstanceLaunchSpecification & AddGroupIds(const Aws::String &value)
ImportInstanceLaunchSpecification & AddGroupNames(const Aws::String &value)
ImportInstanceLaunchSpecification & WithGroupIds(const Aws::Vector< Aws::String > &value)
ImportInstanceLaunchSpecification & WithUserData(const UserData &value)
ImportInstanceLaunchSpecification & WithAdditionalInfo(const Aws::String &value)
ImportInstanceLaunchSpecification & WithInstanceInitiatedShutdownBehavior(ShutdownBehavior &&value)
ImportInstanceLaunchSpecification & WithMonitoring(bool value)
ImportInstanceLaunchSpecification & WithSubnetId(Aws::String &&value)
ImportInstanceLaunchSpecification & WithPrivateIpAddress(Aws::String &&value)
ImportInstanceLaunchSpecification & WithArchitecture(ArchitectureValues &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ImportInstanceLaunchSpecification & WithPlacement(Placement &&value)
ImportInstanceLaunchSpecification & WithInstanceType(const InstanceType &value)
ImportInstanceLaunchSpecification & WithArchitecture(const ArchitectureValues &value)
ImportInstanceLaunchSpecification & AddGroupIds(const char *value)
ImportInstanceLaunchSpecification & WithUserData(UserData &&value)
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