AWS SDK for C++  1.9.129
AWS SDK for C++
DescribeTrafficMirrorFiltersRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
11 #include <aws/ec2/model/Filter.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EC2
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "DescribeTrafficMirrorFilters"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
44  inline const Aws::Vector<Aws::String>& GetTrafficMirrorFilterIds() const{ return m_trafficMirrorFilterIds; }
45 
49  inline bool TrafficMirrorFilterIdsHasBeenSet() const { return m_trafficMirrorFilterIdsHasBeenSet; }
50 
54  inline void SetTrafficMirrorFilterIds(const Aws::Vector<Aws::String>& value) { m_trafficMirrorFilterIdsHasBeenSet = true; m_trafficMirrorFilterIds = value; }
55 
59  inline void SetTrafficMirrorFilterIds(Aws::Vector<Aws::String>&& value) { m_trafficMirrorFilterIdsHasBeenSet = true; m_trafficMirrorFilterIds = std::move(value); }
60 
64  inline DescribeTrafficMirrorFiltersRequest& WithTrafficMirrorFilterIds(const Aws::Vector<Aws::String>& value) { SetTrafficMirrorFilterIds(value); return *this;}
65 
69  inline DescribeTrafficMirrorFiltersRequest& WithTrafficMirrorFilterIds(Aws::Vector<Aws::String>&& value) { SetTrafficMirrorFilterIds(std::move(value)); return *this;}
70 
74  inline DescribeTrafficMirrorFiltersRequest& AddTrafficMirrorFilterIds(const Aws::String& value) { m_trafficMirrorFilterIdsHasBeenSet = true; m_trafficMirrorFilterIds.push_back(value); return *this; }
75 
79  inline DescribeTrafficMirrorFiltersRequest& AddTrafficMirrorFilterIds(Aws::String&& value) { m_trafficMirrorFilterIdsHasBeenSet = true; m_trafficMirrorFilterIds.push_back(std::move(value)); return *this; }
80 
84  inline DescribeTrafficMirrorFiltersRequest& AddTrafficMirrorFilterIds(const char* value) { m_trafficMirrorFilterIdsHasBeenSet = true; m_trafficMirrorFilterIds.push_back(value); return *this; }
85 
86 
93  inline bool GetDryRun() const{ return m_dryRun; }
94 
101  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
102 
109  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
110 
117  inline DescribeTrafficMirrorFiltersRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
118 
119 
126  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
127 
134  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
135 
142  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
143 
150  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
151 
158  inline DescribeTrafficMirrorFiltersRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
159 
166  inline DescribeTrafficMirrorFiltersRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
167 
174  inline DescribeTrafficMirrorFiltersRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
175 
182  inline DescribeTrafficMirrorFiltersRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
183 
184 
190  inline int GetMaxResults() const{ return m_maxResults; }
191 
197  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
198 
204  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
205 
211  inline DescribeTrafficMirrorFiltersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
212 
213 
217  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
218 
222  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
223 
227  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
228 
232  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
233 
237  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
238 
242  inline DescribeTrafficMirrorFiltersRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
243 
247  inline DescribeTrafficMirrorFiltersRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
248 
252  inline DescribeTrafficMirrorFiltersRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
253 
254  private:
255 
256  Aws::Vector<Aws::String> m_trafficMirrorFilterIds;
257  bool m_trafficMirrorFilterIdsHasBeenSet;
258 
259  bool m_dryRun;
260  bool m_dryRunHasBeenSet;
261 
262  Aws::Vector<Filter> m_filters;
263  bool m_filtersHasBeenSet;
264 
265  int m_maxResults;
266  bool m_maxResultsHasBeenSet;
267 
268  Aws::String m_nextToken;
269  bool m_nextTokenHasBeenSet;
270  };
271 
272 } // namespace Model
273 } // namespace EC2
274 } // namespace Aws
Aws::EC2::Model::DescribeTrafficMirrorFiltersRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeTrafficMirrorFiltersRequest.h:134
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeTrafficMirrorFiltersRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeTrafficMirrorFiltersRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeTrafficMirrorFiltersRequest.h:150
Aws::EC2::Model::DescribeTrafficMirrorFiltersRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeTrafficMirrorFiltersRequest.h:32
Aws::EC2::Model::DescribeTrafficMirrorFiltersRequest::GetTrafficMirrorFilterIds
const Aws::Vector< Aws::String > & GetTrafficMirrorFilterIds() const
Definition: DescribeTrafficMirrorFiltersRequest.h:44
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::EC2::Model::DescribeTrafficMirrorFiltersRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeTrafficMirrorFiltersRequest.h:232
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeTrafficMirrorFiltersRequest::WithTrafficMirrorFilterIds
DescribeTrafficMirrorFiltersRequest & WithTrafficMirrorFilterIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeTrafficMirrorFiltersRequest.h:64
AWSVector.h
Aws::EC2::Model::DescribeTrafficMirrorFiltersRequest::WithTrafficMirrorFilterIds
DescribeTrafficMirrorFiltersRequest & WithTrafficMirrorFilterIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeTrafficMirrorFiltersRequest.h:69
Filter.h
Aws::EC2::Model::DescribeTrafficMirrorFiltersRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeTrafficMirrorFiltersRequest.h:217
Aws::EC2::Model::DescribeTrafficMirrorFiltersRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeTrafficMirrorFiltersRequest.h:227
Aws::EC2::Model::DescribeTrafficMirrorFiltersRequest::WithNextToken
DescribeTrafficMirrorFiltersRequest & WithNextToken(const char *value)
Definition: DescribeTrafficMirrorFiltersRequest.h:252
Aws::EC2::Model::DescribeTrafficMirrorFiltersRequest::WithFilters
DescribeTrafficMirrorFiltersRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeTrafficMirrorFiltersRequest.h:166
Aws::EC2::Model::DescribeTrafficMirrorFiltersRequest::WithMaxResults
DescribeTrafficMirrorFiltersRequest & WithMaxResults(int value)
Definition: DescribeTrafficMirrorFiltersRequest.h:211
Aws::EC2::Model::DescribeTrafficMirrorFiltersRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeTrafficMirrorFiltersRequest.h:190
Aws::EC2::Model::DescribeTrafficMirrorFiltersRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeTrafficMirrorFiltersRequest.h:109
EC2Request.h
Aws::EC2::Model::DescribeTrafficMirrorFiltersRequest::DescribeTrafficMirrorFiltersRequest
DescribeTrafficMirrorFiltersRequest()
Aws::EC2::Model::DescribeTrafficMirrorFiltersRequest::WithFilters
DescribeTrafficMirrorFiltersRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeTrafficMirrorFiltersRequest.h:158
Aws::EC2::Model::DescribeTrafficMirrorFiltersRequest::AddTrafficMirrorFilterIds
DescribeTrafficMirrorFiltersRequest & AddTrafficMirrorFilterIds(const char *value)
Definition: DescribeTrafficMirrorFiltersRequest.h:84
Aws::EC2::Model::DescribeTrafficMirrorFiltersRequest::AddFilters
DescribeTrafficMirrorFiltersRequest & AddFilters(const Filter &value)
Definition: DescribeTrafficMirrorFiltersRequest.h:174
AWSString.h
Aws::EC2::Model::DescribeTrafficMirrorFiltersRequest::WithNextToken
DescribeTrafficMirrorFiltersRequest & WithNextToken(Aws::String &&value)
Definition: DescribeTrafficMirrorFiltersRequest.h:247
Aws::EC2::Model::DescribeTrafficMirrorFiltersRequest::WithDryRun
DescribeTrafficMirrorFiltersRequest & WithDryRun(bool value)
Definition: DescribeTrafficMirrorFiltersRequest.h:117
Aws::EC2::Model::DescribeTrafficMirrorFiltersRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeTrafficMirrorFiltersRequest.h:197
Aws::EC2::Model::DescribeTrafficMirrorFiltersRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeTrafficMirrorFiltersRequest.h:204
Aws::EC2::Model::DescribeTrafficMirrorFiltersRequest::SetTrafficMirrorFilterIds
void SetTrafficMirrorFilterIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeTrafficMirrorFiltersRequest.h:59
Aws::EC2::Model::DescribeTrafficMirrorFiltersRequest::AddTrafficMirrorFilterIds
DescribeTrafficMirrorFiltersRequest & AddTrafficMirrorFilterIds(const Aws::String &value)
Definition: DescribeTrafficMirrorFiltersRequest.h:74
Aws::EC2::Model::DescribeTrafficMirrorFiltersRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeTrafficMirrorFiltersRequest.h:126
Aws::EC2::Model::DescribeTrafficMirrorFiltersRequest::WithNextToken
DescribeTrafficMirrorFiltersRequest & WithNextToken(const Aws::String &value)
Definition: DescribeTrafficMirrorFiltersRequest.h:242
Aws::EC2::Model::DescribeTrafficMirrorFiltersRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeTrafficMirrorFiltersRequest::SetTrafficMirrorFilterIds
void SetTrafficMirrorFilterIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeTrafficMirrorFiltersRequest.h:54
Aws::EC2::Model::DescribeTrafficMirrorFiltersRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeTrafficMirrorFiltersRequest.h:101
Aws::EC2::Model::DescribeTrafficMirrorFiltersRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeTrafficMirrorFiltersRequest.h:142
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeTrafficMirrorFiltersRequest
Definition: DescribeTrafficMirrorFiltersRequest.h:24
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeTrafficMirrorFiltersRequest::AddFilters
DescribeTrafficMirrorFiltersRequest & AddFilters(Filter &&value)
Definition: DescribeTrafficMirrorFiltersRequest.h:182
Aws::EC2::Model::DescribeTrafficMirrorFiltersRequest::TrafficMirrorFilterIdsHasBeenSet
bool TrafficMirrorFilterIdsHasBeenSet() const
Definition: DescribeTrafficMirrorFiltersRequest.h:49
Aws::EC2::Model::DescribeTrafficMirrorFiltersRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeTrafficMirrorFiltersRequest.h:222
Aws::EC2::Model::DescribeTrafficMirrorFiltersRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeTrafficMirrorFiltersRequest.h:237
EC2_EXPORTS.h
Aws::EC2::Model::DescribeTrafficMirrorFiltersRequest::AddTrafficMirrorFilterIds
DescribeTrafficMirrorFiltersRequest & AddTrafficMirrorFilterIds(Aws::String &&value)
Definition: DescribeTrafficMirrorFiltersRequest.h:79
Aws::EC2::Model::DescribeTrafficMirrorFiltersRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeTrafficMirrorFiltersRequest.h:93