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>
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>>
69 template<
typename GroupNamesT = Aws::String>
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>>
83 template<
typename GroupIdsT = Aws::String>
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>
105 template<
typename UserDataT = UserData>
106 void SetUserData(UserDataT&& value) { m_userDataHasBeenSet =
true; m_userData = std::forward<UserDataT>(value); }
107 template<
typename UserDataT = UserData>
130 template<
typename PlacementT = Placement>
131 void SetPlacement(PlacementT&& value) { m_placementHasBeenSet =
true; m_placement = std::forward<PlacementT>(value); }
132 template<
typename PlacementT = Placement>
142 inline void SetMonitoring(
bool value) { m_monitoringHasBeenSet =
true; m_monitoring = value; }
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>
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>
184 bool m_architectureHasBeenSet =
false;
187 bool m_groupNamesHasBeenSet =
false;
190 bool m_groupIdsHasBeenSet =
false;
193 bool m_additionalInfoHasBeenSet =
false;
196 bool m_userDataHasBeenSet =
false;
199 bool m_instanceTypeHasBeenSet =
false;
201 Placement m_placement;
202 bool m_placementHasBeenSet =
false;
204 bool m_monitoring{
false};
205 bool m_monitoringHasBeenSet =
false;
208 bool m_subnetIdHasBeenSet =
false;
211 bool m_instanceInitiatedShutdownBehaviorHasBeenSet =
false;
214 bool m_privateIpAddressHasBeenSet =
false;
bool PlacementHasBeenSet() const
bool MonitoringHasBeenSet() const
void SetInstanceInitiatedShutdownBehavior(ShutdownBehavior value)
bool GetMonitoring() const
AWS_EC2_API ImportInstanceLaunchSpecification()=default
bool InstanceTypeHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetAdditionalInfo(AdditionalInfoT &&value)
ImportInstanceLaunchSpecification & AddGroupNames(GroupNamesT &&value)
void SetInstanceType(InstanceType value)
const Aws::Vector< Aws::String > & GetGroupNames() const
const Aws::String & GetAdditionalInfo() const
void SetGroupIds(GroupIdsT &&value)
bool GroupIdsHasBeenSet() const
bool AdditionalInfoHasBeenSet() const
ImportInstanceLaunchSpecification & WithPlacement(PlacementT &&value)
void SetPrivateIpAddress(PrivateIpAddressT &&value)
ShutdownBehavior GetInstanceInitiatedShutdownBehavior() const
void SetMonitoring(bool value)
const UserData & GetUserData() const
void SetGroupNames(GroupNamesT &&value)
AWS_EC2_API ImportInstanceLaunchSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ImportInstanceLaunchSpecification & AddGroupIds(GroupIdsT &&value)
ImportInstanceLaunchSpecification & WithSubnetId(SubnetIdT &&value)
bool UserDataHasBeenSet() const
const Placement & GetPlacement() const
void SetArchitecture(ArchitectureValues value)
bool PrivateIpAddressHasBeenSet() const
ImportInstanceLaunchSpecification & WithPrivateIpAddress(PrivateIpAddressT &&value)
const Aws::String & GetPrivateIpAddress() const
ImportInstanceLaunchSpecification & WithAdditionalInfo(AdditionalInfoT &&value)
void SetSubnetId(SubnetIdT &&value)
void SetPlacement(PlacementT &&value)
ImportInstanceLaunchSpecification & WithInstanceType(InstanceType value)
ImportInstanceLaunchSpecification & WithGroupIds(GroupIdsT &&value)
InstanceType GetInstanceType() const
bool ArchitectureHasBeenSet() const
bool GroupNamesHasBeenSet() const
ImportInstanceLaunchSpecification & WithArchitecture(ArchitectureValues value)
ImportInstanceLaunchSpecification & WithGroupNames(GroupNamesT &&value)
ImportInstanceLaunchSpecification & WithUserData(UserDataT &&value)
bool InstanceInitiatedShutdownBehaviorHasBeenSet() const
const Aws::String & GetSubnetId() const
ImportInstanceLaunchSpecification & WithMonitoring(bool value)
void SetUserData(UserDataT &&value)
ImportInstanceLaunchSpecification & WithInstanceInitiatedShutdownBehavior(ShutdownBehavior value)
const Aws::Vector< Aws::String > & GetGroupIds() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ArchitectureValues GetArchitecture() const
bool SubnetIdHasBeenSet() 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