AWS SDK for C++  1.9.73
AWS SDK for C++
DescribeTrafficMirrorSessionsResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Xml
22 {
23  class XmlDocument;
24 } // namespace Xml
25 } // namespace Utils
26 namespace EC2
27 {
28 namespace Model
29 {
31  {
32  public:
36 
37 
42  inline const Aws::Vector<TrafficMirrorSession>& GetTrafficMirrorSessions() const{ return m_trafficMirrorSessions; }
43 
48  inline void SetTrafficMirrorSessions(const Aws::Vector<TrafficMirrorSession>& value) { m_trafficMirrorSessions = value; }
49 
54  inline void SetTrafficMirrorSessions(Aws::Vector<TrafficMirrorSession>&& value) { m_trafficMirrorSessions = std::move(value); }
55 
60  inline DescribeTrafficMirrorSessionsResponse& WithTrafficMirrorSessions(const Aws::Vector<TrafficMirrorSession>& value) { SetTrafficMirrorSessions(value); return *this;}
61 
66  inline DescribeTrafficMirrorSessionsResponse& WithTrafficMirrorSessions(Aws::Vector<TrafficMirrorSession>&& value) { SetTrafficMirrorSessions(std::move(value)); return *this;}
67 
72  inline DescribeTrafficMirrorSessionsResponse& AddTrafficMirrorSessions(const TrafficMirrorSession& value) { m_trafficMirrorSessions.push_back(value); return *this; }
73 
78  inline DescribeTrafficMirrorSessionsResponse& AddTrafficMirrorSessions(TrafficMirrorSession&& value) { m_trafficMirrorSessions.push_back(std::move(value)); return *this; }
79 
80 
85  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
86 
91  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
92 
97  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
98 
103  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
104 
109  inline DescribeTrafficMirrorSessionsResponse& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
110 
115  inline DescribeTrafficMirrorSessionsResponse& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
116 
121  inline DescribeTrafficMirrorSessionsResponse& WithNextToken(const char* value) { SetNextToken(value); return *this;}
122 
123 
124 
125  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
126 
127 
128  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
129 
130 
131  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
132 
133 
134  inline DescribeTrafficMirrorSessionsResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
135 
136 
137  inline DescribeTrafficMirrorSessionsResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
138 
139  private:
140 
141  Aws::Vector<TrafficMirrorSession> m_trafficMirrorSessions;
142 
143  Aws::String m_nextToken;
144 
145  ResponseMetadata m_responseMetadata;
146  };
147 
148 } // namespace Model
149 } // namespace EC2
150 } // namespace Aws
TrafficMirrorSession.h
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::DescribeTrafficMirrorSessionsResponse::DescribeTrafficMirrorSessionsResponse
DescribeTrafficMirrorSessionsResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::DescribeTrafficMirrorSessionsResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: DescribeTrafficMirrorSessionsResponse.h:131
Aws::EC2::Model::DescribeTrafficMirrorSessionsResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: DescribeTrafficMirrorSessionsResponse.h:128
Aws::EC2::Model::DescribeTrafficMirrorSessionsResponse::GetTrafficMirrorSessions
const Aws::Vector< TrafficMirrorSession > & GetTrafficMirrorSessions() const
Definition: DescribeTrafficMirrorSessionsResponse.h:42
Aws::EC2::Model::DescribeTrafficMirrorSessionsResponse::WithResponseMetadata
DescribeTrafficMirrorSessionsResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: DescribeTrafficMirrorSessionsResponse.h:137
Aws::EC2::Model::DescribeTrafficMirrorSessionsResponse::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeTrafficMirrorSessionsResponse.h:97
Aws::EC2::Model::DescribeTrafficMirrorSessionsResponse
Definition: DescribeTrafficMirrorSessionsResponse.h:31
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::TrafficMirrorSession
Definition: TrafficMirrorSession.h:34
ResponseMetadata.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::EC2::Model::DescribeTrafficMirrorSessionsResponse::WithNextToken
DescribeTrafficMirrorSessionsResponse & WithNextToken(const Aws::String &value)
Definition: DescribeTrafficMirrorSessionsResponse.h:109
Aws::EC2::Model::DescribeTrafficMirrorSessionsResponse::AddTrafficMirrorSessions
DescribeTrafficMirrorSessionsResponse & AddTrafficMirrorSessions(const TrafficMirrorSession &value)
Definition: DescribeTrafficMirrorSessionsResponse.h:72
Aws::EC2::Model::DescribeTrafficMirrorSessionsResponse::WithResponseMetadata
DescribeTrafficMirrorSessionsResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: DescribeTrafficMirrorSessionsResponse.h:134
Aws::EC2::Model::DescribeTrafficMirrorSessionsResponse::operator=
DescribeTrafficMirrorSessionsResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::DescribeTrafficMirrorSessionsResponse::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeTrafficMirrorSessionsResponse.h:85
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::EC2::Model::DescribeTrafficMirrorSessionsResponse::WithNextToken
DescribeTrafficMirrorSessionsResponse & WithNextToken(const char *value)
Definition: DescribeTrafficMirrorSessionsResponse.h:121
Aws::EC2::Model::DescribeTrafficMirrorSessionsResponse::AddTrafficMirrorSessions
DescribeTrafficMirrorSessionsResponse & AddTrafficMirrorSessions(TrafficMirrorSession &&value)
Definition: DescribeTrafficMirrorSessionsResponse.h:78
Aws::EC2::Model::DescribeTrafficMirrorSessionsResponse::WithNextToken
DescribeTrafficMirrorSessionsResponse & WithNextToken(Aws::String &&value)
Definition: DescribeTrafficMirrorSessionsResponse.h:115
AWSString.h
Aws::EC2::Model::DescribeTrafficMirrorSessionsResponse::SetTrafficMirrorSessions
void SetTrafficMirrorSessions(Aws::Vector< TrafficMirrorSession > &&value)
Definition: DescribeTrafficMirrorSessionsResponse.h:54
Aws::EC2::Model::DescribeTrafficMirrorSessionsResponse::SetTrafficMirrorSessions
void SetTrafficMirrorSessions(const Aws::Vector< TrafficMirrorSession > &value)
Definition: DescribeTrafficMirrorSessionsResponse.h:48
Aws::EC2::Model::DescribeTrafficMirrorSessionsResponse::WithTrafficMirrorSessions
DescribeTrafficMirrorSessionsResponse & WithTrafficMirrorSessions(Aws::Vector< TrafficMirrorSession > &&value)
Definition: DescribeTrafficMirrorSessionsResponse.h:66
Aws::EC2::Model::DescribeTrafficMirrorSessionsResponse::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeTrafficMirrorSessionsResponse.h:91
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeTrafficMirrorSessionsResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: DescribeTrafficMirrorSessionsResponse.h:125
Aws::EC2::Model::DescribeTrafficMirrorSessionsResponse::WithTrafficMirrorSessions
DescribeTrafficMirrorSessionsResponse & WithTrafficMirrorSessions(const Aws::Vector< TrafficMirrorSession > &value)
Definition: DescribeTrafficMirrorSessionsResponse.h:60
EC2_EXPORTS.h
Aws::EC2::Model::DescribeTrafficMirrorSessionsResponse::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeTrafficMirrorSessionsResponse.h:103
Aws::EC2::Model::DescribeTrafficMirrorSessionsResponse::DescribeTrafficMirrorSessionsResponse
DescribeTrafficMirrorSessionsResponse()