AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetApproximateStartTime(const Aws::Utils::DateTime& value) { m_approximateStartTimeHasBeenSet = true; m_approximateStartTime = value; }
61 inline void SetApproximateStartTime(Aws::Utils::DateTime&& value) { m_approximateStartTimeHasBeenSet = true; m_approximateStartTime = std::move(value); }
63 inline ScheduleEntry& WithApproximateStartTime(Aws::Utils::DateTime&& value) { SetApproximateStartTime(std::move(value)); return *this;}
65
67
70 inline const Aws::String& GetArn() const{ return m_arn; }
71 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
72 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
73 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
74 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
75 inline ScheduleEntry& WithArn(const Aws::String& value) { SetArn(value); return *this;}
76 inline ScheduleEntry& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
77 inline ScheduleEntry& WithArn(const char* value) { SetArn(value); return *this;}
79
81
84 inline const Aws::Vector<Aws::String>& GetAudiences() const{ return m_audiences; }
85 inline bool AudiencesHasBeenSet() const { return m_audiencesHasBeenSet; }
86 inline void SetAudiences(const Aws::Vector<Aws::String>& value) { m_audiencesHasBeenSet = true; m_audiences = value; }
87 inline void SetAudiences(Aws::Vector<Aws::String>&& value) { m_audiencesHasBeenSet = true; m_audiences = std::move(value); }
88 inline ScheduleEntry& WithAudiences(const Aws::Vector<Aws::String>& value) { SetAudiences(value); return *this;}
89 inline ScheduleEntry& WithAudiences(Aws::Vector<Aws::String>&& value) { SetAudiences(std::move(value)); return *this;}
90 inline ScheduleEntry& AddAudiences(const Aws::String& value) { m_audiencesHasBeenSet = true; m_audiences.push_back(value); return *this; }
91 inline ScheduleEntry& AddAudiences(Aws::String&& value) { m_audiencesHasBeenSet = true; m_audiences.push_back(std::move(value)); return *this; }
92 inline ScheduleEntry& AddAudiences(const char* value) { m_audiencesHasBeenSet = true; m_audiences.push_back(value); return *this; }
94
96
99 inline const Aws::String& GetChannelName() const{ return m_channelName; }
100 inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
101 inline void SetChannelName(const Aws::String& value) { m_channelNameHasBeenSet = true; m_channelName = value; }
102 inline void SetChannelName(Aws::String&& value) { m_channelNameHasBeenSet = true; m_channelName = std::move(value); }
103 inline void SetChannelName(const char* value) { m_channelNameHasBeenSet = true; m_channelName.assign(value); }
104 inline ScheduleEntry& WithChannelName(const Aws::String& value) { SetChannelName(value); return *this;}
105 inline ScheduleEntry& WithChannelName(Aws::String&& value) { SetChannelName(std::move(value)); return *this;}
106 inline ScheduleEntry& WithChannelName(const char* value) { SetChannelName(value); return *this;}
108
110
113 inline const Aws::String& GetLiveSourceName() const{ return m_liveSourceName; }
114 inline bool LiveSourceNameHasBeenSet() const { return m_liveSourceNameHasBeenSet; }
115 inline void SetLiveSourceName(const Aws::String& value) { m_liveSourceNameHasBeenSet = true; m_liveSourceName = value; }
116 inline void SetLiveSourceName(Aws::String&& value) { m_liveSourceNameHasBeenSet = true; m_liveSourceName = std::move(value); }
117 inline void SetLiveSourceName(const char* value) { m_liveSourceNameHasBeenSet = true; m_liveSourceName.assign(value); }
118 inline ScheduleEntry& WithLiveSourceName(const Aws::String& value) { SetLiveSourceName(value); return *this;}
119 inline ScheduleEntry& WithLiveSourceName(Aws::String&& value) { SetLiveSourceName(std::move(value)); return *this;}
120 inline ScheduleEntry& WithLiveSourceName(const char* value) { SetLiveSourceName(value); return *this;}
122
124
127 inline const Aws::String& GetProgramName() const{ return m_programName; }
128 inline bool ProgramNameHasBeenSet() const { return m_programNameHasBeenSet; }
129 inline void SetProgramName(const Aws::String& value) { m_programNameHasBeenSet = true; m_programName = value; }
130 inline void SetProgramName(Aws::String&& value) { m_programNameHasBeenSet = true; m_programName = std::move(value); }
131 inline void SetProgramName(const char* value) { m_programNameHasBeenSet = true; m_programName.assign(value); }
132 inline ScheduleEntry& WithProgramName(const Aws::String& value) { SetProgramName(value); return *this;}
133 inline ScheduleEntry& WithProgramName(Aws::String&& value) { SetProgramName(std::move(value)); return *this;}
134 inline ScheduleEntry& WithProgramName(const char* value) { SetProgramName(value); return *this;}
136
138
141 inline const Aws::Vector<ScheduleAdBreak>& GetScheduleAdBreaks() const{ return m_scheduleAdBreaks; }
142 inline bool ScheduleAdBreaksHasBeenSet() const { return m_scheduleAdBreaksHasBeenSet; }
143 inline void SetScheduleAdBreaks(const Aws::Vector<ScheduleAdBreak>& value) { m_scheduleAdBreaksHasBeenSet = true; m_scheduleAdBreaks = value; }
144 inline void SetScheduleAdBreaks(Aws::Vector<ScheduleAdBreak>&& value) { m_scheduleAdBreaksHasBeenSet = true; m_scheduleAdBreaks = std::move(value); }
146 inline ScheduleEntry& WithScheduleAdBreaks(Aws::Vector<ScheduleAdBreak>&& value) { SetScheduleAdBreaks(std::move(value)); return *this;}
147 inline ScheduleEntry& AddScheduleAdBreaks(const ScheduleAdBreak& value) { m_scheduleAdBreaksHasBeenSet = true; m_scheduleAdBreaks.push_back(value); return *this; }
148 inline ScheduleEntry& AddScheduleAdBreaks(ScheduleAdBreak&& value) { m_scheduleAdBreaksHasBeenSet = true; m_scheduleAdBreaks.push_back(std::move(value)); return *this; }
150
152
155 inline const ScheduleEntryType& GetScheduleEntryType() const{ return m_scheduleEntryType; }
156 inline bool ScheduleEntryTypeHasBeenSet() const { return m_scheduleEntryTypeHasBeenSet; }
157 inline void SetScheduleEntryType(const ScheduleEntryType& value) { m_scheduleEntryTypeHasBeenSet = true; m_scheduleEntryType = value; }
158 inline void SetScheduleEntryType(ScheduleEntryType&& value) { m_scheduleEntryTypeHasBeenSet = true; m_scheduleEntryType = std::move(value); }
159 inline ScheduleEntry& WithScheduleEntryType(const ScheduleEntryType& value) { SetScheduleEntryType(value); return *this;}
160 inline ScheduleEntry& WithScheduleEntryType(ScheduleEntryType&& value) { SetScheduleEntryType(std::move(value)); return *this;}
162
164
167 inline const Aws::String& GetSourceLocationName() const{ return m_sourceLocationName; }
168 inline bool SourceLocationNameHasBeenSet() const { return m_sourceLocationNameHasBeenSet; }
169 inline void SetSourceLocationName(const Aws::String& value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName = value; }
170 inline void SetSourceLocationName(Aws::String&& value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName = std::move(value); }
171 inline void SetSourceLocationName(const char* value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName.assign(value); }
172 inline ScheduleEntry& WithSourceLocationName(const Aws::String& value) { SetSourceLocationName(value); return *this;}
173 inline ScheduleEntry& WithSourceLocationName(Aws::String&& value) { SetSourceLocationName(std::move(value)); return *this;}
174 inline ScheduleEntry& WithSourceLocationName(const char* value) { SetSourceLocationName(value); return *this;}
176
178
181 inline const Aws::String& GetVodSourceName() const{ return m_vodSourceName; }
182 inline bool VodSourceNameHasBeenSet() const { return m_vodSourceNameHasBeenSet; }
183 inline void SetVodSourceName(const Aws::String& value) { m_vodSourceNameHasBeenSet = true; m_vodSourceName = value; }
184 inline void SetVodSourceName(Aws::String&& value) { m_vodSourceNameHasBeenSet = true; m_vodSourceName = std::move(value); }
185 inline void SetVodSourceName(const char* value) { m_vodSourceNameHasBeenSet = true; m_vodSourceName.assign(value); }
186 inline ScheduleEntry& WithVodSourceName(const Aws::String& value) { SetVodSourceName(value); return *this;}
187 inline ScheduleEntry& WithVodSourceName(Aws::String&& value) { SetVodSourceName(std::move(value)); return *this;}
188 inline ScheduleEntry& WithVodSourceName(const char* value) { SetVodSourceName(value); return *this;}
190 private:
191
192 long long m_approximateDurationSeconds;
193 bool m_approximateDurationSecondsHasBeenSet = false;
194
195 Aws::Utils::DateTime m_approximateStartTime;
196 bool m_approximateStartTimeHasBeenSet = false;
197
198 Aws::String m_arn;
199 bool m_arnHasBeenSet = false;
200
201 Aws::Vector<Aws::String> m_audiences;
202 bool m_audiencesHasBeenSet = false;
203
204 Aws::String m_channelName;
205 bool m_channelNameHasBeenSet = false;
206
207 Aws::String m_liveSourceName;
208 bool m_liveSourceNameHasBeenSet = false;
209
210 Aws::String m_programName;
211 bool m_programNameHasBeenSet = false;
212
213 Aws::Vector<ScheduleAdBreak> m_scheduleAdBreaks;
214 bool m_scheduleAdBreaksHasBeenSet = false;
215
216 ScheduleEntryType m_scheduleEntryType;
217 bool m_scheduleEntryTypeHasBeenSet = false;
218
219 Aws::String m_sourceLocationName;
220 bool m_sourceLocationNameHasBeenSet = false;
221
222 Aws::String m_vodSourceName;
223 bool m_vodSourceNameHasBeenSet = false;
224 };
225
226} // namespace Model
227} // namespace MediaTailor
228} // namespace Aws
ScheduleEntry & WithArn(Aws::String &&value)
ScheduleEntry & WithLiveSourceName(Aws::String &&value)
void SetSourceLocationName(Aws::String &&value)
void SetChannelName(const Aws::String &value)
const Aws::String & GetVodSourceName() const
ScheduleEntry & WithApproximateStartTime(const Aws::Utils::DateTime &value)
ScheduleEntry & WithApproximateDurationSeconds(long long value)
ScheduleEntry & AddAudiences(const char *value)
ScheduleEntry & WithScheduleAdBreaks(const Aws::Vector< ScheduleAdBreak > &value)
void SetScheduleEntryType(ScheduleEntryType &&value)
void SetVodSourceName(const char *value)
void SetAudiences(Aws::Vector< Aws::String > &&value)
ScheduleEntry & WithArn(const Aws::String &value)
void SetLiveSourceName(const Aws::String &value)
bool ApproximateDurationSecondsHasBeenSet() const
ScheduleEntry & WithAudiences(const Aws::Vector< Aws::String > &value)
const Aws::String & GetSourceLocationName() const
bool ScheduleEntryTypeHasBeenSet() const
const ScheduleEntryType & GetScheduleEntryType() const
AWS_MEDIATAILOR_API ScheduleEntry(Aws::Utils::Json::JsonView jsonValue)
ScheduleEntry & WithScheduleEntryType(const ScheduleEntryType &value)
const Aws::String & GetLiveSourceName() const
ScheduleEntry & WithSourceLocationName(const char *value)
const Aws::Vector< ScheduleAdBreak > & GetScheduleAdBreaks() const
ScheduleEntry & WithVodSourceName(const char *value)
ScheduleEntry & AddScheduleAdBreaks(const ScheduleAdBreak &value)
void SetVodSourceName(Aws::String &&value)
ScheduleEntry & WithProgramName(const Aws::String &value)
void SetApproximateStartTime(Aws::Utils::DateTime &&value)
void SetChannelName(const char *value)
ScheduleEntry & AddAudiences(Aws::String &&value)
ScheduleEntry & WithLiveSourceName(const char *value)
const Aws::String & GetProgramName() const
void SetProgramName(Aws::String &&value)
bool ApproximateStartTimeHasBeenSet() const
void SetScheduleEntryType(const ScheduleEntryType &value)
AWS_MEDIATAILOR_API ScheduleEntry()
ScheduleEntry & AddScheduleAdBreaks(ScheduleAdBreak &&value)
bool ArnHasBeenSet() const
const Aws::Vector< Aws::String > & GetAudiences() const
bool VodSourceNameHasBeenSet() const
ScheduleEntry & WithProgramName(const char *value)
ScheduleEntry & WithChannelName(const char *value)
ScheduleEntry & WithVodSourceName(const Aws::String &value)
void SetSourceLocationName(const char *value)
long long GetApproximateDurationSeconds() const
void SetArn(Aws::String &&value)
void SetProgramName(const Aws::String &value)
void SetSourceLocationName(const Aws::String &value)
ScheduleEntry & WithSourceLocationName(const Aws::String &value)
bool ScheduleAdBreaksHasBeenSet() const
void SetLiveSourceName(const char *value)
void SetApproximateStartTime(const Aws::Utils::DateTime &value)
ScheduleEntry & WithChannelName(Aws::String &&value)
ScheduleEntry & AddAudiences(const Aws::String &value)
ScheduleEntry & WithSourceLocationName(Aws::String &&value)
const Aws::String & GetChannelName() const
const Aws::Utils::DateTime & GetApproximateStartTime() const
const Aws::String & GetArn() const
void SetProgramName(const char *value)
void SetAudiences(const Aws::Vector< Aws::String > &value)
void SetArn(const Aws::String &value)
ScheduleEntry & WithVodSourceName(Aws::String &&value)
bool ProgramNameHasBeenSet() const
void SetArn(const char *value)
bool ChannelNameHasBeenSet() const
bool LiveSourceNameHasBeenSet() const
ScheduleEntry & WithScheduleAdBreaks(Aws::Vector< ScheduleAdBreak > &&value)
void SetApproximateDurationSeconds(long long value)
ScheduleEntry & WithApproximateStartTime(Aws::Utils::DateTime &&value)
AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const
ScheduleEntry & WithLiveSourceName(const Aws::String &value)
void SetVodSourceName(const Aws::String &value)
ScheduleEntry & WithScheduleEntryType(ScheduleEntryType &&value)
ScheduleEntry & WithArn(const char *value)
ScheduleEntry & WithAudiences(Aws::Vector< Aws::String > &&value)
void SetChannelName(Aws::String &&value)
ScheduleEntry & WithProgramName(Aws::String &&value)
void SetLiveSourceName(Aws::String &&value)
AWS_MEDIATAILOR_API ScheduleEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetScheduleAdBreaks(const Aws::Vector< ScheduleAdBreak > &value)
bool SourceLocationNameHasBeenSet() const
ScheduleEntry & WithChannelName(const Aws::String &value)
void SetScheduleAdBreaks(Aws::Vector< ScheduleAdBreak > &&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