AWS SDK for C++

AWS SDK for C++ Version 1.11.910

Loading...
Searching...
No Matches
CreateChannelRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/mediapackagev2/Mediapackagev2Request.h>
11#include <aws/mediapackagev2/Mediapackagev2_EXPORTS.h>
12#include <aws/mediapackagev2/model/InputSwitchConfiguration.h>
13#include <aws/mediapackagev2/model/InputType.h>
14#include <aws/mediapackagev2/model/MultiviewConfiguration.h>
15#include <aws/mediapackagev2/model/OutputHeaderConfiguration.h>
16#include <aws/mediapackagev2/model/OutputLockingMode.h>
17
18#include <utility>
19
20namespace Aws {
21namespace mediapackagev2 {
22namespace Model {
23
27 public:
28 AWS_MEDIAPACKAGEV2_API CreateChannelRequest() = default;
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 "CreateChannel"; }
35
36 AWS_MEDIAPACKAGEV2_API Aws::String SerializePayload() const override;
37
38 AWS_MEDIAPACKAGEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
41
46 inline const Aws::String& GetChannelGroupName() const { return m_channelGroupName; }
47 inline bool ChannelGroupNameHasBeenSet() const { return m_channelGroupNameHasBeenSet; }
48 template <typename ChannelGroupNameT = Aws::String>
49 void SetChannelGroupName(ChannelGroupNameT&& value) {
50 m_channelGroupNameHasBeenSet = true;
51 m_channelGroupName = std::forward<ChannelGroupNameT>(value);
52 }
53 template <typename ChannelGroupNameT = Aws::String>
54 CreateChannelRequest& WithChannelGroupName(ChannelGroupNameT&& value) {
55 SetChannelGroupName(std::forward<ChannelGroupNameT>(value));
56 return *this;
57 }
59
61
66 inline const Aws::String& GetChannelName() const { return m_channelName; }
67 inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
68 template <typename ChannelNameT = Aws::String>
69 void SetChannelName(ChannelNameT&& value) {
70 m_channelNameHasBeenSet = true;
71 m_channelName = std::forward<ChannelNameT>(value);
72 }
73 template <typename ChannelNameT = Aws::String>
74 CreateChannelRequest& WithChannelName(ChannelNameT&& value) {
75 SetChannelName(std::forward<ChannelNameT>(value));
76 return *this;
77 }
79
81
85 inline const Aws::String& GetClientToken() const { return m_clientToken; }
86 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
87 template <typename ClientTokenT = Aws::String>
88 void SetClientToken(ClientTokenT&& value) {
89 m_clientTokenHasBeenSet = true;
90 m_clientToken = std::forward<ClientTokenT>(value);
91 }
92 template <typename ClientTokenT = Aws::String>
93 CreateChannelRequest& WithClientToken(ClientTokenT&& value) {
94 SetClientToken(std::forward<ClientTokenT>(value));
95 return *this;
96 }
98
100
113 inline InputType GetInputType() const { return m_inputType; }
114 inline bool InputTypeHasBeenSet() const { return m_inputTypeHasBeenSet; }
115 inline void SetInputType(InputType value) {
116 m_inputTypeHasBeenSet = true;
117 m_inputType = value;
118 }
120 SetInputType(value);
121 return *this;
122 }
124
126
129 inline const Aws::String& GetDescription() const { return m_description; }
130 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
131 template <typename DescriptionT = Aws::String>
132 void SetDescription(DescriptionT&& value) {
133 m_descriptionHasBeenSet = true;
134 m_description = std::forward<DescriptionT>(value);
135 }
136 template <typename DescriptionT = Aws::String>
137 CreateChannelRequest& WithDescription(DescriptionT&& value) {
138 SetDescription(std::forward<DescriptionT>(value));
139 return *this;
140 }
142
144
149 inline const InputSwitchConfiguration& GetInputSwitchConfiguration() const { return m_inputSwitchConfiguration; }
150 inline bool InputSwitchConfigurationHasBeenSet() const { return m_inputSwitchConfigurationHasBeenSet; }
151 template <typename InputSwitchConfigurationT = InputSwitchConfiguration>
152 void SetInputSwitchConfiguration(InputSwitchConfigurationT&& value) {
153 m_inputSwitchConfigurationHasBeenSet = true;
154 m_inputSwitchConfiguration = std::forward<InputSwitchConfigurationT>(value);
155 }
156 template <typename InputSwitchConfigurationT = InputSwitchConfiguration>
157 CreateChannelRequest& WithInputSwitchConfiguration(InputSwitchConfigurationT&& value) {
158 SetInputSwitchConfiguration(std::forward<InputSwitchConfigurationT>(value));
159 return *this;
160 }
162
164
169 inline const OutputHeaderConfiguration& GetOutputHeaderConfiguration() const { return m_outputHeaderConfiguration; }
170 inline bool OutputHeaderConfigurationHasBeenSet() const { return m_outputHeaderConfigurationHasBeenSet; }
171 template <typename OutputHeaderConfigurationT = OutputHeaderConfiguration>
172 void SetOutputHeaderConfiguration(OutputHeaderConfigurationT&& value) {
173 m_outputHeaderConfigurationHasBeenSet = true;
174 m_outputHeaderConfiguration = std::forward<OutputHeaderConfigurationT>(value);
175 }
176 template <typename OutputHeaderConfigurationT = OutputHeaderConfiguration>
177 CreateChannelRequest& WithOutputHeaderConfiguration(OutputHeaderConfigurationT&& value) {
178 SetOutputHeaderConfiguration(std::forward<OutputHeaderConfigurationT>(value));
179 return *this;
180 }
182
184
189 inline const MultiviewConfiguration& GetMultiviewConfiguration() const { return m_multiviewConfiguration; }
190 inline bool MultiviewConfigurationHasBeenSet() const { return m_multiviewConfigurationHasBeenSet; }
191 template <typename MultiviewConfigurationT = MultiviewConfiguration>
192 void SetMultiviewConfiguration(MultiviewConfigurationT&& value) {
193 m_multiviewConfigurationHasBeenSet = true;
194 m_multiviewConfiguration = std::forward<MultiviewConfigurationT>(value);
195 }
196 template <typename MultiviewConfigurationT = MultiviewConfiguration>
197 CreateChannelRequest& WithMultiviewConfiguration(MultiviewConfigurationT&& value) {
198 SetMultiviewConfiguration(std::forward<MultiviewConfigurationT>(value));
199 return *this;
200 }
202
204
217 inline OutputLockingMode GetOutputLockingMode() const { return m_outputLockingMode; }
218 inline bool OutputLockingModeHasBeenSet() const { return m_outputLockingModeHasBeenSet; }
220 m_outputLockingModeHasBeenSet = true;
221 m_outputLockingMode = value;
222 }
225 return *this;
226 }
228
230
235 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
236 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
237 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
238 void SetTags(TagsT&& value) {
239 m_tagsHasBeenSet = true;
240 m_tags = std::forward<TagsT>(value);
241 }
242 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
244 SetTags(std::forward<TagsT>(value));
245 return *this;
246 }
247 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
248 CreateChannelRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
249 m_tagsHasBeenSet = true;
250 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
251 return *this;
252 }
254 private:
255 Aws::String m_channelGroupName;
256
257 Aws::String m_channelName;
258
260
261 InputType m_inputType{InputType::NOT_SET};
262
263 Aws::String m_description;
264
265 InputSwitchConfiguration m_inputSwitchConfiguration;
266
267 OutputHeaderConfiguration m_outputHeaderConfiguration;
268
269 MultiviewConfiguration m_multiviewConfiguration;
270
272
274 bool m_channelGroupNameHasBeenSet = false;
275 bool m_channelNameHasBeenSet = false;
276 bool m_clientTokenHasBeenSet = true;
277 bool m_inputTypeHasBeenSet = false;
278 bool m_descriptionHasBeenSet = false;
279 bool m_inputSwitchConfigurationHasBeenSet = false;
280 bool m_outputHeaderConfigurationHasBeenSet = false;
281 bool m_multiviewConfigurationHasBeenSet = false;
282 bool m_outputLockingModeHasBeenSet = false;
283 bool m_tagsHasBeenSet = false;
284};
285
286} // namespace Model
287} // namespace mediapackagev2
288} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
CreateChannelRequest & WithOutputHeaderConfiguration(OutputHeaderConfigurationT &&value)
CreateChannelRequest & WithInputSwitchConfiguration(InputSwitchConfigurationT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const InputSwitchConfiguration & GetInputSwitchConfiguration() const
AWS_MEDIAPACKAGEV2_API Aws::String SerializePayload() const override
CreateChannelRequest & WithInputType(InputType value)
AWS_MEDIAPACKAGEV2_API CreateChannelRequest()=default
const OutputHeaderConfiguration & GetOutputHeaderConfiguration() const
void SetInputSwitchConfiguration(InputSwitchConfigurationT &&value)
void SetMultiviewConfiguration(MultiviewConfigurationT &&value)
CreateChannelRequest & WithClientToken(ClientTokenT &&value)
CreateChannelRequest & WithTags(TagsT &&value)
CreateChannelRequest & WithDescription(DescriptionT &&value)
CreateChannelRequest & WithChannelGroupName(ChannelGroupNameT &&value)
void SetOutputHeaderConfiguration(OutputHeaderConfigurationT &&value)
virtual const char * GetServiceRequestName() const override
const MultiviewConfiguration & GetMultiviewConfiguration() const
CreateChannelRequest & WithOutputLockingMode(OutputLockingMode value)
CreateChannelRequest & WithChannelName(ChannelNameT &&value)
CreateChannelRequest & WithMultiviewConfiguration(MultiviewConfigurationT &&value)
AWS_MEDIAPACKAGEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateChannelRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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