AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeNetworkInterfacesRequest.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/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.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 "DescribeNetworkInterfaces"; }
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
50 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
51 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
52 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
53 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
54 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
55 inline DescribeNetworkInterfacesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
56 inline DescribeNetworkInterfacesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
57 inline DescribeNetworkInterfacesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
59
61
68 inline int GetMaxResults() const{ return m_maxResults; }
69 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
70 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
71 inline DescribeNetworkInterfacesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
73
75
81 inline bool GetDryRun() const{ return m_dryRun; }
82 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
83 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
84 inline DescribeNetworkInterfacesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
86
88
92 inline const Aws::Vector<Aws::String>& GetNetworkInterfaceIds() const{ return m_networkInterfaceIds; }
93 inline bool NetworkInterfaceIdsHasBeenSet() const { return m_networkInterfaceIdsHasBeenSet; }
94 inline void SetNetworkInterfaceIds(const Aws::Vector<Aws::String>& value) { m_networkInterfaceIdsHasBeenSet = true; m_networkInterfaceIds = value; }
95 inline void SetNetworkInterfaceIds(Aws::Vector<Aws::String>&& value) { m_networkInterfaceIdsHasBeenSet = true; m_networkInterfaceIds = std::move(value); }
98 inline DescribeNetworkInterfacesRequest& AddNetworkInterfaceIds(const Aws::String& value) { m_networkInterfaceIdsHasBeenSet = true; m_networkInterfaceIds.push_back(value); return *this; }
99 inline DescribeNetworkInterfacesRequest& AddNetworkInterfaceIds(Aws::String&& value) { m_networkInterfaceIdsHasBeenSet = true; m_networkInterfaceIds.push_back(std::move(value)); return *this; }
100 inline DescribeNetworkInterfacesRequest& AddNetworkInterfaceIds(const char* value) { m_networkInterfaceIdsHasBeenSet = true; m_networkInterfaceIds.push_back(value); return *this; }
102
104
185 inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
186 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
187 inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
188 inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
189 inline DescribeNetworkInterfacesRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
190 inline DescribeNetworkInterfacesRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
191 inline DescribeNetworkInterfacesRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
192 inline DescribeNetworkInterfacesRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
194 private:
195
196 Aws::String m_nextToken;
197 bool m_nextTokenHasBeenSet = false;
198
199 int m_maxResults;
200 bool m_maxResultsHasBeenSet = false;
201
202 bool m_dryRun;
203 bool m_dryRunHasBeenSet = false;
204
205 Aws::Vector<Aws::String> m_networkInterfaceIds;
206 bool m_networkInterfaceIdsHasBeenSet = false;
207
208 Aws::Vector<Filter> m_filters;
209 bool m_filtersHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace EC2
214} // namespace Aws
DescribeNetworkInterfacesRequest & AddFilters(Filter &&value)
DescribeNetworkInterfacesRequest & AddNetworkInterfaceIds(Aws::String &&value)
const Aws::Vector< Aws::String > & GetNetworkInterfaceIds() const
DescribeNetworkInterfacesRequest & WithNetworkInterfaceIds(const Aws::Vector< Aws::String > &value)
void SetNetworkInterfaceIds(Aws::Vector< Aws::String > &&value)
DescribeNetworkInterfacesRequest & WithFilters(const Aws::Vector< Filter > &value)
DescribeNetworkInterfacesRequest & WithNextToken(const Aws::String &value)
DescribeNetworkInterfacesRequest & WithFilters(Aws::Vector< Filter > &&value)
DescribeNetworkInterfacesRequest & WithMaxResults(int value)
DescribeNetworkInterfacesRequest & AddNetworkInterfaceIds(const Aws::String &value)
DescribeNetworkInterfacesRequest & WithNetworkInterfaceIds(Aws::Vector< Aws::String > &&value)
DescribeNetworkInterfacesRequest & WithNextToken(Aws::String &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API Aws::String SerializePayload() const override
DescribeNetworkInterfacesRequest & WithDryRun(bool value)
DescribeNetworkInterfacesRequest & WithNextToken(const char *value)
void SetNetworkInterfaceIds(const Aws::Vector< Aws::String > &value)
DescribeNetworkInterfacesRequest & AddNetworkInterfaceIds(const char *value)
DescribeNetworkInterfacesRequest & AddFilters(const Filter &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector