AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeVpcEndpointServicesRequest.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 DescribeVpcEndpointServicesRequest() = 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 "DescribeVpcEndpointServices"; }
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
60 inline const Aws::Vector<Aws::String>& GetServiceNames() const { return m_serviceNames; }
61 inline bool ServiceNamesHasBeenSet() const { return m_serviceNamesHasBeenSet; }
62 template <typename ServiceNamesT = Aws::Vector<Aws::String>>
63 void SetServiceNames(ServiceNamesT&& value) {
64 m_serviceNamesHasBeenSet = true;
65 m_serviceNames = std::forward<ServiceNamesT>(value);
66 }
67 template <typename ServiceNamesT = Aws::Vector<Aws::String>>
69 SetServiceNames(std::forward<ServiceNamesT>(value));
70 return *this;
71 }
72 template <typename ServiceNamesT = Aws::String>
74 m_serviceNamesHasBeenSet = true;
75 m_serviceNames.emplace_back(std::forward<ServiceNamesT>(value));
76 return *this;
77 }
79
81
99 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
100 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
101 template <typename FiltersT = Aws::Vector<Filter>>
102 void SetFilters(FiltersT&& value) {
103 m_filtersHasBeenSet = true;
104 m_filters = std::forward<FiltersT>(value);
105 }
106 template <typename FiltersT = Aws::Vector<Filter>>
108 SetFilters(std::forward<FiltersT>(value));
109 return *this;
110 }
111 template <typename FiltersT = Filter>
113 m_filtersHasBeenSet = true;
114 m_filters.emplace_back(std::forward<FiltersT>(value));
115 return *this;
116 }
118
120
126 inline int GetMaxResults() const { return m_maxResults; }
127 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
128 inline void SetMaxResults(int value) {
129 m_maxResultsHasBeenSet = true;
130 m_maxResults = value;
131 }
133 SetMaxResults(value);
134 return *this;
135 }
137
139
143 inline const Aws::String& GetNextToken() const { return m_nextToken; }
144 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
145 template <typename NextTokenT = Aws::String>
146 void SetNextToken(NextTokenT&& value) {
147 m_nextTokenHasBeenSet = true;
148 m_nextToken = std::forward<NextTokenT>(value);
149 }
150 template <typename NextTokenT = Aws::String>
152 SetNextToken(std::forward<NextTokenT>(value));
153 return *this;
154 }
156
158
161 inline const Aws::Vector<Aws::String>& GetServiceRegions() const { return m_serviceRegions; }
162 inline bool ServiceRegionsHasBeenSet() const { return m_serviceRegionsHasBeenSet; }
163 template <typename ServiceRegionsT = Aws::Vector<Aws::String>>
164 void SetServiceRegions(ServiceRegionsT&& value) {
165 m_serviceRegionsHasBeenSet = true;
166 m_serviceRegions = std::forward<ServiceRegionsT>(value);
167 }
168 template <typename ServiceRegionsT = Aws::Vector<Aws::String>>
170 SetServiceRegions(std::forward<ServiceRegionsT>(value));
171 return *this;
172 }
173 template <typename ServiceRegionsT = Aws::String>
175 m_serviceRegionsHasBeenSet = true;
176 m_serviceRegions.emplace_back(std::forward<ServiceRegionsT>(value));
177 return *this;
178 }
180 private:
181 bool m_dryRun{false};
182
183 Aws::Vector<Aws::String> m_serviceNames;
184
185 Aws::Vector<Filter> m_filters;
186
187 int m_maxResults{0};
188
189 Aws::String m_nextToken;
190
191 Aws::Vector<Aws::String> m_serviceRegions;
192 bool m_dryRunHasBeenSet = false;
193 bool m_serviceNamesHasBeenSet = false;
194 bool m_filtersHasBeenSet = false;
195 bool m_maxResultsHasBeenSet = false;
196 bool m_nextTokenHasBeenSet = false;
197 bool m_serviceRegionsHasBeenSet = false;
198};
199
200} // namespace Model
201} // namespace EC2
202} // namespace Aws
DescribeVpcEndpointServicesRequest & AddFilters(FiltersT &&value)
DescribeVpcEndpointServicesRequest & WithDryRun(bool value)
DescribeVpcEndpointServicesRequest & WithServiceNames(ServiceNamesT &&value)
DescribeVpcEndpointServicesRequest & WithFilters(FiltersT &&value)
DescribeVpcEndpointServicesRequest & WithNextToken(NextTokenT &&value)
DescribeVpcEndpointServicesRequest & WithMaxResults(int value)
DescribeVpcEndpointServicesRequest & AddServiceRegions(ServiceRegionsT &&value)
DescribeVpcEndpointServicesRequest & AddServiceNames(ServiceNamesT &&value)
DescribeVpcEndpointServicesRequest & WithServiceRegions(ServiceRegionsT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector