AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ScheduleEntry.h
1
6#pragma once
7#include <aws/mediatailor/MediaTailor_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/mediatailor/model/ScheduleEntryType.h>
12#include <aws/mediatailor/model/ScheduleAdBreak.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace MediaTailor
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_MEDIATAILOR_API ScheduleEntry() = default;
39 AWS_MEDIATAILOR_API ScheduleEntry(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MEDIATAILOR_API ScheduleEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline long long GetApproximateDurationSeconds() const { return m_approximateDurationSeconds; }
49 inline bool ApproximateDurationSecondsHasBeenSet() const { return m_approximateDurationSecondsHasBeenSet; }
50 inline void SetApproximateDurationSeconds(long long value) { m_approximateDurationSecondsHasBeenSet = true; m_approximateDurationSeconds = value; }
51 inline ScheduleEntry& WithApproximateDurationSeconds(long long value) { SetApproximateDurationSeconds(value); return *this;}
53
55
58 inline const Aws::Utils::DateTime& GetApproximateStartTime() const { return m_approximateStartTime; }
59 inline bool ApproximateStartTimeHasBeenSet() const { return m_approximateStartTimeHasBeenSet; }
60 template<typename ApproximateStartTimeT = Aws::Utils::DateTime>
61 void SetApproximateStartTime(ApproximateStartTimeT&& value) { m_approximateStartTimeHasBeenSet = true; m_approximateStartTime = std::forward<ApproximateStartTimeT>(value); }
62 template<typename ApproximateStartTimeT = Aws::Utils::DateTime>
63 ScheduleEntry& WithApproximateStartTime(ApproximateStartTimeT&& value) { SetApproximateStartTime(std::forward<ApproximateStartTimeT>(value)); return *this;}
65
67
70 inline const Aws::String& GetArn() const { return m_arn; }
71 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
72 template<typename ArnT = Aws::String>
73 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
74 template<typename ArnT = Aws::String>
75 ScheduleEntry& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
77
79
82 inline const Aws::String& GetChannelName() const { return m_channelName; }
83 inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
84 template<typename ChannelNameT = Aws::String>
85 void SetChannelName(ChannelNameT&& value) { m_channelNameHasBeenSet = true; m_channelName = std::forward<ChannelNameT>(value); }
86 template<typename ChannelNameT = Aws::String>
87 ScheduleEntry& WithChannelName(ChannelNameT&& value) { SetChannelName(std::forward<ChannelNameT>(value)); return *this;}
89
91
94 inline const Aws::String& GetLiveSourceName() const { return m_liveSourceName; }
95 inline bool LiveSourceNameHasBeenSet() const { return m_liveSourceNameHasBeenSet; }
96 template<typename LiveSourceNameT = Aws::String>
97 void SetLiveSourceName(LiveSourceNameT&& value) { m_liveSourceNameHasBeenSet = true; m_liveSourceName = std::forward<LiveSourceNameT>(value); }
98 template<typename LiveSourceNameT = Aws::String>
99 ScheduleEntry& WithLiveSourceName(LiveSourceNameT&& value) { SetLiveSourceName(std::forward<LiveSourceNameT>(value)); return *this;}
101
103
106 inline const Aws::String& GetProgramName() const { return m_programName; }
107 inline bool ProgramNameHasBeenSet() const { return m_programNameHasBeenSet; }
108 template<typename ProgramNameT = Aws::String>
109 void SetProgramName(ProgramNameT&& value) { m_programNameHasBeenSet = true; m_programName = std::forward<ProgramNameT>(value); }
110 template<typename ProgramNameT = Aws::String>
111 ScheduleEntry& WithProgramName(ProgramNameT&& value) { SetProgramName(std::forward<ProgramNameT>(value)); return *this;}
113
115
118 inline const Aws::Vector<ScheduleAdBreak>& GetScheduleAdBreaks() const { return m_scheduleAdBreaks; }
119 inline bool ScheduleAdBreaksHasBeenSet() const { return m_scheduleAdBreaksHasBeenSet; }
120 template<typename ScheduleAdBreaksT = Aws::Vector<ScheduleAdBreak>>
121 void SetScheduleAdBreaks(ScheduleAdBreaksT&& value) { m_scheduleAdBreaksHasBeenSet = true; m_scheduleAdBreaks = std::forward<ScheduleAdBreaksT>(value); }
122 template<typename ScheduleAdBreaksT = Aws::Vector<ScheduleAdBreak>>
123 ScheduleEntry& WithScheduleAdBreaks(ScheduleAdBreaksT&& value) { SetScheduleAdBreaks(std::forward<ScheduleAdBreaksT>(value)); return *this;}
124 template<typename ScheduleAdBreaksT = ScheduleAdBreak>
125 ScheduleEntry& AddScheduleAdBreaks(ScheduleAdBreaksT&& value) { m_scheduleAdBreaksHasBeenSet = true; m_scheduleAdBreaks.emplace_back(std::forward<ScheduleAdBreaksT>(value)); return *this; }
127
129
132 inline ScheduleEntryType GetScheduleEntryType() const { return m_scheduleEntryType; }
133 inline bool ScheduleEntryTypeHasBeenSet() const { return m_scheduleEntryTypeHasBeenSet; }
134 inline void SetScheduleEntryType(ScheduleEntryType value) { m_scheduleEntryTypeHasBeenSet = true; m_scheduleEntryType = value; }
137
139
142 inline const Aws::String& GetSourceLocationName() const { return m_sourceLocationName; }
143 inline bool SourceLocationNameHasBeenSet() const { return m_sourceLocationNameHasBeenSet; }
144 template<typename SourceLocationNameT = Aws::String>
145 void SetSourceLocationName(SourceLocationNameT&& value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName = std::forward<SourceLocationNameT>(value); }
146 template<typename SourceLocationNameT = Aws::String>
147 ScheduleEntry& WithSourceLocationName(SourceLocationNameT&& value) { SetSourceLocationName(std::forward<SourceLocationNameT>(value)); return *this;}
149
151
154 inline const Aws::String& GetVodSourceName() const { return m_vodSourceName; }
155 inline bool VodSourceNameHasBeenSet() const { return m_vodSourceNameHasBeenSet; }
156 template<typename VodSourceNameT = Aws::String>
157 void SetVodSourceName(VodSourceNameT&& value) { m_vodSourceNameHasBeenSet = true; m_vodSourceName = std::forward<VodSourceNameT>(value); }
158 template<typename VodSourceNameT = Aws::String>
159 ScheduleEntry& WithVodSourceName(VodSourceNameT&& value) { SetVodSourceName(std::forward<VodSourceNameT>(value)); return *this;}
161
163
166 inline const Aws::Vector<Aws::String>& GetAudiences() const { return m_audiences; }
167 inline bool AudiencesHasBeenSet() const { return m_audiencesHasBeenSet; }
168 template<typename AudiencesT = Aws::Vector<Aws::String>>
169 void SetAudiences(AudiencesT&& value) { m_audiencesHasBeenSet = true; m_audiences = std::forward<AudiencesT>(value); }
170 template<typename AudiencesT = Aws::Vector<Aws::String>>
171 ScheduleEntry& WithAudiences(AudiencesT&& value) { SetAudiences(std::forward<AudiencesT>(value)); return *this;}
172 template<typename AudiencesT = Aws::String>
173 ScheduleEntry& AddAudiences(AudiencesT&& value) { m_audiencesHasBeenSet = true; m_audiences.emplace_back(std::forward<AudiencesT>(value)); return *this; }
175 private:
176
177 long long m_approximateDurationSeconds{0};
178 bool m_approximateDurationSecondsHasBeenSet = false;
179
180 Aws::Utils::DateTime m_approximateStartTime{};
181 bool m_approximateStartTimeHasBeenSet = false;
182
183 Aws::String m_arn;
184 bool m_arnHasBeenSet = false;
185
186 Aws::String m_channelName;
187 bool m_channelNameHasBeenSet = false;
188
189 Aws::String m_liveSourceName;
190 bool m_liveSourceNameHasBeenSet = false;
191
192 Aws::String m_programName;
193 bool m_programNameHasBeenSet = false;
194
195 Aws::Vector<ScheduleAdBreak> m_scheduleAdBreaks;
196 bool m_scheduleAdBreaksHasBeenSet = false;
197
199 bool m_scheduleEntryTypeHasBeenSet = false;
200
201 Aws::String m_sourceLocationName;
202 bool m_sourceLocationNameHasBeenSet = false;
203
204 Aws::String m_vodSourceName;
205 bool m_vodSourceNameHasBeenSet = false;
206
207 Aws::Vector<Aws::String> m_audiences;
208 bool m_audiencesHasBeenSet = false;
209 };
210
211} // namespace Model
212} // namespace MediaTailor
213} // namespace Aws
const Aws::String & GetVodSourceName() const
ScheduleEntry & WithApproximateDurationSeconds(long long value)
bool ApproximateDurationSecondsHasBeenSet() const
void SetSourceLocationName(SourceLocationNameT &&value)
void SetProgramName(ProgramNameT &&value)
const Aws::String & GetSourceLocationName() const
bool ScheduleEntryTypeHasBeenSet() const
AWS_MEDIATAILOR_API ScheduleEntry(Aws::Utils::Json::JsonView jsonValue)
ScheduleEntry & WithChannelName(ChannelNameT &&value)
void SetChannelName(ChannelNameT &&value)
const Aws::String & GetLiveSourceName() const
const Aws::Vector< ScheduleAdBreak > & GetScheduleAdBreaks() const
ScheduleEntry & WithSourceLocationName(SourceLocationNameT &&value)
void SetApproximateStartTime(ApproximateStartTimeT &&value)
void SetLiveSourceName(LiveSourceNameT &&value)
void SetArn(ArnT &&value)
const Aws::String & GetProgramName() const
bool ApproximateStartTimeHasBeenSet() const
bool ArnHasBeenSet() const
const Aws::Vector< Aws::String > & GetAudiences() const
ScheduleEntry & WithVodSourceName(VodSourceNameT &&value)
bool VodSourceNameHasBeenSet() const
long long GetApproximateDurationSeconds() const
void SetAudiences(AudiencesT &&value)
bool ScheduleAdBreaksHasBeenSet() const
ScheduleEntry & WithScheduleAdBreaks(ScheduleAdBreaksT &&value)
void SetVodSourceName(VodSourceNameT &&value)
const Aws::String & GetChannelName() const
AWS_MEDIATAILOR_API ScheduleEntry()=default
ScheduleEntry & WithAudiences(AudiencesT &&value)
const Aws::Utils::DateTime & GetApproximateStartTime() const
void SetScheduleAdBreaks(ScheduleAdBreaksT &&value)
ScheduleEntry & WithScheduleEntryType(ScheduleEntryType value)
const Aws::String & GetArn() const
ScheduleEntry & WithArn(ArnT &&value)
void SetScheduleEntryType(ScheduleEntryType value)
bool ProgramNameHasBeenSet() const
bool ChannelNameHasBeenSet() const
bool LiveSourceNameHasBeenSet() const
ScheduleEntryType GetScheduleEntryType() const
void SetApproximateDurationSeconds(long long value)
AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const
ScheduleEntry & AddAudiences(AudiencesT &&value)
ScheduleEntry & WithApproximateStartTime(ApproximateStartTimeT &&value)
ScheduleEntry & WithProgramName(ProgramNameT &&value)
AWS_MEDIATAILOR_API ScheduleEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
ScheduleEntry & WithLiveSourceName(LiveSourceNameT &&value)
bool SourceLocationNameHasBeenSet() const
ScheduleEntry & AddScheduleAdBreaks(ScheduleAdBreaksT &&value)
bool AudiencesHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue