AWS SDK for C++  1.9.15
AWS SDK for C++
DescribeTrafficMirrorSessionsRequest.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 "DescribeTrafficMirrorSessions"; }
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>& GetTrafficMirrorSessionIds() const{ return m_trafficMirrorSessionIds; }
45 
49  inline bool TrafficMirrorSessionIdsHasBeenSet() const { return m_trafficMirrorSessionIdsHasBeenSet; }
50 
54  inline void SetTrafficMirrorSessionIds(const Aws::Vector<Aws::String>& value) { m_trafficMirrorSessionIdsHasBeenSet = true; m_trafficMirrorSessionIds = value; }
55 
59  inline void SetTrafficMirrorSessionIds(Aws::Vector<Aws::String>&& value) { m_trafficMirrorSessionIdsHasBeenSet = true; m_trafficMirrorSessionIds = std::move(value); }
60 
64  inline DescribeTrafficMirrorSessionsRequest& WithTrafficMirrorSessionIds(const Aws::Vector<Aws::String>& value) { SetTrafficMirrorSessionIds(value); return *this;}
65 
69  inline DescribeTrafficMirrorSessionsRequest& WithTrafficMirrorSessionIds(Aws::Vector<Aws::String>&& value) { SetTrafficMirrorSessionIds(std::move(value)); return *this;}
70 
74  inline DescribeTrafficMirrorSessionsRequest& AddTrafficMirrorSessionIds(const Aws::String& value) { m_trafficMirrorSessionIdsHasBeenSet = true; m_trafficMirrorSessionIds.push_back(value); return *this; }
75 
79  inline DescribeTrafficMirrorSessionsRequest& AddTrafficMirrorSessionIds(Aws::String&& value) { m_trafficMirrorSessionIdsHasBeenSet = true; m_trafficMirrorSessionIds.push_back(std::move(value)); return *this; }
80 
84  inline DescribeTrafficMirrorSessionsRequest& AddTrafficMirrorSessionIds(const char* value) { m_trafficMirrorSessionIdsHasBeenSet = true; m_trafficMirrorSessionIds.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 DescribeTrafficMirrorSessionsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
118 
119 
135  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
136 
152  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
153 
169  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
170 
186  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
187 
203  inline DescribeTrafficMirrorSessionsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
204 
220  inline DescribeTrafficMirrorSessionsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
221 
237  inline DescribeTrafficMirrorSessionsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
238 
254  inline DescribeTrafficMirrorSessionsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
255 
256 
262  inline int GetMaxResults() const{ return m_maxResults; }
263 
269  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
270 
276  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
277 
283  inline DescribeTrafficMirrorSessionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
284 
285 
289  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
290 
294  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
295 
299  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
300 
304  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
305 
309  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
310 
314  inline DescribeTrafficMirrorSessionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
315 
319  inline DescribeTrafficMirrorSessionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
320 
324  inline DescribeTrafficMirrorSessionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
325 
326  private:
327 
328  Aws::Vector<Aws::String> m_trafficMirrorSessionIds;
329  bool m_trafficMirrorSessionIdsHasBeenSet;
330 
331  bool m_dryRun;
332  bool m_dryRunHasBeenSet;
333 
334  Aws::Vector<Filter> m_filters;
335  bool m_filtersHasBeenSet;
336 
337  int m_maxResults;
338  bool m_maxResultsHasBeenSet;
339 
340  Aws::String m_nextToken;
341  bool m_nextTokenHasBeenSet;
342  };
343 
344 } // namespace Model
345 } // namespace EC2
346 } // namespace Aws
Aws::EC2::Model::DescribeTrafficMirrorSessionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeTrafficMirrorSessionsRequest::AddFilters
DescribeTrafficMirrorSessionsRequest & AddFilters(const Filter &value)
Definition: DescribeTrafficMirrorSessionsRequest.h:237
Aws::EC2::Model::DescribeTrafficMirrorSessionsRequest::GetTrafficMirrorSessionIds
const Aws::Vector< Aws::String > & GetTrafficMirrorSessionIds() const
Definition: DescribeTrafficMirrorSessionsRequest.h:44
Aws::EC2::Model::DescribeTrafficMirrorSessionsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeTrafficMirrorSessionsRequest.h:289
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeTrafficMirrorSessionsRequest::WithDryRun
DescribeTrafficMirrorSessionsRequest & WithDryRun(bool value)
Definition: DescribeTrafficMirrorSessionsRequest.h:117
Aws::EC2::Model::DescribeTrafficMirrorSessionsRequest::WithFilters
DescribeTrafficMirrorSessionsRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeTrafficMirrorSessionsRequest.h:203
Aws::EC2::Model::DescribeTrafficMirrorSessionsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeTrafficMirrorSessionsRequest.h:309
Aws::EC2::Model::DescribeTrafficMirrorSessionsRequest::WithTrafficMirrorSessionIds
DescribeTrafficMirrorSessionsRequest & WithTrafficMirrorSessionIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeTrafficMirrorSessionsRequest.h:69
Aws::EC2::Model::DescribeTrafficMirrorSessionsRequest::SetTrafficMirrorSessionIds
void SetTrafficMirrorSessionIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeTrafficMirrorSessionsRequest.h:59
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeTrafficMirrorSessionsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeTrafficMirrorSessionsRequest.h:269
Aws::EC2::Model::DescribeTrafficMirrorSessionsRequest::WithTrafficMirrorSessionIds
DescribeTrafficMirrorSessionsRequest & WithTrafficMirrorSessionIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeTrafficMirrorSessionsRequest.h:64
AWSVector.h
Aws::EC2::Model::DescribeTrafficMirrorSessionsRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeTrafficMirrorSessionsRequest.h:186
Aws::EC2::Model::DescribeTrafficMirrorSessionsRequest::WithNextToken
DescribeTrafficMirrorSessionsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeTrafficMirrorSessionsRequest.h:314
Filter.h
Aws::EC2::Model::DescribeTrafficMirrorSessionsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeTrafficMirrorSessionsRequest.h:101
Aws::EC2::Model::DescribeTrafficMirrorSessionsRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeTrafficMirrorSessionsRequest.h:169
Aws::EC2::Model::DescribeTrafficMirrorSessionsRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeTrafficMirrorSessionsRequest.h:109
Aws::EC2::Model::DescribeTrafficMirrorSessionsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeTrafficMirrorSessionsRequest.h:152
Aws::EC2::Model::DescribeTrafficMirrorSessionsRequest::AddFilters
DescribeTrafficMirrorSessionsRequest & AddFilters(Filter &&value)
Definition: DescribeTrafficMirrorSessionsRequest.h:254
Aws::EC2::Model::DescribeTrafficMirrorSessionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeTrafficMirrorSessionsRequest.h:32
Aws::EC2::Model::DescribeTrafficMirrorSessionsRequest::AddTrafficMirrorSessionIds
DescribeTrafficMirrorSessionsRequest & AddTrafficMirrorSessionIds(const Aws::String &value)
Definition: DescribeTrafficMirrorSessionsRequest.h:74
Aws::EC2::Model::DescribeTrafficMirrorSessionsRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeTrafficMirrorSessionsRequest.h:93
Aws::EC2::Model::DescribeTrafficMirrorSessionsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeTrafficMirrorSessionsRequest.h:304
Aws::EC2::Model::DescribeTrafficMirrorSessionsRequest::AddTrafficMirrorSessionIds
DescribeTrafficMirrorSessionsRequest & AddTrafficMirrorSessionIds(const char *value)
Definition: DescribeTrafficMirrorSessionsRequest.h:84
EC2Request.h
Aws::EC2::Model::DescribeTrafficMirrorSessionsRequest::AddTrafficMirrorSessionIds
DescribeTrafficMirrorSessionsRequest & AddTrafficMirrorSessionIds(Aws::String &&value)
Definition: DescribeTrafficMirrorSessionsRequest.h:79
Aws::EC2::Model::DescribeTrafficMirrorSessionsRequest::WithNextToken
DescribeTrafficMirrorSessionsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeTrafficMirrorSessionsRequest.h:319
AWSString.h
Aws::EC2::Model::DescribeTrafficMirrorSessionsRequest
Definition: DescribeTrafficMirrorSessionsRequest.h:24
Aws::EC2::Model::DescribeTrafficMirrorSessionsRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeTrafficMirrorSessionsRequest.h:135
Aws::EC2::Model::DescribeTrafficMirrorSessionsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeTrafficMirrorSessionsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeTrafficMirrorSessionsRequest.h:276
Aws::EC2::Model::DescribeTrafficMirrorSessionsRequest::WithNextToken
DescribeTrafficMirrorSessionsRequest & WithNextToken(const char *value)
Definition: DescribeTrafficMirrorSessionsRequest.h:324
Aws::EC2::Model::DescribeTrafficMirrorSessionsRequest::TrafficMirrorSessionIdsHasBeenSet
bool TrafficMirrorSessionIdsHasBeenSet() const
Definition: DescribeTrafficMirrorSessionsRequest.h:49
Aws::EC2::Model::DescribeTrafficMirrorSessionsRequest::SetTrafficMirrorSessionIds
void SetTrafficMirrorSessionIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeTrafficMirrorSessionsRequest.h:54
Aws::EC2::Model::DescribeTrafficMirrorSessionsRequest::DescribeTrafficMirrorSessionsRequest
DescribeTrafficMirrorSessionsRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeTrafficMirrorSessionsRequest::WithFilters
DescribeTrafficMirrorSessionsRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeTrafficMirrorSessionsRequest.h:220
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeTrafficMirrorSessionsRequest::WithMaxResults
DescribeTrafficMirrorSessionsRequest & WithMaxResults(int value)
Definition: DescribeTrafficMirrorSessionsRequest.h:283
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeTrafficMirrorSessionsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeTrafficMirrorSessionsRequest.h:294
EC2_EXPORTS.h
Aws::EC2::Model::DescribeTrafficMirrorSessionsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeTrafficMirrorSessionsRequest.h:299
Aws::EC2::Model::DescribeTrafficMirrorSessionsRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeTrafficMirrorSessionsRequest.h:262