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"; }
45 template<
typename ImageIdT = Aws::String>
46 void SetImageId(ImageIdT&& value) { m_imageIdHasBeenSet =
true; m_imageId = std::forward<ImageIdT>(value); }
47 template<
typename ImageIdT = Aws::String>
58 inline void SetWithCooldown(
bool value) { m_withCooldownHasBeenSet =
true; m_withCooldown = value; }
71 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
77 bool m_imageIdHasBeenSet =
false;
79 bool m_withCooldown{
false};
80 bool m_withCooldownHasBeenSet =
false;
83 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