AWS SDK for C++  1.9.129
AWS SDK for C++
DescribeNetworkInterfacePermissionsRequest.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 <aws/ec2/model/Filter.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EC2
17 {
18 namespace Model
19 {
20 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "DescribeNetworkInterfacePermissions"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  protected:
41  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42 
43  public:
44 
48  inline const Aws::Vector<Aws::String>& GetNetworkInterfacePermissionIds() const{ return m_networkInterfacePermissionIds; }
49 
53  inline bool NetworkInterfacePermissionIdsHasBeenSet() const { return m_networkInterfacePermissionIdsHasBeenSet; }
54 
58  inline void SetNetworkInterfacePermissionIds(const Aws::Vector<Aws::String>& value) { m_networkInterfacePermissionIdsHasBeenSet = true; m_networkInterfacePermissionIds = value; }
59 
63  inline void SetNetworkInterfacePermissionIds(Aws::Vector<Aws::String>&& value) { m_networkInterfacePermissionIdsHasBeenSet = true; m_networkInterfacePermissionIds = std::move(value); }
64 
68  inline DescribeNetworkInterfacePermissionsRequest& WithNetworkInterfacePermissionIds(const Aws::Vector<Aws::String>& value) { SetNetworkInterfacePermissionIds(value); return *this;}
69 
73  inline DescribeNetworkInterfacePermissionsRequest& WithNetworkInterfacePermissionIds(Aws::Vector<Aws::String>&& value) { SetNetworkInterfacePermissionIds(std::move(value)); return *this;}
74 
78  inline DescribeNetworkInterfacePermissionsRequest& AddNetworkInterfacePermissionIds(const Aws::String& value) { m_networkInterfacePermissionIdsHasBeenSet = true; m_networkInterfacePermissionIds.push_back(value); return *this; }
79 
83  inline DescribeNetworkInterfacePermissionsRequest& AddNetworkInterfacePermissionIds(Aws::String&& value) { m_networkInterfacePermissionIdsHasBeenSet = true; m_networkInterfacePermissionIds.push_back(std::move(value)); return *this; }
84 
88  inline DescribeNetworkInterfacePermissionsRequest& AddNetworkInterfacePermissionIds(const char* value) { m_networkInterfacePermissionIdsHasBeenSet = true; m_networkInterfacePermissionIds.push_back(value); return *this; }
89 
90 
104  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
105 
119  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
120 
134  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
135 
149  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
150 
164  inline DescribeNetworkInterfacePermissionsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
165 
179  inline DescribeNetworkInterfacePermissionsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
180 
194  inline DescribeNetworkInterfacePermissionsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
195 
209  inline DescribeNetworkInterfacePermissionsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
210 
211 
215  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
216 
220  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
221 
225  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
226 
230  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
231 
235  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
236 
240  inline DescribeNetworkInterfacePermissionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
241 
245  inline DescribeNetworkInterfacePermissionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
246 
250  inline DescribeNetworkInterfacePermissionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
251 
252 
259  inline int GetMaxResults() const{ return m_maxResults; }
260 
267  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
268 
275  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
276 
283  inline DescribeNetworkInterfacePermissionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
284 
285  private:
286 
287  Aws::Vector<Aws::String> m_networkInterfacePermissionIds;
288  bool m_networkInterfacePermissionIdsHasBeenSet;
289 
290  Aws::Vector<Filter> m_filters;
291  bool m_filtersHasBeenSet;
292 
293  Aws::String m_nextToken;
294  bool m_nextTokenHasBeenSet;
295 
296  int m_maxResults;
297  bool m_maxResultsHasBeenSet;
298  };
299 
300 } // namespace Model
301 } // namespace EC2
302 } // namespace Aws
Aws::EC2::Model::DescribeNetworkInterfacePermissionsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeNetworkInterfacePermissionsRequest.h:267
Aws::EC2::Model::DescribeNetworkInterfacePermissionsRequest::WithNetworkInterfacePermissionIds
DescribeNetworkInterfacePermissionsRequest & WithNetworkInterfacePermissionIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeNetworkInterfacePermissionsRequest.h:73
Aws::EC2::Model::DescribeNetworkInterfacePermissionsRequest::WithNextToken
DescribeNetworkInterfacePermissionsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeNetworkInterfacePermissionsRequest.h:240
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeNetworkInterfacePermissionsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeNetworkInterfacePermissionsRequest.h:220
Aws::EC2::Model::DescribeNetworkInterfacePermissionsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeNetworkInterfacePermissionsRequest.h:215
Aws::EC2::Model::DescribeNetworkInterfacePermissionsRequest
Definition: DescribeNetworkInterfacePermissionsRequest.h:28
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeNetworkInterfacePermissionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeNetworkInterfacePermissionsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeNetworkInterfacePermissionsRequest.h:119
Aws::EC2::Model::DescribeNetworkInterfacePermissionsRequest::WithNextToken
DescribeNetworkInterfacePermissionsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeNetworkInterfacePermissionsRequest.h:245
Aws::EC2::Model::DescribeNetworkInterfacePermissionsRequest::GetNetworkInterfacePermissionIds
const Aws::Vector< Aws::String > & GetNetworkInterfacePermissionIds() const
Definition: DescribeNetworkInterfacePermissionsRequest.h:48
Aws::EC2::Model::DescribeNetworkInterfacePermissionsRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeNetworkInterfacePermissionsRequest.h:259
AWSVector.h
Aws::EC2::Model::DescribeNetworkInterfacePermissionsRequest::AddNetworkInterfacePermissionIds
DescribeNetworkInterfacePermissionsRequest & AddNetworkInterfacePermissionIds(const Aws::String &value)
Definition: DescribeNetworkInterfacePermissionsRequest.h:78
Filter.h
Aws::EC2::Model::DescribeNetworkInterfacePermissionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeNetworkInterfacePermissionsRequest.h:36
Aws::EC2::Model::DescribeNetworkInterfacePermissionsRequest::AddFilters
DescribeNetworkInterfacePermissionsRequest & AddFilters(Filter &&value)
Definition: DescribeNetworkInterfacePermissionsRequest.h:209
Aws::EC2::Model::DescribeNetworkInterfacePermissionsRequest::SetNetworkInterfacePermissionIds
void SetNetworkInterfacePermissionIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeNetworkInterfacePermissionsRequest.h:63
Aws::EC2::Model::DescribeNetworkInterfacePermissionsRequest::WithMaxResults
DescribeNetworkInterfacePermissionsRequest & WithMaxResults(int value)
Definition: DescribeNetworkInterfacePermissionsRequest.h:283
Aws::EC2::Model::DescribeNetworkInterfacePermissionsRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeNetworkInterfacePermissionsRequest.h:104
Aws::EC2::Model::DescribeNetworkInterfacePermissionsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeNetworkInterfacePermissionsRequest.h:230
Aws::EC2::Model::DescribeNetworkInterfacePermissionsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeNetworkInterfacePermissionsRequest.h:225
Aws::EC2::Model::DescribeNetworkInterfacePermissionsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeNetworkInterfacePermissionsRequest.h:235
Aws::EC2::Model::DescribeNetworkInterfacePermissionsRequest::SetNetworkInterfacePermissionIds
void SetNetworkInterfacePermissionIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeNetworkInterfacePermissionsRequest.h:58
EC2Request.h
Aws::EC2::Model::DescribeNetworkInterfacePermissionsRequest::WithFilters
DescribeNetworkInterfacePermissionsRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeNetworkInterfacePermissionsRequest.h:179
Aws::EC2::Model::DescribeNetworkInterfacePermissionsRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeNetworkInterfacePermissionsRequest.h:134
AWSString.h
Aws::EC2::Model::DescribeNetworkInterfacePermissionsRequest::AddNetworkInterfacePermissionIds
DescribeNetworkInterfacePermissionsRequest & AddNetworkInterfacePermissionIds(Aws::String &&value)
Definition: DescribeNetworkInterfacePermissionsRequest.h:83
Aws::EC2::Model::DescribeNetworkInterfacePermissionsRequest::WithFilters
DescribeNetworkInterfacePermissionsRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeNetworkInterfacePermissionsRequest.h:164
Aws::EC2::Model::DescribeNetworkInterfacePermissionsRequest::AddFilters
DescribeNetworkInterfacePermissionsRequest & AddFilters(const Filter &value)
Definition: DescribeNetworkInterfacePermissionsRequest.h:194
Aws::EC2::Model::DescribeNetworkInterfacePermissionsRequest::WithNetworkInterfacePermissionIds
DescribeNetworkInterfacePermissionsRequest & WithNetworkInterfacePermissionIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeNetworkInterfacePermissionsRequest.h:68
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeNetworkInterfacePermissionsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeNetworkInterfacePermissionsRequest.h:275
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::DescribeNetworkInterfacePermissionsRequest::WithNextToken
DescribeNetworkInterfacePermissionsRequest & WithNextToken(const char *value)
Definition: DescribeNetworkInterfacePermissionsRequest.h:250
Aws::EC2::Model::DescribeNetworkInterfacePermissionsRequest::AddNetworkInterfacePermissionIds
DescribeNetworkInterfacePermissionsRequest & AddNetworkInterfacePermissionIds(const char *value)
Definition: DescribeNetworkInterfacePermissionsRequest.h:88
Aws::EC2::Model::DescribeNetworkInterfacePermissionsRequest::DescribeNetworkInterfacePermissionsRequest
DescribeNetworkInterfacePermissionsRequest()
Aws::EC2::Model::DescribeNetworkInterfacePermissionsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
EC2_EXPORTS.h
Aws::EC2::Model::DescribeNetworkInterfacePermissionsRequest::NetworkInterfacePermissionIdsHasBeenSet
bool NetworkInterfacePermissionIdsHasBeenSet() const
Definition: DescribeNetworkInterfacePermissionsRequest.h:53
Aws::EC2::Model::DescribeNetworkInterfacePermissionsRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeNetworkInterfacePermissionsRequest.h:149