AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Stream.h
1
6#pragma once
7#include <aws/ivs/IVS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ivs/model/StreamHealth.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/ivs/model/StreamState.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 IVS
25{
26namespace Model
27{
28
35 class Stream
36 {
37 public:
38 AWS_IVS_API Stream();
39 AWS_IVS_API Stream(Aws::Utils::Json::JsonView jsonValue);
42
43
45
48 inline const Aws::String& GetChannelArn() const{ return m_channelArn; }
49 inline bool ChannelArnHasBeenSet() const { return m_channelArnHasBeenSet; }
50 inline void SetChannelArn(const Aws::String& value) { m_channelArnHasBeenSet = true; m_channelArn = value; }
51 inline void SetChannelArn(Aws::String&& value) { m_channelArnHasBeenSet = true; m_channelArn = std::move(value); }
52 inline void SetChannelArn(const char* value) { m_channelArnHasBeenSet = true; m_channelArn.assign(value); }
53 inline Stream& WithChannelArn(const Aws::String& value) { SetChannelArn(value); return *this;}
54 inline Stream& WithChannelArn(Aws::String&& value) { SetChannelArn(std::move(value)); return *this;}
55 inline Stream& WithChannelArn(const char* value) { SetChannelArn(value); return *this;}
57
59
62 inline const StreamHealth& GetHealth() const{ return m_health; }
63 inline bool HealthHasBeenSet() const { return m_healthHasBeenSet; }
64 inline void SetHealth(const StreamHealth& value) { m_healthHasBeenSet = true; m_health = value; }
65 inline void SetHealth(StreamHealth&& value) { m_healthHasBeenSet = true; m_health = std::move(value); }
66 inline Stream& WithHealth(const StreamHealth& value) { SetHealth(value); return *this;}
67 inline Stream& WithHealth(StreamHealth&& value) { SetHealth(std::move(value)); return *this;}
69
71
75 inline const Aws::String& GetPlaybackUrl() const{ return m_playbackUrl; }
76 inline bool PlaybackUrlHasBeenSet() const { return m_playbackUrlHasBeenSet; }
77 inline void SetPlaybackUrl(const Aws::String& value) { m_playbackUrlHasBeenSet = true; m_playbackUrl = value; }
78 inline void SetPlaybackUrl(Aws::String&& value) { m_playbackUrlHasBeenSet = true; m_playbackUrl = std::move(value); }
79 inline void SetPlaybackUrl(const char* value) { m_playbackUrlHasBeenSet = true; m_playbackUrl.assign(value); }
80 inline Stream& WithPlaybackUrl(const Aws::String& value) { SetPlaybackUrl(value); return *this;}
81 inline Stream& WithPlaybackUrl(Aws::String&& value) { SetPlaybackUrl(std::move(value)); return *this;}
82 inline Stream& WithPlaybackUrl(const char* value) { SetPlaybackUrl(value); return *this;}
84
86
90 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
91 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
92 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
93 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
94 inline Stream& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
95 inline Stream& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
97
99
104 inline const StreamState& GetState() const{ return m_state; }
105 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
106 inline void SetState(const StreamState& value) { m_stateHasBeenSet = true; m_state = value; }
107 inline void SetState(StreamState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
108 inline Stream& WithState(const StreamState& value) { SetState(value); return *this;}
109 inline Stream& WithState(StreamState&& value) { SetState(std::move(value)); return *this;}
111
113
117 inline const Aws::String& GetStreamId() const{ return m_streamId; }
118 inline bool StreamIdHasBeenSet() const { return m_streamIdHasBeenSet; }
119 inline void SetStreamId(const Aws::String& value) { m_streamIdHasBeenSet = true; m_streamId = value; }
120 inline void SetStreamId(Aws::String&& value) { m_streamIdHasBeenSet = true; m_streamId = std::move(value); }
121 inline void SetStreamId(const char* value) { m_streamIdHasBeenSet = true; m_streamId.assign(value); }
122 inline Stream& WithStreamId(const Aws::String& value) { SetStreamId(value); return *this;}
123 inline Stream& WithStreamId(Aws::String&& value) { SetStreamId(std::move(value)); return *this;}
124 inline Stream& WithStreamId(const char* value) { SetStreamId(value); return *this;}
126
128
135 inline long long GetViewerCount() const{ return m_viewerCount; }
136 inline bool ViewerCountHasBeenSet() const { return m_viewerCountHasBeenSet; }
137 inline void SetViewerCount(long long value) { m_viewerCountHasBeenSet = true; m_viewerCount = value; }
138 inline Stream& WithViewerCount(long long value) { SetViewerCount(value); return *this;}
140 private:
141
142 Aws::String m_channelArn;
143 bool m_channelArnHasBeenSet = false;
144
145 StreamHealth m_health;
146 bool m_healthHasBeenSet = false;
147
148 Aws::String m_playbackUrl;
149 bool m_playbackUrlHasBeenSet = false;
150
151 Aws::Utils::DateTime m_startTime;
152 bool m_startTimeHasBeenSet = false;
153
154 StreamState m_state;
155 bool m_stateHasBeenSet = false;
156
157 Aws::String m_streamId;
158 bool m_streamIdHasBeenSet = false;
159
160 long long m_viewerCount;
161 bool m_viewerCountHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace IVS
166} // namespace Aws
Stream & WithPlaybackUrl(const Aws::String &value)
Definition Stream.h:80
void SetHealth(StreamHealth &&value)
Definition Stream.h:65
const Aws::String & GetStreamId() const
Definition Stream.h:117
Stream & WithHealth(const StreamHealth &value)
Definition Stream.h:66
const Aws::String & GetPlaybackUrl() const
Definition Stream.h:75
AWS_IVS_API Stream & operator=(Aws::Utils::Json::JsonView jsonValue)
Stream & WithViewerCount(long long value)
Definition Stream.h:138
Stream & WithState(StreamState &&value)
Definition Stream.h:109
void SetChannelArn(const Aws::String &value)
Definition Stream.h:50
Stream & WithChannelArn(const char *value)
Definition Stream.h:55
Stream & WithChannelArn(Aws::String &&value)
Definition Stream.h:54
void SetStreamId(const char *value)
Definition Stream.h:121
Stream & WithStartTime(Aws::Utils::DateTime &&value)
Definition Stream.h:95
void SetPlaybackUrl(const char *value)
Definition Stream.h:79
void SetPlaybackUrl(const Aws::String &value)
Definition Stream.h:77
void SetChannelArn(Aws::String &&value)
Definition Stream.h:51
void SetStartTime(const Aws::Utils::DateTime &value)
Definition Stream.h:92
bool StateHasBeenSet() const
Definition Stream.h:105
AWS_IVS_API Stream(Aws::Utils::Json::JsonView jsonValue)
bool StartTimeHasBeenSet() const
Definition Stream.h:91
void SetStreamId(const Aws::String &value)
Definition Stream.h:119
void SetStartTime(Aws::Utils::DateTime &&value)
Definition Stream.h:93
AWS_IVS_API Aws::Utils::Json::JsonValue Jsonize() const
bool StreamIdHasBeenSet() const
Definition Stream.h:118
Stream & WithStreamId(const char *value)
Definition Stream.h:124
Stream & WithChannelArn(const Aws::String &value)
Definition Stream.h:53
Stream & WithStreamId(const Aws::String &value)
Definition Stream.h:122
Stream & WithPlaybackUrl(const char *value)
Definition Stream.h:82
bool ViewerCountHasBeenSet() const
Definition Stream.h:136
Stream & WithStreamId(Aws::String &&value)
Definition Stream.h:123
void SetViewerCount(long long value)
Definition Stream.h:137
void SetHealth(const StreamHealth &value)
Definition Stream.h:64
void SetStreamId(Aws::String &&value)
Definition Stream.h:120
const Aws::String & GetChannelArn() const
Definition Stream.h:48
const StreamHealth & GetHealth() const
Definition Stream.h:62
Stream & WithHealth(StreamHealth &&value)
Definition Stream.h:67
bool HealthHasBeenSet() const
Definition Stream.h:63
Stream & WithState(const StreamState &value)
Definition Stream.h:108
void SetState(StreamState &&value)
Definition Stream.h:107
long long GetViewerCount() const
Definition Stream.h:135
const StreamState & GetState() const
Definition Stream.h:104
Stream & WithPlaybackUrl(Aws::String &&value)
Definition Stream.h:81
void SetState(const StreamState &value)
Definition Stream.h:106
bool ChannelArnHasBeenSet() const
Definition Stream.h:49
void SetChannelArn(const char *value)
Definition Stream.h:52
void SetPlaybackUrl(Aws::String &&value)
Definition Stream.h:78
Stream & WithStartTime(const Aws::Utils::DateTime &value)
Definition Stream.h:94
bool PlaybackUrlHasBeenSet() const
Definition Stream.h:76
const Aws::Utils::DateTime & GetStartTime() const
Definition Stream.h:90
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue