AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ParticipantSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ivs-realtime/Ivsrealtime_EXPORTS.h>
10#include <aws/ivs-realtime/model/ParticipantRecordingState.h>
11#include <aws/ivs-realtime/model/ParticipantState.h>
12#include <aws/ivs-realtime/model/ReplicationState.h>
13#include <aws/ivs-realtime/model/ReplicationType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ivsrealtime {
25namespace Model {
26
34 public:
35 AWS_IVSREALTIME_API ParticipantSummary() = default;
36 AWS_IVSREALTIME_API ParticipantSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IVSREALTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetParticipantId() const { return m_participantId; }
45 inline bool ParticipantIdHasBeenSet() const { return m_participantIdHasBeenSet; }
46 template <typename ParticipantIdT = Aws::String>
47 void SetParticipantId(ParticipantIdT&& value) {
48 m_participantIdHasBeenSet = true;
49 m_participantId = std::forward<ParticipantIdT>(value);
50 }
51 template <typename ParticipantIdT = Aws::String>
52 ParticipantSummary& WithParticipantId(ParticipantIdT&& value) {
53 SetParticipantId(std::forward<ParticipantIdT>(value));
54 return *this;
55 }
57
59
66 inline const Aws::String& GetUserId() const { return m_userId; }
67 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
68 template <typename UserIdT = Aws::String>
69 void SetUserId(UserIdT&& value) {
70 m_userIdHasBeenSet = true;
71 m_userId = std::forward<UserIdT>(value);
72 }
73 template <typename UserIdT = Aws::String>
74 ParticipantSummary& WithUserId(UserIdT&& value) {
75 SetUserId(std::forward<UserIdT>(value));
76 return *this;
77 }
79
81
84 inline ParticipantState GetState() const { return m_state; }
85 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
86 inline void SetState(ParticipantState value) {
87 m_stateHasBeenSet = true;
88 m_state = value;
89 }
91 SetState(value);
92 return *this;
93 }
95
97
101 inline const Aws::Utils::DateTime& GetFirstJoinTime() const { return m_firstJoinTime; }
102 inline bool FirstJoinTimeHasBeenSet() const { return m_firstJoinTimeHasBeenSet; }
103 template <typename FirstJoinTimeT = Aws::Utils::DateTime>
104 void SetFirstJoinTime(FirstJoinTimeT&& value) {
105 m_firstJoinTimeHasBeenSet = true;
106 m_firstJoinTime = std::forward<FirstJoinTimeT>(value);
107 }
108 template <typename FirstJoinTimeT = Aws::Utils::DateTime>
109 ParticipantSummary& WithFirstJoinTime(FirstJoinTimeT&& value) {
110 SetFirstJoinTime(std::forward<FirstJoinTimeT>(value));
111 return *this;
112 }
114
116
119 inline bool GetPublished() const { return m_published; }
120 inline bool PublishedHasBeenSet() const { return m_publishedHasBeenSet; }
121 inline void SetPublished(bool value) {
122 m_publishedHasBeenSet = true;
123 m_published = value;
124 }
125 inline ParticipantSummary& WithPublished(bool value) {
126 SetPublished(value);
127 return *this;
128 }
130
132
135 inline ParticipantRecordingState GetRecordingState() const { return m_recordingState; }
136 inline bool RecordingStateHasBeenSet() const { return m_recordingStateHasBeenSet; }
138 m_recordingStateHasBeenSet = true;
139 m_recordingState = value;
140 }
142 SetRecordingState(value);
143 return *this;
144 }
146
148
152 inline ReplicationType GetReplicationType() const { return m_replicationType; }
153 inline bool ReplicationTypeHasBeenSet() const { return m_replicationTypeHasBeenSet; }
155 m_replicationTypeHasBeenSet = true;
156 m_replicationType = value;
157 }
159 SetReplicationType(value);
160 return *this;
161 }
163
165
168 inline ReplicationState GetReplicationState() const { return m_replicationState; }
169 inline bool ReplicationStateHasBeenSet() const { return m_replicationStateHasBeenSet; }
171 m_replicationStateHasBeenSet = true;
172 m_replicationState = value;
173 }
175 SetReplicationState(value);
176 return *this;
177 }
179
181
185 inline const Aws::String& GetSourceStageArn() const { return m_sourceStageArn; }
186 inline bool SourceStageArnHasBeenSet() const { return m_sourceStageArnHasBeenSet; }
187 template <typename SourceStageArnT = Aws::String>
188 void SetSourceStageArn(SourceStageArnT&& value) {
189 m_sourceStageArnHasBeenSet = true;
190 m_sourceStageArn = std::forward<SourceStageArnT>(value);
191 }
192 template <typename SourceStageArnT = Aws::String>
193 ParticipantSummary& WithSourceStageArn(SourceStageArnT&& value) {
194 SetSourceStageArn(std::forward<SourceStageArnT>(value));
195 return *this;
196 }
198
200
204 inline const Aws::String& GetSourceSessionId() const { return m_sourceSessionId; }
205 inline bool SourceSessionIdHasBeenSet() const { return m_sourceSessionIdHasBeenSet; }
206 template <typename SourceSessionIdT = Aws::String>
207 void SetSourceSessionId(SourceSessionIdT&& value) {
208 m_sourceSessionIdHasBeenSet = true;
209 m_sourceSessionId = std::forward<SourceSessionIdT>(value);
210 }
211 template <typename SourceSessionIdT = Aws::String>
212 ParticipantSummary& WithSourceSessionId(SourceSessionIdT&& value) {
213 SetSourceSessionId(std::forward<SourceSessionIdT>(value));
214 return *this;
215 }
217 private:
218 Aws::String m_participantId;
219
220 Aws::String m_userId;
221
223
224 Aws::Utils::DateTime m_firstJoinTime{};
225
226 bool m_published{false};
227
229
230 ReplicationType m_replicationType{ReplicationType::NOT_SET};
231
233
234 Aws::String m_sourceStageArn;
235
236 Aws::String m_sourceSessionId;
237 bool m_participantIdHasBeenSet = false;
238 bool m_userIdHasBeenSet = false;
239 bool m_stateHasBeenSet = false;
240 bool m_firstJoinTimeHasBeenSet = false;
241 bool m_publishedHasBeenSet = false;
242 bool m_recordingStateHasBeenSet = false;
243 bool m_replicationTypeHasBeenSet = false;
244 bool m_replicationStateHasBeenSet = false;
245 bool m_sourceStageArnHasBeenSet = false;
246 bool m_sourceSessionIdHasBeenSet = false;
247};
248
249} // namespace Model
250} // namespace ivsrealtime
251} // namespace Aws
ParticipantSummary & WithSourceSessionId(SourceSessionIdT &&value)
ParticipantSummary & WithReplicationType(ReplicationType value)
AWS_IVSREALTIME_API Aws::Utils::Json::JsonValue Jsonize() const
ParticipantSummary & WithFirstJoinTime(FirstJoinTimeT &&value)
void SetSourceStageArn(SourceStageArnT &&value)
void SetRecordingState(ParticipantRecordingState value)
void SetReplicationState(ReplicationState value)
ParticipantSummary & WithSourceStageArn(SourceStageArnT &&value)
ParticipantSummary & WithRecordingState(ParticipantRecordingState value)
ParticipantSummary & WithParticipantId(ParticipantIdT &&value)
AWS_IVSREALTIME_API ParticipantSummary()=default
void SetSourceSessionId(SourceSessionIdT &&value)
AWS_IVSREALTIME_API ParticipantSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ParticipantSummary & WithReplicationState(ReplicationState value)
ParticipantRecordingState GetRecordingState() const
ParticipantSummary & WithState(ParticipantState value)
ParticipantSummary & WithPublished(bool value)
ParticipantSummary & WithUserId(UserIdT &&value)
const Aws::Utils::DateTime & GetFirstJoinTime() const
void SetParticipantId(ParticipantIdT &&value)
AWS_IVSREALTIME_API ParticipantSummary(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue