AWS SDK for C++  1.9.105
AWS SDK for C++
CreateProgramRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace MediaTailor
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CreateProgram"; }
34 
35  Aws::String SerializePayload() const override;
36 
37 
41  inline const Aws::Vector<AdBreak>& GetAdBreaks() const{ return m_adBreaks; }
42 
46  inline bool AdBreaksHasBeenSet() const { return m_adBreaksHasBeenSet; }
47 
51  inline void SetAdBreaks(const Aws::Vector<AdBreak>& value) { m_adBreaksHasBeenSet = true; m_adBreaks = value; }
52 
56  inline void SetAdBreaks(Aws::Vector<AdBreak>&& value) { m_adBreaksHasBeenSet = true; m_adBreaks = std::move(value); }
57 
61  inline CreateProgramRequest& WithAdBreaks(const Aws::Vector<AdBreak>& value) { SetAdBreaks(value); return *this;}
62 
66  inline CreateProgramRequest& WithAdBreaks(Aws::Vector<AdBreak>&& value) { SetAdBreaks(std::move(value)); return *this;}
67 
71  inline CreateProgramRequest& AddAdBreaks(const AdBreak& value) { m_adBreaksHasBeenSet = true; m_adBreaks.push_back(value); return *this; }
72 
76  inline CreateProgramRequest& AddAdBreaks(AdBreak&& value) { m_adBreaksHasBeenSet = true; m_adBreaks.push_back(std::move(value)); return *this; }
77 
78 
82  inline const Aws::String& GetChannelName() const{ return m_channelName; }
83 
87  inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
88 
92  inline void SetChannelName(const Aws::String& value) { m_channelNameHasBeenSet = true; m_channelName = value; }
93 
97  inline void SetChannelName(Aws::String&& value) { m_channelNameHasBeenSet = true; m_channelName = std::move(value); }
98 
102  inline void SetChannelName(const char* value) { m_channelNameHasBeenSet = true; m_channelName.assign(value); }
103 
107  inline CreateProgramRequest& WithChannelName(const Aws::String& value) { SetChannelName(value); return *this;}
108 
112  inline CreateProgramRequest& WithChannelName(Aws::String&& value) { SetChannelName(std::move(value)); return *this;}
113 
117  inline CreateProgramRequest& WithChannelName(const char* value) { SetChannelName(value); return *this;}
118 
119 
123  inline const Aws::String& GetProgramName() const{ return m_programName; }
124 
128  inline bool ProgramNameHasBeenSet() const { return m_programNameHasBeenSet; }
129 
133  inline void SetProgramName(const Aws::String& value) { m_programNameHasBeenSet = true; m_programName = value; }
134 
138  inline void SetProgramName(Aws::String&& value) { m_programNameHasBeenSet = true; m_programName = std::move(value); }
139 
143  inline void SetProgramName(const char* value) { m_programNameHasBeenSet = true; m_programName.assign(value); }
144 
148  inline CreateProgramRequest& WithProgramName(const Aws::String& value) { SetProgramName(value); return *this;}
149 
153  inline CreateProgramRequest& WithProgramName(Aws::String&& value) { SetProgramName(std::move(value)); return *this;}
154 
158  inline CreateProgramRequest& WithProgramName(const char* value) { SetProgramName(value); return *this;}
159 
160 
164  inline const ScheduleConfiguration& GetScheduleConfiguration() const{ return m_scheduleConfiguration; }
165 
169  inline bool ScheduleConfigurationHasBeenSet() const { return m_scheduleConfigurationHasBeenSet; }
170 
174  inline void SetScheduleConfiguration(const ScheduleConfiguration& value) { m_scheduleConfigurationHasBeenSet = true; m_scheduleConfiguration = value; }
175 
179  inline void SetScheduleConfiguration(ScheduleConfiguration&& value) { m_scheduleConfigurationHasBeenSet = true; m_scheduleConfiguration = std::move(value); }
180 
184  inline CreateProgramRequest& WithScheduleConfiguration(const ScheduleConfiguration& value) { SetScheduleConfiguration(value); return *this;}
185 
189  inline CreateProgramRequest& WithScheduleConfiguration(ScheduleConfiguration&& value) { SetScheduleConfiguration(std::move(value)); return *this;}
190 
191 
195  inline const Aws::String& GetSourceLocationName() const{ return m_sourceLocationName; }
196 
200  inline bool SourceLocationNameHasBeenSet() const { return m_sourceLocationNameHasBeenSet; }
201 
205  inline void SetSourceLocationName(const Aws::String& value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName = value; }
206 
210  inline void SetSourceLocationName(Aws::String&& value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName = std::move(value); }
211 
215  inline void SetSourceLocationName(const char* value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName.assign(value); }
216 
220  inline CreateProgramRequest& WithSourceLocationName(const Aws::String& value) { SetSourceLocationName(value); return *this;}
221 
225  inline CreateProgramRequest& WithSourceLocationName(Aws::String&& value) { SetSourceLocationName(std::move(value)); return *this;}
226 
230  inline CreateProgramRequest& WithSourceLocationName(const char* value) { SetSourceLocationName(value); return *this;}
231 
232 
236  inline const Aws::String& GetVodSourceName() const{ return m_vodSourceName; }
237 
241  inline bool VodSourceNameHasBeenSet() const { return m_vodSourceNameHasBeenSet; }
242 
246  inline void SetVodSourceName(const Aws::String& value) { m_vodSourceNameHasBeenSet = true; m_vodSourceName = value; }
247 
251  inline void SetVodSourceName(Aws::String&& value) { m_vodSourceNameHasBeenSet = true; m_vodSourceName = std::move(value); }
252 
256  inline void SetVodSourceName(const char* value) { m_vodSourceNameHasBeenSet = true; m_vodSourceName.assign(value); }
257 
261  inline CreateProgramRequest& WithVodSourceName(const Aws::String& value) { SetVodSourceName(value); return *this;}
262 
266  inline CreateProgramRequest& WithVodSourceName(Aws::String&& value) { SetVodSourceName(std::move(value)); return *this;}
267 
271  inline CreateProgramRequest& WithVodSourceName(const char* value) { SetVodSourceName(value); return *this;}
272 
273  private:
274 
275  Aws::Vector<AdBreak> m_adBreaks;
276  bool m_adBreaksHasBeenSet;
277 
278  Aws::String m_channelName;
279  bool m_channelNameHasBeenSet;
280 
281  Aws::String m_programName;
282  bool m_programNameHasBeenSet;
283 
284  ScheduleConfiguration m_scheduleConfiguration;
285  bool m_scheduleConfigurationHasBeenSet;
286 
287  Aws::String m_sourceLocationName;
288  bool m_sourceLocationNameHasBeenSet;
289 
290  Aws::String m_vodSourceName;
291  bool m_vodSourceNameHasBeenSet;
292  };
293 
294 } // namespace Model
295 } // namespace MediaTailor
296 } // namespace Aws
Aws::MediaTailor::Model::CreateProgramRequest::SetAdBreaks
void SetAdBreaks(Aws::Vector< AdBreak > &&value)
Definition: CreateProgramRequest.h:56
Aws::MediaTailor::Model::CreateProgramRequest::WithScheduleConfiguration
CreateProgramRequest & WithScheduleConfiguration(const ScheduleConfiguration &value)
Definition: CreateProgramRequest.h:184
Aws::MediaTailor::Model::ScheduleConfiguration
Definition: ScheduleConfiguration.h:33
Aws::MediaTailor::Model::CreateProgramRequest::AdBreaksHasBeenSet
bool AdBreaksHasBeenSet() const
Definition: CreateProgramRequest.h:46
Aws::MediaTailor::Model::CreateProgramRequest::AddAdBreaks
CreateProgramRequest & AddAdBreaks(const AdBreak &value)
Definition: CreateProgramRequest.h:71
Aws::MediaTailor::Model::CreateProgramRequest::SetScheduleConfiguration
void SetScheduleConfiguration(const ScheduleConfiguration &value)
Definition: CreateProgramRequest.h:174
AWS_MEDIATAILOR_API
#define AWS_MEDIATAILOR_API
Definition: MediaTailor_EXPORTS.h:28
Aws::MediaTailor::Model::CreateProgramRequest::SetAdBreaks
void SetAdBreaks(const Aws::Vector< AdBreak > &value)
Definition: CreateProgramRequest.h:51
Aws::MediaTailor::Model::CreateProgramRequest::GetProgramName
const Aws::String & GetProgramName() const
Definition: CreateProgramRequest.h:123
ScheduleConfiguration.h
Aws::MediaTailor::Model::CreateProgramRequest::WithChannelName
CreateProgramRequest & WithChannelName(const Aws::String &value)
Definition: CreateProgramRequest.h:107
Aws::MediaTailor::Model::CreateProgramRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateProgramRequest.h:33
Aws::MediaTailor::Model::CreateProgramRequest::SetChannelName
void SetChannelName(const char *value)
Definition: CreateProgramRequest.h:102
Aws::MediaTailor::Model::CreateProgramRequest::GetSourceLocationName
const Aws::String & GetSourceLocationName() const
Definition: CreateProgramRequest.h:195
Aws::MediaTailor::Model::CreateProgramRequest::SetVodSourceName
void SetVodSourceName(const Aws::String &value)
Definition: CreateProgramRequest.h:246
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::MediaTailor::Model::CreateProgramRequest::WithProgramName
CreateProgramRequest & WithProgramName(Aws::String &&value)
Definition: CreateProgramRequest.h:153
Aws::MediaTailor::Model::CreateProgramRequest::GetScheduleConfiguration
const ScheduleConfiguration & GetScheduleConfiguration() const
Definition: CreateProgramRequest.h:164
Aws::MediaTailor::Model::CreateProgramRequest::SetProgramName
void SetProgramName(const Aws::String &value)
Definition: CreateProgramRequest.h:133
Aws::MediaTailor::Model::AdBreak
Definition: AdBreak.h:34
Aws::MediaTailor::Model::CreateProgramRequest::WithSourceLocationName
CreateProgramRequest & WithSourceLocationName(const char *value)
Definition: CreateProgramRequest.h:230
Aws::MediaTailor::Model::CreateProgramRequest::SetProgramName
void SetProgramName(Aws::String &&value)
Definition: CreateProgramRequest.h:138
Aws::MediaTailor::Model::CreateProgramRequest::GetAdBreaks
const Aws::Vector< AdBreak > & GetAdBreaks() const
Definition: CreateProgramRequest.h:41
AWSVector.h
Aws::MediaTailor::Model::CreateProgramRequest::GetChannelName
const Aws::String & GetChannelName() const
Definition: CreateProgramRequest.h:82
Aws::MediaTailor::Model::CreateProgramRequest::WithChannelName
CreateProgramRequest & WithChannelName(const char *value)
Definition: CreateProgramRequest.h:117
Aws::MediaTailor::Model::CreateProgramRequest::VodSourceNameHasBeenSet
bool VodSourceNameHasBeenSet() const
Definition: CreateProgramRequest.h:241
Aws::MediaTailor::Model::CreateProgramRequest::WithVodSourceName
CreateProgramRequest & WithVodSourceName(Aws::String &&value)
Definition: CreateProgramRequest.h:266
Aws::MediaTailor::Model::CreateProgramRequest::WithProgramName
CreateProgramRequest & WithProgramName(const char *value)
Definition: CreateProgramRequest.h:158
Aws::MediaTailor::Model::CreateProgramRequest::SourceLocationNameHasBeenSet
bool SourceLocationNameHasBeenSet() const
Definition: CreateProgramRequest.h:200
Aws::MediaTailor::Model::CreateProgramRequest
Definition: CreateProgramRequest.h:25
Aws::MediaTailor::Model::CreateProgramRequest::ProgramNameHasBeenSet
bool ProgramNameHasBeenSet() const
Definition: CreateProgramRequest.h:128
Aws::MediaTailor::Model::CreateProgramRequest::SetChannelName
void SetChannelName(Aws::String &&value)
Definition: CreateProgramRequest.h:97
Aws::MediaTailor::Model::CreateProgramRequest::WithScheduleConfiguration
CreateProgramRequest & WithScheduleConfiguration(ScheduleConfiguration &&value)
Definition: CreateProgramRequest.h:189
Aws::MediaTailor::Model::CreateProgramRequest::AddAdBreaks
CreateProgramRequest & AddAdBreaks(AdBreak &&value)
Definition: CreateProgramRequest.h:76
Aws::MediaTailor::Model::CreateProgramRequest::WithProgramName
CreateProgramRequest & WithProgramName(const Aws::String &value)
Definition: CreateProgramRequest.h:148
Aws::MediaTailor::MediaTailorRequest
Definition: MediaTailorRequest.h:17
Aws::MediaTailor::Model::CreateProgramRequest::SetSourceLocationName
void SetSourceLocationName(const Aws::String &value)
Definition: CreateProgramRequest.h:205
AWSString.h
Aws::MediaTailor::Model::CreateProgramRequest::WithAdBreaks
CreateProgramRequest & WithAdBreaks(const Aws::Vector< AdBreak > &value)
Definition: CreateProgramRequest.h:61
MediaTailorRequest.h
Aws::MediaTailor::Model::CreateProgramRequest::WithChannelName
CreateProgramRequest & WithChannelName(Aws::String &&value)
Definition: CreateProgramRequest.h:112
MediaTailor_EXPORTS.h
Aws::MediaTailor::Model::CreateProgramRequest::SetVodSourceName
void SetVodSourceName(Aws::String &&value)
Definition: CreateProgramRequest.h:251
Aws::MediaTailor::Model::CreateProgramRequest::CreateProgramRequest
CreateProgramRequest()
Aws::MediaTailor::Model::CreateProgramRequest::SetChannelName
void SetChannelName(const Aws::String &value)
Definition: CreateProgramRequest.h:92
Aws::MediaTailor::Model::CreateProgramRequest::WithSourceLocationName
CreateProgramRequest & WithSourceLocationName(const Aws::String &value)
Definition: CreateProgramRequest.h:220
Aws::MediaTailor::Model::CreateProgramRequest::SetSourceLocationName
void SetSourceLocationName(Aws::String &&value)
Definition: CreateProgramRequest.h:210
Aws::MediaTailor::Model::CreateProgramRequest::SetProgramName
void SetProgramName(const char *value)
Definition: CreateProgramRequest.h:143
Aws::MediaTailor::Model::CreateProgramRequest::WithAdBreaks
CreateProgramRequest & WithAdBreaks(Aws::Vector< AdBreak > &&value)
Definition: CreateProgramRequest.h:66
AdBreak.h
Aws::MediaTailor::Model::CreateProgramRequest::ChannelNameHasBeenSet
bool ChannelNameHasBeenSet() const
Definition: CreateProgramRequest.h:87
Aws
Definition: AccessManagementClient.h:15
Aws::MediaTailor::Model::CreateProgramRequest::WithVodSourceName
CreateProgramRequest & WithVodSourceName(const Aws::String &value)
Definition: CreateProgramRequest.h:261
Aws::MediaTailor::Model::CreateProgramRequest::SetVodSourceName
void SetVodSourceName(const char *value)
Definition: CreateProgramRequest.h:256
Aws::MediaTailor::Model::CreateProgramRequest::SetSourceLocationName
void SetSourceLocationName(const char *value)
Definition: CreateProgramRequest.h:215
Aws::MediaTailor::Model::CreateProgramRequest::WithSourceLocationName
CreateProgramRequest & WithSourceLocationName(Aws::String &&value)
Definition: CreateProgramRequest.h:225
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MediaTailor::Model::CreateProgramRequest::GetVodSourceName
const Aws::String & GetVodSourceName() const
Definition: CreateProgramRequest.h:236
Aws::MediaTailor::Model::CreateProgramRequest::ScheduleConfigurationHasBeenSet
bool ScheduleConfigurationHasBeenSet() const
Definition: CreateProgramRequest.h:169
Aws::MediaTailor::Model::CreateProgramRequest::WithVodSourceName
CreateProgramRequest & WithVodSourceName(const char *value)
Definition: CreateProgramRequest.h:271
Aws::MediaTailor::Model::CreateProgramRequest::SetScheduleConfiguration
void SetScheduleConfiguration(ScheduleConfiguration &&value)
Definition: CreateProgramRequest.h:179
Aws::MediaTailor::Model::CreateProgramRequest::SerializePayload
Aws::String SerializePayload() const override