AWS SDK for C++

AWS SDK for C++ Version 1.11.918

Loading...
Searching...
No Matches
StreamSession.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ivs/IVS_EXPORTS.h>
11#include <aws/ivs/model/Channel.h>
12#include <aws/ivs/model/FailoverSlateConfiguration.h>
13#include <aws/ivs/model/IngestConfiguration.h>
14#include <aws/ivs/model/IngestConfigurations.h>
15#include <aws/ivs/model/RecordingConfiguration.h>
16#include <aws/ivs/model/StreamEvent.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace IVS {
28namespace Model {
29
38 public:
39 AWS_IVS_API StreamSession() = default;
43
45
49 inline const Aws::String& GetStreamId() const { return m_streamId; }
50 inline bool StreamIdHasBeenSet() const { return m_streamIdHasBeenSet; }
51 template <typename StreamIdT = Aws::String>
52 void SetStreamId(StreamIdT&& value) {
53 m_streamIdHasBeenSet = true;
54 m_streamId = std::forward<StreamIdT>(value);
55 }
56 template <typename StreamIdT = Aws::String>
57 StreamSession& WithStreamId(StreamIdT&& value) {
58 SetStreamId(std::forward<StreamIdT>(value));
59 return *this;
60 }
62
64
68 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
69 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
70 template <typename StartTimeT = Aws::Utils::DateTime>
71 void SetStartTime(StartTimeT&& value) {
72 m_startTimeHasBeenSet = true;
73 m_startTime = std::forward<StartTimeT>(value);
74 }
75 template <typename StartTimeT = Aws::Utils::DateTime>
76 StreamSession& WithStartTime(StartTimeT&& value) {
77 SetStartTime(std::forward<StartTimeT>(value));
78 return *this;
79 }
81
83
88 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
89 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
90 template <typename EndTimeT = Aws::Utils::DateTime>
91 void SetEndTime(EndTimeT&& value) {
92 m_endTimeHasBeenSet = true;
93 m_endTime = std::forward<EndTimeT>(value);
94 }
95 template <typename EndTimeT = Aws::Utils::DateTime>
96 StreamSession& WithEndTime(EndTimeT&& value) {
97 SetEndTime(std::forward<EndTimeT>(value));
98 return *this;
99 }
101
103
106 inline const Channel& GetChannel() const { return m_channel; }
107 inline bool ChannelHasBeenSet() const { return m_channelHasBeenSet; }
108 template <typename ChannelT = Channel>
109 void SetChannel(ChannelT&& value) {
110 m_channelHasBeenSet = true;
111 m_channel = std::forward<ChannelT>(value);
112 }
113 template <typename ChannelT = Channel>
114 StreamSession& WithChannel(ChannelT&& value) {
115 SetChannel(std::forward<ChannelT>(value));
116 return *this;
117 }
119
121
131 inline const IngestConfiguration& GetIngestConfiguration() const { return m_ingestConfiguration; }
132 inline bool IngestConfigurationHasBeenSet() const { return m_ingestConfigurationHasBeenSet; }
133 template <typename IngestConfigurationT = IngestConfiguration>
134 void SetIngestConfiguration(IngestConfigurationT&& value) {
135 m_ingestConfigurationHasBeenSet = true;
136 m_ingestConfiguration = std::forward<IngestConfigurationT>(value);
137 }
138 template <typename IngestConfigurationT = IngestConfiguration>
139 StreamSession& WithIngestConfiguration(IngestConfigurationT&& value) {
140 SetIngestConfiguration(std::forward<IngestConfigurationT>(value));
141 return *this;
142 }
144
146
151 inline const IngestConfigurations& GetIngestConfigurations() const { return m_ingestConfigurations; }
152 inline bool IngestConfigurationsHasBeenSet() const { return m_ingestConfigurationsHasBeenSet; }
153 template <typename IngestConfigurationsT = IngestConfigurations>
154 void SetIngestConfigurations(IngestConfigurationsT&& value) {
155 m_ingestConfigurationsHasBeenSet = true;
156 m_ingestConfigurations = std::forward<IngestConfigurationsT>(value);
157 }
158 template <typename IngestConfigurationsT = IngestConfigurations>
159 StreamSession& WithIngestConfigurations(IngestConfigurationsT&& value) {
160 SetIngestConfigurations(std::forward<IngestConfigurationsT>(value));
161 return *this;
162 }
164
166
169 inline const RecordingConfiguration& GetRecordingConfiguration() const { return m_recordingConfiguration; }
170 inline bool RecordingConfigurationHasBeenSet() const { return m_recordingConfigurationHasBeenSet; }
171 template <typename RecordingConfigurationT = RecordingConfiguration>
172 void SetRecordingConfiguration(RecordingConfigurationT&& value) {
173 m_recordingConfigurationHasBeenSet = true;
174 m_recordingConfiguration = std::forward<RecordingConfigurationT>(value);
175 }
176 template <typename RecordingConfigurationT = RecordingConfiguration>
177 StreamSession& WithRecordingConfiguration(RecordingConfigurationT&& value) {
178 SetRecordingConfiguration(std::forward<RecordingConfigurationT>(value));
179 return *this;
180 }
182
184
190 inline const Aws::Vector<StreamEvent>& GetTruncatedEvents() const { return m_truncatedEvents; }
191 inline bool TruncatedEventsHasBeenSet() const { return m_truncatedEventsHasBeenSet; }
192 template <typename TruncatedEventsT = Aws::Vector<StreamEvent>>
193 void SetTruncatedEvents(TruncatedEventsT&& value) {
194 m_truncatedEventsHasBeenSet = true;
195 m_truncatedEvents = std::forward<TruncatedEventsT>(value);
196 }
197 template <typename TruncatedEventsT = Aws::Vector<StreamEvent>>
198 StreamSession& WithTruncatedEvents(TruncatedEventsT&& value) {
199 SetTruncatedEvents(std::forward<TruncatedEventsT>(value));
200 return *this;
201 }
202 template <typename TruncatedEventsT = StreamEvent>
203 StreamSession& AddTruncatedEvents(TruncatedEventsT&& value) {
204 m_truncatedEventsHasBeenSet = true;
205 m_truncatedEvents.emplace_back(std::forward<TruncatedEventsT>(value));
206 return *this;
207 }
209
211
215 inline const FailoverSlateConfiguration& GetFailoverSlateConfiguration() const { return m_failoverSlateConfiguration; }
216 inline bool FailoverSlateConfigurationHasBeenSet() const { return m_failoverSlateConfigurationHasBeenSet; }
217 template <typename FailoverSlateConfigurationT = FailoverSlateConfiguration>
218 void SetFailoverSlateConfiguration(FailoverSlateConfigurationT&& value) {
219 m_failoverSlateConfigurationHasBeenSet = true;
220 m_failoverSlateConfiguration = std::forward<FailoverSlateConfigurationT>(value);
221 }
222 template <typename FailoverSlateConfigurationT = FailoverSlateConfiguration>
223 StreamSession& WithFailoverSlateConfiguration(FailoverSlateConfigurationT&& value) {
224 SetFailoverSlateConfiguration(std::forward<FailoverSlateConfigurationT>(value));
225 return *this;
226 }
228 private:
229 Aws::String m_streamId;
230
231 Aws::Utils::DateTime m_startTime{};
232
233 Aws::Utils::DateTime m_endTime{};
234
235 Channel m_channel;
236
237 IngestConfiguration m_ingestConfiguration;
238
239 IngestConfigurations m_ingestConfigurations;
240
241 RecordingConfiguration m_recordingConfiguration;
242
243 Aws::Vector<StreamEvent> m_truncatedEvents;
244
245 FailoverSlateConfiguration m_failoverSlateConfiguration;
246 bool m_streamIdHasBeenSet = false;
247 bool m_startTimeHasBeenSet = false;
248 bool m_endTimeHasBeenSet = false;
249 bool m_channelHasBeenSet = false;
250 bool m_ingestConfigurationHasBeenSet = false;
251 bool m_ingestConfigurationsHasBeenSet = false;
252 bool m_recordingConfigurationHasBeenSet = false;
253 bool m_truncatedEventsHasBeenSet = false;
254 bool m_failoverSlateConfigurationHasBeenSet = false;
255};
256
257} // namespace Model
258} // namespace IVS
259} // namespace Aws
const Aws::Utils::DateTime & GetStartTime() const
bool FailoverSlateConfigurationHasBeenSet() const
const IngestConfigurations & GetIngestConfigurations() const
AWS_IVS_API StreamSession & operator=(Aws::Utils::Json::JsonView jsonValue)
StreamSession & WithIngestConfiguration(IngestConfigurationT &&value)
void SetStartTime(StartTimeT &&value)
StreamSession & WithTruncatedEvents(TruncatedEventsT &&value)
const IngestConfiguration & GetIngestConfiguration() const
const Aws::Vector< StreamEvent > & GetTruncatedEvents() const
const Aws::String & GetStreamId() const
AWS_IVS_API StreamSession()=default
const RecordingConfiguration & GetRecordingConfiguration() const
void SetRecordingConfiguration(RecordingConfigurationT &&value)
void SetIngestConfigurations(IngestConfigurationsT &&value)
bool RecordingConfigurationHasBeenSet() const
void SetStreamId(StreamIdT &&value)
StreamSession & WithEndTime(EndTimeT &&value)
AWS_IVS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetIngestConfiguration(IngestConfigurationT &&value)
StreamSession & WithStreamId(StreamIdT &&value)
void SetTruncatedEvents(TruncatedEventsT &&value)
void SetChannel(ChannelT &&value)
AWS_IVS_API StreamSession(Aws::Utils::Json::JsonView jsonValue)
bool IngestConfigurationsHasBeenSet() const
const Aws::Utils::DateTime & GetEndTime() const
StreamSession & WithRecordingConfiguration(RecordingConfigurationT &&value)
void SetEndTime(EndTimeT &&value)
const FailoverSlateConfiguration & GetFailoverSlateConfiguration() const
StreamSession & WithIngestConfigurations(IngestConfigurationsT &&value)
void SetFailoverSlateConfiguration(FailoverSlateConfigurationT &&value)
const Channel & GetChannel() const
StreamSession & WithChannel(ChannelT &&value)
StreamSession & AddTruncatedEvents(TruncatedEventsT &&value)
StreamSession & WithFailoverSlateConfiguration(FailoverSlateConfigurationT &&value)
StreamSession & WithStartTime(StartTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue