AWS SDK for C++

AWS SDK for C++ Version 1.11.854

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/OutputHeaderConfiguration.h>
15#include <aws/mediapackagev2/model/OutputLockingMode.h>
16
17#include <utility>
18
19namespace Aws {
20namespace mediapackagev2 {
21namespace Model {
22
26 public:
27 AWS_MEDIAPACKAGEV2_API CreateChannelRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateChannel"; }
34
35 AWS_MEDIAPACKAGEV2_API Aws::String SerializePayload() const override;
36
37 AWS_MEDIAPACKAGEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
40
45 inline const Aws::String& GetChannelGroupName() const { return m_channelGroupName; }
46 inline bool ChannelGroupNameHasBeenSet() const { return m_channelGroupNameHasBeenSet; }
47 template <typename ChannelGroupNameT = Aws::String>
48 void SetChannelGroupName(ChannelGroupNameT&& value) {
49 m_channelGroupNameHasBeenSet = true;
50 m_channelGroupName = std::forward<ChannelGroupNameT>(value);
51 }
52 template <typename ChannelGroupNameT = Aws::String>
53 CreateChannelRequest& WithChannelGroupName(ChannelGroupNameT&& value) {
54 SetChannelGroupName(std::forward<ChannelGroupNameT>(value));
55 return *this;
56 }
58
60
65 inline const Aws::String& GetChannelName() const { return m_channelName; }
66 inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
67 template <typename ChannelNameT = Aws::String>
68 void SetChannelName(ChannelNameT&& value) {
69 m_channelNameHasBeenSet = true;
70 m_channelName = std::forward<ChannelNameT>(value);
71 }
72 template <typename ChannelNameT = Aws::String>
73 CreateChannelRequest& WithChannelName(ChannelNameT&& value) {
74 SetChannelName(std::forward<ChannelNameT>(value));
75 return *this;
76 }
78
80
84 inline const Aws::String& GetClientToken() const { return m_clientToken; }
85 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
86 template <typename ClientTokenT = Aws::String>
87 void SetClientToken(ClientTokenT&& value) {
88 m_clientTokenHasBeenSet = true;
89 m_clientToken = std::forward<ClientTokenT>(value);
90 }
91 template <typename ClientTokenT = Aws::String>
92 CreateChannelRequest& WithClientToken(ClientTokenT&& value) {
93 SetClientToken(std::forward<ClientTokenT>(value));
94 return *this;
95 }
97
99
108 inline InputType GetInputType() const { return m_inputType; }
109 inline bool InputTypeHasBeenSet() const { return m_inputTypeHasBeenSet; }
110 inline void SetInputType(InputType value) {
111 m_inputTypeHasBeenSet = true;
112 m_inputType = value;
113 }
115 SetInputType(value);
116 return *this;
117 }
119
121
124 inline const Aws::String& GetDescription() const { return m_description; }
125 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
126 template <typename DescriptionT = Aws::String>
127 void SetDescription(DescriptionT&& value) {
128 m_descriptionHasBeenSet = true;
129 m_description = std::forward<DescriptionT>(value);
130 }
131 template <typename DescriptionT = Aws::String>
132 CreateChannelRequest& WithDescription(DescriptionT&& value) {
133 SetDescription(std::forward<DescriptionT>(value));
134 return *this;
135 }
137
139
144 inline const InputSwitchConfiguration& GetInputSwitchConfiguration() const { return m_inputSwitchConfiguration; }
145 inline bool InputSwitchConfigurationHasBeenSet() const { return m_inputSwitchConfigurationHasBeenSet; }
146 template <typename InputSwitchConfigurationT = InputSwitchConfiguration>
147 void SetInputSwitchConfiguration(InputSwitchConfigurationT&& value) {
148 m_inputSwitchConfigurationHasBeenSet = true;
149 m_inputSwitchConfiguration = std::forward<InputSwitchConfigurationT>(value);
150 }
151 template <typename InputSwitchConfigurationT = InputSwitchConfiguration>
152 CreateChannelRequest& WithInputSwitchConfiguration(InputSwitchConfigurationT&& value) {
153 SetInputSwitchConfiguration(std::forward<InputSwitchConfigurationT>(value));
154 return *this;
155 }
157
159
164 inline const OutputHeaderConfiguration& GetOutputHeaderConfiguration() const { return m_outputHeaderConfiguration; }
165 inline bool OutputHeaderConfigurationHasBeenSet() const { return m_outputHeaderConfigurationHasBeenSet; }
166 template <typename OutputHeaderConfigurationT = OutputHeaderConfiguration>
167 void SetOutputHeaderConfiguration(OutputHeaderConfigurationT&& value) {
168 m_outputHeaderConfigurationHasBeenSet = true;
169 m_outputHeaderConfiguration = std::forward<OutputHeaderConfigurationT>(value);
170 }
171 template <typename OutputHeaderConfigurationT = OutputHeaderConfiguration>
172 CreateChannelRequest& WithOutputHeaderConfiguration(OutputHeaderConfigurationT&& value) {
173 SetOutputHeaderConfiguration(std::forward<OutputHeaderConfigurationT>(value));
174 return *this;
175 }
177
179
192 inline OutputLockingMode GetOutputLockingMode() const { return m_outputLockingMode; }
193 inline bool OutputLockingModeHasBeenSet() const { return m_outputLockingModeHasBeenSet; }
195 m_outputLockingModeHasBeenSet = true;
196 m_outputLockingMode = value;
197 }
200 return *this;
201 }
203
205
210 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
211 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
212 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
213 void SetTags(TagsT&& value) {
214 m_tagsHasBeenSet = true;
215 m_tags = std::forward<TagsT>(value);
216 }
217 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
219 SetTags(std::forward<TagsT>(value));
220 return *this;
221 }
222 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
223 CreateChannelRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
224 m_tagsHasBeenSet = true;
225 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
226 return *this;
227 }
229 private:
230 Aws::String m_channelGroupName;
231
232 Aws::String m_channelName;
233
235
236 InputType m_inputType{InputType::NOT_SET};
237
238 Aws::String m_description;
239
240 InputSwitchConfiguration m_inputSwitchConfiguration;
241
242 OutputHeaderConfiguration m_outputHeaderConfiguration;
243
245
247 bool m_channelGroupNameHasBeenSet = false;
248 bool m_channelNameHasBeenSet = false;
249 bool m_clientTokenHasBeenSet = true;
250 bool m_inputTypeHasBeenSet = false;
251 bool m_descriptionHasBeenSet = false;
252 bool m_inputSwitchConfigurationHasBeenSet = false;
253 bool m_outputHeaderConfigurationHasBeenSet = false;
254 bool m_outputLockingModeHasBeenSet = false;
255 bool m_tagsHasBeenSet = false;
256};
257
258} // namespace Model
259} // namespace mediapackagev2
260} // 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)
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
CreateChannelRequest & WithOutputLockingMode(OutputLockingMode value)
CreateChannelRequest & WithChannelName(ChannelNameT &&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