AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StreamSession.h
1
6#pragma once
7#include <aws/ivs/IVS_EXPORTS.h>
8#include <aws/ivs/model/Channel.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/ivs/model/IngestConfiguration.h>
11#include <aws/ivs/model/IngestConfigurations.h>
12#include <aws/ivs/model/RecordingConfiguration.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/ivs/model/StreamEvent.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace IVS
29{
30namespace Model
31{
32
41 {
42 public:
43 AWS_IVS_API StreamSession() = default;
47
48
50
53 inline const Channel& GetChannel() const { return m_channel; }
54 inline bool ChannelHasBeenSet() const { return m_channelHasBeenSet; }
55 template<typename ChannelT = Channel>
56 void SetChannel(ChannelT&& value) { m_channelHasBeenSet = true; m_channel = std::forward<ChannelT>(value); }
57 template<typename ChannelT = Channel>
58 StreamSession& WithChannel(ChannelT&& value) { SetChannel(std::forward<ChannelT>(value)); return *this;}
60
62
67 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
68 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
69 template<typename EndTimeT = Aws::Utils::DateTime>
70 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
71 template<typename EndTimeT = Aws::Utils::DateTime>
72 StreamSession& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
74
76
86 inline const IngestConfiguration& GetIngestConfiguration() const { return m_ingestConfiguration; }
87 inline bool IngestConfigurationHasBeenSet() const { return m_ingestConfigurationHasBeenSet; }
88 template<typename IngestConfigurationT = IngestConfiguration>
89 void SetIngestConfiguration(IngestConfigurationT&& value) { m_ingestConfigurationHasBeenSet = true; m_ingestConfiguration = std::forward<IngestConfigurationT>(value); }
90 template<typename IngestConfigurationT = IngestConfiguration>
91 StreamSession& WithIngestConfiguration(IngestConfigurationT&& value) { SetIngestConfiguration(std::forward<IngestConfigurationT>(value)); return *this;}
93
95
100 inline const IngestConfigurations& GetIngestConfigurations() const { return m_ingestConfigurations; }
101 inline bool IngestConfigurationsHasBeenSet() const { return m_ingestConfigurationsHasBeenSet; }
102 template<typename IngestConfigurationsT = IngestConfigurations>
103 void SetIngestConfigurations(IngestConfigurationsT&& value) { m_ingestConfigurationsHasBeenSet = true; m_ingestConfigurations = std::forward<IngestConfigurationsT>(value); }
104 template<typename IngestConfigurationsT = IngestConfigurations>
105 StreamSession& WithIngestConfigurations(IngestConfigurationsT&& value) { SetIngestConfigurations(std::forward<IngestConfigurationsT>(value)); return *this;}
107
109
112 inline const RecordingConfiguration& GetRecordingConfiguration() const { return m_recordingConfiguration; }
113 inline bool RecordingConfigurationHasBeenSet() const { return m_recordingConfigurationHasBeenSet; }
114 template<typename RecordingConfigurationT = RecordingConfiguration>
115 void SetRecordingConfiguration(RecordingConfigurationT&& value) { m_recordingConfigurationHasBeenSet = true; m_recordingConfiguration = std::forward<RecordingConfigurationT>(value); }
116 template<typename RecordingConfigurationT = RecordingConfiguration>
117 StreamSession& WithRecordingConfiguration(RecordingConfigurationT&& value) { SetRecordingConfiguration(std::forward<RecordingConfigurationT>(value)); return *this;}
119
121
125 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
126 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
127 template<typename StartTimeT = Aws::Utils::DateTime>
128 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
129 template<typename StartTimeT = Aws::Utils::DateTime>
130 StreamSession& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
132
134
138 inline const Aws::String& GetStreamId() const { return m_streamId; }
139 inline bool StreamIdHasBeenSet() const { return m_streamIdHasBeenSet; }
140 template<typename StreamIdT = Aws::String>
141 void SetStreamId(StreamIdT&& value) { m_streamIdHasBeenSet = true; m_streamId = std::forward<StreamIdT>(value); }
142 template<typename StreamIdT = Aws::String>
143 StreamSession& WithStreamId(StreamIdT&& value) { SetStreamId(std::forward<StreamIdT>(value)); return *this;}
145
147
153 inline const Aws::Vector<StreamEvent>& GetTruncatedEvents() const { return m_truncatedEvents; }
154 inline bool TruncatedEventsHasBeenSet() const { return m_truncatedEventsHasBeenSet; }
155 template<typename TruncatedEventsT = Aws::Vector<StreamEvent>>
156 void SetTruncatedEvents(TruncatedEventsT&& value) { m_truncatedEventsHasBeenSet = true; m_truncatedEvents = std::forward<TruncatedEventsT>(value); }
157 template<typename TruncatedEventsT = Aws::Vector<StreamEvent>>
158 StreamSession& WithTruncatedEvents(TruncatedEventsT&& value) { SetTruncatedEvents(std::forward<TruncatedEventsT>(value)); return *this;}
159 template<typename TruncatedEventsT = StreamEvent>
160 StreamSession& AddTruncatedEvents(TruncatedEventsT&& value) { m_truncatedEventsHasBeenSet = true; m_truncatedEvents.emplace_back(std::forward<TruncatedEventsT>(value)); return *this; }
162 private:
163
164 Channel m_channel;
165 bool m_channelHasBeenSet = false;
166
167 Aws::Utils::DateTime m_endTime{};
168 bool m_endTimeHasBeenSet = false;
169
170 IngestConfiguration m_ingestConfiguration;
171 bool m_ingestConfigurationHasBeenSet = false;
172
173 IngestConfigurations m_ingestConfigurations;
174 bool m_ingestConfigurationsHasBeenSet = false;
175
176 RecordingConfiguration m_recordingConfiguration;
177 bool m_recordingConfigurationHasBeenSet = false;
178
179 Aws::Utils::DateTime m_startTime{};
180 bool m_startTimeHasBeenSet = false;
181
182 Aws::String m_streamId;
183 bool m_streamIdHasBeenSet = false;
184
185 Aws::Vector<StreamEvent> m_truncatedEvents;
186 bool m_truncatedEventsHasBeenSet = false;
187 };
188
189} // namespace Model
190} // namespace IVS
191} // namespace Aws
const Aws::Utils::DateTime & GetStartTime() 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)
StreamSession & WithIngestConfigurations(IngestConfigurationsT &&value)
const Channel & GetChannel() const
bool IngestConfigurationHasBeenSet() const
StreamSession & WithChannel(ChannelT &&value)
StreamSession & AddTruncatedEvents(TruncatedEventsT &&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