AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateChannelRequest.h
1
6#pragma once
7#include <aws/mediapackagev2/Mediapackagev2_EXPORTS.h>
8#include <aws/mediapackagev2/Mediapackagev2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/mediapackagev2/model/InputType.h>
11#include <aws/mediapackagev2/model/InputSwitchConfiguration.h>
12#include <aws/mediapackagev2/model/OutputHeaderConfiguration.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace mediapackagev2
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_MEDIAPACKAGEV2_API CreateChannelRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateChannel"; }
36
37 AWS_MEDIAPACKAGEV2_API Aws::String SerializePayload() const override;
38
39 AWS_MEDIAPACKAGEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
48 inline const Aws::String& GetChannelGroupName() const { return m_channelGroupName; }
49 inline bool ChannelGroupNameHasBeenSet() const { return m_channelGroupNameHasBeenSet; }
50 template<typename ChannelGroupNameT = Aws::String>
51 void SetChannelGroupName(ChannelGroupNameT&& value) { m_channelGroupNameHasBeenSet = true; m_channelGroupName = std::forward<ChannelGroupNameT>(value); }
52 template<typename ChannelGroupNameT = Aws::String>
53 CreateChannelRequest& WithChannelGroupName(ChannelGroupNameT&& value) { SetChannelGroupName(std::forward<ChannelGroupNameT>(value)); return *this;}
55
57
62 inline const Aws::String& GetChannelName() const { return m_channelName; }
63 inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
64 template<typename ChannelNameT = Aws::String>
65 void SetChannelName(ChannelNameT&& value) { m_channelNameHasBeenSet = true; m_channelName = std::forward<ChannelNameT>(value); }
66 template<typename ChannelNameT = Aws::String>
67 CreateChannelRequest& WithChannelName(ChannelNameT&& value) { SetChannelName(std::forward<ChannelNameT>(value)); return *this;}
69
71
75 inline const Aws::String& GetClientToken() const { return m_clientToken; }
76 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
77 template<typename ClientTokenT = Aws::String>
78 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
79 template<typename ClientTokenT = Aws::String>
80 CreateChannelRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
82
84
93 inline InputType GetInputType() const { return m_inputType; }
94 inline bool InputTypeHasBeenSet() const { return m_inputTypeHasBeenSet; }
95 inline void SetInputType(InputType value) { m_inputTypeHasBeenSet = true; m_inputType = value; }
96 inline CreateChannelRequest& WithInputType(InputType value) { SetInputType(value); return *this;}
98
100
103 inline const Aws::String& GetDescription() const { return m_description; }
104 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
105 template<typename DescriptionT = Aws::String>
106 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
107 template<typename DescriptionT = Aws::String>
108 CreateChannelRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
110
112
117 inline const InputSwitchConfiguration& GetInputSwitchConfiguration() const { return m_inputSwitchConfiguration; }
118 inline bool InputSwitchConfigurationHasBeenSet() const { return m_inputSwitchConfigurationHasBeenSet; }
119 template<typename InputSwitchConfigurationT = InputSwitchConfiguration>
120 void SetInputSwitchConfiguration(InputSwitchConfigurationT&& value) { m_inputSwitchConfigurationHasBeenSet = true; m_inputSwitchConfiguration = std::forward<InputSwitchConfigurationT>(value); }
121 template<typename InputSwitchConfigurationT = InputSwitchConfiguration>
122 CreateChannelRequest& WithInputSwitchConfiguration(InputSwitchConfigurationT&& value) { SetInputSwitchConfiguration(std::forward<InputSwitchConfigurationT>(value)); return *this;}
124
126
131 inline const OutputHeaderConfiguration& GetOutputHeaderConfiguration() const { return m_outputHeaderConfiguration; }
132 inline bool OutputHeaderConfigurationHasBeenSet() const { return m_outputHeaderConfigurationHasBeenSet; }
133 template<typename OutputHeaderConfigurationT = OutputHeaderConfiguration>
134 void SetOutputHeaderConfiguration(OutputHeaderConfigurationT&& value) { m_outputHeaderConfigurationHasBeenSet = true; m_outputHeaderConfiguration = std::forward<OutputHeaderConfigurationT>(value); }
135 template<typename OutputHeaderConfigurationT = OutputHeaderConfiguration>
136 CreateChannelRequest& WithOutputHeaderConfiguration(OutputHeaderConfigurationT&& value) { SetOutputHeaderConfiguration(std::forward<OutputHeaderConfigurationT>(value)); return *this;}
138
140
145 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
146 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
147 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
148 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
149 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
150 CreateChannelRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
151 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
152 CreateChannelRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
153 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
154 }
156 private:
157
158 Aws::String m_channelGroupName;
159 bool m_channelGroupNameHasBeenSet = false;
160
161 Aws::String m_channelName;
162 bool m_channelNameHasBeenSet = false;
163
165 bool m_clientTokenHasBeenSet = true;
166
167 InputType m_inputType{InputType::NOT_SET};
168 bool m_inputTypeHasBeenSet = false;
169
170 Aws::String m_description;
171 bool m_descriptionHasBeenSet = false;
172
173 InputSwitchConfiguration m_inputSwitchConfiguration;
174 bool m_inputSwitchConfigurationHasBeenSet = false;
175
176 OutputHeaderConfiguration m_outputHeaderConfiguration;
177 bool m_outputHeaderConfigurationHasBeenSet = false;
178
180 bool m_tagsHasBeenSet = false;
181 };
182
183} // namespace Model
184} // namespace mediapackagev2
185} // 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