AWS SDK for C++  1.9.104
AWS SDK for C++
CreateChannelRequest.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace MediaTailor
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CreateChannel"; }
36 
37  Aws::String SerializePayload() const override;
38 
39 
43  inline const Aws::String& GetChannelName() const{ return m_channelName; }
44 
48  inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
49 
53  inline void SetChannelName(const Aws::String& value) { m_channelNameHasBeenSet = true; m_channelName = value; }
54 
58  inline void SetChannelName(Aws::String&& value) { m_channelNameHasBeenSet = true; m_channelName = std::move(value); }
59 
63  inline void SetChannelName(const char* value) { m_channelNameHasBeenSet = true; m_channelName.assign(value); }
64 
68  inline CreateChannelRequest& WithChannelName(const Aws::String& value) { SetChannelName(value); return *this;}
69 
73  inline CreateChannelRequest& WithChannelName(Aws::String&& value) { SetChannelName(std::move(value)); return *this;}
74 
78  inline CreateChannelRequest& WithChannelName(const char* value) { SetChannelName(value); return *this;}
79 
80 
85  inline const SlateSource& GetFillerSlate() const{ return m_fillerSlate; }
86 
91  inline bool FillerSlateHasBeenSet() const { return m_fillerSlateHasBeenSet; }
92 
97  inline void SetFillerSlate(const SlateSource& value) { m_fillerSlateHasBeenSet = true; m_fillerSlate = value; }
98 
103  inline void SetFillerSlate(SlateSource&& value) { m_fillerSlateHasBeenSet = true; m_fillerSlate = std::move(value); }
104 
109  inline CreateChannelRequest& WithFillerSlate(const SlateSource& value) { SetFillerSlate(value); return *this;}
110 
115  inline CreateChannelRequest& WithFillerSlate(SlateSource&& value) { SetFillerSlate(std::move(value)); return *this;}
116 
117 
121  inline const Aws::Vector<RequestOutputItem>& GetOutputs() const{ return m_outputs; }
122 
126  inline bool OutputsHasBeenSet() const { return m_outputsHasBeenSet; }
127 
131  inline void SetOutputs(const Aws::Vector<RequestOutputItem>& value) { m_outputsHasBeenSet = true; m_outputs = value; }
132 
136  inline void SetOutputs(Aws::Vector<RequestOutputItem>&& value) { m_outputsHasBeenSet = true; m_outputs = std::move(value); }
137 
141  inline CreateChannelRequest& WithOutputs(const Aws::Vector<RequestOutputItem>& value) { SetOutputs(value); return *this;}
142 
146  inline CreateChannelRequest& WithOutputs(Aws::Vector<RequestOutputItem>&& value) { SetOutputs(std::move(value)); return *this;}
147 
151  inline CreateChannelRequest& AddOutputs(const RequestOutputItem& value) { m_outputsHasBeenSet = true; m_outputs.push_back(value); return *this; }
152 
156  inline CreateChannelRequest& AddOutputs(RequestOutputItem&& value) { m_outputsHasBeenSet = true; m_outputs.push_back(std::move(value)); return *this; }
157 
158 
166  inline const PlaybackMode& GetPlaybackMode() const{ return m_playbackMode; }
167 
175  inline bool PlaybackModeHasBeenSet() const { return m_playbackModeHasBeenSet; }
176 
184  inline void SetPlaybackMode(const PlaybackMode& value) { m_playbackModeHasBeenSet = true; m_playbackMode = value; }
185 
193  inline void SetPlaybackMode(PlaybackMode&& value) { m_playbackModeHasBeenSet = true; m_playbackMode = std::move(value); }
194 
202  inline CreateChannelRequest& WithPlaybackMode(const PlaybackMode& value) { SetPlaybackMode(value); return *this;}
203 
211  inline CreateChannelRequest& WithPlaybackMode(PlaybackMode&& value) { SetPlaybackMode(std::move(value)); return *this;}
212 
213 
217  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
218 
222  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
223 
227  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
228 
232  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
233 
237  inline CreateChannelRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
238 
242  inline CreateChannelRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
243 
247  inline CreateChannelRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
248 
252  inline CreateChannelRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
253 
257  inline CreateChannelRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
258 
262  inline CreateChannelRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
263 
267  inline CreateChannelRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
268 
272  inline CreateChannelRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
273 
277  inline CreateChannelRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
278 
279  private:
280 
281  Aws::String m_channelName;
282  bool m_channelNameHasBeenSet;
283 
284  SlateSource m_fillerSlate;
285  bool m_fillerSlateHasBeenSet;
286 
288  bool m_outputsHasBeenSet;
289 
290  PlaybackMode m_playbackMode;
291  bool m_playbackModeHasBeenSet;
292 
294  bool m_tagsHasBeenSet;
295  };
296 
297 } // namespace Model
298 } // namespace MediaTailor
299 } // namespace Aws
Aws::MediaTailor::Model::CreateChannelRequest::SetChannelName
void SetChannelName(const Aws::String &value)
Definition: CreateChannelRequest.h:53
Aws::MediaTailor::Model::CreateChannelRequest
Definition: CreateChannelRequest.h:27
AWS_MEDIATAILOR_API
#define AWS_MEDIATAILOR_API
Definition: MediaTailor_EXPORTS.h:28
Aws::MediaTailor::Model::CreateChannelRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateChannelRequest.h:217
Aws::MediaTailor::Model::CreateChannelRequest::SetFillerSlate
void SetFillerSlate(SlateSource &&value)
Definition: CreateChannelRequest.h:103
Aws::MediaTailor::Model::CreateChannelRequest::AddTags
CreateChannelRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateChannelRequest.h:247
Aws::MediaTailor::Model::CreateChannelRequest::AddTags
CreateChannelRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateChannelRequest.h:262
Aws::MediaTailor::Model::CreateChannelRequest::SerializePayload
Aws::String SerializePayload() const override
SlateSource.h
Aws::MediaTailor::Model::CreateChannelRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateChannelRequest.h:222
Aws::MediaTailor::Model::CreateChannelRequest::WithPlaybackMode
CreateChannelRequest & WithPlaybackMode(PlaybackMode &&value)
Definition: CreateChannelRequest.h:211
Aws::MediaTailor::Model::CreateChannelRequest::SetFillerSlate
void SetFillerSlate(const SlateSource &value)
Definition: CreateChannelRequest.h:97
Aws::MediaTailor::Model::CreateChannelRequest::WithChannelName
CreateChannelRequest & WithChannelName(const char *value)
Definition: CreateChannelRequest.h:78
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::MediaTailor::Model::CreateChannelRequest::WithChannelName
CreateChannelRequest & WithChannelName(const Aws::String &value)
Definition: CreateChannelRequest.h:68
Aws::MediaTailor::Model::CreateChannelRequest::ChannelNameHasBeenSet
bool ChannelNameHasBeenSet() const
Definition: CreateChannelRequest.h:48
Aws::MediaTailor::Model::CreateChannelRequest::SetChannelName
void SetChannelName(const char *value)
Definition: CreateChannelRequest.h:63
AWSVector.h
Aws::MediaTailor::Model::CreateChannelRequest::OutputsHasBeenSet
bool OutputsHasBeenSet() const
Definition: CreateChannelRequest.h:126
Aws::MediaTailor::Model::CreateChannelRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateChannelRequest.h:227
Aws::MediaTailor::Model::CreateChannelRequest::WithOutputs
CreateChannelRequest & WithOutputs(Aws::Vector< RequestOutputItem > &&value)
Definition: CreateChannelRequest.h:146
Aws::MediaTailor::Model::CreateChannelRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateChannelRequest.h:232
Aws::MediaTailor::Model::CreateChannelRequest::GetChannelName
const Aws::String & GetChannelName() const
Definition: CreateChannelRequest.h:43
Aws::MediaTailor::Model::CreateChannelRequest::SetOutputs
void SetOutputs(const Aws::Vector< RequestOutputItem > &value)
Definition: CreateChannelRequest.h:131
Aws::MediaTailor::Model::CreateChannelRequest::AddTags
CreateChannelRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateChannelRequest.h:252
RequestOutputItem.h
Aws::MediaTailor::Model::CreateChannelRequest::WithPlaybackMode
CreateChannelRequest & WithPlaybackMode(const PlaybackMode &value)
Definition: CreateChannelRequest.h:202
Aws::MediaTailor::Model::CreateChannelRequest::AddTags
CreateChannelRequest & AddTags(const char *key, const char *value)
Definition: CreateChannelRequest.h:277
Aws::MediaTailor::Model::CreateChannelRequest::AddTags
CreateChannelRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateChannelRequest.h:272
Aws::MediaTailor::Model::CreateChannelRequest::SetOutputs
void SetOutputs(Aws::Vector< RequestOutputItem > &&value)
Definition: CreateChannelRequest.h:136
Aws::MediaTailor::MediaTailorRequest
Definition: MediaTailorRequest.h:17
Aws::MediaTailor::Model::CreateChannelRequest::WithTags
CreateChannelRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateChannelRequest.h:237
AWSString.h
MediaTailorRequest.h
Aws::MediaTailor::Model::CreateChannelRequest::GetPlaybackMode
const PlaybackMode & GetPlaybackMode() const
Definition: CreateChannelRequest.h:166
Aws::MediaTailor::Model::CreateChannelRequest::WithOutputs
CreateChannelRequest & WithOutputs(const Aws::Vector< RequestOutputItem > &value)
Definition: CreateChannelRequest.h:141
Aws::MediaTailor::Model::CreateChannelRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateChannelRequest.h:35
MediaTailor_EXPORTS.h
Aws::MediaTailor::Model::CreateChannelRequest::WithFillerSlate
CreateChannelRequest & WithFillerSlate(SlateSource &&value)
Definition: CreateChannelRequest.h:115
Aws::MediaTailor::Model::CreateChannelRequest::AddTags
CreateChannelRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateChannelRequest.h:257
Aws::MediaTailor::Model::CreateChannelRequest::WithChannelName
CreateChannelRequest & WithChannelName(Aws::String &&value)
Definition: CreateChannelRequest.h:73
PlaybackMode.h
Aws::MediaTailor::Model::CreateChannelRequest::FillerSlateHasBeenSet
bool FillerSlateHasBeenSet() const
Definition: CreateChannelRequest.h:91
Aws::MediaTailor::Model::CreateChannelRequest::AddTags
CreateChannelRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateChannelRequest.h:267
Aws::MediaTailor::Model::CreateChannelRequest::WithTags
CreateChannelRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateChannelRequest.h:242
Aws::MediaTailor::Model::CreateChannelRequest::CreateChannelRequest
CreateChannelRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::MediaTailor::Model::SlateSource
Definition: SlateSource.h:32
Aws::MediaTailor::Model::CreateChannelRequest::PlaybackModeHasBeenSet
bool PlaybackModeHasBeenSet() const
Definition: CreateChannelRequest.h:175
Aws::MediaTailor::Model::CreateChannelRequest::SetChannelName
void SetChannelName(Aws::String &&value)
Definition: CreateChannelRequest.h:58
Aws::MediaTailor::Model::CreateChannelRequest::SetPlaybackMode
void SetPlaybackMode(PlaybackMode &&value)
Definition: CreateChannelRequest.h:193
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MediaTailor::Model::RequestOutputItem
Definition: RequestOutputItem.h:34
Aws::MediaTailor::Model::CreateChannelRequest::AddOutputs
CreateChannelRequest & AddOutputs(const RequestOutputItem &value)
Definition: CreateChannelRequest.h:151
Aws::MediaTailor::Model::CreateChannelRequest::GetOutputs
const Aws::Vector< RequestOutputItem > & GetOutputs() const
Definition: CreateChannelRequest.h:121
Aws::MediaTailor::Model::CreateChannelRequest::GetFillerSlate
const SlateSource & GetFillerSlate() const
Definition: CreateChannelRequest.h:85
Aws::MediaTailor::Model::CreateChannelRequest::SetPlaybackMode
void SetPlaybackMode(const PlaybackMode &value)
Definition: CreateChannelRequest.h:184
AWSMap.h
Aws::MediaTailor::Model::CreateChannelRequest::AddOutputs
CreateChannelRequest & AddOutputs(RequestOutputItem &&value)
Definition: CreateChannelRequest.h:156
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::MediaTailor::Model::CreateChannelRequest::WithFillerSlate
CreateChannelRequest & WithFillerSlate(const SlateSource &value)
Definition: CreateChannelRequest.h:109
Aws::MediaTailor::Model::PlaybackMode
PlaybackMode
Definition: PlaybackMode.h:17