AWS SDK for C++  1.9.104
AWS SDK for C++
CreateProgramResult.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Json
22 {
23  class JsonValue;
24 } // namespace Json
25 } // namespace Utils
26 namespace MediaTailor
27 {
28 namespace Model
29 {
31  {
32  public:
36 
37 
41  inline const Aws::Vector<AdBreak>& GetAdBreaks() const{ return m_adBreaks; }
42 
46  inline void SetAdBreaks(const Aws::Vector<AdBreak>& value) { m_adBreaks = value; }
47 
51  inline void SetAdBreaks(Aws::Vector<AdBreak>&& value) { m_adBreaks = std::move(value); }
52 
56  inline CreateProgramResult& WithAdBreaks(const Aws::Vector<AdBreak>& value) { SetAdBreaks(value); return *this;}
57 
61  inline CreateProgramResult& WithAdBreaks(Aws::Vector<AdBreak>&& value) { SetAdBreaks(std::move(value)); return *this;}
62 
66  inline CreateProgramResult& AddAdBreaks(const AdBreak& value) { m_adBreaks.push_back(value); return *this; }
67 
71  inline CreateProgramResult& AddAdBreaks(AdBreak&& value) { m_adBreaks.push_back(std::move(value)); return *this; }
72 
73 
77  inline const Aws::String& GetArn() const{ return m_arn; }
78 
82  inline void SetArn(const Aws::String& value) { m_arn = value; }
83 
87  inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
88 
92  inline void SetArn(const char* value) { m_arn.assign(value); }
93 
97  inline CreateProgramResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
98 
102  inline CreateProgramResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
103 
107  inline CreateProgramResult& WithArn(const char* value) { SetArn(value); return *this;}
108 
109 
113  inline const Aws::String& GetChannelName() const{ return m_channelName; }
114 
118  inline void SetChannelName(const Aws::String& value) { m_channelName = value; }
119 
123  inline void SetChannelName(Aws::String&& value) { m_channelName = std::move(value); }
124 
128  inline void SetChannelName(const char* value) { m_channelName.assign(value); }
129 
133  inline CreateProgramResult& WithChannelName(const Aws::String& value) { SetChannelName(value); return *this;}
134 
138  inline CreateProgramResult& WithChannelName(Aws::String&& value) { SetChannelName(std::move(value)); return *this;}
139 
143  inline CreateProgramResult& WithChannelName(const char* value) { SetChannelName(value); return *this;}
144 
145 
149  inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
150 
154  inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; }
155 
159  inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); }
160 
164  inline CreateProgramResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
165 
169  inline CreateProgramResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
170 
171 
175  inline const Aws::String& GetProgramName() const{ return m_programName; }
176 
180  inline void SetProgramName(const Aws::String& value) { m_programName = value; }
181 
185  inline void SetProgramName(Aws::String&& value) { m_programName = std::move(value); }
186 
190  inline void SetProgramName(const char* value) { m_programName.assign(value); }
191 
195  inline CreateProgramResult& WithProgramName(const Aws::String& value) { SetProgramName(value); return *this;}
196 
200  inline CreateProgramResult& WithProgramName(Aws::String&& value) { SetProgramName(std::move(value)); return *this;}
201 
205  inline CreateProgramResult& WithProgramName(const char* value) { SetProgramName(value); return *this;}
206 
207 
213  inline const Aws::Utils::DateTime& GetScheduledStartTime() const{ return m_scheduledStartTime; }
214 
220  inline void SetScheduledStartTime(const Aws::Utils::DateTime& value) { m_scheduledStartTime = value; }
221 
227  inline void SetScheduledStartTime(Aws::Utils::DateTime&& value) { m_scheduledStartTime = std::move(value); }
228 
234  inline CreateProgramResult& WithScheduledStartTime(const Aws::Utils::DateTime& value) { SetScheduledStartTime(value); return *this;}
235 
241  inline CreateProgramResult& WithScheduledStartTime(Aws::Utils::DateTime&& value) { SetScheduledStartTime(std::move(value)); return *this;}
242 
243 
247  inline const Aws::String& GetSourceLocationName() const{ return m_sourceLocationName; }
248 
252  inline void SetSourceLocationName(const Aws::String& value) { m_sourceLocationName = value; }
253 
257  inline void SetSourceLocationName(Aws::String&& value) { m_sourceLocationName = std::move(value); }
258 
262  inline void SetSourceLocationName(const char* value) { m_sourceLocationName.assign(value); }
263 
267  inline CreateProgramResult& WithSourceLocationName(const Aws::String& value) { SetSourceLocationName(value); return *this;}
268 
272  inline CreateProgramResult& WithSourceLocationName(Aws::String&& value) { SetSourceLocationName(std::move(value)); return *this;}
273 
277  inline CreateProgramResult& WithSourceLocationName(const char* value) { SetSourceLocationName(value); return *this;}
278 
279 
283  inline const Aws::String& GetVodSourceName() const{ return m_vodSourceName; }
284 
288  inline void SetVodSourceName(const Aws::String& value) { m_vodSourceName = value; }
289 
293  inline void SetVodSourceName(Aws::String&& value) { m_vodSourceName = std::move(value); }
294 
298  inline void SetVodSourceName(const char* value) { m_vodSourceName.assign(value); }
299 
303  inline CreateProgramResult& WithVodSourceName(const Aws::String& value) { SetVodSourceName(value); return *this;}
304 
308  inline CreateProgramResult& WithVodSourceName(Aws::String&& value) { SetVodSourceName(std::move(value)); return *this;}
309 
313  inline CreateProgramResult& WithVodSourceName(const char* value) { SetVodSourceName(value); return *this;}
314 
315  private:
316 
317  Aws::Vector<AdBreak> m_adBreaks;
318 
319  Aws::String m_arn;
320 
321  Aws::String m_channelName;
322 
323  Aws::Utils::DateTime m_creationTime;
324 
325  Aws::String m_programName;
326 
327  Aws::Utils::DateTime m_scheduledStartTime;
328 
329  Aws::String m_sourceLocationName;
330 
331  Aws::String m_vodSourceName;
332  };
333 
334 } // namespace Model
335 } // namespace MediaTailor
336 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::MediaTailor::Model::CreateProgramResult::SetSourceLocationName
void SetSourceLocationName(const char *value)
Definition: CreateProgramResult.h:262
Aws::MediaTailor::Model::CreateProgramResult::SetProgramName
void SetProgramName(const char *value)
Definition: CreateProgramResult.h:190
Aws::MediaTailor::Model::CreateProgramResult::CreateProgramResult
CreateProgramResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::MediaTailor::Model::CreateProgramResult::WithArn
CreateProgramResult & WithArn(const char *value)
Definition: CreateProgramResult.h:107
Aws::MediaTailor::Model::CreateProgramResult::GetVodSourceName
const Aws::String & GetVodSourceName() const
Definition: CreateProgramResult.h:283
Aws::MediaTailor::Model::CreateProgramResult::WithVodSourceName
CreateProgramResult & WithVodSourceName(Aws::String &&value)
Definition: CreateProgramResult.h:308
AWS_MEDIATAILOR_API
#define AWS_MEDIATAILOR_API
Definition: MediaTailor_EXPORTS.h:28
Aws::MediaTailor::Model::CreateProgramResult
Definition: CreateProgramResult.h:31
Aws::MediaTailor::Model::CreateProgramResult::SetAdBreaks
void SetAdBreaks(Aws::Vector< AdBreak > &&value)
Definition: CreateProgramResult.h:51
Aws::MediaTailor::Model::CreateProgramResult::WithChannelName
CreateProgramResult & WithChannelName(const Aws::String &value)
Definition: CreateProgramResult.h:133
Aws::MediaTailor::Model::CreateProgramResult::WithScheduledStartTime
CreateProgramResult & WithScheduledStartTime(Aws::Utils::DateTime &&value)
Definition: CreateProgramResult.h:241
DateTime.h
Aws::MediaTailor::Model::CreateProgramResult::GetAdBreaks
const Aws::Vector< AdBreak > & GetAdBreaks() const
Definition: CreateProgramResult.h:41
Aws::MediaTailor::Model::CreateProgramResult::GetScheduledStartTime
const Aws::Utils::DateTime & GetScheduledStartTime() const
Definition: CreateProgramResult.h:213
Aws::MediaTailor::Model::CreateProgramResult::operator=
CreateProgramResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::MediaTailor::Model::AdBreak
Definition: AdBreak.h:34
Aws::MediaTailor::Model::CreateProgramResult::SetProgramName
void SetProgramName(Aws::String &&value)
Definition: CreateProgramResult.h:185
Aws::MediaTailor::Model::CreateProgramResult::SetChannelName
void SetChannelName(const char *value)
Definition: CreateProgramResult.h:128
AWSVector.h
Aws::MediaTailor::Model::CreateProgramResult::WithAdBreaks
CreateProgramResult & WithAdBreaks(Aws::Vector< AdBreak > &&value)
Definition: CreateProgramResult.h:61
Aws::MediaTailor::Model::CreateProgramResult::AddAdBreaks
CreateProgramResult & AddAdBreaks(AdBreak &&value)
Definition: CreateProgramResult.h:71
Aws::MediaTailor::Model::CreateProgramResult::SetArn
void SetArn(const Aws::String &value)
Definition: CreateProgramResult.h:82
Aws::MediaTailor::Model::CreateProgramResult::SetVodSourceName
void SetVodSourceName(const Aws::String &value)
Definition: CreateProgramResult.h:288
Aws::MediaTailor::Model::CreateProgramResult::SetCreationTime
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition: CreateProgramResult.h:154
Aws::MediaTailor::Model::CreateProgramResult::WithVodSourceName
CreateProgramResult & WithVodSourceName(const char *value)
Definition: CreateProgramResult.h:313
Aws::MediaTailor::Model::CreateProgramResult::SetVodSourceName
void SetVodSourceName(Aws::String &&value)
Definition: CreateProgramResult.h:293
Aws::MediaTailor::Model::CreateProgramResult::GetProgramName
const Aws::String & GetProgramName() const
Definition: CreateProgramResult.h:175
Aws::MediaTailor::Model::CreateProgramResult::WithVodSourceName
CreateProgramResult & WithVodSourceName(const Aws::String &value)
Definition: CreateProgramResult.h:303
Aws::MediaTailor::Model::CreateProgramResult::GetChannelName
const Aws::String & GetChannelName() const
Definition: CreateProgramResult.h:113
Aws::MediaTailor::Model::CreateProgramResult::WithSourceLocationName
CreateProgramResult & WithSourceLocationName(const Aws::String &value)
Definition: CreateProgramResult.h:267
Aws::MediaTailor::Model::CreateProgramResult::SetSourceLocationName
void SetSourceLocationName(Aws::String &&value)
Definition: CreateProgramResult.h:257
Aws::MediaTailor::Model::CreateProgramResult::WithArn
CreateProgramResult & WithArn(const Aws::String &value)
Definition: CreateProgramResult.h:97
Aws::MediaTailor::Model::CreateProgramResult::SetChannelName
void SetChannelName(Aws::String &&value)
Definition: CreateProgramResult.h:123
Aws::MediaTailor::Model::CreateProgramResult::WithCreationTime
CreateProgramResult & WithCreationTime(Aws::Utils::DateTime &&value)
Definition: CreateProgramResult.h:169
AWSString.h
Aws::MediaTailor::Model::CreateProgramResult::WithChannelName
CreateProgramResult & WithChannelName(Aws::String &&value)
Definition: CreateProgramResult.h:138
Aws::MediaTailor::Model::CreateProgramResult::SetArn
void SetArn(const char *value)
Definition: CreateProgramResult.h:92
Aws::MediaTailor::Model::CreateProgramResult::SetSourceLocationName
void SetSourceLocationName(const Aws::String &value)
Definition: CreateProgramResult.h:252
Aws::MediaTailor::Model::CreateProgramResult::WithProgramName
CreateProgramResult & WithProgramName(Aws::String &&value)
Definition: CreateProgramResult.h:200
Aws::MediaTailor::Model::CreateProgramResult::SetCreationTime
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition: CreateProgramResult.h:159
Aws::MediaTailor::Model::CreateProgramResult::WithProgramName
CreateProgramResult & WithProgramName(const Aws::String &value)
Definition: CreateProgramResult.h:195
MediaTailor_EXPORTS.h
Aws::MediaTailor::Model::CreateProgramResult::SetScheduledStartTime
void SetScheduledStartTime(Aws::Utils::DateTime &&value)
Definition: CreateProgramResult.h:227
Aws::MediaTailor::Model::CreateProgramResult::GetArn
const Aws::String & GetArn() const
Definition: CreateProgramResult.h:77
Aws::MediaTailor::Model::CreateProgramResult::WithChannelName
CreateProgramResult & WithChannelName(const char *value)
Definition: CreateProgramResult.h:143
Aws::MediaTailor::Model::CreateProgramResult::WithSourceLocationName
CreateProgramResult & WithSourceLocationName(Aws::String &&value)
Definition: CreateProgramResult.h:272
Aws::MediaTailor::Model::CreateProgramResult::WithAdBreaks
CreateProgramResult & WithAdBreaks(const Aws::Vector< AdBreak > &value)
Definition: CreateProgramResult.h:56
Aws::MediaTailor::Model::CreateProgramResult::GetSourceLocationName
const Aws::String & GetSourceLocationName() const
Definition: CreateProgramResult.h:247
Aws::MediaTailor::Model::CreateProgramResult::AddAdBreaks
CreateProgramResult & AddAdBreaks(const AdBreak &value)
Definition: CreateProgramResult.h:66
Aws::MediaTailor::Model::CreateProgramResult::WithProgramName
CreateProgramResult & WithProgramName(const char *value)
Definition: CreateProgramResult.h:205
Aws::MediaTailor::Model::CreateProgramResult::WithScheduledStartTime
CreateProgramResult & WithScheduledStartTime(const Aws::Utils::DateTime &value)
Definition: CreateProgramResult.h:234
AdBreak.h
Aws::MediaTailor::Model::CreateProgramResult::SetProgramName
void SetProgramName(const Aws::String &value)
Definition: CreateProgramResult.h:180
Aws::MediaTailor::Model::CreateProgramResult::WithSourceLocationName
CreateProgramResult & WithSourceLocationName(const char *value)
Definition: CreateProgramResult.h:277
Aws
Definition: AccessManagementClient.h:15
Aws::MediaTailor::Model::CreateProgramResult::GetCreationTime
const Aws::Utils::DateTime & GetCreationTime() const
Definition: CreateProgramResult.h:149
Aws::MediaTailor::Model::CreateProgramResult::SetAdBreaks
void SetAdBreaks(const Aws::Vector< AdBreak > &value)
Definition: CreateProgramResult.h:46
Aws::MediaTailor::Model::CreateProgramResult::SetScheduledStartTime
void SetScheduledStartTime(const Aws::Utils::DateTime &value)
Definition: CreateProgramResult.h:220
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MediaTailor::Model::CreateProgramResult::WithArn
CreateProgramResult & WithArn(Aws::String &&value)
Definition: CreateProgramResult.h:102
Aws::MediaTailor::Model::CreateProgramResult::SetChannelName
void SetChannelName(const Aws::String &value)
Definition: CreateProgramResult.h:118
Aws::MediaTailor::Model::CreateProgramResult::WithCreationTime
CreateProgramResult & WithCreationTime(const Aws::Utils::DateTime &value)
Definition: CreateProgramResult.h:164
Aws::MediaTailor::Model::CreateProgramResult::SetVodSourceName
void SetVodSourceName(const char *value)
Definition: CreateProgramResult.h:298
Aws::MediaTailor::Model::CreateProgramResult::SetArn
void SetArn(Aws::String &&value)
Definition: CreateProgramResult.h:87
Aws::MediaTailor::Model::CreateProgramResult::CreateProgramResult
CreateProgramResult()