AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateProgramRequest.h
1
6#pragma once
7#include <aws/mediatailor/MediaTailor_EXPORTS.h>
8#include <aws/mediatailor/MediaTailorRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/mediatailor/model/ScheduleConfiguration.h>
12#include <aws/mediatailor/model/AdBreak.h>
13#include <aws/mediatailor/model/AudienceMedia.h>
14#include <utility>
15
16namespace Aws
17{
18namespace MediaTailor
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_MEDIATAILOR_API CreateProgramRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateProgram"; }
35
36 AWS_MEDIATAILOR_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::Vector<AdBreak>& GetAdBreaks() const{ return m_adBreaks; }
44 inline bool AdBreaksHasBeenSet() const { return m_adBreaksHasBeenSet; }
45 inline void SetAdBreaks(const Aws::Vector<AdBreak>& value) { m_adBreaksHasBeenSet = true; m_adBreaks = value; }
46 inline void SetAdBreaks(Aws::Vector<AdBreak>&& value) { m_adBreaksHasBeenSet = true; m_adBreaks = std::move(value); }
47 inline CreateProgramRequest& WithAdBreaks(const Aws::Vector<AdBreak>& value) { SetAdBreaks(value); return *this;}
48 inline CreateProgramRequest& WithAdBreaks(Aws::Vector<AdBreak>&& value) { SetAdBreaks(std::move(value)); return *this;}
49 inline CreateProgramRequest& AddAdBreaks(const AdBreak& value) { m_adBreaksHasBeenSet = true; m_adBreaks.push_back(value); return *this; }
50 inline CreateProgramRequest& AddAdBreaks(AdBreak&& value) { m_adBreaksHasBeenSet = true; m_adBreaks.push_back(std::move(value)); return *this; }
52
54
57 inline const Aws::Vector<AudienceMedia>& GetAudienceMedia() const{ return m_audienceMedia; }
58 inline bool AudienceMediaHasBeenSet() const { return m_audienceMediaHasBeenSet; }
59 inline void SetAudienceMedia(const Aws::Vector<AudienceMedia>& value) { m_audienceMediaHasBeenSet = true; m_audienceMedia = value; }
60 inline void SetAudienceMedia(Aws::Vector<AudienceMedia>&& value) { m_audienceMediaHasBeenSet = true; m_audienceMedia = std::move(value); }
62 inline CreateProgramRequest& WithAudienceMedia(Aws::Vector<AudienceMedia>&& value) { SetAudienceMedia(std::move(value)); return *this;}
63 inline CreateProgramRequest& AddAudienceMedia(const AudienceMedia& value) { m_audienceMediaHasBeenSet = true; m_audienceMedia.push_back(value); return *this; }
64 inline CreateProgramRequest& AddAudienceMedia(AudienceMedia&& value) { m_audienceMediaHasBeenSet = true; m_audienceMedia.push_back(std::move(value)); return *this; }
66
68
71 inline const Aws::String& GetChannelName() const{ return m_channelName; }
72 inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
73 inline void SetChannelName(const Aws::String& value) { m_channelNameHasBeenSet = true; m_channelName = value; }
74 inline void SetChannelName(Aws::String&& value) { m_channelNameHasBeenSet = true; m_channelName = std::move(value); }
75 inline void SetChannelName(const char* value) { m_channelNameHasBeenSet = true; m_channelName.assign(value); }
76 inline CreateProgramRequest& WithChannelName(const Aws::String& value) { SetChannelName(value); return *this;}
77 inline CreateProgramRequest& WithChannelName(Aws::String&& value) { SetChannelName(std::move(value)); return *this;}
78 inline CreateProgramRequest& WithChannelName(const char* value) { SetChannelName(value); return *this;}
80
82
85 inline const Aws::String& GetLiveSourceName() const{ return m_liveSourceName; }
86 inline bool LiveSourceNameHasBeenSet() const { return m_liveSourceNameHasBeenSet; }
87 inline void SetLiveSourceName(const Aws::String& value) { m_liveSourceNameHasBeenSet = true; m_liveSourceName = value; }
88 inline void SetLiveSourceName(Aws::String&& value) { m_liveSourceNameHasBeenSet = true; m_liveSourceName = std::move(value); }
89 inline void SetLiveSourceName(const char* value) { m_liveSourceNameHasBeenSet = true; m_liveSourceName.assign(value); }
90 inline CreateProgramRequest& WithLiveSourceName(const Aws::String& value) { SetLiveSourceName(value); return *this;}
91 inline CreateProgramRequest& WithLiveSourceName(Aws::String&& value) { SetLiveSourceName(std::move(value)); return *this;}
92 inline CreateProgramRequest& WithLiveSourceName(const char* value) { SetLiveSourceName(value); return *this;}
94
96
99 inline const Aws::String& GetProgramName() const{ return m_programName; }
100 inline bool ProgramNameHasBeenSet() const { return m_programNameHasBeenSet; }
101 inline void SetProgramName(const Aws::String& value) { m_programNameHasBeenSet = true; m_programName = value; }
102 inline void SetProgramName(Aws::String&& value) { m_programNameHasBeenSet = true; m_programName = std::move(value); }
103 inline void SetProgramName(const char* value) { m_programNameHasBeenSet = true; m_programName.assign(value); }
104 inline CreateProgramRequest& WithProgramName(const Aws::String& value) { SetProgramName(value); return *this;}
105 inline CreateProgramRequest& WithProgramName(Aws::String&& value) { SetProgramName(std::move(value)); return *this;}
106 inline CreateProgramRequest& WithProgramName(const char* value) { SetProgramName(value); return *this;}
108
110
113 inline const ScheduleConfiguration& GetScheduleConfiguration() const{ return m_scheduleConfiguration; }
114 inline bool ScheduleConfigurationHasBeenSet() const { return m_scheduleConfigurationHasBeenSet; }
115 inline void SetScheduleConfiguration(const ScheduleConfiguration& value) { m_scheduleConfigurationHasBeenSet = true; m_scheduleConfiguration = value; }
116 inline void SetScheduleConfiguration(ScheduleConfiguration&& value) { m_scheduleConfigurationHasBeenSet = true; m_scheduleConfiguration = std::move(value); }
120
122
125 inline const Aws::String& GetSourceLocationName() const{ return m_sourceLocationName; }
126 inline bool SourceLocationNameHasBeenSet() const { return m_sourceLocationNameHasBeenSet; }
127 inline void SetSourceLocationName(const Aws::String& value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName = value; }
128 inline void SetSourceLocationName(Aws::String&& value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName = std::move(value); }
129 inline void SetSourceLocationName(const char* value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName.assign(value); }
131 inline CreateProgramRequest& WithSourceLocationName(Aws::String&& value) { SetSourceLocationName(std::move(value)); return *this;}
132 inline CreateProgramRequest& WithSourceLocationName(const char* value) { SetSourceLocationName(value); return *this;}
134
136
139 inline const Aws::String& GetVodSourceName() const{ return m_vodSourceName; }
140 inline bool VodSourceNameHasBeenSet() const { return m_vodSourceNameHasBeenSet; }
141 inline void SetVodSourceName(const Aws::String& value) { m_vodSourceNameHasBeenSet = true; m_vodSourceName = value; }
142 inline void SetVodSourceName(Aws::String&& value) { m_vodSourceNameHasBeenSet = true; m_vodSourceName = std::move(value); }
143 inline void SetVodSourceName(const char* value) { m_vodSourceNameHasBeenSet = true; m_vodSourceName.assign(value); }
144 inline CreateProgramRequest& WithVodSourceName(const Aws::String& value) { SetVodSourceName(value); return *this;}
145 inline CreateProgramRequest& WithVodSourceName(Aws::String&& value) { SetVodSourceName(std::move(value)); return *this;}
146 inline CreateProgramRequest& WithVodSourceName(const char* value) { SetVodSourceName(value); return *this;}
148 private:
149
150 Aws::Vector<AdBreak> m_adBreaks;
151 bool m_adBreaksHasBeenSet = false;
152
153 Aws::Vector<AudienceMedia> m_audienceMedia;
154 bool m_audienceMediaHasBeenSet = false;
155
156 Aws::String m_channelName;
157 bool m_channelNameHasBeenSet = false;
158
159 Aws::String m_liveSourceName;
160 bool m_liveSourceNameHasBeenSet = false;
161
162 Aws::String m_programName;
163 bool m_programNameHasBeenSet = false;
164
165 ScheduleConfiguration m_scheduleConfiguration;
166 bool m_scheduleConfigurationHasBeenSet = false;
167
168 Aws::String m_sourceLocationName;
169 bool m_sourceLocationNameHasBeenSet = false;
170
171 Aws::String m_vodSourceName;
172 bool m_vodSourceNameHasBeenSet = false;
173 };
174
175} // namespace Model
176} // namespace MediaTailor
177} // namespace Aws
void SetAudienceMedia(const Aws::Vector< AudienceMedia > &value)
CreateProgramRequest & WithSourceLocationName(Aws::String &&value)
void SetAdBreaks(const Aws::Vector< AdBreak > &value)
const Aws::Vector< AdBreak > & GetAdBreaks() const
virtual const char * GetServiceRequestName() const override
CreateProgramRequest & WithProgramName(const char *value)
void SetAudienceMedia(Aws::Vector< AudienceMedia > &&value)
CreateProgramRequest & WithLiveSourceName(Aws::String &&value)
CreateProgramRequest & WithAdBreaks(const Aws::Vector< AdBreak > &value)
CreateProgramRequest & WithSourceLocationName(const Aws::String &value)
void SetAdBreaks(Aws::Vector< AdBreak > &&value)
AWS_MEDIATAILOR_API Aws::String SerializePayload() const override
CreateProgramRequest & WithScheduleConfiguration(ScheduleConfiguration &&value)
CreateProgramRequest & WithChannelName(const Aws::String &value)
CreateProgramRequest & AddAudienceMedia(const AudienceMedia &value)
CreateProgramRequest & WithProgramName(const Aws::String &value)
CreateProgramRequest & WithSourceLocationName(const char *value)
CreateProgramRequest & WithAdBreaks(Aws::Vector< AdBreak > &&value)
CreateProgramRequest & WithVodSourceName(Aws::String &&value)
CreateProgramRequest & WithVodSourceName(const Aws::String &value)
const ScheduleConfiguration & GetScheduleConfiguration() const
CreateProgramRequest & WithScheduleConfiguration(const ScheduleConfiguration &value)
void SetScheduleConfiguration(const ScheduleConfiguration &value)
CreateProgramRequest & AddAdBreaks(AdBreak &&value)
void SetSourceLocationName(const Aws::String &value)
const Aws::Vector< AudienceMedia > & GetAudienceMedia() const
CreateProgramRequest & AddAdBreaks(const AdBreak &value)
CreateProgramRequest & WithChannelName(const char *value)
CreateProgramRequest & WithChannelName(Aws::String &&value)
CreateProgramRequest & WithLiveSourceName(const Aws::String &value)
CreateProgramRequest & WithAudienceMedia(const Aws::Vector< AudienceMedia > &value)
CreateProgramRequest & WithLiveSourceName(const char *value)
CreateProgramRequest & WithProgramName(Aws::String &&value)
void SetScheduleConfiguration(ScheduleConfiguration &&value)
CreateProgramRequest & WithAudienceMedia(Aws::Vector< AudienceMedia > &&value)
CreateProgramRequest & AddAudienceMedia(AudienceMedia &&value)
CreateProgramRequest & WithVodSourceName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector