AWS SDK for C++  1.9.103
AWS SDK for C++
CreateTrafficMirrorSessionResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Xml
21 {
22  class XmlDocument;
23 } // namespace Xml
24 } // namespace Utils
25 namespace EC2
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const TrafficMirrorSession& GetTrafficMirrorSession() const{ return m_trafficMirrorSession; }
41 
45  inline void SetTrafficMirrorSession(const TrafficMirrorSession& value) { m_trafficMirrorSession = value; }
46 
50  inline void SetTrafficMirrorSession(TrafficMirrorSession&& value) { m_trafficMirrorSession = std::move(value); }
51 
55  inline CreateTrafficMirrorSessionResponse& WithTrafficMirrorSession(const TrafficMirrorSession& value) { SetTrafficMirrorSession(value); return *this;}
56 
60  inline CreateTrafficMirrorSessionResponse& WithTrafficMirrorSession(TrafficMirrorSession&& value) { SetTrafficMirrorSession(std::move(value)); return *this;}
61 
62 
69  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
70 
77  inline void SetClientToken(const Aws::String& value) { m_clientToken = value; }
78 
85  inline void SetClientToken(Aws::String&& value) { m_clientToken = std::move(value); }
86 
93  inline void SetClientToken(const char* value) { m_clientToken.assign(value); }
94 
101  inline CreateTrafficMirrorSessionResponse& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
102 
109  inline CreateTrafficMirrorSessionResponse& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
110 
117  inline CreateTrafficMirrorSessionResponse& WithClientToken(const char* value) { SetClientToken(value); return *this;}
118 
119 
120 
121  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
122 
123 
124  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
125 
126 
127  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
128 
129 
130  inline CreateTrafficMirrorSessionResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
131 
132 
133  inline CreateTrafficMirrorSessionResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
134 
135  private:
136 
137  TrafficMirrorSession m_trafficMirrorSession;
138 
139  Aws::String m_clientToken;
140 
141  ResponseMetadata m_responseMetadata;
142  };
143 
144 } // namespace Model
145 } // namespace EC2
146 } // namespace Aws
TrafficMirrorSession.h
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::CreateTrafficMirrorSessionResponse
Definition: CreateTrafficMirrorSessionResponse.h:30
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::TrafficMirrorSession
Definition: TrafficMirrorSession.h:34
ResponseMetadata.h
Aws::EC2::Model::CreateTrafficMirrorSessionResponse::WithResponseMetadata
CreateTrafficMirrorSessionResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: CreateTrafficMirrorSessionResponse.h:130
Aws::EC2::Model::CreateTrafficMirrorSessionResponse::WithClientToken
CreateTrafficMirrorSessionResponse & WithClientToken(const Aws::String &value)
Definition: CreateTrafficMirrorSessionResponse.h:101
Aws::EC2::Model::CreateTrafficMirrorSessionResponse::WithClientToken
CreateTrafficMirrorSessionResponse & WithClientToken(const char *value)
Definition: CreateTrafficMirrorSessionResponse.h:117
Aws::EC2::Model::CreateTrafficMirrorSessionResponse::WithClientToken
CreateTrafficMirrorSessionResponse & WithClientToken(Aws::String &&value)
Definition: CreateTrafficMirrorSessionResponse.h:109
Aws::EC2::Model::CreateTrafficMirrorSessionResponse::CreateTrafficMirrorSessionResponse
CreateTrafficMirrorSessionResponse()
Aws::EC2::Model::CreateTrafficMirrorSessionResponse::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateTrafficMirrorSessionResponse.h:77
Aws::EC2::Model::CreateTrafficMirrorSessionResponse::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateTrafficMirrorSessionResponse.h:69
Aws::EC2::Model::CreateTrafficMirrorSessionResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: CreateTrafficMirrorSessionResponse.h:121
Aws::EC2::Model::CreateTrafficMirrorSessionResponse::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateTrafficMirrorSessionResponse.h:85
Aws::EC2::Model::CreateTrafficMirrorSessionResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: CreateTrafficMirrorSessionResponse.h:127
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
AWSString.h
Aws::EC2::Model::CreateTrafficMirrorSessionResponse::WithTrafficMirrorSession
CreateTrafficMirrorSessionResponse & WithTrafficMirrorSession(const TrafficMirrorSession &value)
Definition: CreateTrafficMirrorSessionResponse.h:55
Aws::EC2::Model::CreateTrafficMirrorSessionResponse::SetTrafficMirrorSession
void SetTrafficMirrorSession(TrafficMirrorSession &&value)
Definition: CreateTrafficMirrorSessionResponse.h:50
Aws::EC2::Model::CreateTrafficMirrorSessionResponse::WithResponseMetadata
CreateTrafficMirrorSessionResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: CreateTrafficMirrorSessionResponse.h:133
Aws::EC2::Model::CreateTrafficMirrorSessionResponse::GetTrafficMirrorSession
const TrafficMirrorSession & GetTrafficMirrorSession() const
Definition: CreateTrafficMirrorSessionResponse.h:40
Aws::EC2::Model::CreateTrafficMirrorSessionResponse::SetClientToken
void SetClientToken(const char *value)
Definition: CreateTrafficMirrorSessionResponse.h:93
Aws::EC2::Model::CreateTrafficMirrorSessionResponse::CreateTrafficMirrorSessionResponse
CreateTrafficMirrorSessionResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateTrafficMirrorSessionResponse::operator=
CreateTrafficMirrorSessionResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::CreateTrafficMirrorSessionResponse::SetTrafficMirrorSession
void SetTrafficMirrorSession(const TrafficMirrorSession &value)
Definition: CreateTrafficMirrorSessionResponse.h:45
EC2_EXPORTS.h
Aws::EC2::Model::CreateTrafficMirrorSessionResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: CreateTrafficMirrorSessionResponse.h:124
Aws::EC2::Model::CreateTrafficMirrorSessionResponse::WithTrafficMirrorSession
CreateTrafficMirrorSessionResponse & WithTrafficMirrorSession(TrafficMirrorSession &&value)
Definition: CreateTrafficMirrorSessionResponse.h:60