AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeNetworkInterfacePermissionsRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ec2/model/Filter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace 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_EC2_API Aws::String SerializePayload() const override;
39
40 protected:
41 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42
43 public:
44
46
49 inline const Aws::Vector<Aws::String>& GetNetworkInterfacePermissionIds() const { return m_networkInterfacePermissionIds; }
50 inline bool NetworkInterfacePermissionIdsHasBeenSet() const { return m_networkInterfacePermissionIdsHasBeenSet; }
51 template<typename NetworkInterfacePermissionIdsT = Aws::Vector<Aws::String>>
52 void SetNetworkInterfacePermissionIds(NetworkInterfacePermissionIdsT&& value) { m_networkInterfacePermissionIdsHasBeenSet = true; m_networkInterfacePermissionIds = std::forward<NetworkInterfacePermissionIdsT>(value); }
53 template<typename NetworkInterfacePermissionIdsT = Aws::Vector<Aws::String>>
54 DescribeNetworkInterfacePermissionsRequest& WithNetworkInterfacePermissionIds(NetworkInterfacePermissionIdsT&& value) { SetNetworkInterfacePermissionIds(std::forward<NetworkInterfacePermissionIdsT>(value)); return *this;}
55 template<typename NetworkInterfacePermissionIdsT = Aws::String>
56 DescribeNetworkInterfacePermissionsRequest& AddNetworkInterfacePermissionIds(NetworkInterfacePermissionIdsT&& value) { m_networkInterfacePermissionIdsHasBeenSet = true; m_networkInterfacePermissionIds.emplace_back(std::forward<NetworkInterfacePermissionIdsT>(value)); return *this; }
58
60
73 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
74 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
75 template<typename FiltersT = Aws::Vector<Filter>>
76 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
77 template<typename FiltersT = Aws::Vector<Filter>>
78 DescribeNetworkInterfacePermissionsRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
79 template<typename FiltersT = Filter>
80 DescribeNetworkInterfacePermissionsRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
82
84
88 inline const Aws::String& GetNextToken() const { return m_nextToken; }
89 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
90 template<typename NextTokenT = Aws::String>
91 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
92 template<typename NextTokenT = Aws::String>
93 DescribeNetworkInterfacePermissionsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
95
97
104 inline int GetMaxResults() const { return m_maxResults; }
105 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
106 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
109 private:
110
111 Aws::Vector<Aws::String> m_networkInterfacePermissionIds;
112 bool m_networkInterfacePermissionIdsHasBeenSet = false;
113
114 Aws::Vector<Filter> m_filters;
115 bool m_filtersHasBeenSet = false;
116
117 Aws::String m_nextToken;
118 bool m_nextTokenHasBeenSet = false;
119
120 int m_maxResults{0};
121 bool m_maxResultsHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace EC2
126} // namespace Aws
DescribeNetworkInterfacePermissionsRequest & WithFilters(FiltersT &&value)
DescribeNetworkInterfacePermissionsRequest & AddNetworkInterfacePermissionIds(NetworkInterfacePermissionIdsT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeNetworkInterfacePermissionsRequest & AddFilters(FiltersT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeNetworkInterfacePermissionsRequest & WithNextToken(NextTokenT &&value)
DescribeNetworkInterfacePermissionsRequest & WithNetworkInterfacePermissionIds(NetworkInterfacePermissionIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector