7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
30 inline virtual const char*
GetServiceRequestName()
const override {
return "EnableImageDeregistrationProtection"; }
47 inline void SetImageId(
const char* value) { m_imageIdHasBeenSet =
true; m_imageId.assign(value); }
60 inline void SetWithCooldown(
bool value) { m_withCooldownHasBeenSet =
true; m_withCooldown = value; }
73 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
79 bool m_imageIdHasBeenSet =
false;
82 bool m_withCooldownHasBeenSet =
false;
85 bool m_dryRunHasBeenSet =
false;
AWS_EC2_API EnableImageDeregistrationProtectionRequest()
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
EnableImageDeregistrationProtectionRequest & WithDryRun(bool value)
EnableImageDeregistrationProtectionRequest & WithImageId(const Aws::String &value)
EnableImageDeregistrationProtectionRequest & WithImageId(Aws::String &&value)
bool GetWithCooldown() const
void SetWithCooldown(bool value)
bool WithCooldownHasBeenSet() const
bool ImageIdHasBeenSet() const
EnableImageDeregistrationProtectionRequest & WithImageId(const char *value)
AWS_EC2_API Aws::String SerializePayload() const override
void SetImageId(Aws::String &&value)
EnableImageDeregistrationProtectionRequest & WithWithCooldown(bool value)
virtual const char * GetServiceRequestName() const override
void SetDryRun(bool value)
bool DryRunHasBeenSet() const
const Aws::String & GetImageId() const
void SetImageId(const Aws::String &value)
void SetImageId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String