AWS SDK for C++  1.9.71
AWS SDK for C++
ResetImageAttributeRequest.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 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "ResetImageAttribute"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
48  inline const ResetImageAttributeName& GetAttribute() const{ return m_attribute; }
49 
54  inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
55 
60  inline void SetAttribute(const ResetImageAttributeName& value) { m_attributeHasBeenSet = true; m_attribute = value; }
61 
66  inline void SetAttribute(ResetImageAttributeName&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); }
67 
72  inline ResetImageAttributeRequest& WithAttribute(const ResetImageAttributeName& value) { SetAttribute(value); return *this;}
73 
78  inline ResetImageAttributeRequest& WithAttribute(ResetImageAttributeName&& value) { SetAttribute(std::move(value)); return *this;}
79 
80 
84  inline const Aws::String& GetImageId() const{ return m_imageId; }
85 
89  inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
90 
94  inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
95 
99  inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
100 
104  inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
105 
109  inline ResetImageAttributeRequest& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
110 
114  inline ResetImageAttributeRequest& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
115 
119  inline ResetImageAttributeRequest& WithImageId(const char* value) { SetImageId(value); return *this;}
120 
121 
128  inline bool GetDryRun() const{ return m_dryRun; }
129 
136  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
137 
144  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
145 
152  inline ResetImageAttributeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
153 
154  private:
155 
156  ResetImageAttributeName m_attribute;
157  bool m_attributeHasBeenSet;
158 
159  Aws::String m_imageId;
160  bool m_imageIdHasBeenSet;
161 
162  bool m_dryRun;
163  bool m_dryRunHasBeenSet;
164  };
165 
166 } // namespace Model
167 } // namespace EC2
168 } // namespace Aws
Aws::EC2::Model::ResetImageAttributeRequest::AttributeHasBeenSet
bool AttributeHasBeenSet() const
Definition: ResetImageAttributeRequest.h:54
Aws::EC2::Model::ResetImageAttributeRequest::SetDryRun
void SetDryRun(bool value)
Definition: ResetImageAttributeRequest.h:144
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ResetImageAttributeRequest::SetImageId
void SetImageId(Aws::String &&value)
Definition: ResetImageAttributeRequest.h:99
Aws::EC2::Model::ResetImageAttributeRequest::WithDryRun
ResetImageAttributeRequest & WithDryRun(bool value)
Definition: ResetImageAttributeRequest.h:152
Aws::EC2::Model::ResetImageAttributeRequest::WithAttribute
ResetImageAttributeRequest & WithAttribute(const ResetImageAttributeName &value)
Definition: ResetImageAttributeRequest.h:72
Aws::EC2::Model::ResetImageAttributeRequest::SetImageId
void SetImageId(const char *value)
Definition: ResetImageAttributeRequest.h:104
Aws::EC2::Model::ResetImageAttributeRequest::SetAttribute
void SetAttribute(ResetImageAttributeName &&value)
Definition: ResetImageAttributeRequest.h:66
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ResetImageAttributeRequest::WithAttribute
ResetImageAttributeRequest & WithAttribute(ResetImageAttributeName &&value)
Definition: ResetImageAttributeRequest.h:78
Aws::EC2::Model::ResetImageAttributeRequest::WithImageId
ResetImageAttributeRequest & WithImageId(Aws::String &&value)
Definition: ResetImageAttributeRequest.h:114
Aws::EC2::Model::ResetImageAttributeRequest::ResetImageAttributeRequest
ResetImageAttributeRequest()
Aws::EC2::Model::ResetImageAttributeRequest::SetAttribute
void SetAttribute(const ResetImageAttributeName &value)
Definition: ResetImageAttributeRequest.h:60
ResetImageAttributeName.h
Aws::EC2::Model::ResetImageAttributeRequest::SerializePayload
Aws::String SerializePayload() const override
EC2Request.h
Aws::EC2::Model::ResetImageAttributeRequest::GetDryRun
bool GetDryRun() const
Definition: ResetImageAttributeRequest.h:128
AWSString.h
Aws::EC2::Model::ResetImageAttributeName
ResetImageAttributeName
Definition: ResetImageAttributeName.h:17
Aws::EC2::Model::ResetImageAttributeRequest
Definition: ResetImageAttributeRequest.h:27
Aws::EC2::Model::ResetImageAttributeRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ResetImageAttributeRequest::SetImageId
void SetImageId(const Aws::String &value)
Definition: ResetImageAttributeRequest.h:94
Aws::EC2::Model::ResetImageAttributeRequest::GetAttribute
const ResetImageAttributeName & GetAttribute() const
Definition: ResetImageAttributeRequest.h:48
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
Aws::EC2::Model::ResetImageAttributeRequest::ImageIdHasBeenSet
bool ImageIdHasBeenSet() const
Definition: ResetImageAttributeRequest.h:89
Aws::EC2::Model::ResetImageAttributeRequest::WithImageId
ResetImageAttributeRequest & WithImageId(const char *value)
Definition: ResetImageAttributeRequest.h:119
EC2_EXPORTS.h
Aws::EC2::Model::ResetImageAttributeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ResetImageAttributeRequest.h:35
Aws::EC2::Model::ResetImageAttributeRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: ResetImageAttributeRequest.h:136
Aws::EC2::Model::ResetImageAttributeRequest::WithImageId
ResetImageAttributeRequest & WithImageId(const Aws::String &value)
Definition: ResetImageAttributeRequest.h:109
Aws::EC2::Model::ResetImageAttributeRequest::GetImageId
const Aws::String & GetImageId() const
Definition: ResetImageAttributeRequest.h:84