AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribeProgramResult.h
1
6#pragma once
7#include <aws/mediatailor/MediaTailor_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/mediatailor/model/ClipRange.h>
12#include <aws/mediatailor/model/AdBreak.h>
13#include <aws/mediatailor/model/AudienceMedia.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace MediaTailor
29{
30namespace Model
31{
33 {
34 public:
35 AWS_MEDIATAILOR_API DescribeProgramResult() = default;
38
39
41
44 inline const Aws::Vector<AdBreak>& GetAdBreaks() const { return m_adBreaks; }
45 template<typename AdBreaksT = Aws::Vector<AdBreak>>
46 void SetAdBreaks(AdBreaksT&& value) { m_adBreaksHasBeenSet = true; m_adBreaks = std::forward<AdBreaksT>(value); }
47 template<typename AdBreaksT = Aws::Vector<AdBreak>>
48 DescribeProgramResult& WithAdBreaks(AdBreaksT&& value) { SetAdBreaks(std::forward<AdBreaksT>(value)); return *this;}
49 template<typename AdBreaksT = AdBreak>
50 DescribeProgramResult& AddAdBreaks(AdBreaksT&& value) { m_adBreaksHasBeenSet = true; m_adBreaks.emplace_back(std::forward<AdBreaksT>(value)); return *this; }
52
54
57 inline const Aws::String& GetArn() const { return m_arn; }
58 template<typename ArnT = Aws::String>
59 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
60 template<typename ArnT = Aws::String>
61 DescribeProgramResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
63
65
68 inline const Aws::String& GetChannelName() const { return m_channelName; }
69 template<typename ChannelNameT = Aws::String>
70 void SetChannelName(ChannelNameT&& value) { m_channelNameHasBeenSet = true; m_channelName = std::forward<ChannelNameT>(value); }
71 template<typename ChannelNameT = Aws::String>
72 DescribeProgramResult& WithChannelName(ChannelNameT&& value) { SetChannelName(std::forward<ChannelNameT>(value)); return *this;}
74
76
79 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
80 template<typename CreationTimeT = Aws::Utils::DateTime>
81 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
82 template<typename CreationTimeT = Aws::Utils::DateTime>
83 DescribeProgramResult& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
85
87
90 inline const Aws::String& GetLiveSourceName() const { return m_liveSourceName; }
91 template<typename LiveSourceNameT = Aws::String>
92 void SetLiveSourceName(LiveSourceNameT&& value) { m_liveSourceNameHasBeenSet = true; m_liveSourceName = std::forward<LiveSourceNameT>(value); }
93 template<typename LiveSourceNameT = Aws::String>
94 DescribeProgramResult& WithLiveSourceName(LiveSourceNameT&& value) { SetLiveSourceName(std::forward<LiveSourceNameT>(value)); return *this;}
96
98
101 inline const Aws::String& GetProgramName() const { return m_programName; }
102 template<typename ProgramNameT = Aws::String>
103 void SetProgramName(ProgramNameT&& value) { m_programNameHasBeenSet = true; m_programName = std::forward<ProgramNameT>(value); }
104 template<typename ProgramNameT = Aws::String>
105 DescribeProgramResult& WithProgramName(ProgramNameT&& value) { SetProgramName(std::forward<ProgramNameT>(value)); return *this;}
107
109
114 inline const Aws::Utils::DateTime& GetScheduledStartTime() const { return m_scheduledStartTime; }
115 template<typename ScheduledStartTimeT = Aws::Utils::DateTime>
116 void SetScheduledStartTime(ScheduledStartTimeT&& value) { m_scheduledStartTimeHasBeenSet = true; m_scheduledStartTime = std::forward<ScheduledStartTimeT>(value); }
117 template<typename ScheduledStartTimeT = Aws::Utils::DateTime>
118 DescribeProgramResult& WithScheduledStartTime(ScheduledStartTimeT&& value) { SetScheduledStartTime(std::forward<ScheduledStartTimeT>(value)); return *this;}
120
122
125 inline const Aws::String& GetSourceLocationName() const { return m_sourceLocationName; }
126 template<typename SourceLocationNameT = Aws::String>
127 void SetSourceLocationName(SourceLocationNameT&& value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName = std::forward<SourceLocationNameT>(value); }
128 template<typename SourceLocationNameT = Aws::String>
129 DescribeProgramResult& WithSourceLocationName(SourceLocationNameT&& value) { SetSourceLocationName(std::forward<SourceLocationNameT>(value)); return *this;}
131
133
136 inline const Aws::String& GetVodSourceName() const { return m_vodSourceName; }
137 template<typename VodSourceNameT = Aws::String>
138 void SetVodSourceName(VodSourceNameT&& value) { m_vodSourceNameHasBeenSet = true; m_vodSourceName = std::forward<VodSourceNameT>(value); }
139 template<typename VodSourceNameT = Aws::String>
140 DescribeProgramResult& WithVodSourceName(VodSourceNameT&& value) { SetVodSourceName(std::forward<VodSourceNameT>(value)); return *this;}
142
144
147 inline const ClipRange& GetClipRange() const { return m_clipRange; }
148 template<typename ClipRangeT = ClipRange>
149 void SetClipRange(ClipRangeT&& value) { m_clipRangeHasBeenSet = true; m_clipRange = std::forward<ClipRangeT>(value); }
150 template<typename ClipRangeT = ClipRange>
151 DescribeProgramResult& WithClipRange(ClipRangeT&& value) { SetClipRange(std::forward<ClipRangeT>(value)); return *this;}
153
155
158 inline long long GetDurationMillis() const { return m_durationMillis; }
159 inline void SetDurationMillis(long long value) { m_durationMillisHasBeenSet = true; m_durationMillis = value; }
160 inline DescribeProgramResult& WithDurationMillis(long long value) { SetDurationMillis(value); return *this;}
162
164
167 inline const Aws::Vector<AudienceMedia>& GetAudienceMedia() const { return m_audienceMedia; }
168 template<typename AudienceMediaT = Aws::Vector<AudienceMedia>>
169 void SetAudienceMedia(AudienceMediaT&& value) { m_audienceMediaHasBeenSet = true; m_audienceMedia = std::forward<AudienceMediaT>(value); }
170 template<typename AudienceMediaT = Aws::Vector<AudienceMedia>>
171 DescribeProgramResult& WithAudienceMedia(AudienceMediaT&& value) { SetAudienceMedia(std::forward<AudienceMediaT>(value)); return *this;}
172 template<typename AudienceMediaT = AudienceMedia>
173 DescribeProgramResult& AddAudienceMedia(AudienceMediaT&& value) { m_audienceMediaHasBeenSet = true; m_audienceMedia.emplace_back(std::forward<AudienceMediaT>(value)); return *this; }
175
177
178 inline const Aws::String& GetRequestId() const { return m_requestId; }
179 template<typename RequestIdT = Aws::String>
180 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
181 template<typename RequestIdT = Aws::String>
182 DescribeProgramResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
184 private:
185
186 Aws::Vector<AdBreak> m_adBreaks;
187 bool m_adBreaksHasBeenSet = false;
188
189 Aws::String m_arn;
190 bool m_arnHasBeenSet = false;
191
192 Aws::String m_channelName;
193 bool m_channelNameHasBeenSet = false;
194
195 Aws::Utils::DateTime m_creationTime{};
196 bool m_creationTimeHasBeenSet = false;
197
198 Aws::String m_liveSourceName;
199 bool m_liveSourceNameHasBeenSet = false;
200
201 Aws::String m_programName;
202 bool m_programNameHasBeenSet = false;
203
204 Aws::Utils::DateTime m_scheduledStartTime{};
205 bool m_scheduledStartTimeHasBeenSet = false;
206
207 Aws::String m_sourceLocationName;
208 bool m_sourceLocationNameHasBeenSet = false;
209
210 Aws::String m_vodSourceName;
211 bool m_vodSourceNameHasBeenSet = false;
212
213 ClipRange m_clipRange;
214 bool m_clipRangeHasBeenSet = false;
215
216 long long m_durationMillis{0};
217 bool m_durationMillisHasBeenSet = false;
218
219 Aws::Vector<AudienceMedia> m_audienceMedia;
220 bool m_audienceMediaHasBeenSet = false;
221
222 Aws::String m_requestId;
223 bool m_requestIdHasBeenSet = false;
224 };
225
226} // namespace Model
227} // namespace MediaTailor
228} // namespace Aws
DescribeProgramResult & WithCreationTime(CreationTimeT &&value)
DescribeProgramResult & WithAudienceMedia(AudienceMediaT &&value)
DescribeProgramResult & WithVodSourceName(VodSourceNameT &&value)
void SetSourceLocationName(SourceLocationNameT &&value)
DescribeProgramResult & WithLiveSourceName(LiveSourceNameT &&value)
DescribeProgramResult & WithProgramName(ProgramNameT &&value)
AWS_MEDIATAILOR_API DescribeProgramResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< AdBreak > & GetAdBreaks() const
DescribeProgramResult & AddAudienceMedia(AudienceMediaT &&value)
const Aws::Vector< AudienceMedia > & GetAudienceMedia() const
DescribeProgramResult & WithClipRange(ClipRangeT &&value)
const Aws::Utils::DateTime & GetScheduledStartTime() const
const Aws::Utils::DateTime & GetCreationTime() const
DescribeProgramResult & WithDurationMillis(long long value)
void SetScheduledStartTime(ScheduledStartTimeT &&value)
AWS_MEDIATAILOR_API DescribeProgramResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeProgramResult & WithSourceLocationName(SourceLocationNameT &&value)
DescribeProgramResult & WithScheduledStartTime(ScheduledStartTimeT &&value)
DescribeProgramResult & AddAdBreaks(AdBreaksT &&value)
DescribeProgramResult & WithRequestId(RequestIdT &&value)
DescribeProgramResult & WithChannelName(ChannelNameT &&value)
DescribeProgramResult & WithArn(ArnT &&value)
AWS_MEDIATAILOR_API DescribeProgramResult()=default
DescribeProgramResult & WithAdBreaks(AdBreaksT &&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