AWS SDK for C++

AWS SDK for C++ Version 1.11.762

Loading...
Searching...
No Matches
CreateParticipantConnectionResult.h
1
6#pragma once
7#include <aws/connectparticipant/ConnectParticipant_EXPORTS.h>
8#include <aws/connectparticipant/model/ConnectionCredentials.h>
9#include <aws/connectparticipant/model/WebRTCConnection.h>
10#include <aws/connectparticipant/model/Websocket.h>
11#include <aws/core/http/HttpResponse.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace ConnectParticipant {
26namespace Model {
28 public:
29 AWS_CONNECTPARTICIPANT_API CreateParticipantConnectionResult() = default;
31 AWS_CONNECTPARTICIPANT_API CreateParticipantConnectionResult& operator=(
33
35
38 inline const Websocket& GetWebsocket() const { return m_websocket; }
39 template <typename WebsocketT = Websocket>
40 void SetWebsocket(WebsocketT&& value) {
41 m_websocketHasBeenSet = true;
42 m_websocket = std::forward<WebsocketT>(value);
43 }
44 template <typename WebsocketT = Websocket>
46 SetWebsocket(std::forward<WebsocketT>(value));
47 return *this;
48 }
50
52
56 inline const ConnectionCredentials& GetConnectionCredentials() const { return m_connectionCredentials; }
57 template <typename ConnectionCredentialsT = ConnectionCredentials>
58 void SetConnectionCredentials(ConnectionCredentialsT&& value) {
59 m_connectionCredentialsHasBeenSet = true;
60 m_connectionCredentials = std::forward<ConnectionCredentialsT>(value);
61 }
62 template <typename ConnectionCredentialsT = ConnectionCredentials>
64 SetConnectionCredentials(std::forward<ConnectionCredentialsT>(value));
65 return *this;
66 }
68
70
74 inline const WebRTCConnection& GetWebRTCConnection() const { return m_webRTCConnection; }
75 template <typename WebRTCConnectionT = WebRTCConnection>
76 void SetWebRTCConnection(WebRTCConnectionT&& value) {
77 m_webRTCConnectionHasBeenSet = true;
78 m_webRTCConnection = std::forward<WebRTCConnectionT>(value);
79 }
80 template <typename WebRTCConnectionT = WebRTCConnection>
82 SetWebRTCConnection(std::forward<WebRTCConnectionT>(value));
83 return *this;
84 }
86
88
89 inline const Aws::String& GetRequestId() const { return m_requestId; }
90 template <typename RequestIdT = Aws::String>
91 void SetRequestId(RequestIdT&& value) {
92 m_requestIdHasBeenSet = true;
93 m_requestId = std::forward<RequestIdT>(value);
94 }
95 template <typename RequestIdT = Aws::String>
97 SetRequestId(std::forward<RequestIdT>(value));
98 return *this;
99 }
101 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
102
103 private:
104 Websocket m_websocket;
105
106 ConnectionCredentials m_connectionCredentials;
107
108 WebRTCConnection m_webRTCConnection;
109
110 Aws::String m_requestId;
111 Aws::Http::HttpResponseCode m_HttpResponseCode;
112 bool m_websocketHasBeenSet = false;
113 bool m_connectionCredentialsHasBeenSet = false;
114 bool m_webRTCConnectionHasBeenSet = false;
115 bool m_requestIdHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace ConnectParticipant
120} // namespace Aws
CreateParticipantConnectionResult & WithWebRTCConnection(WebRTCConnectionT &&value)
AWS_CONNECTPARTICIPANT_API CreateParticipantConnectionResult()=default
AWS_CONNECTPARTICIPANT_API CreateParticipantConnectionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateParticipantConnectionResult & WithRequestId(RequestIdT &&value)
AWS_CONNECTPARTICIPANT_API CreateParticipantConnectionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateParticipantConnectionResult & WithConnectionCredentials(ConnectionCredentialsT &&value)
CreateParticipantConnectionResult & WithWebsocket(WebsocketT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue