AWS SDK for C++  1.9.66
AWS SDK for C++
DeleteNetworkInterfaceRequest.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 "DeleteNetworkInterface"; }
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 DeleteNetworkInterfaceRequest& 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 DeleteNetworkInterfaceRequest& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;}
105 
109  inline DeleteNetworkInterfaceRequest& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;}
110 
114  inline DeleteNetworkInterfaceRequest& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
115 
116  private:
117 
118  bool m_dryRun;
119  bool m_dryRunHasBeenSet;
120 
121  Aws::String m_networkInterfaceId;
122  bool m_networkInterfaceIdHasBeenSet;
123  };
124 
125 } // namespace Model
126 } // namespace EC2
127 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DeleteNetworkInterfaceRequest::NetworkInterfaceIdHasBeenSet
bool NetworkInterfaceIdHasBeenSet() const
Definition: DeleteNetworkInterfaceRequest.h:84
Aws::EC2::Model::DeleteNetworkInterfaceRequest::WithNetworkInterfaceId
DeleteNetworkInterfaceRequest & WithNetworkInterfaceId(Aws::String &&value)
Definition: DeleteNetworkInterfaceRequest.h:109
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DeleteNetworkInterfaceRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DeleteNetworkInterfaceRequest.h:57
Aws::EC2::Model::DeleteNetworkInterfaceRequest
Definition: DeleteNetworkInterfaceRequest.h:26
Aws::EC2::Model::DeleteNetworkInterfaceRequest::SetDryRun
void SetDryRun(bool value)
Definition: DeleteNetworkInterfaceRequest.h:65
Aws::EC2::Model::DeleteNetworkInterfaceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DeleteNetworkInterfaceRequest::WithNetworkInterfaceId
DeleteNetworkInterfaceRequest & WithNetworkInterfaceId(const char *value)
Definition: DeleteNetworkInterfaceRequest.h:114
Aws::EC2::Model::DeleteNetworkInterfaceRequest::SetNetworkInterfaceId
void SetNetworkInterfaceId(Aws::String &&value)
Definition: DeleteNetworkInterfaceRequest.h:94
Aws::EC2::Model::DeleteNetworkInterfaceRequest::WithDryRun
DeleteNetworkInterfaceRequest & WithDryRun(bool value)
Definition: DeleteNetworkInterfaceRequest.h:73
Aws::EC2::Model::DeleteNetworkInterfaceRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DeleteNetworkInterfaceRequest::WithNetworkInterfaceId
DeleteNetworkInterfaceRequest & WithNetworkInterfaceId(const Aws::String &value)
Definition: DeleteNetworkInterfaceRequest.h:104
Aws::EC2::Model::DeleteNetworkInterfaceRequest::GetDryRun
bool GetDryRun() const
Definition: DeleteNetworkInterfaceRequest.h:49
EC2Request.h
AWSString.h
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DeleteNetworkInterfaceRequest::SetNetworkInterfaceId
void SetNetworkInterfaceId(const char *value)
Definition: DeleteNetworkInterfaceRequest.h:99
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DeleteNetworkInterfaceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteNetworkInterfaceRequest.h:34
Aws::EC2::EC2Request
Definition: EC2Request.h:17
EC2_EXPORTS.h
Aws::EC2::Model::DeleteNetworkInterfaceRequest::GetNetworkInterfaceId
const Aws::String & GetNetworkInterfaceId() const
Definition: DeleteNetworkInterfaceRequest.h:79
Aws::EC2::Model::DeleteNetworkInterfaceRequest::DeleteNetworkInterfaceRequest
DeleteNetworkInterfaceRequest()
Aws::EC2::Model::DeleteNetworkInterfaceRequest::SetNetworkInterfaceId
void SetNetworkInterfaceId(const Aws::String &value)
Definition: DeleteNetworkInterfaceRequest.h:89