AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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/AWSString.h>
10#include <aws/mediatailor/model/SlateSource.h>
11#include <aws/core/utils/memory/stl/AWSVector.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() = default;
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::String& GetChannelName() const { return m_channelName; }
47 inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
48 template<typename ChannelNameT = Aws::String>
49 void SetChannelName(ChannelNameT&& value) { m_channelNameHasBeenSet = true; m_channelName = std::forward<ChannelNameT>(value); }
50 template<typename ChannelNameT = Aws::String>
51 CreateChannelRequest& WithChannelName(ChannelNameT&& value) { SetChannelName(std::forward<ChannelNameT>(value)); return *this;}
53
55
61 inline const SlateSource& GetFillerSlate() const { return m_fillerSlate; }
62 inline bool FillerSlateHasBeenSet() const { return m_fillerSlateHasBeenSet; }
63 template<typename FillerSlateT = SlateSource>
64 void SetFillerSlate(FillerSlateT&& value) { m_fillerSlateHasBeenSet = true; m_fillerSlate = std::forward<FillerSlateT>(value); }
65 template<typename FillerSlateT = SlateSource>
66 CreateChannelRequest& WithFillerSlate(FillerSlateT&& value) { SetFillerSlate(std::forward<FillerSlateT>(value)); return *this;}
68
70
73 inline const Aws::Vector<RequestOutputItem>& GetOutputs() const { return m_outputs; }
74 inline bool OutputsHasBeenSet() const { return m_outputsHasBeenSet; }
75 template<typename OutputsT = Aws::Vector<RequestOutputItem>>
76 void SetOutputs(OutputsT&& value) { m_outputsHasBeenSet = true; m_outputs = std::forward<OutputsT>(value); }
77 template<typename OutputsT = Aws::Vector<RequestOutputItem>>
78 CreateChannelRequest& WithOutputs(OutputsT&& value) { SetOutputs(std::forward<OutputsT>(value)); return *this;}
79 template<typename OutputsT = RequestOutputItem>
80 CreateChannelRequest& AddOutputs(OutputsT&& value) { m_outputsHasBeenSet = true; m_outputs.emplace_back(std::forward<OutputsT>(value)); return *this; }
82
84
91 inline PlaybackMode GetPlaybackMode() const { return m_playbackMode; }
92 inline bool PlaybackModeHasBeenSet() const { return m_playbackModeHasBeenSet; }
93 inline void SetPlaybackMode(PlaybackMode value) { m_playbackModeHasBeenSet = true; m_playbackMode = value; }
94 inline CreateChannelRequest& WithPlaybackMode(PlaybackMode value) { SetPlaybackMode(value); return *this;}
96
98
105 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
106 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
107 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
108 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
109 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
110 CreateChannelRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
111 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
112 CreateChannelRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
113 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
114 }
116
118
121 inline Tier GetTier() const { return m_tier; }
122 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
123 inline void SetTier(Tier value) { m_tierHasBeenSet = true; m_tier = value; }
124 inline CreateChannelRequest& WithTier(Tier value) { SetTier(value); return *this;}
126
128
132 inline const TimeShiftConfiguration& GetTimeShiftConfiguration() const { return m_timeShiftConfiguration; }
133 inline bool TimeShiftConfigurationHasBeenSet() const { return m_timeShiftConfigurationHasBeenSet; }
134 template<typename TimeShiftConfigurationT = TimeShiftConfiguration>
135 void SetTimeShiftConfiguration(TimeShiftConfigurationT&& value) { m_timeShiftConfigurationHasBeenSet = true; m_timeShiftConfiguration = std::forward<TimeShiftConfigurationT>(value); }
136 template<typename TimeShiftConfigurationT = TimeShiftConfiguration>
137 CreateChannelRequest& WithTimeShiftConfiguration(TimeShiftConfigurationT&& value) { SetTimeShiftConfiguration(std::forward<TimeShiftConfigurationT>(value)); return *this;}
139
141
144 inline const Aws::Vector<Aws::String>& GetAudiences() const { return m_audiences; }
145 inline bool AudiencesHasBeenSet() const { return m_audiencesHasBeenSet; }
146 template<typename AudiencesT = Aws::Vector<Aws::String>>
147 void SetAudiences(AudiencesT&& value) { m_audiencesHasBeenSet = true; m_audiences = std::forward<AudiencesT>(value); }
148 template<typename AudiencesT = Aws::Vector<Aws::String>>
149 CreateChannelRequest& WithAudiences(AudiencesT&& value) { SetAudiences(std::forward<AudiencesT>(value)); return *this;}
150 template<typename AudiencesT = Aws::String>
151 CreateChannelRequest& AddAudiences(AudiencesT&& value) { m_audiencesHasBeenSet = true; m_audiences.emplace_back(std::forward<AudiencesT>(value)); return *this; }
153 private:
154
155 Aws::String m_channelName;
156 bool m_channelNameHasBeenSet = false;
157
158 SlateSource m_fillerSlate;
159 bool m_fillerSlateHasBeenSet = false;
160
162 bool m_outputsHasBeenSet = false;
163
164 PlaybackMode m_playbackMode{PlaybackMode::NOT_SET};
165 bool m_playbackModeHasBeenSet = false;
166
168 bool m_tagsHasBeenSet = false;
169
170 Tier m_tier{Tier::NOT_SET};
171 bool m_tierHasBeenSet = false;
172
173 TimeShiftConfiguration m_timeShiftConfiguration;
174 bool m_timeShiftConfigurationHasBeenSet = false;
175
176 Aws::Vector<Aws::String> m_audiences;
177 bool m_audiencesHasBeenSet = false;
178 };
179
180} // namespace Model
181} // namespace MediaTailor
182} // namespace Aws
const Aws::Vector< Aws::String > & GetAudiences() const
CreateChannelRequest & WithAudiences(AudiencesT &&value)
const Aws::Vector< RequestOutputItem > & GetOutputs() const
CreateChannelRequest & AddOutputs(OutputsT &&value)
CreateChannelRequest & WithOutputs(OutputsT &&value)
CreateChannelRequest & WithTimeShiftConfiguration(TimeShiftConfigurationT &&value)
CreateChannelRequest & WithTags(TagsT &&value)
CreateChannelRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetTimeShiftConfiguration(TimeShiftConfigurationT &&value)
const TimeShiftConfiguration & GetTimeShiftConfiguration() const
AWS_MEDIATAILOR_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateChannelRequest & WithPlaybackMode(PlaybackMode value)
CreateChannelRequest & WithChannelName(ChannelNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateChannelRequest & WithFillerSlate(FillerSlateT &&value)
CreateChannelRequest & AddAudiences(AudiencesT &&value)
AWS_MEDIATAILOR_API CreateChannelRequest()=default
CreateChannelRequest & WithTier(Tier 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