AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
CreateParticipantResult.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/ParticipantTokenCredentials.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace Connect {
24namespace Model {
26 public:
27 AWS_CONNECT_API CreateParticipantResult() = default;
30
32
37 inline const ParticipantTokenCredentials& GetParticipantCredentials() const { return m_participantCredentials; }
38 template <typename ParticipantCredentialsT = ParticipantTokenCredentials>
39 void SetParticipantCredentials(ParticipantCredentialsT&& value) {
40 m_participantCredentialsHasBeenSet = true;
41 m_participantCredentials = std::forward<ParticipantCredentialsT>(value);
42 }
43 template <typename ParticipantCredentialsT = ParticipantTokenCredentials>
44 CreateParticipantResult& WithParticipantCredentials(ParticipantCredentialsT&& value) {
45 SetParticipantCredentials(std::forward<ParticipantCredentialsT>(value));
46 return *this;
47 }
49
51
55 inline const Aws::String& GetParticipantId() const { return m_participantId; }
56 template <typename ParticipantIdT = Aws::String>
57 void SetParticipantId(ParticipantIdT&& value) {
58 m_participantIdHasBeenSet = true;
59 m_participantId = std::forward<ParticipantIdT>(value);
60 }
61 template <typename ParticipantIdT = Aws::String>
62 CreateParticipantResult& WithParticipantId(ParticipantIdT&& value) {
63 SetParticipantId(std::forward<ParticipantIdT>(value));
64 return *this;
65 }
67
69
70 inline const Aws::String& GetRequestId() const { return m_requestId; }
71 template <typename RequestIdT = Aws::String>
72 void SetRequestId(RequestIdT&& value) {
73 m_requestIdHasBeenSet = true;
74 m_requestId = std::forward<RequestIdT>(value);
75 }
76 template <typename RequestIdT = Aws::String>
78 SetRequestId(std::forward<RequestIdT>(value));
79 return *this;
80 }
82 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
83
84 private:
85 ParticipantTokenCredentials m_participantCredentials;
86
87 Aws::String m_participantId;
88
89 Aws::String m_requestId;
90 Aws::Http::HttpResponseCode m_HttpResponseCode;
91 bool m_participantCredentialsHasBeenSet = false;
92 bool m_participantIdHasBeenSet = false;
93 bool m_requestIdHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace Connect
98} // namespace Aws
CreateParticipantResult & WithRequestId(RequestIdT &&value)
CreateParticipantResult & WithParticipantCredentials(ParticipantCredentialsT &&value)
const ParticipantTokenCredentials & GetParticipantCredentials() const
AWS_CONNECT_API CreateParticipantResult()=default
AWS_CONNECT_API CreateParticipantResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateParticipantResult & WithParticipantId(ParticipantIdT &&value)
AWS_CONNECT_API CreateParticipantResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetParticipantCredentials(ParticipantCredentialsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue