AWS SDK for C++  1.9.131
AWS SDK for C++
ResetInstanceAttributeRequest.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 "ResetInstanceAttribute"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
46  inline const InstanceAttributeName& GetAttribute() const{ return m_attribute; }
47 
54  inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
55 
62  inline void SetAttribute(const InstanceAttributeName& value) { m_attributeHasBeenSet = true; m_attribute = value; }
63 
70  inline void SetAttribute(InstanceAttributeName&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); }
71 
78  inline ResetInstanceAttributeRequest& WithAttribute(const InstanceAttributeName& value) { SetAttribute(value); return *this;}
79 
86  inline ResetInstanceAttributeRequest& WithAttribute(InstanceAttributeName&& value) { SetAttribute(std::move(value)); return *this;}
87 
88 
95  inline bool GetDryRun() const{ return m_dryRun; }
96 
103  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
104 
111  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
112 
119  inline ResetInstanceAttributeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
120 
121 
125  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
126 
130  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
131 
135  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
136 
140  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
141 
145  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
146 
150  inline ResetInstanceAttributeRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
151 
155  inline ResetInstanceAttributeRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
156 
160  inline ResetInstanceAttributeRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
161 
162  private:
163 
164  InstanceAttributeName m_attribute;
165  bool m_attributeHasBeenSet;
166 
167  bool m_dryRun;
168  bool m_dryRunHasBeenSet;
169 
170  Aws::String m_instanceId;
171  bool m_instanceIdHasBeenSet;
172  };
173 
174 } // namespace Model
175 } // namespace EC2
176 } // namespace Aws
Aws::EC2::Model::ResetInstanceAttributeRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: ResetInstanceAttributeRequest.h:130
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ResetInstanceAttributeRequest::SetAttribute
void SetAttribute(InstanceAttributeName &&value)
Definition: ResetInstanceAttributeRequest.h:70
Aws::EC2::Model::ResetInstanceAttributeRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: ResetInstanceAttributeRequest.h:135
Aws::EC2::Model::ResetInstanceAttributeRequest::WithInstanceId
ResetInstanceAttributeRequest & WithInstanceId(const char *value)
Definition: ResetInstanceAttributeRequest.h:160
Aws::EC2::Model::ResetInstanceAttributeRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ResetInstanceAttributeRequest::GetDryRun
bool GetDryRun() const
Definition: ResetInstanceAttributeRequest.h:95
Aws::EC2::Model::ResetInstanceAttributeRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: ResetInstanceAttributeRequest.h:125
InstanceAttributeName.h
Aws::EC2::Model::InstanceAttributeName
InstanceAttributeName
Definition: InstanceAttributeName.h:17
Aws::EC2::Model::ResetInstanceAttributeRequest::AttributeHasBeenSet
bool AttributeHasBeenSet() const
Definition: ResetInstanceAttributeRequest.h:54
Aws::EC2::Model::ResetInstanceAttributeRequest::WithInstanceId
ResetInstanceAttributeRequest & WithInstanceId(Aws::String &&value)
Definition: ResetInstanceAttributeRequest.h:155
Aws::EC2::Model::ResetInstanceAttributeRequest::WithAttribute
ResetInstanceAttributeRequest & WithAttribute(const InstanceAttributeName &value)
Definition: ResetInstanceAttributeRequest.h:78
Aws::EC2::Model::ResetInstanceAttributeRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: ResetInstanceAttributeRequest.h:145
EC2Request.h
Aws::EC2::Model::ResetInstanceAttributeRequest
Definition: ResetInstanceAttributeRequest.h:23
Aws::EC2::Model::ResetInstanceAttributeRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: ResetInstanceAttributeRequest.h:103
AWSString.h
Aws::EC2::Model::ResetInstanceAttributeRequest::SetDryRun
void SetDryRun(bool value)
Definition: ResetInstanceAttributeRequest.h:111
Aws::EC2::Model::ResetInstanceAttributeRequest::ResetInstanceAttributeRequest
ResetInstanceAttributeRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ResetInstanceAttributeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ResetInstanceAttributeRequest.h:31
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ResetInstanceAttributeRequest::SetAttribute
void SetAttribute(const InstanceAttributeName &value)
Definition: ResetInstanceAttributeRequest.h:62
Aws::EC2::Model::ResetInstanceAttributeRequest::WithAttribute
ResetInstanceAttributeRequest & WithAttribute(InstanceAttributeName &&value)
Definition: ResetInstanceAttributeRequest.h:86
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::ResetInstanceAttributeRequest::WithInstanceId
ResetInstanceAttributeRequest & WithInstanceId(const Aws::String &value)
Definition: ResetInstanceAttributeRequest.h:150
Aws::EC2::Model::ResetInstanceAttributeRequest::WithDryRun
ResetInstanceAttributeRequest & WithDryRun(bool value)
Definition: ResetInstanceAttributeRequest.h:119
Aws::EC2::Model::ResetInstanceAttributeRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: ResetInstanceAttributeRequest.h:140
Aws::EC2::Model::ResetInstanceAttributeRequest::GetAttribute
const InstanceAttributeName & GetAttribute() const
Definition: ResetInstanceAttributeRequest.h:46
Aws::EC2::Model::ResetInstanceAttributeRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
EC2_EXPORTS.h