AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 inline void SetNetworkInterfacePermissionIds(const Aws::Vector<Aws::String>& value) { m_networkInterfacePermissionIdsHasBeenSet = true; m_networkInterfacePermissionIds = value; }
52 inline void SetNetworkInterfacePermissionIds(Aws::Vector<Aws::String>&& value) { m_networkInterfacePermissionIdsHasBeenSet = true; m_networkInterfacePermissionIds = std::move(value); }
55 inline DescribeNetworkInterfacePermissionsRequest& AddNetworkInterfacePermissionIds(const Aws::String& value) { m_networkInterfacePermissionIdsHasBeenSet = true; m_networkInterfacePermissionIds.push_back(value); return *this; }
56 inline DescribeNetworkInterfacePermissionsRequest& AddNetworkInterfacePermissionIds(Aws::String&& value) { m_networkInterfacePermissionIdsHasBeenSet = true; m_networkInterfacePermissionIds.push_back(std::move(value)); return *this; }
57 inline DescribeNetworkInterfacePermissionsRequest& AddNetworkInterfacePermissionIds(const char* value) { m_networkInterfacePermissionIdsHasBeenSet = true; m_networkInterfacePermissionIds.push_back(value); return *this; }
59
61
74 inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
75 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
76 inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
77 inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
79 inline DescribeNetworkInterfacePermissionsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
80 inline DescribeNetworkInterfacePermissionsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
81 inline DescribeNetworkInterfacePermissionsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
83
85
89 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
90 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
91 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
92 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
93 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
95 inline DescribeNetworkInterfacePermissionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
96 inline DescribeNetworkInterfacePermissionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
98
100
107 inline int GetMaxResults() const{ return m_maxResults; }
108 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
109 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
112 private:
113
114 Aws::Vector<Aws::String> m_networkInterfacePermissionIds;
115 bool m_networkInterfacePermissionIdsHasBeenSet = false;
116
117 Aws::Vector<Filter> m_filters;
118 bool m_filtersHasBeenSet = false;
119
120 Aws::String m_nextToken;
121 bool m_nextTokenHasBeenSet = false;
122
123 int m_maxResults;
124 bool m_maxResultsHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace EC2
129} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeNetworkInterfacePermissionsRequest & WithNetworkInterfacePermissionIds(Aws::Vector< Aws::String > &&value)
DescribeNetworkInterfacePermissionsRequest & AddFilters(const Filter &value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeNetworkInterfacePermissionsRequest & AddFilters(Filter &&value)
DescribeNetworkInterfacePermissionsRequest & AddNetworkInterfacePermissionIds(Aws::String &&value)
DescribeNetworkInterfacePermissionsRequest & AddNetworkInterfacePermissionIds(const Aws::String &value)
DescribeNetworkInterfacePermissionsRequest & WithFilters(const Aws::Vector< Filter > &value)
DescribeNetworkInterfacePermissionsRequest & WithFilters(Aws::Vector< Filter > &&value)
DescribeNetworkInterfacePermissionsRequest & AddNetworkInterfacePermissionIds(const char *value)
DescribeNetworkInterfacePermissionsRequest & WithNextToken(const char *value)
DescribeNetworkInterfacePermissionsRequest & WithNetworkInterfacePermissionIds(const Aws::Vector< Aws::String > &value)
DescribeNetworkInterfacePermissionsRequest & WithNextToken(Aws::String &&value)
DescribeNetworkInterfacePermissionsRequest & WithNextToken(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector