7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/BlockDeviceMapping.h>
12#include <aws/ec2/model/SnapshotLocationEnum.h>
13#include <aws/ec2/model/TagSpecification.h>
55 template <
typename TagSpecificationsT = Aws::Vector<TagSpecification>>
57 m_tagSpecificationsHasBeenSet =
true;
58 m_tagSpecifications = std::forward<TagSpecificationsT>(value);
60 template <
typename TagSpecificationsT = Aws::Vector<TagSpecification>>
65 template <
typename TagSpecificationsT = TagSpecification>
67 m_tagSpecificationsHasBeenSet =
true;
68 m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value));
86 m_snapshotLocationHasBeenSet =
true;
87 m_snapshotLocation = value;
105 m_dryRunHasBeenSet =
true;
120 template <
typename InstanceIdT = Aws::String>
122 m_instanceIdHasBeenSet =
true;
123 m_instanceId = std::forward<InstanceIdT>(value);
125 template <
typename InstanceIdT = Aws::String>
140 template <
typename NameT = Aws::String>
142 m_nameHasBeenSet =
true;
143 m_name = std::forward<NameT>(value);
145 template <
typename NameT = Aws::String>
147 SetName(std::forward<NameT>(value));
158 template <
typename DescriptionT = Aws::String>
160 m_descriptionHasBeenSet =
true;
161 m_description = std::forward<DescriptionT>(value);
163 template <
typename DescriptionT = Aws::String>
186 m_noRebootHasBeenSet =
true;
210 template <
typename BlockDeviceMappingsT = Aws::Vector<BlockDeviceMapping>>
212 m_blockDeviceMappingsHasBeenSet =
true;
213 m_blockDeviceMappings = std::forward<BlockDeviceMappingsT>(value);
215 template <
typename BlockDeviceMappingsT = Aws::Vector<BlockDeviceMapping>>
220 template <
typename BlockDeviceMappingsT = BlockDeviceMapping>
222 m_blockDeviceMappingsHasBeenSet =
true;
223 m_blockDeviceMappings.emplace_back(std::forward<BlockDeviceMappingsT>(value));
232 bool m_dryRun{
false};
240 bool m_noReboot{
false};
243 bool m_tagSpecificationsHasBeenSet =
false;
244 bool m_snapshotLocationHasBeenSet =
false;
245 bool m_dryRunHasBeenSet =
false;
246 bool m_instanceIdHasBeenSet =
false;
247 bool m_nameHasBeenSet =
false;
248 bool m_descriptionHasBeenSet =
false;
249 bool m_noRebootHasBeenSet =
false;
250 bool m_blockDeviceMappingsHasBeenSet =
false;
CreateImageRequest & WithSnapshotLocation(SnapshotLocationEnum value)
bool SnapshotLocationHasBeenSet() const
CreateImageRequest & AddBlockDeviceMappings(BlockDeviceMappingsT &&value)
CreateImageRequest & WithTagSpecifications(TagSpecificationsT &&value)
CreateImageRequest & WithInstanceId(InstanceIdT &&value)
void SetInstanceId(InstanceIdT &&value)
CreateImageRequest & WithName(NameT &&value)
CreateImageRequest & WithDescription(DescriptionT &&value)
AWS_EC2_API CreateImageRequest()=default
bool TagSpecificationsHasBeenSet() const
CreateImageRequest & AddTagSpecifications(TagSpecificationsT &&value)
void SetNoReboot(bool value)
SnapshotLocationEnum GetSnapshotLocation() const
virtual const char * GetServiceRequestName() const override
const Aws::String & GetDescription() const
void SetName(NameT &&value)
const Aws::Vector< BlockDeviceMapping > & GetBlockDeviceMappings() const
CreateImageRequest & WithNoReboot(bool value)
bool DescriptionHasBeenSet() const
CreateImageRequest & WithBlockDeviceMappings(BlockDeviceMappingsT &&value)
const Aws::String & GetName() const
CreateImageRequest & WithDryRun(bool value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetSnapshotLocation(SnapshotLocationEnum value)
void SetBlockDeviceMappings(BlockDeviceMappingsT &&value)
void SetDryRun(bool value)
void SetDescription(DescriptionT &&value)
void SetTagSpecifications(TagSpecificationsT &&value)
bool BlockDeviceMappingsHasBeenSet() const
AWS_EC2_API Aws::String SerializePayload() const override
bool NoRebootHasBeenSet() const
const Aws::String & GetInstanceId() const
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
bool InstanceIdHasBeenSet() const
bool NameHasBeenSet() const
bool DryRunHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector