AWS SDK for C++  1.8.71
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 
103  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
104 
117  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
118 
131  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
132 
145  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
146 
159  inline DescribeNetworkInterfacePermissionsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
160 
173  inline DescribeNetworkInterfacePermissionsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
174 
187  inline DescribeNetworkInterfacePermissionsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
188 
201  inline DescribeNetworkInterfacePermissionsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
202 
203 
207  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
208 
212  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
213 
217  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
218 
222  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
223 
227  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
228 
232  inline DescribeNetworkInterfacePermissionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
233 
237  inline DescribeNetworkInterfacePermissionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
238 
242  inline DescribeNetworkInterfacePermissionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
243 
244 
251  inline int GetMaxResults() const{ return m_maxResults; }
252 
259  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
260 
267  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
268 
275  inline DescribeNetworkInterfacePermissionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
276 
277  private:
278 
279  Aws::Vector<Aws::String> m_networkInterfacePermissionIds;
280  bool m_networkInterfacePermissionIdsHasBeenSet;
281 
282  Aws::Vector<Filter> m_filters;
283  bool m_filtersHasBeenSet;
284 
285  Aws::String m_nextToken;
286  bool m_nextTokenHasBeenSet;
287 
288  int m_maxResults;
289  bool m_maxResultsHasBeenSet;
290  };
291 
292 } // namespace Model
293 } // namespace EC2
294 } // namespace Aws
DescribeNetworkInterfacePermissionsRequest & AddNetworkInterfacePermissionIds(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
DescribeNetworkInterfacePermissionsRequest & WithFilters(const Aws::Vector< Filter > &value)
DescribeNetworkInterfacePermissionsRequest & WithNextToken(const Aws::String &value)
DescribeNetworkInterfacePermissionsRequest & WithFilters(Aws::Vector< Filter > &&value)
DescribeNetworkInterfacePermissionsRequest & AddFilters(const Filter &value)
DescribeNetworkInterfacePermissionsRequest & WithNextToken(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeNetworkInterfacePermissionsRequest & AddFilters(Filter &&value)
DescribeNetworkInterfacePermissionsRequest & WithMaxResults(int value)
DescribeNetworkInterfacePermissionsRequest & AddNetworkInterfacePermissionIds(const Aws::String &value)
DescribeNetworkInterfacePermissionsRequest & AddNetworkInterfacePermissionIds(Aws::String &&value)
DescribeNetworkInterfacePermissionsRequest & WithNextToken(const char *value)
DescribeNetworkInterfacePermissionsRequest & WithNetworkInterfacePermissionIds(const Aws::Vector< Aws::String > &value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
DescribeNetworkInterfacePermissionsRequest & WithNetworkInterfacePermissionIds(Aws::Vector< Aws::String > &&value)