AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/RecordingConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/ivs/model/StreamEvent.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace IVS
28{
29namespace Model
30{
31
40 {
41 public:
42 AWS_IVS_API StreamSession();
46
47
49
52 inline const Channel& GetChannel() const{ return m_channel; }
53 inline bool ChannelHasBeenSet() const { return m_channelHasBeenSet; }
54 inline void SetChannel(const Channel& value) { m_channelHasBeenSet = true; m_channel = value; }
55 inline void SetChannel(Channel&& value) { m_channelHasBeenSet = true; m_channel = std::move(value); }
56 inline StreamSession& WithChannel(const Channel& value) { SetChannel(value); return *this;}
57 inline StreamSession& WithChannel(Channel&& value) { SetChannel(std::move(value)); return *this;}
59
61
66 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
67 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
68 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
69 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
70 inline StreamSession& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
71 inline StreamSession& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
73
75
78 inline const IngestConfiguration& GetIngestConfiguration() const{ return m_ingestConfiguration; }
79 inline bool IngestConfigurationHasBeenSet() const { return m_ingestConfigurationHasBeenSet; }
80 inline void SetIngestConfiguration(const IngestConfiguration& value) { m_ingestConfigurationHasBeenSet = true; m_ingestConfiguration = value; }
81 inline void SetIngestConfiguration(IngestConfiguration&& value) { m_ingestConfigurationHasBeenSet = true; m_ingestConfiguration = std::move(value); }
83 inline StreamSession& WithIngestConfiguration(IngestConfiguration&& value) { SetIngestConfiguration(std::move(value)); return *this;}
85
87
90 inline const RecordingConfiguration& GetRecordingConfiguration() const{ return m_recordingConfiguration; }
91 inline bool RecordingConfigurationHasBeenSet() const { return m_recordingConfigurationHasBeenSet; }
92 inline void SetRecordingConfiguration(const RecordingConfiguration& value) { m_recordingConfigurationHasBeenSet = true; m_recordingConfiguration = value; }
93 inline void SetRecordingConfiguration(RecordingConfiguration&& value) { m_recordingConfigurationHasBeenSet = true; m_recordingConfiguration = std::move(value); }
97
99
103 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
104 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
105 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
106 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
107 inline StreamSession& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
108 inline StreamSession& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
110
112
116 inline const Aws::String& GetStreamId() const{ return m_streamId; }
117 inline bool StreamIdHasBeenSet() const { return m_streamIdHasBeenSet; }
118 inline void SetStreamId(const Aws::String& value) { m_streamIdHasBeenSet = true; m_streamId = value; }
119 inline void SetStreamId(Aws::String&& value) { m_streamIdHasBeenSet = true; m_streamId = std::move(value); }
120 inline void SetStreamId(const char* value) { m_streamIdHasBeenSet = true; m_streamId.assign(value); }
121 inline StreamSession& WithStreamId(const Aws::String& value) { SetStreamId(value); return *this;}
122 inline StreamSession& WithStreamId(Aws::String&& value) { SetStreamId(std::move(value)); return *this;}
123 inline StreamSession& WithStreamId(const char* value) { SetStreamId(value); return *this;}
125
127
133 inline const Aws::Vector<StreamEvent>& GetTruncatedEvents() const{ return m_truncatedEvents; }
134 inline bool TruncatedEventsHasBeenSet() const { return m_truncatedEventsHasBeenSet; }
135 inline void SetTruncatedEvents(const Aws::Vector<StreamEvent>& value) { m_truncatedEventsHasBeenSet = true; m_truncatedEvents = value; }
136 inline void SetTruncatedEvents(Aws::Vector<StreamEvent>&& value) { m_truncatedEventsHasBeenSet = true; m_truncatedEvents = std::move(value); }
138 inline StreamSession& WithTruncatedEvents(Aws::Vector<StreamEvent>&& value) { SetTruncatedEvents(std::move(value)); return *this;}
139 inline StreamSession& AddTruncatedEvents(const StreamEvent& value) { m_truncatedEventsHasBeenSet = true; m_truncatedEvents.push_back(value); return *this; }
140 inline StreamSession& AddTruncatedEvents(StreamEvent&& value) { m_truncatedEventsHasBeenSet = true; m_truncatedEvents.push_back(std::move(value)); return *this; }
142 private:
143
144 Channel m_channel;
145 bool m_channelHasBeenSet = false;
146
147 Aws::Utils::DateTime m_endTime;
148 bool m_endTimeHasBeenSet = false;
149
150 IngestConfiguration m_ingestConfiguration;
151 bool m_ingestConfigurationHasBeenSet = false;
152
153 RecordingConfiguration m_recordingConfiguration;
154 bool m_recordingConfigurationHasBeenSet = false;
155
156 Aws::Utils::DateTime m_startTime;
157 bool m_startTimeHasBeenSet = false;
158
159 Aws::String m_streamId;
160 bool m_streamIdHasBeenSet = false;
161
162 Aws::Vector<StreamEvent> m_truncatedEvents;
163 bool m_truncatedEventsHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace IVS
168} // namespace Aws
const Aws::Utils::DateTime & GetStartTime() const
void SetIngestConfiguration(IngestConfiguration &&value)
AWS_IVS_API StreamSession & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRecordingConfiguration(const RecordingConfiguration &value)
const IngestConfiguration & GetIngestConfiguration() const
StreamSession & WithEndTime(Aws::Utils::DateTime &&value)
const Aws::Vector< StreamEvent > & GetTruncatedEvents() const
const Aws::String & GetStreamId() const
const RecordingConfiguration & GetRecordingConfiguration() const
StreamSession & WithIngestConfiguration(IngestConfiguration &&value)
bool RecordingConfigurationHasBeenSet() const
void SetEndTime(Aws::Utils::DateTime &&value)
AWS_IVS_API Aws::Utils::Json::JsonValue Jsonize() const
StreamSession & WithChannel(Channel &&value)
StreamSession & WithIngestConfiguration(const IngestConfiguration &value)
StreamSession & WithChannel(const Channel &value)
StreamSession & WithEndTime(const Aws::Utils::DateTime &value)
StreamSession & WithRecordingConfiguration(RecordingConfiguration &&value)
void SetStreamId(const Aws::String &value)
void SetEndTime(const Aws::Utils::DateTime &value)
AWS_IVS_API StreamSession(Aws::Utils::Json::JsonView jsonValue)
void SetIngestConfiguration(const IngestConfiguration &value)
void SetTruncatedEvents(Aws::Vector< StreamEvent > &&value)
StreamSession & AddTruncatedEvents(StreamEvent &&value)
void SetStreamId(const char *value)
const Aws::Utils::DateTime & GetEndTime() const
StreamSession & WithTruncatedEvents(const Aws::Vector< StreamEvent > &value)
void SetStartTime(Aws::Utils::DateTime &&value)
void SetStartTime(const Aws::Utils::DateTime &value)
StreamSession & WithStreamId(Aws::String &&value)
void SetTruncatedEvents(const Aws::Vector< StreamEvent > &value)
StreamSession & WithStartTime(const Aws::Utils::DateTime &value)
StreamSession & WithStreamId(const Aws::String &value)
StreamSession & WithStartTime(Aws::Utils::DateTime &&value)
const Channel & GetChannel() const
bool IngestConfigurationHasBeenSet() const
StreamSession & WithRecordingConfiguration(const RecordingConfiguration &value)
void SetChannel(Channel &&value)
void SetStreamId(Aws::String &&value)
StreamSession & AddTruncatedEvents(const StreamEvent &value)
StreamSession & WithTruncatedEvents(Aws::Vector< StreamEvent > &&value)
void SetChannel(const Channel &value)
void SetRecordingConfiguration(RecordingConfiguration &&value)
StreamSession & WithStreamId(const char *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