AWS SDK for C++  1.9.69
AWS SDK for C++
CreateNetworkInterfacePermissionRequest.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 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CreateNetworkInterfacePermission"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
47  inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
48 
52  inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
53 
57  inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
58 
62  inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); }
63 
67  inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
68 
72  inline CreateNetworkInterfacePermissionRequest& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;}
73 
77  inline CreateNetworkInterfacePermissionRequest& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;}
78 
82  inline CreateNetworkInterfacePermissionRequest& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
83 
84 
88  inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; }
89 
93  inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
94 
98  inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; }
99 
103  inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); }
104 
108  inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); }
109 
113  inline CreateNetworkInterfacePermissionRequest& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
114 
118  inline CreateNetworkInterfacePermissionRequest& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
119 
123  inline CreateNetworkInterfacePermissionRequest& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
124 
125 
129  inline const Aws::String& GetAwsService() const{ return m_awsService; }
130 
134  inline bool AwsServiceHasBeenSet() const { return m_awsServiceHasBeenSet; }
135 
139  inline void SetAwsService(const Aws::String& value) { m_awsServiceHasBeenSet = true; m_awsService = value; }
140 
144  inline void SetAwsService(Aws::String&& value) { m_awsServiceHasBeenSet = true; m_awsService = std::move(value); }
145 
149  inline void SetAwsService(const char* value) { m_awsServiceHasBeenSet = true; m_awsService.assign(value); }
150 
154  inline CreateNetworkInterfacePermissionRequest& WithAwsService(const Aws::String& value) { SetAwsService(value); return *this;}
155 
159  inline CreateNetworkInterfacePermissionRequest& WithAwsService(Aws::String&& value) { SetAwsService(std::move(value)); return *this;}
160 
164  inline CreateNetworkInterfacePermissionRequest& WithAwsService(const char* value) { SetAwsService(value); return *this;}
165 
166 
170  inline const InterfacePermissionType& GetPermission() const{ return m_permission; }
171 
175  inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; }
176 
180  inline void SetPermission(const InterfacePermissionType& value) { m_permissionHasBeenSet = true; m_permission = value; }
181 
185  inline void SetPermission(InterfacePermissionType&& value) { m_permissionHasBeenSet = true; m_permission = std::move(value); }
186 
190  inline CreateNetworkInterfacePermissionRequest& WithPermission(const InterfacePermissionType& value) { SetPermission(value); return *this;}
191 
195  inline CreateNetworkInterfacePermissionRequest& WithPermission(InterfacePermissionType&& value) { SetPermission(std::move(value)); return *this;}
196 
197 
204  inline bool GetDryRun() const{ return m_dryRun; }
205 
212  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
213 
220  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
221 
228  inline CreateNetworkInterfacePermissionRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
229 
230  private:
231 
232  Aws::String m_networkInterfaceId;
233  bool m_networkInterfaceIdHasBeenSet;
234 
235  Aws::String m_awsAccountId;
236  bool m_awsAccountIdHasBeenSet;
237 
238  Aws::String m_awsService;
239  bool m_awsServiceHasBeenSet;
240 
241  InterfacePermissionType m_permission;
242  bool m_permissionHasBeenSet;
243 
244  bool m_dryRun;
245  bool m_dryRunHasBeenSet;
246  };
247 
248 } // namespace Model
249 } // namespace EC2
250 } // namespace Aws
Aws::EC2::Model::CreateNetworkInterfacePermissionRequest::CreateNetworkInterfacePermissionRequest
CreateNetworkInterfacePermissionRequest()
Aws::EC2::Model::CreateNetworkInterfacePermissionRequest::SetAwsService
void SetAwsService(const char *value)
Definition: CreateNetworkInterfacePermissionRequest.h:149
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CreateNetworkInterfacePermissionRequest::WithNetworkInterfaceId
CreateNetworkInterfacePermissionRequest & WithNetworkInterfaceId(Aws::String &&value)
Definition: CreateNetworkInterfacePermissionRequest.h:77
Aws::EC2::Model::CreateNetworkInterfacePermissionRequest::WithNetworkInterfaceId
CreateNetworkInterfacePermissionRequest & WithNetworkInterfaceId(const Aws::String &value)
Definition: CreateNetworkInterfacePermissionRequest.h:72
Aws::EC2::Model::CreateNetworkInterfacePermissionRequest::GetNetworkInterfaceId
const Aws::String & GetNetworkInterfaceId() const
Definition: CreateNetworkInterfacePermissionRequest.h:47
Aws::EC2::Model::CreateNetworkInterfacePermissionRequest::WithPermission
CreateNetworkInterfacePermissionRequest & WithPermission(const InterfacePermissionType &value)
Definition: CreateNetworkInterfacePermissionRequest.h:190
Aws::EC2::Model::CreateNetworkInterfacePermissionRequest::WithAwsService
CreateNetworkInterfacePermissionRequest & WithAwsService(const char *value)
Definition: CreateNetworkInterfacePermissionRequest.h:164
Aws::EC2::Model::CreateNetworkInterfacePermissionRequest::NetworkInterfaceIdHasBeenSet
bool NetworkInterfaceIdHasBeenSet() const
Definition: CreateNetworkInterfacePermissionRequest.h:52
Aws::EC2::Model::CreateNetworkInterfacePermissionRequest::WithPermission
CreateNetworkInterfacePermissionRequest & WithPermission(InterfacePermissionType &&value)
Definition: CreateNetworkInterfacePermissionRequest.h:195
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CreateNetworkInterfacePermissionRequest::WithAwsService
CreateNetworkInterfacePermissionRequest & WithAwsService(const Aws::String &value)
Definition: CreateNetworkInterfacePermissionRequest.h:154
Aws::EC2::Model::CreateNetworkInterfacePermissionRequest::PermissionHasBeenSet
bool PermissionHasBeenSet() const
Definition: CreateNetworkInterfacePermissionRequest.h:175
Aws::EC2::Model::CreateNetworkInterfacePermissionRequest::SetPermission
void SetPermission(const InterfacePermissionType &value)
Definition: CreateNetworkInterfacePermissionRequest.h:180
Aws::EC2::Model::CreateNetworkInterfacePermissionRequest::SetAwsService
void SetAwsService(const Aws::String &value)
Definition: CreateNetworkInterfacePermissionRequest.h:139
Aws::EC2::Model::CreateNetworkInterfacePermissionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::CreateNetworkInterfacePermissionRequest::SetDryRun
void SetDryRun(bool value)
Definition: CreateNetworkInterfacePermissionRequest.h:220
Aws::EC2::Model::CreateNetworkInterfacePermissionRequest::SetAwsAccountId
void SetAwsAccountId(const Aws::String &value)
Definition: CreateNetworkInterfacePermissionRequest.h:98
Aws::EC2::Model::CreateNetworkInterfacePermissionRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CreateNetworkInterfacePermissionRequest.h:212
Aws::EC2::Model::CreateNetworkInterfacePermissionRequest::AwsAccountIdHasBeenSet
bool AwsAccountIdHasBeenSet() const
Definition: CreateNetworkInterfacePermissionRequest.h:93
Aws::EC2::Model::CreateNetworkInterfacePermissionRequest::SetNetworkInterfaceId
void SetNetworkInterfaceId(const char *value)
Definition: CreateNetworkInterfacePermissionRequest.h:67
Aws::EC2::Model::CreateNetworkInterfacePermissionRequest::GetAwsService
const Aws::String & GetAwsService() const
Definition: CreateNetworkInterfacePermissionRequest.h:129
Aws::EC2::Model::CreateNetworkInterfacePermissionRequest::AwsServiceHasBeenSet
bool AwsServiceHasBeenSet() const
Definition: CreateNetworkInterfacePermissionRequest.h:134
EC2Request.h
Aws::EC2::Model::CreateNetworkInterfacePermissionRequest::WithAwsService
CreateNetworkInterfacePermissionRequest & WithAwsService(Aws::String &&value)
Definition: CreateNetworkInterfacePermissionRequest.h:159
Aws::EC2::Model::CreateNetworkInterfacePermissionRequest::GetAwsAccountId
const Aws::String & GetAwsAccountId() const
Definition: CreateNetworkInterfacePermissionRequest.h:88
Aws::EC2::Model::CreateNetworkInterfacePermissionRequest::GetPermission
const InterfacePermissionType & GetPermission() const
Definition: CreateNetworkInterfacePermissionRequest.h:170
Aws::EC2::Model::CreateNetworkInterfacePermissionRequest
Definition: CreateNetworkInterfacePermissionRequest.h:27
Aws::EC2::Model::CreateNetworkInterfacePermissionRequest::WithDryRun
CreateNetworkInterfacePermissionRequest & WithDryRun(bool value)
Definition: CreateNetworkInterfacePermissionRequest.h:228
Aws::EC2::Model::CreateNetworkInterfacePermissionRequest::WithAwsAccountId
CreateNetworkInterfacePermissionRequest & WithAwsAccountId(const char *value)
Definition: CreateNetworkInterfacePermissionRequest.h:123
AWSString.h
Aws::EC2::Model::CreateNetworkInterfacePermissionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateNetworkInterfacePermissionRequest.h:35
Aws::EC2::Model::CreateNetworkInterfacePermissionRequest::SetAwsAccountId
void SetAwsAccountId(Aws::String &&value)
Definition: CreateNetworkInterfacePermissionRequest.h:103
InterfacePermissionType.h
Aws::EC2::Model::CreateNetworkInterfacePermissionRequest::SetNetworkInterfaceId
void SetNetworkInterfaceId(const Aws::String &value)
Definition: CreateNetworkInterfacePermissionRequest.h:57
Aws::EC2::Model::CreateNetworkInterfacePermissionRequest::WithAwsAccountId
CreateNetworkInterfacePermissionRequest & WithAwsAccountId(const Aws::String &value)
Definition: CreateNetworkInterfacePermissionRequest.h:113
Aws::EC2::Model::CreateNetworkInterfacePermissionRequest::SetNetworkInterfaceId
void SetNetworkInterfaceId(Aws::String &&value)
Definition: CreateNetworkInterfacePermissionRequest.h:62
Aws::EC2::Model::CreateNetworkInterfacePermissionRequest::SetAwsService
void SetAwsService(Aws::String &&value)
Definition: CreateNetworkInterfacePermissionRequest.h:144
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateNetworkInterfacePermissionRequest::GetDryRun
bool GetDryRun() const
Definition: CreateNetworkInterfacePermissionRequest.h:204
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::CreateNetworkInterfacePermissionRequest::WithAwsAccountId
CreateNetworkInterfacePermissionRequest & WithAwsAccountId(Aws::String &&value)
Definition: CreateNetworkInterfacePermissionRequest.h:118
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::InterfacePermissionType
InterfacePermissionType
Definition: InterfacePermissionType.h:17
Aws::EC2::Model::CreateNetworkInterfacePermissionRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::CreateNetworkInterfacePermissionRequest::WithNetworkInterfaceId
CreateNetworkInterfacePermissionRequest & WithNetworkInterfaceId(const char *value)
Definition: CreateNetworkInterfacePermissionRequest.h:82
EC2_EXPORTS.h
Aws::EC2::Model::CreateNetworkInterfacePermissionRequest::SetPermission
void SetPermission(InterfacePermissionType &&value)
Definition: CreateNetworkInterfacePermissionRequest.h:185
Aws::EC2::Model::CreateNetworkInterfacePermissionRequest::SetAwsAccountId
void SetAwsAccountId(const char *value)
Definition: CreateNetworkInterfacePermissionRequest.h:108