AWS SDK for C++  1.9.71
AWS SDK for C++
DeleteNetworkInterfacePermissionRequest.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 "DeleteNetworkInterfacePermission"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
46  inline const Aws::String& GetNetworkInterfacePermissionId() const{ return m_networkInterfacePermissionId; }
47 
51  inline bool NetworkInterfacePermissionIdHasBeenSet() const { return m_networkInterfacePermissionIdHasBeenSet; }
52 
56  inline void SetNetworkInterfacePermissionId(const Aws::String& value) { m_networkInterfacePermissionIdHasBeenSet = true; m_networkInterfacePermissionId = value; }
57 
61  inline void SetNetworkInterfacePermissionId(Aws::String&& value) { m_networkInterfacePermissionIdHasBeenSet = true; m_networkInterfacePermissionId = std::move(value); }
62 
66  inline void SetNetworkInterfacePermissionId(const char* value) { m_networkInterfacePermissionIdHasBeenSet = true; m_networkInterfacePermissionId.assign(value); }
67 
71  inline DeleteNetworkInterfacePermissionRequest& WithNetworkInterfacePermissionId(const Aws::String& value) { SetNetworkInterfacePermissionId(value); return *this;}
72 
76  inline DeleteNetworkInterfacePermissionRequest& WithNetworkInterfacePermissionId(Aws::String&& value) { SetNetworkInterfacePermissionId(std::move(value)); return *this;}
77 
81  inline DeleteNetworkInterfacePermissionRequest& WithNetworkInterfacePermissionId(const char* value) { SetNetworkInterfacePermissionId(value); return *this;}
82 
83 
88  inline bool GetForce() const{ return m_force; }
89 
94  inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
95 
100  inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; }
101 
106  inline DeleteNetworkInterfacePermissionRequest& WithForce(bool value) { SetForce(value); return *this;}
107 
108 
115  inline bool GetDryRun() const{ return m_dryRun; }
116 
123  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
124 
131  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
132 
139  inline DeleteNetworkInterfacePermissionRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
140 
141  private:
142 
143  Aws::String m_networkInterfacePermissionId;
144  bool m_networkInterfacePermissionIdHasBeenSet;
145 
146  bool m_force;
147  bool m_forceHasBeenSet;
148 
149  bool m_dryRun;
150  bool m_dryRunHasBeenSet;
151  };
152 
153 } // namespace Model
154 } // namespace EC2
155 } // namespace Aws
Aws::EC2::Model::DeleteNetworkInterfacePermissionRequest::ForceHasBeenSet
bool ForceHasBeenSet() const
Definition: DeleteNetworkInterfacePermissionRequest.h:94
Aws::EC2::Model::DeleteNetworkInterfacePermissionRequest::DeleteNetworkInterfacePermissionRequest
DeleteNetworkInterfacePermissionRequest()
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DeleteNetworkInterfacePermissionRequest::WithDryRun
DeleteNetworkInterfacePermissionRequest & WithDryRun(bool value)
Definition: DeleteNetworkInterfacePermissionRequest.h:139
Aws::EC2::Model::DeleteNetworkInterfacePermissionRequest::WithNetworkInterfacePermissionId
DeleteNetworkInterfacePermissionRequest & WithNetworkInterfacePermissionId(Aws::String &&value)
Definition: DeleteNetworkInterfacePermissionRequest.h:76
Aws::EC2::Model::DeleteNetworkInterfacePermissionRequest
Definition: DeleteNetworkInterfacePermissionRequest.h:26
Aws::EC2::Model::DeleteNetworkInterfacePermissionRequest::WithNetworkInterfacePermissionId
DeleteNetworkInterfacePermissionRequest & WithNetworkInterfacePermissionId(const char *value)
Definition: DeleteNetworkInterfacePermissionRequest.h:81
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DeleteNetworkInterfacePermissionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteNetworkInterfacePermissionRequest.h:34
Aws::EC2::Model::DeleteNetworkInterfacePermissionRequest::NetworkInterfacePermissionIdHasBeenSet
bool NetworkInterfacePermissionIdHasBeenSet() const
Definition: DeleteNetworkInterfacePermissionRequest.h:51
Aws::EC2::Model::DeleteNetworkInterfacePermissionRequest::SetNetworkInterfacePermissionId
void SetNetworkInterfacePermissionId(const Aws::String &value)
Definition: DeleteNetworkInterfacePermissionRequest.h:56
Aws::EC2::Model::DeleteNetworkInterfacePermissionRequest::GetNetworkInterfacePermissionId
const Aws::String & GetNetworkInterfacePermissionId() const
Definition: DeleteNetworkInterfacePermissionRequest.h:46
EC2Request.h
AWSString.h
Aws::EC2::Model::DeleteNetworkInterfacePermissionRequest::WithNetworkInterfacePermissionId
DeleteNetworkInterfacePermissionRequest & WithNetworkInterfacePermissionId(const Aws::String &value)
Definition: DeleteNetworkInterfacePermissionRequest.h:71
Aws::EC2::Model::DeleteNetworkInterfacePermissionRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DeleteNetworkInterfacePermissionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DeleteNetworkInterfacePermissionRequest::SetNetworkInterfacePermissionId
void SetNetworkInterfacePermissionId(const char *value)
Definition: DeleteNetworkInterfacePermissionRequest.h:66
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DeleteNetworkInterfacePermissionRequest::GetForce
bool GetForce() const
Definition: DeleteNetworkInterfacePermissionRequest.h:88
Aws::EC2::Model::DeleteNetworkInterfacePermissionRequest::SetForce
void SetForce(bool value)
Definition: DeleteNetworkInterfacePermissionRequest.h:100
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::DeleteNetworkInterfacePermissionRequest::WithForce
DeleteNetworkInterfacePermissionRequest & WithForce(bool value)
Definition: DeleteNetworkInterfacePermissionRequest.h:106
Aws::EC2::Model::DeleteNetworkInterfacePermissionRequest::SetNetworkInterfacePermissionId
void SetNetworkInterfacePermissionId(Aws::String &&value)
Definition: DeleteNetworkInterfacePermissionRequest.h:61
EC2_EXPORTS.h
Aws::EC2::Model::DeleteNetworkInterfacePermissionRequest::GetDryRun
bool GetDryRun() const
Definition: DeleteNetworkInterfacePermissionRequest.h:115
Aws::EC2::Model::DeleteNetworkInterfacePermissionRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DeleteNetworkInterfacePermissionRequest.h:123
Aws::EC2::Model::DeleteNetworkInterfacePermissionRequest::SetDryRun
void SetDryRun(bool value)
Definition: DeleteNetworkInterfacePermissionRequest.h:131