AWS SDK for C++  1.8.95
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
DeleteNetworkInterfacePermissionRequest & WithNetworkInterfacePermissionId(Aws::String &&value)
DeleteNetworkInterfacePermissionRequest & WithNetworkInterfacePermissionId(const Aws::String &value)
DeleteNetworkInterfacePermissionRequest & WithDryRun(bool value)
DeleteNetworkInterfacePermissionRequest & WithNetworkInterfacePermissionId(const char *value)
DeleteNetworkInterfacePermissionRequest & WithForce(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28