AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifyInstanceAttributeRequest.h
1
6#pragma once
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>
16#include <utility>
17
18namespace Aws
19{
20namespace EC2
21{
22namespace Model
23{
24
28 {
29 public:
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "ModifyInstanceAttribute"; }
37
38 AWS_EC2_API Aws::String SerializePayload() const override;
39
40 protected:
41 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42
43 public:
44
46
54 inline const AttributeBooleanValue& GetSourceDestCheck() const{ return m_sourceDestCheck; }
55 inline bool SourceDestCheckHasBeenSet() const { return m_sourceDestCheckHasBeenSet; }
56 inline void SetSourceDestCheck(const AttributeBooleanValue& value) { m_sourceDestCheckHasBeenSet = true; m_sourceDestCheck = value; }
57 inline void SetSourceDestCheck(AttributeBooleanValue&& value) { m_sourceDestCheckHasBeenSet = true; m_sourceDestCheck = std::move(value); }
61
63
69 inline const AttributeBooleanValue& GetDisableApiStop() const{ return m_disableApiStop; }
70 inline bool DisableApiStopHasBeenSet() const { return m_disableApiStopHasBeenSet; }
71 inline void SetDisableApiStop(const AttributeBooleanValue& value) { m_disableApiStopHasBeenSet = true; m_disableApiStop = value; }
72 inline void SetDisableApiStop(AttributeBooleanValue&& value) { m_disableApiStopHasBeenSet = true; m_disableApiStop = std::move(value); }
76
78
84 inline bool GetDryRun() const{ return m_dryRun; }
85 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
86 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
87 inline ModifyInstanceAttributeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
89
91
94 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
95 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
96 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
97 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
98 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
99 inline ModifyInstanceAttributeRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
100 inline ModifyInstanceAttributeRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
101 inline ModifyInstanceAttributeRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
103
105
115 inline const InstanceAttributeName& GetAttribute() const{ return m_attribute; }
116 inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
117 inline void SetAttribute(const InstanceAttributeName& value) { m_attributeHasBeenSet = true; m_attribute = value; }
118 inline void SetAttribute(InstanceAttributeName&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); }
120 inline ModifyInstanceAttributeRequest& WithAttribute(InstanceAttributeName&& value) { SetAttribute(std::move(value)); return *this;}
122
124
129 inline const Aws::String& GetValue() const{ return m_value; }
130 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
131 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
132 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
133 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
134 inline ModifyInstanceAttributeRequest& WithValue(const Aws::String& value) { SetValue(value); return *this;}
135 inline ModifyInstanceAttributeRequest& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
136 inline ModifyInstanceAttributeRequest& WithValue(const char* value) { SetValue(value); return *this;}
138
140
153 inline const Aws::Vector<InstanceBlockDeviceMappingSpecification>& GetBlockDeviceMappings() const{ return m_blockDeviceMappings; }
154 inline bool BlockDeviceMappingsHasBeenSet() const { return m_blockDeviceMappingsHasBeenSet; }
155 inline void SetBlockDeviceMappings(const Aws::Vector<InstanceBlockDeviceMappingSpecification>& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings = value; }
156 inline void SetBlockDeviceMappings(Aws::Vector<InstanceBlockDeviceMappingSpecification>&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings = std::move(value); }
159 inline ModifyInstanceAttributeRequest& AddBlockDeviceMappings(const InstanceBlockDeviceMappingSpecification& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(value); return *this; }
160 inline ModifyInstanceAttributeRequest& AddBlockDeviceMappings(InstanceBlockDeviceMappingSpecification&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(std::move(value)); return *this; }
162
164
169 inline const AttributeBooleanValue& GetDisableApiTermination() const{ return m_disableApiTermination; }
170 inline bool DisableApiTerminationHasBeenSet() const { return m_disableApiTerminationHasBeenSet; }
171 inline void SetDisableApiTermination(const AttributeBooleanValue& value) { m_disableApiTerminationHasBeenSet = true; m_disableApiTermination = value; }
172 inline void SetDisableApiTermination(AttributeBooleanValue&& value) { m_disableApiTerminationHasBeenSet = true; m_disableApiTermination = std::move(value); }
176
178
185 inline const AttributeValue& GetInstanceType() const{ return m_instanceType; }
186 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
187 inline void SetInstanceType(const AttributeValue& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
188 inline void SetInstanceType(AttributeValue&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
190 inline ModifyInstanceAttributeRequest& WithInstanceType(AttributeValue&& value) { SetInstanceType(std::move(value)); return *this;}
192
194
199 inline const AttributeValue& GetKernel() const{ return m_kernel; }
200 inline bool KernelHasBeenSet() const { return m_kernelHasBeenSet; }
201 inline void SetKernel(const AttributeValue& value) { m_kernelHasBeenSet = true; m_kernel = value; }
202 inline void SetKernel(AttributeValue&& value) { m_kernelHasBeenSet = true; m_kernel = std::move(value); }
203 inline ModifyInstanceAttributeRequest& WithKernel(const AttributeValue& value) { SetKernel(value); return *this;}
204 inline ModifyInstanceAttributeRequest& WithKernel(AttributeValue&& value) { SetKernel(std::move(value)); return *this;}
206
208
213 inline const AttributeValue& GetRamdisk() const{ return m_ramdisk; }
214 inline bool RamdiskHasBeenSet() const { return m_ramdiskHasBeenSet; }
215 inline void SetRamdisk(const AttributeValue& value) { m_ramdiskHasBeenSet = true; m_ramdisk = value; }
216 inline void SetRamdisk(AttributeValue&& value) { m_ramdiskHasBeenSet = true; m_ramdisk = std::move(value); }
217 inline ModifyInstanceAttributeRequest& WithRamdisk(const AttributeValue& value) { SetRamdisk(value); return *this;}
218 inline ModifyInstanceAttributeRequest& WithRamdisk(AttributeValue&& value) { SetRamdisk(std::move(value)); return *this;}
220
222
229 inline const BlobAttributeValue& GetUserData() const{ return m_userData; }
230 inline bool UserDataHasBeenSet() const { return m_userDataHasBeenSet; }
231 inline void SetUserData(const BlobAttributeValue& value) { m_userDataHasBeenSet = true; m_userData = value; }
232 inline void SetUserData(BlobAttributeValue&& value) { m_userDataHasBeenSet = true; m_userData = std::move(value); }
233 inline ModifyInstanceAttributeRequest& WithUserData(const BlobAttributeValue& value) { SetUserData(value); return *this;}
234 inline ModifyInstanceAttributeRequest& WithUserData(BlobAttributeValue&& value) { SetUserData(std::move(value)); return *this;}
236
238
242 inline const AttributeValue& GetInstanceInitiatedShutdownBehavior() const{ return m_instanceInitiatedShutdownBehavior; }
243 inline bool InstanceInitiatedShutdownBehaviorHasBeenSet() const { return m_instanceInitiatedShutdownBehaviorHasBeenSet; }
244 inline void SetInstanceInitiatedShutdownBehavior(const AttributeValue& value) { m_instanceInitiatedShutdownBehaviorHasBeenSet = true; m_instanceInitiatedShutdownBehavior = value; }
245 inline void SetInstanceInitiatedShutdownBehavior(AttributeValue&& value) { m_instanceInitiatedShutdownBehaviorHasBeenSet = true; m_instanceInitiatedShutdownBehavior = std::move(value); }
249
251
256 inline const Aws::Vector<Aws::String>& GetGroups() const{ return m_groups; }
257 inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
258 inline void SetGroups(const Aws::Vector<Aws::String>& value) { m_groupsHasBeenSet = true; m_groups = value; }
259 inline void SetGroups(Aws::Vector<Aws::String>&& value) { m_groupsHasBeenSet = true; m_groups = std::move(value); }
261 inline ModifyInstanceAttributeRequest& WithGroups(Aws::Vector<Aws::String>&& value) { SetGroups(std::move(value)); return *this;}
262 inline ModifyInstanceAttributeRequest& AddGroups(const Aws::String& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
263 inline ModifyInstanceAttributeRequest& AddGroups(Aws::String&& value) { m_groupsHasBeenSet = true; m_groups.push_back(std::move(value)); return *this; }
264 inline ModifyInstanceAttributeRequest& AddGroups(const char* value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
266
268
275 inline const AttributeBooleanValue& GetEbsOptimized() const{ return m_ebsOptimized; }
276 inline bool EbsOptimizedHasBeenSet() const { return m_ebsOptimizedHasBeenSet; }
277 inline void SetEbsOptimized(const AttributeBooleanValue& value) { m_ebsOptimizedHasBeenSet = true; m_ebsOptimized = value; }
278 inline void SetEbsOptimized(AttributeBooleanValue&& value) { m_ebsOptimizedHasBeenSet = true; m_ebsOptimized = std::move(value); }
282
284
291 inline const AttributeValue& GetSriovNetSupport() const{ return m_sriovNetSupport; }
292 inline bool SriovNetSupportHasBeenSet() const { return m_sriovNetSupportHasBeenSet; }
293 inline void SetSriovNetSupport(const AttributeValue& value) { m_sriovNetSupportHasBeenSet = true; m_sriovNetSupport = value; }
294 inline void SetSriovNetSupport(AttributeValue&& value) { m_sriovNetSupportHasBeenSet = true; m_sriovNetSupport = std::move(value); }
296 inline ModifyInstanceAttributeRequest& WithSriovNetSupport(AttributeValue&& value) { SetSriovNetSupport(std::move(value)); return *this;}
298
300
305 inline const AttributeBooleanValue& GetEnaSupport() const{ return m_enaSupport; }
306 inline bool EnaSupportHasBeenSet() const { return m_enaSupportHasBeenSet; }
307 inline void SetEnaSupport(const AttributeBooleanValue& value) { m_enaSupportHasBeenSet = true; m_enaSupport = value; }
308 inline void SetEnaSupport(AttributeBooleanValue&& value) { m_enaSupportHasBeenSet = true; m_enaSupport = std::move(value); }
310 inline ModifyInstanceAttributeRequest& WithEnaSupport(AttributeBooleanValue&& value) { SetEnaSupport(std::move(value)); return *this;}
312 private:
313
314 AttributeBooleanValue m_sourceDestCheck;
315 bool m_sourceDestCheckHasBeenSet = false;
316
317 AttributeBooleanValue m_disableApiStop;
318 bool m_disableApiStopHasBeenSet = false;
319
320 bool m_dryRun;
321 bool m_dryRunHasBeenSet = false;
322
323 Aws::String m_instanceId;
324 bool m_instanceIdHasBeenSet = false;
325
326 InstanceAttributeName m_attribute;
327 bool m_attributeHasBeenSet = false;
328
329 Aws::String m_value;
330 bool m_valueHasBeenSet = false;
331
333 bool m_blockDeviceMappingsHasBeenSet = false;
334
335 AttributeBooleanValue m_disableApiTermination;
336 bool m_disableApiTerminationHasBeenSet = false;
337
338 AttributeValue m_instanceType;
339 bool m_instanceTypeHasBeenSet = false;
340
341 AttributeValue m_kernel;
342 bool m_kernelHasBeenSet = false;
343
344 AttributeValue m_ramdisk;
345 bool m_ramdiskHasBeenSet = false;
346
347 BlobAttributeValue m_userData;
348 bool m_userDataHasBeenSet = false;
349
350 AttributeValue m_instanceInitiatedShutdownBehavior;
351 bool m_instanceInitiatedShutdownBehaviorHasBeenSet = false;
352
354 bool m_groupsHasBeenSet = false;
355
356 AttributeBooleanValue m_ebsOptimized;
357 bool m_ebsOptimizedHasBeenSet = false;
358
359 AttributeValue m_sriovNetSupport;
360 bool m_sriovNetSupportHasBeenSet = false;
361
362 AttributeBooleanValue m_enaSupport;
363 bool m_enaSupportHasBeenSet = false;
364 };
365
366} // namespace Model
367} // namespace EC2
368} // namespace Aws
void SetInstanceInitiatedShutdownBehavior(const AttributeValue &value)
ModifyInstanceAttributeRequest & WithDisableApiTermination(const AttributeBooleanValue &value)
const Aws::Vector< Aws::String > & GetGroups() const
void SetSourceDestCheck(const AttributeBooleanValue &value)
ModifyInstanceAttributeRequest & AddBlockDeviceMappings(InstanceBlockDeviceMappingSpecification &&value)
ModifyInstanceAttributeRequest & WithSourceDestCheck(const AttributeBooleanValue &value)
ModifyInstanceAttributeRequest & WithSriovNetSupport(AttributeValue &&value)
ModifyInstanceAttributeRequest & WithGroups(const Aws::Vector< Aws::String > &value)
ModifyInstanceAttributeRequest & WithEnaSupport(AttributeBooleanValue &&value)
void SetEbsOptimized(const AttributeBooleanValue &value)
ModifyInstanceAttributeRequest & WithEnaSupport(const AttributeBooleanValue &value)
ModifyInstanceAttributeRequest & WithDisableApiStop(const AttributeBooleanValue &value)
ModifyInstanceAttributeRequest & WithSourceDestCheck(AttributeBooleanValue &&value)
ModifyInstanceAttributeRequest & WithValue(const Aws::String &value)
ModifyInstanceAttributeRequest & WithInstanceId(Aws::String &&value)
ModifyInstanceAttributeRequest & WithInstanceType(AttributeValue &&value)
ModifyInstanceAttributeRequest & WithDisableApiTermination(AttributeBooleanValue &&value)
ModifyInstanceAttributeRequest & WithValue(Aws::String &&value)
ModifyInstanceAttributeRequest & WithValue(const char *value)
ModifyInstanceAttributeRequest & WithInstanceInitiatedShutdownBehavior(const AttributeValue &value)
ModifyInstanceAttributeRequest & WithEbsOptimized(const AttributeBooleanValue &value)
ModifyInstanceAttributeRequest & WithEbsOptimized(AttributeBooleanValue &&value)
void SetBlockDeviceMappings(const Aws::Vector< InstanceBlockDeviceMappingSpecification > &value)
ModifyInstanceAttributeRequest & AddGroups(const char *value)
ModifyInstanceAttributeRequest & WithGroups(Aws::Vector< Aws::String > &&value)
ModifyInstanceAttributeRequest & WithSriovNetSupport(const AttributeValue &value)
virtual const char * GetServiceRequestName() const override
ModifyInstanceAttributeRequest & WithRamdisk(AttributeValue &&value)
void SetBlockDeviceMappings(Aws::Vector< InstanceBlockDeviceMappingSpecification > &&value)
ModifyInstanceAttributeRequest & AddGroups(Aws::String &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyInstanceAttributeRequest & WithBlockDeviceMappings(const Aws::Vector< InstanceBlockDeviceMappingSpecification > &value)
ModifyInstanceAttributeRequest & WithDisableApiStop(AttributeBooleanValue &&value)
ModifyInstanceAttributeRequest & WithBlockDeviceMappings(Aws::Vector< InstanceBlockDeviceMappingSpecification > &&value)
void SetDisableApiStop(const AttributeBooleanValue &value)
ModifyInstanceAttributeRequest & WithAttribute(InstanceAttributeName &&value)
void SetGroups(const Aws::Vector< Aws::String > &value)
ModifyInstanceAttributeRequest & AddBlockDeviceMappings(const InstanceBlockDeviceMappingSpecification &value)
ModifyInstanceAttributeRequest & AddGroups(const Aws::String &value)
AWS_EC2_API Aws::String SerializePayload() const override
ModifyInstanceAttributeRequest & WithInstanceId(const Aws::String &value)
ModifyInstanceAttributeRequest & WithKernel(AttributeValue &&value)
ModifyInstanceAttributeRequest & WithInstanceId(const char *value)
ModifyInstanceAttributeRequest & WithInstanceType(const AttributeValue &value)
ModifyInstanceAttributeRequest & WithDryRun(bool value)
ModifyInstanceAttributeRequest & WithUserData(const BlobAttributeValue &value)
ModifyInstanceAttributeRequest & WithKernel(const AttributeValue &value)
void SetDisableApiTermination(const AttributeBooleanValue &value)
const Aws::Vector< InstanceBlockDeviceMappingSpecification > & GetBlockDeviceMappings() const
ModifyInstanceAttributeRequest & WithUserData(BlobAttributeValue &&value)
ModifyInstanceAttributeRequest & WithInstanceInitiatedShutdownBehavior(AttributeValue &&value)
ModifyInstanceAttributeRequest & WithRamdisk(const AttributeValue &value)
ModifyInstanceAttributeRequest & WithAttribute(const InstanceAttributeName &value)
const AttributeBooleanValue & GetDisableApiTermination() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector