AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateProgramResult.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/mediatailor/model/ClipRange.h>
11#include <aws/core/utils/DateTime.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 CreateProgramResult();
38
39
41
44 inline const Aws::Vector<AdBreak>& GetAdBreaks() const{ return m_adBreaks; }
45 inline void SetAdBreaks(const Aws::Vector<AdBreak>& value) { m_adBreaks = value; }
46 inline void SetAdBreaks(Aws::Vector<AdBreak>&& value) { m_adBreaks = std::move(value); }
47 inline CreateProgramResult& WithAdBreaks(const Aws::Vector<AdBreak>& value) { SetAdBreaks(value); return *this;}
48 inline CreateProgramResult& WithAdBreaks(Aws::Vector<AdBreak>&& value) { SetAdBreaks(std::move(value)); return *this;}
49 inline CreateProgramResult& AddAdBreaks(const AdBreak& value) { m_adBreaks.push_back(value); return *this; }
50 inline CreateProgramResult& AddAdBreaks(AdBreak&& value) { m_adBreaks.push_back(std::move(value)); return *this; }
52
54
57 inline const Aws::String& GetArn() const{ return m_arn; }
58 inline void SetArn(const Aws::String& value) { m_arn = value; }
59 inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
60 inline void SetArn(const char* value) { m_arn.assign(value); }
61 inline CreateProgramResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
62 inline CreateProgramResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
63 inline CreateProgramResult& WithArn(const char* value) { SetArn(value); return *this;}
65
67
70 inline const Aws::Vector<AudienceMedia>& GetAudienceMedia() const{ return m_audienceMedia; }
71 inline void SetAudienceMedia(const Aws::Vector<AudienceMedia>& value) { m_audienceMedia = value; }
72 inline void SetAudienceMedia(Aws::Vector<AudienceMedia>&& value) { m_audienceMedia = std::move(value); }
74 inline CreateProgramResult& WithAudienceMedia(Aws::Vector<AudienceMedia>&& value) { SetAudienceMedia(std::move(value)); return *this;}
75 inline CreateProgramResult& AddAudienceMedia(const AudienceMedia& value) { m_audienceMedia.push_back(value); return *this; }
76 inline CreateProgramResult& AddAudienceMedia(AudienceMedia&& value) { m_audienceMedia.push_back(std::move(value)); return *this; }
78
80
83 inline const Aws::String& GetChannelName() const{ return m_channelName; }
84 inline void SetChannelName(const Aws::String& value) { m_channelName = value; }
85 inline void SetChannelName(Aws::String&& value) { m_channelName = std::move(value); }
86 inline void SetChannelName(const char* value) { m_channelName.assign(value); }
87 inline CreateProgramResult& WithChannelName(const Aws::String& value) { SetChannelName(value); return *this;}
88 inline CreateProgramResult& WithChannelName(Aws::String&& value) { SetChannelName(std::move(value)); return *this;}
89 inline CreateProgramResult& WithChannelName(const char* value) { SetChannelName(value); return *this;}
91
93
96 inline const ClipRange& GetClipRange() const{ return m_clipRange; }
97 inline void SetClipRange(const ClipRange& value) { m_clipRange = value; }
98 inline void SetClipRange(ClipRange&& value) { m_clipRange = std::move(value); }
99 inline CreateProgramResult& WithClipRange(const ClipRange& value) { SetClipRange(value); return *this;}
100 inline CreateProgramResult& WithClipRange(ClipRange&& value) { SetClipRange(std::move(value)); return *this;}
102
104
107 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
108 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; }
109 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); }
110 inline CreateProgramResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
111 inline CreateProgramResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
113
115
118 inline long long GetDurationMillis() const{ return m_durationMillis; }
119 inline void SetDurationMillis(long long value) { m_durationMillis = value; }
120 inline CreateProgramResult& WithDurationMillis(long long value) { SetDurationMillis(value); return *this;}
122
124
127 inline const Aws::String& GetLiveSourceName() const{ return m_liveSourceName; }
128 inline void SetLiveSourceName(const Aws::String& value) { m_liveSourceName = value; }
129 inline void SetLiveSourceName(Aws::String&& value) { m_liveSourceName = std::move(value); }
130 inline void SetLiveSourceName(const char* value) { m_liveSourceName.assign(value); }
131 inline CreateProgramResult& WithLiveSourceName(const Aws::String& value) { SetLiveSourceName(value); return *this;}
132 inline CreateProgramResult& WithLiveSourceName(Aws::String&& value) { SetLiveSourceName(std::move(value)); return *this;}
133 inline CreateProgramResult& WithLiveSourceName(const char* value) { SetLiveSourceName(value); return *this;}
135
137
140 inline const Aws::String& GetProgramName() const{ return m_programName; }
141 inline void SetProgramName(const Aws::String& value) { m_programName = value; }
142 inline void SetProgramName(Aws::String&& value) { m_programName = std::move(value); }
143 inline void SetProgramName(const char* value) { m_programName.assign(value); }
144 inline CreateProgramResult& WithProgramName(const Aws::String& value) { SetProgramName(value); return *this;}
145 inline CreateProgramResult& WithProgramName(Aws::String&& value) { SetProgramName(std::move(value)); return *this;}
146 inline CreateProgramResult& WithProgramName(const char* value) { SetProgramName(value); return *this;}
148
150
153 inline const Aws::Utils::DateTime& GetScheduledStartTime() const{ return m_scheduledStartTime; }
154 inline void SetScheduledStartTime(const Aws::Utils::DateTime& value) { m_scheduledStartTime = value; }
155 inline void SetScheduledStartTime(Aws::Utils::DateTime&& value) { m_scheduledStartTime = std::move(value); }
159
161
164 inline const Aws::String& GetSourceLocationName() const{ return m_sourceLocationName; }
165 inline void SetSourceLocationName(const Aws::String& value) { m_sourceLocationName = value; }
166 inline void SetSourceLocationName(Aws::String&& value) { m_sourceLocationName = std::move(value); }
167 inline void SetSourceLocationName(const char* value) { m_sourceLocationName.assign(value); }
169 inline CreateProgramResult& WithSourceLocationName(Aws::String&& value) { SetSourceLocationName(std::move(value)); return *this;}
170 inline CreateProgramResult& WithSourceLocationName(const char* value) { SetSourceLocationName(value); return *this;}
172
174
177 inline const Aws::String& GetVodSourceName() const{ return m_vodSourceName; }
178 inline void SetVodSourceName(const Aws::String& value) { m_vodSourceName = value; }
179 inline void SetVodSourceName(Aws::String&& value) { m_vodSourceName = std::move(value); }
180 inline void SetVodSourceName(const char* value) { m_vodSourceName.assign(value); }
181 inline CreateProgramResult& WithVodSourceName(const Aws::String& value) { SetVodSourceName(value); return *this;}
182 inline CreateProgramResult& WithVodSourceName(Aws::String&& value) { SetVodSourceName(std::move(value)); return *this;}
183 inline CreateProgramResult& WithVodSourceName(const char* value) { SetVodSourceName(value); return *this;}
185
187
188 inline const Aws::String& GetRequestId() const{ return m_requestId; }
189 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
190 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
191 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
192 inline CreateProgramResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
193 inline CreateProgramResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
194 inline CreateProgramResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
196 private:
197
198 Aws::Vector<AdBreak> m_adBreaks;
199
200 Aws::String m_arn;
201
202 Aws::Vector<AudienceMedia> m_audienceMedia;
203
204 Aws::String m_channelName;
205
206 ClipRange m_clipRange;
207
208 Aws::Utils::DateTime m_creationTime;
209
210 long long m_durationMillis;
211
212 Aws::String m_liveSourceName;
213
214 Aws::String m_programName;
215
216 Aws::Utils::DateTime m_scheduledStartTime;
217
218 Aws::String m_sourceLocationName;
219
220 Aws::String m_vodSourceName;
221
222 Aws::String m_requestId;
223 };
224
225} // namespace Model
226} // namespace MediaTailor
227} // namespace Aws
CreateProgramResult & WithAudienceMedia(const Aws::Vector< AudienceMedia > &value)
void SetVodSourceName(const Aws::String &value)
CreateProgramResult & WithAdBreaks(Aws::Vector< AdBreak > &&value)
CreateProgramResult & WithProgramName(const Aws::String &value)
void SetScheduledStartTime(Aws::Utils::DateTime &&value)
void SetLiveSourceName(const Aws::String &value)
CreateProgramResult & WithLiveSourceName(const char *value)
CreateProgramResult & WithChannelName(const char *value)
CreateProgramResult & WithVodSourceName(const char *value)
CreateProgramResult & WithRequestId(const char *value)
CreateProgramResult & WithChannelName(Aws::String &&value)
CreateProgramResult & WithAudienceMedia(Aws::Vector< AudienceMedia > &&value)
CreateProgramResult & WithSourceLocationName(const Aws::String &value)
CreateProgramResult & WithVodSourceName(const Aws::String &value)
void SetAudienceMedia(const Aws::Vector< AudienceMedia > &value)
CreateProgramResult & AddAdBreaks(const AdBreak &value)
CreateProgramResult & WithChannelName(const Aws::String &value)
CreateProgramResult & WithClipRange(const ClipRange &value)
void SetAdBreaks(const Aws::Vector< AdBreak > &value)
void SetAudienceMedia(Aws::Vector< AudienceMedia > &&value)
CreateProgramResult & WithLiveSourceName(Aws::String &&value)
AWS_MEDIATAILOR_API CreateProgramResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetAdBreaks(Aws::Vector< AdBreak > &&value)
CreateProgramResult & WithDurationMillis(long long value)
CreateProgramResult & WithProgramName(Aws::String &&value)
void SetChannelName(const Aws::String &value)
void SetCreationTime(const Aws::Utils::DateTime &value)
void SetScheduledStartTime(const Aws::Utils::DateTime &value)
CreateProgramResult & WithClipRange(ClipRange &&value)
CreateProgramResult & WithCreationTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetScheduledStartTime() const
CreateProgramResult & WithSourceLocationName(Aws::String &&value)
const Aws::Vector< AudienceMedia > & GetAudienceMedia() const
CreateProgramResult & WithArn(const char *value)
CreateProgramResult & WithCreationTime(Aws::Utils::DateTime &&value)
CreateProgramResult & AddAdBreaks(AdBreak &&value)
CreateProgramResult & WithArn(Aws::String &&value)
AWS_MEDIATAILOR_API CreateProgramResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateProgramResult & AddAudienceMedia(AudienceMedia &&value)
CreateProgramResult & AddAudienceMedia(const AudienceMedia &value)
void SetSourceLocationName(const Aws::String &value)
CreateProgramResult & WithRequestId(const Aws::String &value)
CreateProgramResult & WithSourceLocationName(const char *value)
const Aws::Vector< AdBreak > & GetAdBreaks() const
CreateProgramResult & WithScheduledStartTime(Aws::Utils::DateTime &&value)
CreateProgramResult & WithAdBreaks(const Aws::Vector< AdBreak > &value)
CreateProgramResult & WithVodSourceName(Aws::String &&value)
const Aws::Utils::DateTime & GetCreationTime() const
CreateProgramResult & WithLiveSourceName(const Aws::String &value)
CreateProgramResult & WithArn(const Aws::String &value)
CreateProgramResult & WithScheduledStartTime(const Aws::Utils::DateTime &value)
CreateProgramResult & WithProgramName(const char *value)
void SetCreationTime(Aws::Utils::DateTime &&value)
CreateProgramResult & WithRequestId(Aws::String &&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