AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateChannelRequest.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/SlateSource.h>
12#include <aws/mediatailor/model/PlaybackMode.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/mediatailor/model/Tier.h>
15#include <aws/mediatailor/model/TimeShiftConfiguration.h>
16#include <aws/mediatailor/model/RequestOutputItem.h>
17#include <utility>
18
19namespace Aws
20{
21namespace MediaTailor
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_MEDIATAILOR_API CreateChannelRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateChannel"; }
38
39 AWS_MEDIATAILOR_API Aws::String SerializePayload() const override;
40
41
43
46 inline const Aws::Vector<Aws::String>& GetAudiences() const{ return m_audiences; }
47 inline bool AudiencesHasBeenSet() const { return m_audiencesHasBeenSet; }
48 inline void SetAudiences(const Aws::Vector<Aws::String>& value) { m_audiencesHasBeenSet = true; m_audiences = value; }
49 inline void SetAudiences(Aws::Vector<Aws::String>&& value) { m_audiencesHasBeenSet = true; m_audiences = std::move(value); }
50 inline CreateChannelRequest& WithAudiences(const Aws::Vector<Aws::String>& value) { SetAudiences(value); return *this;}
51 inline CreateChannelRequest& WithAudiences(Aws::Vector<Aws::String>&& value) { SetAudiences(std::move(value)); return *this;}
52 inline CreateChannelRequest& AddAudiences(const Aws::String& value) { m_audiencesHasBeenSet = true; m_audiences.push_back(value); return *this; }
53 inline CreateChannelRequest& AddAudiences(Aws::String&& value) { m_audiencesHasBeenSet = true; m_audiences.push_back(std::move(value)); return *this; }
54 inline CreateChannelRequest& AddAudiences(const char* value) { m_audiencesHasBeenSet = true; m_audiences.push_back(value); return *this; }
56
58
61 inline const Aws::String& GetChannelName() const{ return m_channelName; }
62 inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
63 inline void SetChannelName(const Aws::String& value) { m_channelNameHasBeenSet = true; m_channelName = value; }
64 inline void SetChannelName(Aws::String&& value) { m_channelNameHasBeenSet = true; m_channelName = std::move(value); }
65 inline void SetChannelName(const char* value) { m_channelNameHasBeenSet = true; m_channelName.assign(value); }
66 inline CreateChannelRequest& WithChannelName(const Aws::String& value) { SetChannelName(value); return *this;}
67 inline CreateChannelRequest& WithChannelName(Aws::String&& value) { SetChannelName(std::move(value)); return *this;}
68 inline CreateChannelRequest& WithChannelName(const char* value) { SetChannelName(value); return *this;}
70
72
78 inline const SlateSource& GetFillerSlate() const{ return m_fillerSlate; }
79 inline bool FillerSlateHasBeenSet() const { return m_fillerSlateHasBeenSet; }
80 inline void SetFillerSlate(const SlateSource& value) { m_fillerSlateHasBeenSet = true; m_fillerSlate = value; }
81 inline void SetFillerSlate(SlateSource&& value) { m_fillerSlateHasBeenSet = true; m_fillerSlate = std::move(value); }
82 inline CreateChannelRequest& WithFillerSlate(const SlateSource& value) { SetFillerSlate(value); return *this;}
83 inline CreateChannelRequest& WithFillerSlate(SlateSource&& value) { SetFillerSlate(std::move(value)); return *this;}
85
87
90 inline const Aws::Vector<RequestOutputItem>& GetOutputs() const{ return m_outputs; }
91 inline bool OutputsHasBeenSet() const { return m_outputsHasBeenSet; }
92 inline void SetOutputs(const Aws::Vector<RequestOutputItem>& value) { m_outputsHasBeenSet = true; m_outputs = value; }
93 inline void SetOutputs(Aws::Vector<RequestOutputItem>&& value) { m_outputsHasBeenSet = true; m_outputs = std::move(value); }
94 inline CreateChannelRequest& WithOutputs(const Aws::Vector<RequestOutputItem>& value) { SetOutputs(value); return *this;}
95 inline CreateChannelRequest& WithOutputs(Aws::Vector<RequestOutputItem>&& value) { SetOutputs(std::move(value)); return *this;}
96 inline CreateChannelRequest& AddOutputs(const RequestOutputItem& value) { m_outputsHasBeenSet = true; m_outputs.push_back(value); return *this; }
97 inline CreateChannelRequest& AddOutputs(RequestOutputItem&& value) { m_outputsHasBeenSet = true; m_outputs.push_back(std::move(value)); return *this; }
99
101
108 inline const PlaybackMode& GetPlaybackMode() const{ return m_playbackMode; }
109 inline bool PlaybackModeHasBeenSet() const { return m_playbackModeHasBeenSet; }
110 inline void SetPlaybackMode(const PlaybackMode& value) { m_playbackModeHasBeenSet = true; m_playbackMode = value; }
111 inline void SetPlaybackMode(PlaybackMode&& value) { m_playbackModeHasBeenSet = true; m_playbackMode = std::move(value); }
112 inline CreateChannelRequest& WithPlaybackMode(const PlaybackMode& value) { SetPlaybackMode(value); return *this;}
113 inline CreateChannelRequest& WithPlaybackMode(PlaybackMode&& value) { SetPlaybackMode(std::move(value)); return *this;}
115
117
124 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
125 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
126 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
127 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
128 inline CreateChannelRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
129 inline CreateChannelRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
130 inline CreateChannelRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
131 inline CreateChannelRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
132 inline CreateChannelRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
133 inline CreateChannelRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
134 inline CreateChannelRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
135 inline CreateChannelRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
136 inline CreateChannelRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
138
140
143 inline const Tier& GetTier() const{ return m_tier; }
144 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
145 inline void SetTier(const Tier& value) { m_tierHasBeenSet = true; m_tier = value; }
146 inline void SetTier(Tier&& value) { m_tierHasBeenSet = true; m_tier = std::move(value); }
147 inline CreateChannelRequest& WithTier(const Tier& value) { SetTier(value); return *this;}
148 inline CreateChannelRequest& WithTier(Tier&& value) { SetTier(std::move(value)); return *this;}
150
152
156 inline const TimeShiftConfiguration& GetTimeShiftConfiguration() const{ return m_timeShiftConfiguration; }
157 inline bool TimeShiftConfigurationHasBeenSet() const { return m_timeShiftConfigurationHasBeenSet; }
158 inline void SetTimeShiftConfiguration(const TimeShiftConfiguration& value) { m_timeShiftConfigurationHasBeenSet = true; m_timeShiftConfiguration = value; }
159 inline void SetTimeShiftConfiguration(TimeShiftConfiguration&& value) { m_timeShiftConfigurationHasBeenSet = true; m_timeShiftConfiguration = std::move(value); }
163 private:
164
165 Aws::Vector<Aws::String> m_audiences;
166 bool m_audiencesHasBeenSet = false;
167
168 Aws::String m_channelName;
169 bool m_channelNameHasBeenSet = false;
170
171 SlateSource m_fillerSlate;
172 bool m_fillerSlateHasBeenSet = false;
173
175 bool m_outputsHasBeenSet = false;
176
177 PlaybackMode m_playbackMode;
178 bool m_playbackModeHasBeenSet = false;
179
181 bool m_tagsHasBeenSet = false;
182
183 Tier m_tier;
184 bool m_tierHasBeenSet = false;
185
186 TimeShiftConfiguration m_timeShiftConfiguration;
187 bool m_timeShiftConfigurationHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace MediaTailor
192} // namespace Aws
CreateChannelRequest & WithFillerSlate(SlateSource &&value)
CreateChannelRequest & WithTier(const Tier &value)
CreateChannelRequest & AddTags(const char *key, Aws::String &&value)
CreateChannelRequest & WithPlaybackMode(const PlaybackMode &value)
CreateChannelRequest & AddAudiences(const char *value)
CreateChannelRequest & WithTimeShiftConfiguration(TimeShiftConfiguration &&value)
const Aws::Vector< Aws::String > & GetAudiences() const
void SetTimeShiftConfiguration(TimeShiftConfiguration &&value)
CreateChannelRequest & AddTags(const char *key, const char *value)
const Aws::Vector< RequestOutputItem > & GetOutputs() const
CreateChannelRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateChannelRequest & WithFillerSlate(const SlateSource &value)
CreateChannelRequest & AddTags(Aws::String &&key, const char *value)
void SetAudiences(Aws::Vector< Aws::String > &&value)
CreateChannelRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateChannelRequest & AddAudiences(const Aws::String &value)
CreateChannelRequest & WithChannelName(const char *value)
const TimeShiftConfiguration & GetTimeShiftConfiguration() const
CreateChannelRequest & WithChannelName(const Aws::String &value)
CreateChannelRequest & WithPlaybackMode(PlaybackMode &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_MEDIATAILOR_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateChannelRequest & AddOutputs(RequestOutputItem &&value)
CreateChannelRequest & WithAudiences(const Aws::Vector< Aws::String > &value)
CreateChannelRequest & AddAudiences(Aws::String &&value)
CreateChannelRequest & WithChannelName(Aws::String &&value)
CreateChannelRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateChannelRequest & AddOutputs(const RequestOutputItem &value)
CreateChannelRequest & WithAudiences(Aws::Vector< Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateChannelRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateChannelRequest & WithOutputs(const Aws::Vector< RequestOutputItem > &value)
void SetOutputs(Aws::Vector< RequestOutputItem > &&value)
void SetAudiences(const Aws::Vector< Aws::String > &value)
void SetTimeShiftConfiguration(const TimeShiftConfiguration &value)
CreateChannelRequest & AddTags(Aws::String &&key, const Aws::String &value)
void SetOutputs(const Aws::Vector< RequestOutputItem > &value)
CreateChannelRequest & WithTimeShiftConfiguration(const TimeShiftConfiguration &value)
CreateChannelRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateChannelRequest & WithTier(Tier &&value)
CreateChannelRequest & WithOutputs(Aws::Vector< RequestOutputItem > &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector