AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ParticipantSummary.h
1
6#pragma once
7#include <aws/ivs-realtime/Ivsrealtime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ivs-realtime/model/ParticipantState.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/ivs-realtime/model/ParticipantRecordingState.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ivsrealtime
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_IVSREALTIME_API ParticipantSummary();
39 AWS_IVSREALTIME_API ParticipantSummary(Aws::Utils::Json::JsonView jsonValue);
41 AWS_IVSREALTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetParticipantId() const{ return m_participantId; }
49 inline bool ParticipantIdHasBeenSet() const { return m_participantIdHasBeenSet; }
50 inline void SetParticipantId(const Aws::String& value) { m_participantIdHasBeenSet = true; m_participantId = value; }
51 inline void SetParticipantId(Aws::String&& value) { m_participantIdHasBeenSet = true; m_participantId = std::move(value); }
52 inline void SetParticipantId(const char* value) { m_participantIdHasBeenSet = true; m_participantId.assign(value); }
53 inline ParticipantSummary& WithParticipantId(const Aws::String& value) { SetParticipantId(value); return *this;}
54 inline ParticipantSummary& WithParticipantId(Aws::String&& value) { SetParticipantId(std::move(value)); return *this;}
55 inline ParticipantSummary& WithParticipantId(const char* value) { SetParticipantId(value); return *this;}
57
59
66 inline const Aws::String& GetUserId() const{ return m_userId; }
67 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
68 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
69 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
70 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
71 inline ParticipantSummary& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
72 inline ParticipantSummary& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
73 inline ParticipantSummary& WithUserId(const char* value) { SetUserId(value); return *this;}
75
77
80 inline const ParticipantState& GetState() const{ return m_state; }
81 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
82 inline void SetState(const ParticipantState& value) { m_stateHasBeenSet = true; m_state = value; }
83 inline void SetState(ParticipantState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
84 inline ParticipantSummary& WithState(const ParticipantState& value) { SetState(value); return *this;}
85 inline ParticipantSummary& WithState(ParticipantState&& value) { SetState(std::move(value)); return *this;}
87
89
93 inline const Aws::Utils::DateTime& GetFirstJoinTime() const{ return m_firstJoinTime; }
94 inline bool FirstJoinTimeHasBeenSet() const { return m_firstJoinTimeHasBeenSet; }
95 inline void SetFirstJoinTime(const Aws::Utils::DateTime& value) { m_firstJoinTimeHasBeenSet = true; m_firstJoinTime = value; }
96 inline void SetFirstJoinTime(Aws::Utils::DateTime&& value) { m_firstJoinTimeHasBeenSet = true; m_firstJoinTime = std::move(value); }
97 inline ParticipantSummary& WithFirstJoinTime(const Aws::Utils::DateTime& value) { SetFirstJoinTime(value); return *this;}
98 inline ParticipantSummary& WithFirstJoinTime(Aws::Utils::DateTime&& value) { SetFirstJoinTime(std::move(value)); return *this;}
100
102
105 inline bool GetPublished() const{ return m_published; }
106 inline bool PublishedHasBeenSet() const { return m_publishedHasBeenSet; }
107 inline void SetPublished(bool value) { m_publishedHasBeenSet = true; m_published = value; }
108 inline ParticipantSummary& WithPublished(bool value) { SetPublished(value); return *this;}
110
112
115 inline const ParticipantRecordingState& GetRecordingState() const{ return m_recordingState; }
116 inline bool RecordingStateHasBeenSet() const { return m_recordingStateHasBeenSet; }
117 inline void SetRecordingState(const ParticipantRecordingState& value) { m_recordingStateHasBeenSet = true; m_recordingState = value; }
118 inline void SetRecordingState(ParticipantRecordingState&& value) { m_recordingStateHasBeenSet = true; m_recordingState = std::move(value); }
120 inline ParticipantSummary& WithRecordingState(ParticipantRecordingState&& value) { SetRecordingState(std::move(value)); return *this;}
122 private:
123
124 Aws::String m_participantId;
125 bool m_participantIdHasBeenSet = false;
126
127 Aws::String m_userId;
128 bool m_userIdHasBeenSet = false;
129
130 ParticipantState m_state;
131 bool m_stateHasBeenSet = false;
132
133 Aws::Utils::DateTime m_firstJoinTime;
134 bool m_firstJoinTimeHasBeenSet = false;
135
136 bool m_published;
137 bool m_publishedHasBeenSet = false;
138
139 ParticipantRecordingState m_recordingState;
140 bool m_recordingStateHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace ivsrealtime
145} // namespace Aws
ParticipantSummary & WithUserId(Aws::String &&value)
ParticipantSummary & WithFirstJoinTime(Aws::Utils::DateTime &&value)
const ParticipantRecordingState & GetRecordingState() const
AWS_IVSREALTIME_API Aws::Utils::Json::JsonValue Jsonize() const
ParticipantSummary & WithParticipantId(Aws::String &&value)
void SetParticipantId(const Aws::String &value)
void SetState(const ParticipantState &value)
void SetFirstJoinTime(const Aws::Utils::DateTime &value)
ParticipantSummary & WithParticipantId(const Aws::String &value)
ParticipantSummary & WithState(const ParticipantState &value)
ParticipantSummary & WithUserId(const Aws::String &value)
const ParticipantState & GetState() const
void SetRecordingState(ParticipantRecordingState &&value)
ParticipantSummary & WithFirstJoinTime(const Aws::Utils::DateTime &value)
void SetFirstJoinTime(Aws::Utils::DateTime &&value)
AWS_IVSREALTIME_API ParticipantSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ParticipantSummary & WithState(ParticipantState &&value)
ParticipantSummary & WithRecordingState(const ParticipantRecordingState &value)
ParticipantSummary & WithPublished(bool value)
const Aws::Utils::DateTime & GetFirstJoinTime() const
ParticipantSummary & WithRecordingState(ParticipantRecordingState &&value)
ParticipantSummary & WithUserId(const char *value)
void SetRecordingState(const ParticipantRecordingState &value)
AWS_IVSREALTIME_API ParticipantSummary(Aws::Utils::Json::JsonView jsonValue)
ParticipantSummary & WithParticipantId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue