AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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
16#include <utility>
17
18namespace Aws {
19namespace mediapackagev2 {
20namespace Model {
21
25 public:
26 AWS_MEDIAPACKAGEV2_API CreateChannelRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateChannel"; }
33
34 AWS_MEDIAPACKAGEV2_API Aws::String SerializePayload() const override;
35
36 AWS_MEDIAPACKAGEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
39
44 inline const Aws::String& GetChannelGroupName() const { return m_channelGroupName; }
45 inline bool ChannelGroupNameHasBeenSet() const { return m_channelGroupNameHasBeenSet; }
46 template <typename ChannelGroupNameT = Aws::String>
47 void SetChannelGroupName(ChannelGroupNameT&& value) {
48 m_channelGroupNameHasBeenSet = true;
49 m_channelGroupName = std::forward<ChannelGroupNameT>(value);
50 }
51 template <typename ChannelGroupNameT = Aws::String>
52 CreateChannelRequest& WithChannelGroupName(ChannelGroupNameT&& value) {
53 SetChannelGroupName(std::forward<ChannelGroupNameT>(value));
54 return *this;
55 }
57
59
64 inline const Aws::String& GetChannelName() const { return m_channelName; }
65 inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
66 template <typename ChannelNameT = Aws::String>
67 void SetChannelName(ChannelNameT&& value) {
68 m_channelNameHasBeenSet = true;
69 m_channelName = std::forward<ChannelNameT>(value);
70 }
71 template <typename ChannelNameT = Aws::String>
72 CreateChannelRequest& WithChannelName(ChannelNameT&& value) {
73 SetChannelName(std::forward<ChannelNameT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::String& GetClientToken() const { return m_clientToken; }
84 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
85 template <typename ClientTokenT = Aws::String>
86 void SetClientToken(ClientTokenT&& value) {
87 m_clientTokenHasBeenSet = true;
88 m_clientToken = std::forward<ClientTokenT>(value);
89 }
90 template <typename ClientTokenT = Aws::String>
91 CreateChannelRequest& WithClientToken(ClientTokenT&& value) {
92 SetClientToken(std::forward<ClientTokenT>(value));
93 return *this;
94 }
96
98
107 inline InputType GetInputType() const { return m_inputType; }
108 inline bool InputTypeHasBeenSet() const { return m_inputTypeHasBeenSet; }
109 inline void SetInputType(InputType value) {
110 m_inputTypeHasBeenSet = true;
111 m_inputType = value;
112 }
114 SetInputType(value);
115 return *this;
116 }
118
120
123 inline const Aws::String& GetDescription() const { return m_description; }
124 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
125 template <typename DescriptionT = Aws::String>
126 void SetDescription(DescriptionT&& value) {
127 m_descriptionHasBeenSet = true;
128 m_description = std::forward<DescriptionT>(value);
129 }
130 template <typename DescriptionT = Aws::String>
131 CreateChannelRequest& WithDescription(DescriptionT&& value) {
132 SetDescription(std::forward<DescriptionT>(value));
133 return *this;
134 }
136
138
143 inline const InputSwitchConfiguration& GetInputSwitchConfiguration() const { return m_inputSwitchConfiguration; }
144 inline bool InputSwitchConfigurationHasBeenSet() const { return m_inputSwitchConfigurationHasBeenSet; }
145 template <typename InputSwitchConfigurationT = InputSwitchConfiguration>
146 void SetInputSwitchConfiguration(InputSwitchConfigurationT&& value) {
147 m_inputSwitchConfigurationHasBeenSet = true;
148 m_inputSwitchConfiguration = std::forward<InputSwitchConfigurationT>(value);
149 }
150 template <typename InputSwitchConfigurationT = InputSwitchConfiguration>
151 CreateChannelRequest& WithInputSwitchConfiguration(InputSwitchConfigurationT&& value) {
152 SetInputSwitchConfiguration(std::forward<InputSwitchConfigurationT>(value));
153 return *this;
154 }
156
158
163 inline const OutputHeaderConfiguration& GetOutputHeaderConfiguration() const { return m_outputHeaderConfiguration; }
164 inline bool OutputHeaderConfigurationHasBeenSet() const { return m_outputHeaderConfigurationHasBeenSet; }
165 template <typename OutputHeaderConfigurationT = OutputHeaderConfiguration>
166 void SetOutputHeaderConfiguration(OutputHeaderConfigurationT&& value) {
167 m_outputHeaderConfigurationHasBeenSet = true;
168 m_outputHeaderConfiguration = std::forward<OutputHeaderConfigurationT>(value);
169 }
170 template <typename OutputHeaderConfigurationT = OutputHeaderConfiguration>
171 CreateChannelRequest& WithOutputHeaderConfiguration(OutputHeaderConfigurationT&& value) {
172 SetOutputHeaderConfiguration(std::forward<OutputHeaderConfigurationT>(value));
173 return *this;
174 }
176
178
183 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
184 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
185 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
186 void SetTags(TagsT&& value) {
187 m_tagsHasBeenSet = true;
188 m_tags = std::forward<TagsT>(value);
189 }
190 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
192 SetTags(std::forward<TagsT>(value));
193 return *this;
194 }
195 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
196 CreateChannelRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
197 m_tagsHasBeenSet = true;
198 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
199 return *this;
200 }
202 private:
203 Aws::String m_channelGroupName;
204
205 Aws::String m_channelName;
206
208
209 InputType m_inputType{InputType::NOT_SET};
210
211 Aws::String m_description;
212
213 InputSwitchConfiguration m_inputSwitchConfiguration;
214
215 OutputHeaderConfiguration m_outputHeaderConfiguration;
216
218 bool m_channelGroupNameHasBeenSet = false;
219 bool m_channelNameHasBeenSet = false;
220 bool m_clientTokenHasBeenSet = true;
221 bool m_inputTypeHasBeenSet = false;
222 bool m_descriptionHasBeenSet = false;
223 bool m_inputSwitchConfigurationHasBeenSet = false;
224 bool m_outputHeaderConfigurationHasBeenSet = false;
225 bool m_tagsHasBeenSet = false;
226};
227
228} // namespace Model
229} // namespace mediapackagev2
230} // 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 & 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