AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
UpdateChannelRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mediapackagev2/Mediapackagev2Request.h>
9#include <aws/mediapackagev2/Mediapackagev2_EXPORTS.h>
10#include <aws/mediapackagev2/model/InputSwitchConfiguration.h>
11#include <aws/mediapackagev2/model/OutputHeaderConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16namespace mediapackagev2 {
17namespace Model {
18
22 public:
23 AWS_MEDIAPACKAGEV2_API UpdateChannelRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateChannel"; }
30
31 AWS_MEDIAPACKAGEV2_API Aws::String SerializePayload() const override;
32
33 AWS_MEDIAPACKAGEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
41 inline const Aws::String& GetChannelGroupName() const { return m_channelGroupName; }
42 inline bool ChannelGroupNameHasBeenSet() const { return m_channelGroupNameHasBeenSet; }
43 template <typename ChannelGroupNameT = Aws::String>
44 void SetChannelGroupName(ChannelGroupNameT&& value) {
45 m_channelGroupNameHasBeenSet = true;
46 m_channelGroupName = std::forward<ChannelGroupNameT>(value);
47 }
48 template <typename ChannelGroupNameT = Aws::String>
49 UpdateChannelRequest& WithChannelGroupName(ChannelGroupNameT&& value) {
50 SetChannelGroupName(std::forward<ChannelGroupNameT>(value));
51 return *this;
52 }
54
56
61 inline const Aws::String& GetChannelName() const { return m_channelName; }
62 inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
63 template <typename ChannelNameT = Aws::String>
64 void SetChannelName(ChannelNameT&& value) {
65 m_channelNameHasBeenSet = true;
66 m_channelName = std::forward<ChannelNameT>(value);
67 }
68 template <typename ChannelNameT = Aws::String>
69 UpdateChannelRequest& WithChannelName(ChannelNameT&& value) {
70 SetChannelName(std::forward<ChannelNameT>(value));
71 return *this;
72 }
74
76
81 inline const Aws::String& GetETag() const { return m_eTag; }
82 inline bool ETagHasBeenSet() const { return m_eTagHasBeenSet; }
83 template <typename ETagT = Aws::String>
84 void SetETag(ETagT&& value) {
85 m_eTagHasBeenSet = true;
86 m_eTag = std::forward<ETagT>(value);
87 }
88 template <typename ETagT = Aws::String>
90 SetETag(std::forward<ETagT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::String& GetDescription() const { return m_description; }
101 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
102 template <typename DescriptionT = Aws::String>
103 void SetDescription(DescriptionT&& value) {
104 m_descriptionHasBeenSet = true;
105 m_description = std::forward<DescriptionT>(value);
106 }
107 template <typename DescriptionT = Aws::String>
108 UpdateChannelRequest& WithDescription(DescriptionT&& value) {
109 SetDescription(std::forward<DescriptionT>(value));
110 return *this;
111 }
113
115
120 inline const InputSwitchConfiguration& GetInputSwitchConfiguration() const { return m_inputSwitchConfiguration; }
121 inline bool InputSwitchConfigurationHasBeenSet() const { return m_inputSwitchConfigurationHasBeenSet; }
122 template <typename InputSwitchConfigurationT = InputSwitchConfiguration>
123 void SetInputSwitchConfiguration(InputSwitchConfigurationT&& value) {
124 m_inputSwitchConfigurationHasBeenSet = true;
125 m_inputSwitchConfiguration = std::forward<InputSwitchConfigurationT>(value);
126 }
127 template <typename InputSwitchConfigurationT = InputSwitchConfiguration>
128 UpdateChannelRequest& WithInputSwitchConfiguration(InputSwitchConfigurationT&& value) {
129 SetInputSwitchConfiguration(std::forward<InputSwitchConfigurationT>(value));
130 return *this;
131 }
133
135
140 inline const OutputHeaderConfiguration& GetOutputHeaderConfiguration() const { return m_outputHeaderConfiguration; }
141 inline bool OutputHeaderConfigurationHasBeenSet() const { return m_outputHeaderConfigurationHasBeenSet; }
142 template <typename OutputHeaderConfigurationT = OutputHeaderConfiguration>
143 void SetOutputHeaderConfiguration(OutputHeaderConfigurationT&& value) {
144 m_outputHeaderConfigurationHasBeenSet = true;
145 m_outputHeaderConfiguration = std::forward<OutputHeaderConfigurationT>(value);
146 }
147 template <typename OutputHeaderConfigurationT = OutputHeaderConfiguration>
148 UpdateChannelRequest& WithOutputHeaderConfiguration(OutputHeaderConfigurationT&& value) {
149 SetOutputHeaderConfiguration(std::forward<OutputHeaderConfigurationT>(value));
150 return *this;
151 }
153 private:
154 Aws::String m_channelGroupName;
155
156 Aws::String m_channelName;
157
158 Aws::String m_eTag;
159
160 Aws::String m_description;
161
162 InputSwitchConfiguration m_inputSwitchConfiguration;
163
164 OutputHeaderConfiguration m_outputHeaderConfiguration;
165 bool m_channelGroupNameHasBeenSet = false;
166 bool m_channelNameHasBeenSet = false;
167 bool m_eTagHasBeenSet = false;
168 bool m_descriptionHasBeenSet = false;
169 bool m_inputSwitchConfigurationHasBeenSet = false;
170 bool m_outputHeaderConfigurationHasBeenSet = false;
171};
172
173} // namespace Model
174} // namespace mediapackagev2
175} // namespace Aws
UpdateChannelRequest & WithInputSwitchConfiguration(InputSwitchConfigurationT &&value)
AWS_MEDIAPACKAGEV2_API Aws::String SerializePayload() const override
UpdateChannelRequest & WithOutputHeaderConfiguration(OutputHeaderConfigurationT &&value)
AWS_MEDIAPACKAGEV2_API UpdateChannelRequest()=default
UpdateChannelRequest & WithChannelName(ChannelNameT &&value)
UpdateChannelRequest & WithChannelGroupName(ChannelGroupNameT &&value)
const OutputHeaderConfiguration & GetOutputHeaderConfiguration() const
virtual const char * GetServiceRequestName() const override
UpdateChannelRequest & WithETag(ETagT &&value)
const InputSwitchConfiguration & GetInputSwitchConfiguration() const
void SetOutputHeaderConfiguration(OutputHeaderConfigurationT &&value)
UpdateChannelRequest & WithDescription(DescriptionT &&value)
void SetInputSwitchConfiguration(InputSwitchConfigurationT &&value)
AWS_MEDIAPACKAGEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String