AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StreamSummary.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 {
36 public:
37 AWS_IVS_API StreamSummary();
41
42
44
47 inline const Aws::String& GetChannelArn() const{ return m_channelArn; }
48 inline bool ChannelArnHasBeenSet() const { return m_channelArnHasBeenSet; }
49 inline void SetChannelArn(const Aws::String& value) { m_channelArnHasBeenSet = true; m_channelArn = value; }
50 inline void SetChannelArn(Aws::String&& value) { m_channelArnHasBeenSet = true; m_channelArn = std::move(value); }
51 inline void SetChannelArn(const char* value) { m_channelArnHasBeenSet = true; m_channelArn.assign(value); }
52 inline StreamSummary& WithChannelArn(const Aws::String& value) { SetChannelArn(value); return *this;}
53 inline StreamSummary& WithChannelArn(Aws::String&& value) { SetChannelArn(std::move(value)); return *this;}
54 inline StreamSummary& WithChannelArn(const char* value) { SetChannelArn(value); return *this;}
56
58
61 inline const StreamHealth& GetHealth() const{ return m_health; }
62 inline bool HealthHasBeenSet() const { return m_healthHasBeenSet; }
63 inline void SetHealth(const StreamHealth& value) { m_healthHasBeenSet = true; m_health = value; }
64 inline void SetHealth(StreamHealth&& value) { m_healthHasBeenSet = true; m_health = std::move(value); }
65 inline StreamSummary& WithHealth(const StreamHealth& value) { SetHealth(value); return *this;}
66 inline StreamSummary& WithHealth(StreamHealth&& value) { SetHealth(std::move(value)); return *this;}
68
70
74 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
75 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
76 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
77 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
78 inline StreamSummary& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
79 inline StreamSummary& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
81
83
88 inline const StreamState& GetState() const{ return m_state; }
89 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
90 inline void SetState(const StreamState& value) { m_stateHasBeenSet = true; m_state = value; }
91 inline void SetState(StreamState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
92 inline StreamSummary& WithState(const StreamState& value) { SetState(value); return *this;}
93 inline StreamSummary& WithState(StreamState&& value) { SetState(std::move(value)); return *this;}
95
97
101 inline const Aws::String& GetStreamId() const{ return m_streamId; }
102 inline bool StreamIdHasBeenSet() const { return m_streamIdHasBeenSet; }
103 inline void SetStreamId(const Aws::String& value) { m_streamIdHasBeenSet = true; m_streamId = value; }
104 inline void SetStreamId(Aws::String&& value) { m_streamIdHasBeenSet = true; m_streamId = std::move(value); }
105 inline void SetStreamId(const char* value) { m_streamIdHasBeenSet = true; m_streamId.assign(value); }
106 inline StreamSummary& WithStreamId(const Aws::String& value) { SetStreamId(value); return *this;}
107 inline StreamSummary& WithStreamId(Aws::String&& value) { SetStreamId(std::move(value)); return *this;}
108 inline StreamSummary& WithStreamId(const char* value) { SetStreamId(value); return *this;}
110
112
119 inline long long GetViewerCount() const{ return m_viewerCount; }
120 inline bool ViewerCountHasBeenSet() const { return m_viewerCountHasBeenSet; }
121 inline void SetViewerCount(long long value) { m_viewerCountHasBeenSet = true; m_viewerCount = value; }
122 inline StreamSummary& WithViewerCount(long long value) { SetViewerCount(value); return *this;}
124 private:
125
126 Aws::String m_channelArn;
127 bool m_channelArnHasBeenSet = false;
128
129 StreamHealth m_health;
130 bool m_healthHasBeenSet = false;
131
132 Aws::Utils::DateTime m_startTime;
133 bool m_startTimeHasBeenSet = false;
134
135 StreamState m_state;
136 bool m_stateHasBeenSet = false;
137
138 Aws::String m_streamId;
139 bool m_streamIdHasBeenSet = false;
140
141 long long m_viewerCount;
142 bool m_viewerCountHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace IVS
147} // namespace Aws
AWS_IVS_API StreamSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetChannelArn(const char *value)
void SetHealth(const StreamHealth &value)
StreamSummary & WithStreamId(const char *value)
const Aws::String & GetStreamId() const
void SetHealth(StreamHealth &&value)
StreamSummary & WithStartTime(const Aws::Utils::DateTime &value)
void SetStreamId(const char *value)
AWS_IVS_API StreamSummary(Aws::Utils::Json::JsonView jsonValue)
StreamSummary & WithChannelArn(const char *value)
void SetStartTime(Aws::Utils::DateTime &&value)
void SetChannelArn(Aws::String &&value)
StreamSummary & WithStreamId(Aws::String &&value)
void SetViewerCount(long long value)
StreamSummary & WithState(StreamState &&value)
const StreamState & GetState() const
StreamSummary & WithState(const StreamState &value)
StreamSummary & WithStreamId(const Aws::String &value)
StreamSummary & WithChannelArn(const Aws::String &value)
StreamSummary & WithHealth(StreamHealth &&value)
const Aws::Utils::DateTime & GetStartTime() const
void SetState(StreamState &&value)
StreamSummary & WithChannelArn(Aws::String &&value)
void SetChannelArn(const Aws::String &value)
const StreamHealth & GetHealth() const
const Aws::String & GetChannelArn() const
void SetStreamId(const Aws::String &value)
StreamSummary & WithHealth(const StreamHealth &value)
AWS_IVS_API Aws::Utils::Json::JsonValue Jsonize() const
StreamSummary & WithViewerCount(long long value)
void SetStreamId(Aws::String &&value)
void SetState(const StreamState &value)
void SetStartTime(const Aws::Utils::DateTime &value)
StreamSummary & WithStartTime(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue