7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/model/AttributeBooleanValue.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ec2/model/InstanceAttributeName.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/ec2/model/AttributeValue.h>
14#include <aws/ec2/model/BlobAttributeValue.h>
15#include <aws/ec2/model/InstanceBlockDeviceMappingSpecification.h>
56 template<
typename SourceDestCheckT = AttributeBooleanValue>
57 void SetSourceDestCheck(SourceDestCheckT&& value) { m_sourceDestCheckHasBeenSet =
true; m_sourceDestCheck = std::forward<SourceDestCheckT>(value); }
58 template<
typename SourceDestCheckT = AttributeBooleanValue>
71 template<
typename DisableApiStopT = AttributeBooleanValue>
72 void SetDisableApiStop(DisableApiStopT&& value) { m_disableApiStopHasBeenSet =
true; m_disableApiStop = std::forward<DisableApiStopT>(value); }
73 template<
typename DisableApiStopT = AttributeBooleanValue>
86 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
96 template<
typename InstanceIdT = Aws::String>
97 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet =
true; m_instanceId = std::forward<InstanceIdT>(value); }
98 template<
typename InstanceIdT = Aws::String>
132 template<
typename ValueT = Aws::String>
133 void SetValue(ValueT&& value) { m_valueHasBeenSet =
true; m_value = std::forward<ValueT>(value); }
134 template<
typename ValueT = Aws::String>
154 template<
typename BlockDeviceMappingsT = Aws::Vector<InstanceBlockDeviceMappingSpecification>>
155 void SetBlockDeviceMappings(BlockDeviceMappingsT&& value) { m_blockDeviceMappingsHasBeenSet =
true; m_blockDeviceMappings = std::forward<BlockDeviceMappingsT>(value); }
156 template<
typename BlockDeviceMappingsT = Aws::Vector<InstanceBlockDeviceMappingSpecification>>
158 template<
typename BlockDeviceMappingsT = InstanceBlockDeviceMappingSpecification>
171 template<
typename DisableApiTerminationT = AttributeBooleanValue>
172 void SetDisableApiTermination(DisableApiTerminationT&& value) { m_disableApiTerminationHasBeenSet =
true; m_disableApiTermination = std::forward<DisableApiTerminationT>(value); }
173 template<
typename DisableApiTerminationT = AttributeBooleanValue>
187 template<
typename InstanceTypeT = AttributeValue>
188 void SetInstanceType(InstanceTypeT&& value) { m_instanceTypeHasBeenSet =
true; m_instanceType = std::forward<InstanceTypeT>(value); }
189 template<
typename InstanceTypeT = AttributeValue>
201 template<
typename KernelT = AttributeValue>
202 void SetKernel(KernelT&& value) { m_kernelHasBeenSet =
true; m_kernel = std::forward<KernelT>(value); }
203 template<
typename KernelT = AttributeValue>
215 template<
typename RamdiskT = AttributeValue>
216 void SetRamdisk(RamdiskT&& value) { m_ramdiskHasBeenSet =
true; m_ramdisk = std::forward<RamdiskT>(value); }
217 template<
typename RamdiskT = AttributeValue>
231 template<
typename UserDataT = BlobAttributeValue>
232 void SetUserData(UserDataT&& value) { m_userDataHasBeenSet =
true; m_userData = std::forward<UserDataT>(value); }
233 template<
typename UserDataT = BlobAttributeValue>
244 template<
typename InstanceInitiatedShutdownBehaviorT = AttributeValue>
245 void SetInstanceInitiatedShutdownBehavior(InstanceInitiatedShutdownBehaviorT&& value) { m_instanceInitiatedShutdownBehaviorHasBeenSet =
true; m_instanceInitiatedShutdownBehavior = std::forward<InstanceInitiatedShutdownBehaviorT>(value); }
246 template<
typename InstanceInitiatedShutdownBehaviorT = AttributeValue>
258 template<
typename GroupsT = Aws::Vector<Aws::String>>
259 void SetGroups(GroupsT&& value) { m_groupsHasBeenSet =
true; m_groups = std::forward<GroupsT>(value); }
260 template<
typename GroupsT = Aws::Vector<Aws::String>>
262 template<
typename GroupsT = Aws::String>
276 template<
typename EbsOptimizedT = AttributeBooleanValue>
277 void SetEbsOptimized(EbsOptimizedT&& value) { m_ebsOptimizedHasBeenSet =
true; m_ebsOptimized = std::forward<EbsOptimizedT>(value); }
278 template<
typename EbsOptimizedT = AttributeBooleanValue>
292 template<
typename SriovNetSupportT = AttributeValue>
293 void SetSriovNetSupport(SriovNetSupportT&& value) { m_sriovNetSupportHasBeenSet =
true; m_sriovNetSupport = std::forward<SriovNetSupportT>(value); }
294 template<
typename SriovNetSupportT = AttributeValue>
306 template<
typename EnaSupportT = AttributeBooleanValue>
307 void SetEnaSupport(EnaSupportT&& value) { m_enaSupportHasBeenSet =
true; m_enaSupport = std::forward<EnaSupportT>(value); }
308 template<
typename EnaSupportT = AttributeBooleanValue>
314 bool m_sourceDestCheckHasBeenSet =
false;
317 bool m_disableApiStopHasBeenSet =
false;
319 bool m_dryRun{
false};
320 bool m_dryRunHasBeenSet =
false;
323 bool m_instanceIdHasBeenSet =
false;
326 bool m_attributeHasBeenSet =
false;
329 bool m_valueHasBeenSet =
false;
332 bool m_blockDeviceMappingsHasBeenSet =
false;
334 AttributeBooleanValue m_disableApiTermination;
335 bool m_disableApiTerminationHasBeenSet =
false;
337 AttributeValue m_instanceType;
338 bool m_instanceTypeHasBeenSet =
false;
340 AttributeValue m_kernel;
341 bool m_kernelHasBeenSet =
false;
343 AttributeValue m_ramdisk;
344 bool m_ramdiskHasBeenSet =
false;
346 BlobAttributeValue m_userData;
347 bool m_userDataHasBeenSet =
false;
349 AttributeValue m_instanceInitiatedShutdownBehavior;
350 bool m_instanceInitiatedShutdownBehaviorHasBeenSet =
false;
353 bool m_groupsHasBeenSet =
false;
355 AttributeBooleanValue m_ebsOptimized;
356 bool m_ebsOptimizedHasBeenSet =
false;
358 AttributeValue m_sriovNetSupport;
359 bool m_sriovNetSupportHasBeenSet =
false;
361 AttributeBooleanValue m_enaSupport;
362 bool m_enaSupportHasBeenSet =
false;
const Aws::Vector< Aws::String > & GetGroups() const
bool DryRunHasBeenSet() const
ModifyInstanceAttributeRequest & WithInstanceId(InstanceIdT &&value)
bool EnaSupportHasBeenSet() const
ModifyInstanceAttributeRequest & WithBlockDeviceMappings(BlockDeviceMappingsT &&value)
AWS_EC2_API ModifyInstanceAttributeRequest()=default
void SetSourceDestCheck(SourceDestCheckT &&value)
void SetGroups(GroupsT &&value)
void SetUserData(UserDataT &&value)
InstanceAttributeName GetAttribute() const
void SetKernel(KernelT &&value)
void SetValue(ValueT &&value)
bool UserDataHasBeenSet() const
ModifyInstanceAttributeRequest & WithDisableApiTermination(DisableApiTerminationT &&value)
ModifyInstanceAttributeRequest & WithInstanceType(InstanceTypeT &&value)
ModifyInstanceAttributeRequest & WithSriovNetSupport(SriovNetSupportT &&value)
bool KernelHasBeenSet() const
void SetBlockDeviceMappings(BlockDeviceMappingsT &&value)
void SetEnaSupport(EnaSupportT &&value)
bool EbsOptimizedHasBeenSet() const
ModifyInstanceAttributeRequest & WithKernel(KernelT &&value)
ModifyInstanceAttributeRequest & WithDisableApiStop(DisableApiStopT &&value)
bool ValueHasBeenSet() const
void SetInstanceType(InstanceTypeT &&value)
void SetSriovNetSupport(SriovNetSupportT &&value)
void SetInstanceId(InstanceIdT &&value)
const AttributeValue & GetInstanceType() const
bool InstanceIdHasBeenSet() const
bool BlockDeviceMappingsHasBeenSet() const
bool DisableApiTerminationHasBeenSet() const
bool SriovNetSupportHasBeenSet() const
bool AttributeHasBeenSet() const
ModifyInstanceAttributeRequest & WithInstanceInitiatedShutdownBehavior(InstanceInitiatedShutdownBehaviorT &&value)
virtual const char * GetServiceRequestName() const override
const AttributeBooleanValue & GetEbsOptimized() const
void SetInstanceInitiatedShutdownBehavior(InstanceInitiatedShutdownBehaviorT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const AttributeValue & GetKernel() const
const AttributeBooleanValue & GetDisableApiStop() const
ModifyInstanceAttributeRequest & WithUserData(UserDataT &&value)
const AttributeBooleanValue & GetEnaSupport() const
ModifyInstanceAttributeRequest & WithRamdisk(RamdiskT &&value)
const AttributeValue & GetInstanceInitiatedShutdownBehavior() const
const BlobAttributeValue & GetUserData() const
const Aws::String & GetInstanceId() const
ModifyInstanceAttributeRequest & WithEnaSupport(EnaSupportT &&value)
void SetDisableApiStop(DisableApiStopT &&value)
bool GroupsHasBeenSet() const
void SetEbsOptimized(EbsOptimizedT &&value)
const AttributeValue & GetSriovNetSupport() const
bool RamdiskHasBeenSet() const
ModifyInstanceAttributeRequest & WithSourceDestCheck(SourceDestCheckT &&value)
void SetDryRun(bool value)
const AttributeValue & GetRamdisk() const
ModifyInstanceAttributeRequest & WithAttribute(InstanceAttributeName value)
AWS_EC2_API Aws::String SerializePayload() const override
bool SourceDestCheckHasBeenSet() const
ModifyInstanceAttributeRequest & WithValue(ValueT &&value)
bool InstanceInitiatedShutdownBehaviorHasBeenSet() const
bool InstanceTypeHasBeenSet() const
ModifyInstanceAttributeRequest & AddBlockDeviceMappings(BlockDeviceMappingsT &&value)
ModifyInstanceAttributeRequest & WithDryRun(bool value)
const Aws::String & GetValue() const
void SetAttribute(InstanceAttributeName value)
const Aws::Vector< InstanceBlockDeviceMappingSpecification > & GetBlockDeviceMappings() const
void SetRamdisk(RamdiskT &&value)
ModifyInstanceAttributeRequest & WithEbsOptimized(EbsOptimizedT &&value)
ModifyInstanceAttributeRequest & AddGroups(GroupsT &&value)
void SetDisableApiTermination(DisableApiTerminationT &&value)
ModifyInstanceAttributeRequest & WithGroups(GroupsT &&value)
bool DisableApiStopHasBeenSet() const
const AttributeBooleanValue & GetSourceDestCheck() const
const AttributeBooleanValue & GetDisableApiTermination() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector