AWS SDK for C++  1.9.123
AWS SDK for C++
EnableImageDeprecationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace EC2
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "EnableImageDeprecation"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
43  inline const Aws::String& GetImageId() const{ return m_imageId; }
44 
48  inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
49 
53  inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
54 
58  inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
59 
63  inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
64 
68  inline EnableImageDeprecationRequest& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
69 
73  inline EnableImageDeprecationRequest& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
74 
78  inline EnableImageDeprecationRequest& WithImageId(const char* value) { SetImageId(value); return *this;}
79 
80 
88  inline const Aws::Utils::DateTime& GetDeprecateAt() const{ return m_deprecateAt; }
89 
97  inline bool DeprecateAtHasBeenSet() const { return m_deprecateAtHasBeenSet; }
98 
106  inline void SetDeprecateAt(const Aws::Utils::DateTime& value) { m_deprecateAtHasBeenSet = true; m_deprecateAt = value; }
107 
115  inline void SetDeprecateAt(Aws::Utils::DateTime&& value) { m_deprecateAtHasBeenSet = true; m_deprecateAt = std::move(value); }
116 
124  inline EnableImageDeprecationRequest& WithDeprecateAt(const Aws::Utils::DateTime& value) { SetDeprecateAt(value); return *this;}
125 
133  inline EnableImageDeprecationRequest& WithDeprecateAt(Aws::Utils::DateTime&& value) { SetDeprecateAt(std::move(value)); return *this;}
134 
135 
142  inline bool GetDryRun() const{ return m_dryRun; }
143 
150  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
151 
158  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
159 
166  inline EnableImageDeprecationRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
167 
168  private:
169 
170  Aws::String m_imageId;
171  bool m_imageIdHasBeenSet;
172 
173  Aws::Utils::DateTime m_deprecateAt;
174  bool m_deprecateAtHasBeenSet;
175 
176  bool m_dryRun;
177  bool m_dryRunHasBeenSet;
178  };
179 
180 } // namespace Model
181 } // namespace EC2
182 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::EC2::Model::EnableImageDeprecationRequest::GetImageId
const Aws::String & GetImageId() const
Definition: EnableImageDeprecationRequest.h:43
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::EnableImageDeprecationRequest::WithImageId
EnableImageDeprecationRequest & WithImageId(const Aws::String &value)
Definition: EnableImageDeprecationRequest.h:68
Aws::EC2::Model::EnableImageDeprecationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: EnableImageDeprecationRequest.h:31
Aws::EC2::Model::EnableImageDeprecationRequest::WithImageId
EnableImageDeprecationRequest & WithImageId(Aws::String &&value)
Definition: EnableImageDeprecationRequest.h:73
DateTime.h
Aws::EC2::Model::EnableImageDeprecationRequest::WithDeprecateAt
EnableImageDeprecationRequest & WithDeprecateAt(Aws::Utils::DateTime &&value)
Definition: EnableImageDeprecationRequest.h:133
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::EnableImageDeprecationRequest::DeprecateAtHasBeenSet
bool DeprecateAtHasBeenSet() const
Definition: EnableImageDeprecationRequest.h:97
Aws::EC2::Model::EnableImageDeprecationRequest::SetImageId
void SetImageId(Aws::String &&value)
Definition: EnableImageDeprecationRequest.h:58
Aws::EC2::Model::EnableImageDeprecationRequest::SetImageId
void SetImageId(const Aws::String &value)
Definition: EnableImageDeprecationRequest.h:53
Aws::EC2::Model::EnableImageDeprecationRequest::WithImageId
EnableImageDeprecationRequest & WithImageId(const char *value)
Definition: EnableImageDeprecationRequest.h:78
Aws::EC2::Model::EnableImageDeprecationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::EnableImageDeprecationRequest::GetDryRun
bool GetDryRun() const
Definition: EnableImageDeprecationRequest.h:142
Aws::EC2::Model::EnableImageDeprecationRequest::WithDryRun
EnableImageDeprecationRequest & WithDryRun(bool value)
Definition: EnableImageDeprecationRequest.h:166
Aws::EC2::Model::EnableImageDeprecationRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: EnableImageDeprecationRequest.h:150
Aws::EC2::Model::EnableImageDeprecationRequest::SetImageId
void SetImageId(const char *value)
Definition: EnableImageDeprecationRequest.h:63
EC2Request.h
AWSString.h
Aws::EC2::Model::EnableImageDeprecationRequest::GetDeprecateAt
const Aws::Utils::DateTime & GetDeprecateAt() const
Definition: EnableImageDeprecationRequest.h:88
Aws::EC2::Model::EnableImageDeprecationRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::EnableImageDeprecationRequest::SetDryRun
void SetDryRun(bool value)
Definition: EnableImageDeprecationRequest.h:158
Aws::EC2::Model::EnableImageDeprecationRequest
Definition: EnableImageDeprecationRequest.h:23
Aws::EC2::Model::EnableImageDeprecationRequest::EnableImageDeprecationRequest
EnableImageDeprecationRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::EnableImageDeprecationRequest::SetDeprecateAt
void SetDeprecateAt(const Aws::Utils::DateTime &value)
Definition: EnableImageDeprecationRequest.h:106
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
EC2_EXPORTS.h
Aws::EC2::Model::EnableImageDeprecationRequest::WithDeprecateAt
EnableImageDeprecationRequest & WithDeprecateAt(const Aws::Utils::DateTime &value)
Definition: EnableImageDeprecationRequest.h:124
Aws::EC2::Model::EnableImageDeprecationRequest::ImageIdHasBeenSet
bool ImageIdHasBeenSet() const
Definition: EnableImageDeprecationRequest.h:48
Aws::EC2::Model::EnableImageDeprecationRequest::SetDeprecateAt
void SetDeprecateAt(Aws::Utils::DateTime &&value)
Definition: EnableImageDeprecationRequest.h:115