AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeNatGatewaysRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/Filter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EC2 {
17namespace Model {
18
22 public:
23 AWS_EC2_API DescribeNatGatewaysRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DescribeNatGateways"; }
30
31 AWS_EC2_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
44 inline bool GetDryRun() const { return m_dryRun; }
45 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
46 inline void SetDryRun(bool value) {
47 m_dryRunHasBeenSet = true;
48 m_dryRun = value;
49 }
51 SetDryRun(value);
52 return *this;
53 }
55
57
74 inline const Aws::Vector<Filter>& GetFilter() const { return m_filter; }
75 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
76 template <typename FilterT = Aws::Vector<Filter>>
77 void SetFilter(FilterT&& value) {
78 m_filterHasBeenSet = true;
79 m_filter = std::forward<FilterT>(value);
80 }
81 template <typename FilterT = Aws::Vector<Filter>>
83 SetFilter(std::forward<FilterT>(value));
84 return *this;
85 }
86 template <typename FilterT = Filter>
88 m_filterHasBeenSet = true;
89 m_filter.emplace_back(std::forward<FilterT>(value));
90 return *this;
91 }
93
95
101 inline int GetMaxResults() const { return m_maxResults; }
102 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
103 inline void SetMaxResults(int value) {
104 m_maxResultsHasBeenSet = true;
105 m_maxResults = value;
106 }
108 SetMaxResults(value);
109 return *this;
110 }
112
114
117 inline const Aws::Vector<Aws::String>& GetNatGatewayIds() const { return m_natGatewayIds; }
118 inline bool NatGatewayIdsHasBeenSet() const { return m_natGatewayIdsHasBeenSet; }
119 template <typename NatGatewayIdsT = Aws::Vector<Aws::String>>
120 void SetNatGatewayIds(NatGatewayIdsT&& value) {
121 m_natGatewayIdsHasBeenSet = true;
122 m_natGatewayIds = std::forward<NatGatewayIdsT>(value);
123 }
124 template <typename NatGatewayIdsT = Aws::Vector<Aws::String>>
126 SetNatGatewayIds(std::forward<NatGatewayIdsT>(value));
127 return *this;
128 }
129 template <typename NatGatewayIdsT = Aws::String>
131 m_natGatewayIdsHasBeenSet = true;
132 m_natGatewayIds.emplace_back(std::forward<NatGatewayIdsT>(value));
133 return *this;
134 }
136
138
142 inline const Aws::String& GetNextToken() const { return m_nextToken; }
143 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
144 template <typename NextTokenT = Aws::String>
145 void SetNextToken(NextTokenT&& value) {
146 m_nextTokenHasBeenSet = true;
147 m_nextToken = std::forward<NextTokenT>(value);
148 }
149 template <typename NextTokenT = Aws::String>
151 SetNextToken(std::forward<NextTokenT>(value));
152 return *this;
153 }
155 private:
156 bool m_dryRun{false};
157
158 Aws::Vector<Filter> m_filter;
159
160 int m_maxResults{0};
161
162 Aws::Vector<Aws::String> m_natGatewayIds;
163
164 Aws::String m_nextToken;
165 bool m_dryRunHasBeenSet = false;
166 bool m_filterHasBeenSet = false;
167 bool m_maxResultsHasBeenSet = false;
168 bool m_natGatewayIdsHasBeenSet = false;
169 bool m_nextTokenHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace EC2
174} // namespace Aws
const Aws::Vector< Filter > & GetFilter() const
DescribeNatGatewaysRequest & WithNatGatewayIds(NatGatewayIdsT &&value)
DescribeNatGatewaysRequest & AddFilter(FilterT &&value)
DescribeNatGatewaysRequest & WithNextToken(NextTokenT &&value)
DescribeNatGatewaysRequest & WithFilter(FilterT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeNatGatewaysRequest & AddNatGatewayIds(NatGatewayIdsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_EC2_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetNatGatewayIds() const
DescribeNatGatewaysRequest & WithDryRun(bool value)
DescribeNatGatewaysRequest & WithMaxResults(int value)
AWS_EC2_API DescribeNatGatewaysRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector