7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/EC2_EXPORTS.h>
27 inline virtual const char*
GetServiceRequestName()
const override {
return "EnableImageDeregistrationProtection"; }
41 template <
typename ImageIdT = Aws::String>
43 m_imageIdHasBeenSet =
true;
44 m_imageId = std::forward<ImageIdT>(value);
46 template <
typename ImageIdT = Aws::String>
61 m_withCooldownHasBeenSet =
true;
62 m_withCooldown = value;
80 m_dryRunHasBeenSet =
true;
91 bool m_withCooldown{
false};
94 bool m_imageIdHasBeenSet =
false;
95 bool m_withCooldownHasBeenSet =
false;
96 bool m_dryRunHasBeenSet =
false;
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
EnableImageDeregistrationProtectionRequest & WithDryRun(bool value)
bool GetWithCooldown() const
void SetWithCooldown(bool value)
bool WithCooldownHasBeenSet() const
bool ImageIdHasBeenSet() const
void SetImageId(ImageIdT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
EnableImageDeregistrationProtectionRequest & WithWithCooldown(bool value)
virtual const char * GetServiceRequestName() const override
EnableImageDeregistrationProtectionRequest & WithImageId(ImageIdT &&value)
void SetDryRun(bool value)
bool DryRunHasBeenSet() const
const Aws::String & GetImageId() const
AWS_EC2_API EnableImageDeregistrationProtectionRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String