AWS SDK for C++

AWS SDK for C++ Version 1.11.633

Loading...
Searching...
No Matches
CreateParticipantConnectionResult.h
1
6#pragma once
7#include <aws/connectparticipant/ConnectParticipant_EXPORTS.h>
8#include <aws/connectparticipant/model/Websocket.h>
9#include <aws/connectparticipant/model/ConnectionCredentials.h>
10#include <aws/connectparticipant/model/ConnectionData.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace ConnectParticipant
27{
28namespace Model
29{
31 {
32 public:
33 AWS_CONNECTPARTICIPANT_API CreateParticipantConnectionResult() = default;
36
37
39
42 inline const Websocket& GetWebsocket() const { return m_websocket; }
43 template<typename WebsocketT = Websocket>
44 void SetWebsocket(WebsocketT&& value) { m_websocketHasBeenSet = true; m_websocket = std::forward<WebsocketT>(value); }
45 template<typename WebsocketT = Websocket>
46 CreateParticipantConnectionResult& WithWebsocket(WebsocketT&& value) { SetWebsocket(std::forward<WebsocketT>(value)); return *this;}
48
50
54 inline const ConnectionCredentials& GetConnectionCredentials() const { return m_connectionCredentials; }
55 template<typename ConnectionCredentialsT = ConnectionCredentials>
56 void SetConnectionCredentials(ConnectionCredentialsT&& value) { m_connectionCredentialsHasBeenSet = true; m_connectionCredentials = std::forward<ConnectionCredentialsT>(value); }
57 template<typename ConnectionCredentialsT = ConnectionCredentials>
58 CreateParticipantConnectionResult& WithConnectionCredentials(ConnectionCredentialsT&& value) { SetConnectionCredentials(std::forward<ConnectionCredentialsT>(value)); return *this;}
60
62
66 inline const ConnectionData& GetWebRTCConnection() const { return m_webRTCConnection; }
67 template<typename WebRTCConnectionT = ConnectionData>
68 void SetWebRTCConnection(WebRTCConnectionT&& value) { m_webRTCConnectionHasBeenSet = true; m_webRTCConnection = std::forward<WebRTCConnectionT>(value); }
69 template<typename WebRTCConnectionT = ConnectionData>
70 CreateParticipantConnectionResult& WithWebRTCConnection(WebRTCConnectionT&& value) { SetWebRTCConnection(std::forward<WebRTCConnectionT>(value)); return *this;}
72
74
75 inline const Aws::String& GetRequestId() const { return m_requestId; }
76 template<typename RequestIdT = Aws::String>
77 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
78 template<typename RequestIdT = Aws::String>
79 CreateParticipantConnectionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
81 private:
82
83 Websocket m_websocket;
84 bool m_websocketHasBeenSet = false;
85
86 ConnectionCredentials m_connectionCredentials;
87 bool m_connectionCredentialsHasBeenSet = false;
88
89 ConnectionData m_webRTCConnection;
90 bool m_webRTCConnectionHasBeenSet = false;
91
92 Aws::String m_requestId;
93 bool m_requestIdHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace ConnectParticipant
98} // 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