AWS SDK for C++

AWS SDK for C++ Version 1.11.793

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
219
222 inline bool GetRedundantIngest() const { return m_redundantIngest; }
223 inline bool RedundantIngestHasBeenSet() const { return m_redundantIngestHasBeenSet; }
224 inline void SetRedundantIngest(bool value) {
225 m_redundantIngestHasBeenSet = true;
226 m_redundantIngest = value;
227 }
229 SetRedundantIngest(value);
230 return *this;
231 }
233
235
238 inline const Aws::String& GetIngestConfigurationArn() const { return m_ingestConfigurationArn; }
239 inline bool IngestConfigurationArnHasBeenSet() const { return m_ingestConfigurationArnHasBeenSet; }
240 template <typename IngestConfigurationArnT = Aws::String>
241 void SetIngestConfigurationArn(IngestConfigurationArnT&& value) {
242 m_ingestConfigurationArnHasBeenSet = true;
243 m_ingestConfigurationArn = std::forward<IngestConfigurationArnT>(value);
244 }
245 template <typename IngestConfigurationArnT = Aws::String>
246 ParticipantSummary& WithIngestConfigurationArn(IngestConfigurationArnT&& value) {
247 SetIngestConfigurationArn(std::forward<IngestConfigurationArnT>(value));
248 return *this;
249 }
251 private:
252 Aws::String m_participantId;
253
254 Aws::String m_userId;
255
257
258 Aws::Utils::DateTime m_firstJoinTime{};
259
260 bool m_published{false};
261
263
264 ReplicationType m_replicationType{ReplicationType::NOT_SET};
265
267
268 Aws::String m_sourceStageArn;
269
270 Aws::String m_sourceSessionId;
271
272 bool m_redundantIngest{false};
273
274 Aws::String m_ingestConfigurationArn;
275 bool m_participantIdHasBeenSet = false;
276 bool m_userIdHasBeenSet = false;
277 bool m_stateHasBeenSet = false;
278 bool m_firstJoinTimeHasBeenSet = false;
279 bool m_publishedHasBeenSet = false;
280 bool m_recordingStateHasBeenSet = false;
281 bool m_replicationTypeHasBeenSet = false;
282 bool m_replicationStateHasBeenSet = false;
283 bool m_sourceStageArnHasBeenSet = false;
284 bool m_sourceSessionIdHasBeenSet = false;
285 bool m_redundantIngestHasBeenSet = false;
286 bool m_ingestConfigurationArnHasBeenSet = false;
287};
288
289} // namespace Model
290} // namespace ivsrealtime
291} // 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)
ParticipantSummary & WithRedundantIngest(bool 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)
void SetIngestConfigurationArn(IngestConfigurationArnT &&value)
const Aws::Utils::DateTime & GetFirstJoinTime() const
const Aws::String & GetIngestConfigurationArn() const
ParticipantSummary & WithIngestConfigurationArn(IngestConfigurationArnT &&value)
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