7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/model/SnapshotLocationEnum.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/ec2/model/TagSpecification.h>
13#include <aws/ec2/model/BlockDeviceMapping.h>
59 template<
typename TagSpecificationsT = Aws::Vector<TagSpecification>>
60 void SetTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet =
true; m_tagSpecifications = std::forward<TagSpecificationsT>(value); }
61 template<
typename TagSpecificationsT = Aws::Vector<TagSpecification>>
63 template<
typename TagSpecificationsT = TagSpecification>
64 CreateImageRequest&
AddTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet =
true; m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value));
return *
this; }
92 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
102 template<
typename InstanceIdT = Aws::String>
103 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet =
true; m_instanceId = std::forward<InstanceIdT>(value); }
104 template<
typename InstanceIdT = Aws::String>
116 template<
typename NameT = Aws::String>
117 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
118 template<
typename NameT = Aws::String>
128 template<
typename DescriptionT = Aws::String>
129 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
130 template<
typename DescriptionT = Aws::String>
149 inline void SetNoReboot(
bool value) { m_noRebootHasBeenSet =
true; m_noReboot = value; }
168 template<
typename BlockDeviceMappingsT = Aws::Vector<BlockDeviceMapping>>
169 void SetBlockDeviceMappings(BlockDeviceMappingsT&& value) { m_blockDeviceMappingsHasBeenSet =
true; m_blockDeviceMappings = std::forward<BlockDeviceMappingsT>(value); }
170 template<
typename BlockDeviceMappingsT = Aws::Vector<BlockDeviceMapping>>
172 template<
typename BlockDeviceMappingsT = BlockDeviceMapping>
178 bool m_tagSpecificationsHasBeenSet =
false;
181 bool m_snapshotLocationHasBeenSet =
false;
183 bool m_dryRun{
false};
184 bool m_dryRunHasBeenSet =
false;
187 bool m_instanceIdHasBeenSet =
false;
190 bool m_nameHasBeenSet =
false;
193 bool m_descriptionHasBeenSet =
false;
195 bool m_noReboot{
false};
196 bool m_noRebootHasBeenSet =
false;
199 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