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));
92 m_snapshotLocationHasBeenSet =
true;
93 m_snapshotLocation = value;
111 m_dryRunHasBeenSet =
true;
126 template <
typename InstanceIdT = Aws::String>
128 m_instanceIdHasBeenSet =
true;
129 m_instanceId = std::forward<InstanceIdT>(value);
131 template <
typename InstanceIdT = Aws::String>
146 template <
typename NameT = Aws::String>
148 m_nameHasBeenSet =
true;
149 m_name = std::forward<NameT>(value);
151 template <
typename NameT = Aws::String>
153 SetName(std::forward<NameT>(value));
164 template <
typename DescriptionT = Aws::String>
166 m_descriptionHasBeenSet =
true;
167 m_description = std::forward<DescriptionT>(value);
169 template <
typename DescriptionT = Aws::String>
192 m_noRebootHasBeenSet =
true;
216 template <
typename BlockDeviceMappingsT = Aws::Vector<BlockDeviceMapping>>
218 m_blockDeviceMappingsHasBeenSet =
true;
219 m_blockDeviceMappings = std::forward<BlockDeviceMappingsT>(value);
221 template <
typename BlockDeviceMappingsT = Aws::Vector<BlockDeviceMapping>>
226 template <
typename BlockDeviceMappingsT = BlockDeviceMapping>
228 m_blockDeviceMappingsHasBeenSet =
true;
229 m_blockDeviceMappings.emplace_back(std::forward<BlockDeviceMappingsT>(value));
238 bool m_dryRun{
false};
246 bool m_noReboot{
false};
249 bool m_tagSpecificationsHasBeenSet =
false;
250 bool m_snapshotLocationHasBeenSet =
false;
251 bool m_dryRunHasBeenSet =
false;
252 bool m_instanceIdHasBeenSet =
false;
253 bool m_nameHasBeenSet =
false;
254 bool m_descriptionHasBeenSet =
false;
255 bool m_noRebootHasBeenSet =
false;
256 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