AWS SDK for C++  1.9.69
AWS SDK for C++
ResetNetworkInterfaceAttributeRequest.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>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace EC2
15 {
16 namespace Model
17 {
18 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "ResetNetworkInterfaceAttribute"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
49  inline bool GetDryRun() const{ return m_dryRun; }
50 
57  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
58 
65  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
66 
73  inline ResetNetworkInterfaceAttributeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
74 
75 
79  inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
80 
84  inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
85 
89  inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
90 
94  inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); }
95 
99  inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
100 
104  inline ResetNetworkInterfaceAttributeRequest& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;}
105 
109  inline ResetNetworkInterfaceAttributeRequest& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;}
110 
114  inline ResetNetworkInterfaceAttributeRequest& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
115 
116 
121  inline const Aws::String& GetSourceDestCheck() const{ return m_sourceDestCheck; }
122 
127  inline bool SourceDestCheckHasBeenSet() const { return m_sourceDestCheckHasBeenSet; }
128 
133  inline void SetSourceDestCheck(const Aws::String& value) { m_sourceDestCheckHasBeenSet = true; m_sourceDestCheck = value; }
134 
139  inline void SetSourceDestCheck(Aws::String&& value) { m_sourceDestCheckHasBeenSet = true; m_sourceDestCheck = std::move(value); }
140 
145  inline void SetSourceDestCheck(const char* value) { m_sourceDestCheckHasBeenSet = true; m_sourceDestCheck.assign(value); }
146 
151  inline ResetNetworkInterfaceAttributeRequest& WithSourceDestCheck(const Aws::String& value) { SetSourceDestCheck(value); return *this;}
152 
157  inline ResetNetworkInterfaceAttributeRequest& WithSourceDestCheck(Aws::String&& value) { SetSourceDestCheck(std::move(value)); return *this;}
158 
163  inline ResetNetworkInterfaceAttributeRequest& WithSourceDestCheck(const char* value) { SetSourceDestCheck(value); return *this;}
164 
165  private:
166 
167  bool m_dryRun;
168  bool m_dryRunHasBeenSet;
169 
170  Aws::String m_networkInterfaceId;
171  bool m_networkInterfaceIdHasBeenSet;
172 
173  Aws::String m_sourceDestCheck;
174  bool m_sourceDestCheckHasBeenSet;
175  };
176 
177 } // namespace Model
178 } // namespace EC2
179 } // namespace Aws
Aws::EC2::Model::ResetNetworkInterfaceAttributeRequest::SetSourceDestCheck
void SetSourceDestCheck(Aws::String &&value)
Definition: ResetNetworkInterfaceAttributeRequest.h:139
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ResetNetworkInterfaceAttributeRequest::WithNetworkInterfaceId
ResetNetworkInterfaceAttributeRequest & WithNetworkInterfaceId(Aws::String &&value)
Definition: ResetNetworkInterfaceAttributeRequest.h:109
Aws::EC2::Model::ResetNetworkInterfaceAttributeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ResetNetworkInterfaceAttributeRequest.h:34
Aws::EC2::Model::ResetNetworkInterfaceAttributeRequest::SetNetworkInterfaceId
void SetNetworkInterfaceId(const Aws::String &value)
Definition: ResetNetworkInterfaceAttributeRequest.h:89
Aws::EC2::Model::ResetNetworkInterfaceAttributeRequest
Definition: ResetNetworkInterfaceAttributeRequest.h:26
Aws::EC2::Model::ResetNetworkInterfaceAttributeRequest::WithSourceDestCheck
ResetNetworkInterfaceAttributeRequest & WithSourceDestCheck(const char *value)
Definition: ResetNetworkInterfaceAttributeRequest.h:163
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ResetNetworkInterfaceAttributeRequest::WithSourceDestCheck
ResetNetworkInterfaceAttributeRequest & WithSourceDestCheck(const Aws::String &value)
Definition: ResetNetworkInterfaceAttributeRequest.h:151
Aws::EC2::Model::ResetNetworkInterfaceAttributeRequest::GetSourceDestCheck
const Aws::String & GetSourceDestCheck() const
Definition: ResetNetworkInterfaceAttributeRequest.h:121
Aws::EC2::Model::ResetNetworkInterfaceAttributeRequest::SetNetworkInterfaceId
void SetNetworkInterfaceId(Aws::String &&value)
Definition: ResetNetworkInterfaceAttributeRequest.h:94
Aws::EC2::Model::ResetNetworkInterfaceAttributeRequest::GetDryRun
bool GetDryRun() const
Definition: ResetNetworkInterfaceAttributeRequest.h:49
Aws::EC2::Model::ResetNetworkInterfaceAttributeRequest::NetworkInterfaceIdHasBeenSet
bool NetworkInterfaceIdHasBeenSet() const
Definition: ResetNetworkInterfaceAttributeRequest.h:84
EC2Request.h
AWSString.h
Aws::EC2::Model::ResetNetworkInterfaceAttributeRequest::ResetNetworkInterfaceAttributeRequest
ResetNetworkInterfaceAttributeRequest()
Aws::EC2::Model::ResetNetworkInterfaceAttributeRequest::WithDryRun
ResetNetworkInterfaceAttributeRequest & WithDryRun(bool value)
Definition: ResetNetworkInterfaceAttributeRequest.h:73
Aws::EC2::Model::ResetNetworkInterfaceAttributeRequest::SetSourceDestCheck
void SetSourceDestCheck(const char *value)
Definition: ResetNetworkInterfaceAttributeRequest.h:145
Aws::EC2::Model::ResetNetworkInterfaceAttributeRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: ResetNetworkInterfaceAttributeRequest.h:57
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ResetNetworkInterfaceAttributeRequest::SetNetworkInterfaceId
void SetNetworkInterfaceId(const char *value)
Definition: ResetNetworkInterfaceAttributeRequest.h:99
Aws::EC2::Model::ResetNetworkInterfaceAttributeRequest::SetSourceDestCheck
void SetSourceDestCheck(const Aws::String &value)
Definition: ResetNetworkInterfaceAttributeRequest.h:133
Aws::EC2::Model::ResetNetworkInterfaceAttributeRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
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::ResetNetworkInterfaceAttributeRequest::WithNetworkInterfaceId
ResetNetworkInterfaceAttributeRequest & WithNetworkInterfaceId(const char *value)
Definition: ResetNetworkInterfaceAttributeRequest.h:114
Aws::EC2::Model::ResetNetworkInterfaceAttributeRequest::WithSourceDestCheck
ResetNetworkInterfaceAttributeRequest & WithSourceDestCheck(Aws::String &&value)
Definition: ResetNetworkInterfaceAttributeRequest.h:157
Aws::EC2::Model::ResetNetworkInterfaceAttributeRequest::SourceDestCheckHasBeenSet
bool SourceDestCheckHasBeenSet() const
Definition: ResetNetworkInterfaceAttributeRequest.h:127
Aws::EC2::Model::ResetNetworkInterfaceAttributeRequest::GetNetworkInterfaceId
const Aws::String & GetNetworkInterfaceId() const
Definition: ResetNetworkInterfaceAttributeRequest.h:79
EC2_EXPORTS.h
Aws::EC2::Model::ResetNetworkInterfaceAttributeRequest::SetDryRun
void SetDryRun(bool value)
Definition: ResetNetworkInterfaceAttributeRequest.h:65
Aws::EC2::Model::ResetNetworkInterfaceAttributeRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::ResetNetworkInterfaceAttributeRequest::WithNetworkInterfaceId
ResetNetworkInterfaceAttributeRequest & WithNetworkInterfaceId(const Aws::String &value)
Definition: ResetNetworkInterfaceAttributeRequest.h:104