AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateChannelRequest.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/medialive/MediaLiveRequest.h>
9#include <aws/medialive/model/CdiInputSpecification.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/medialive/model/EncoderSettings.h>
13#include <aws/medialive/model/InputSpecification.h>
14#include <aws/medialive/model/LogLevel.h>
15#include <aws/medialive/model/MaintenanceUpdateSettings.h>
16#include <aws/medialive/model/ChannelEngineVersionRequest.h>
17#include <aws/medialive/model/AnywhereSettings.h>
18#include <aws/medialive/model/OutputDestination.h>
19#include <aws/medialive/model/InputAttachment.h>
20#include <utility>
21
22namespace Aws
23{
24namespace MediaLive
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_MEDIALIVE_API UpdateChannelRequest() = default;
38
39 // Service request name is the Operation name which will send this request out,
40 // each operation should has unique request name, so that we can get operation's name from this request.
41 // Note: this is not true for response, multiple operations may have the same response name,
42 // so we can not get operation's name from response.
43 inline virtual const char* GetServiceRequestName() const override { return "UpdateChannel"; }
44
45 AWS_MEDIALIVE_API Aws::String SerializePayload() const override;
46
47
49
52 inline const CdiInputSpecification& GetCdiInputSpecification() const { return m_cdiInputSpecification; }
53 inline bool CdiInputSpecificationHasBeenSet() const { return m_cdiInputSpecificationHasBeenSet; }
54 template<typename CdiInputSpecificationT = CdiInputSpecification>
55 void SetCdiInputSpecification(CdiInputSpecificationT&& value) { m_cdiInputSpecificationHasBeenSet = true; m_cdiInputSpecification = std::forward<CdiInputSpecificationT>(value); }
56 template<typename CdiInputSpecificationT = CdiInputSpecification>
57 UpdateChannelRequest& WithCdiInputSpecification(CdiInputSpecificationT&& value) { SetCdiInputSpecification(std::forward<CdiInputSpecificationT>(value)); return *this;}
59
61
64 inline const Aws::String& GetChannelId() const { return m_channelId; }
65 inline bool ChannelIdHasBeenSet() const { return m_channelIdHasBeenSet; }
66 template<typename ChannelIdT = Aws::String>
67 void SetChannelId(ChannelIdT&& value) { m_channelIdHasBeenSet = true; m_channelId = std::forward<ChannelIdT>(value); }
68 template<typename ChannelIdT = Aws::String>
69 UpdateChannelRequest& WithChannelId(ChannelIdT&& value) { SetChannelId(std::forward<ChannelIdT>(value)); return *this;}
71
73
76 inline const Aws::Vector<OutputDestination>& GetDestinations() const { return m_destinations; }
77 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
78 template<typename DestinationsT = Aws::Vector<OutputDestination>>
79 void SetDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations = std::forward<DestinationsT>(value); }
80 template<typename DestinationsT = Aws::Vector<OutputDestination>>
81 UpdateChannelRequest& WithDestinations(DestinationsT&& value) { SetDestinations(std::forward<DestinationsT>(value)); return *this;}
82 template<typename DestinationsT = OutputDestination>
83 UpdateChannelRequest& AddDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations.emplace_back(std::forward<DestinationsT>(value)); return *this; }
85
87
90 inline const EncoderSettings& GetEncoderSettings() const { return m_encoderSettings; }
91 inline bool EncoderSettingsHasBeenSet() const { return m_encoderSettingsHasBeenSet; }
92 template<typename EncoderSettingsT = EncoderSettings>
93 void SetEncoderSettings(EncoderSettingsT&& value) { m_encoderSettingsHasBeenSet = true; m_encoderSettings = std::forward<EncoderSettingsT>(value); }
94 template<typename EncoderSettingsT = EncoderSettings>
95 UpdateChannelRequest& WithEncoderSettings(EncoderSettingsT&& value) { SetEncoderSettings(std::forward<EncoderSettingsT>(value)); return *this;}
97
99
100 inline const Aws::Vector<InputAttachment>& GetInputAttachments() const { return m_inputAttachments; }
101 inline bool InputAttachmentsHasBeenSet() const { return m_inputAttachmentsHasBeenSet; }
102 template<typename InputAttachmentsT = Aws::Vector<InputAttachment>>
103 void SetInputAttachments(InputAttachmentsT&& value) { m_inputAttachmentsHasBeenSet = true; m_inputAttachments = std::forward<InputAttachmentsT>(value); }
104 template<typename InputAttachmentsT = Aws::Vector<InputAttachment>>
105 UpdateChannelRequest& WithInputAttachments(InputAttachmentsT&& value) { SetInputAttachments(std::forward<InputAttachmentsT>(value)); return *this;}
106 template<typename InputAttachmentsT = InputAttachment>
107 UpdateChannelRequest& AddInputAttachments(InputAttachmentsT&& value) { m_inputAttachmentsHasBeenSet = true; m_inputAttachments.emplace_back(std::forward<InputAttachmentsT>(value)); return *this; }
109
111
114 inline const InputSpecification& GetInputSpecification() const { return m_inputSpecification; }
115 inline bool InputSpecificationHasBeenSet() const { return m_inputSpecificationHasBeenSet; }
116 template<typename InputSpecificationT = InputSpecification>
117 void SetInputSpecification(InputSpecificationT&& value) { m_inputSpecificationHasBeenSet = true; m_inputSpecification = std::forward<InputSpecificationT>(value); }
118 template<typename InputSpecificationT = InputSpecification>
119 UpdateChannelRequest& WithInputSpecification(InputSpecificationT&& value) { SetInputSpecification(std::forward<InputSpecificationT>(value)); return *this;}
121
123
126 inline LogLevel GetLogLevel() const { return m_logLevel; }
127 inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
128 inline void SetLogLevel(LogLevel value) { m_logLevelHasBeenSet = true; m_logLevel = value; }
129 inline UpdateChannelRequest& WithLogLevel(LogLevel value) { SetLogLevel(value); return *this;}
131
133
136 inline const MaintenanceUpdateSettings& GetMaintenance() const { return m_maintenance; }
137 inline bool MaintenanceHasBeenSet() const { return m_maintenanceHasBeenSet; }
138 template<typename MaintenanceT = MaintenanceUpdateSettings>
139 void SetMaintenance(MaintenanceT&& value) { m_maintenanceHasBeenSet = true; m_maintenance = std::forward<MaintenanceT>(value); }
140 template<typename MaintenanceT = MaintenanceUpdateSettings>
141 UpdateChannelRequest& WithMaintenance(MaintenanceT&& value) { SetMaintenance(std::forward<MaintenanceT>(value)); return *this;}
143
145
148 inline const Aws::String& GetName() const { return m_name; }
149 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
150 template<typename NameT = Aws::String>
151 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
152 template<typename NameT = Aws::String>
153 UpdateChannelRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
155
157
162 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
163 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
164 template<typename RoleArnT = Aws::String>
165 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
166 template<typename RoleArnT = Aws::String>
167 UpdateChannelRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
169
171
174 inline const ChannelEngineVersionRequest& GetChannelEngineVersion() const { return m_channelEngineVersion; }
175 inline bool ChannelEngineVersionHasBeenSet() const { return m_channelEngineVersionHasBeenSet; }
176 template<typename ChannelEngineVersionT = ChannelEngineVersionRequest>
177 void SetChannelEngineVersion(ChannelEngineVersionT&& value) { m_channelEngineVersionHasBeenSet = true; m_channelEngineVersion = std::forward<ChannelEngineVersionT>(value); }
178 template<typename ChannelEngineVersionT = ChannelEngineVersionRequest>
179 UpdateChannelRequest& WithChannelEngineVersion(ChannelEngineVersionT&& value) { SetChannelEngineVersion(std::forward<ChannelEngineVersionT>(value)); return *this;}
181
183
184 inline bool GetDryRun() const { return m_dryRun; }
185 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
186 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
187 inline UpdateChannelRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
189
191
194 inline const AnywhereSettings& GetAnywhereSettings() const { return m_anywhereSettings; }
195 inline bool AnywhereSettingsHasBeenSet() const { return m_anywhereSettingsHasBeenSet; }
196 template<typename AnywhereSettingsT = AnywhereSettings>
197 void SetAnywhereSettings(AnywhereSettingsT&& value) { m_anywhereSettingsHasBeenSet = true; m_anywhereSettings = std::forward<AnywhereSettingsT>(value); }
198 template<typename AnywhereSettingsT = AnywhereSettings>
199 UpdateChannelRequest& WithAnywhereSettings(AnywhereSettingsT&& value) { SetAnywhereSettings(std::forward<AnywhereSettingsT>(value)); return *this;}
201 private:
202
203 CdiInputSpecification m_cdiInputSpecification;
204 bool m_cdiInputSpecificationHasBeenSet = false;
205
206 Aws::String m_channelId;
207 bool m_channelIdHasBeenSet = false;
208
209 Aws::Vector<OutputDestination> m_destinations;
210 bool m_destinationsHasBeenSet = false;
211
212 EncoderSettings m_encoderSettings;
213 bool m_encoderSettingsHasBeenSet = false;
214
215 Aws::Vector<InputAttachment> m_inputAttachments;
216 bool m_inputAttachmentsHasBeenSet = false;
217
218 InputSpecification m_inputSpecification;
219 bool m_inputSpecificationHasBeenSet = false;
220
221 LogLevel m_logLevel{LogLevel::NOT_SET};
222 bool m_logLevelHasBeenSet = false;
223
224 MaintenanceUpdateSettings m_maintenance;
225 bool m_maintenanceHasBeenSet = false;
226
227 Aws::String m_name;
228 bool m_nameHasBeenSet = false;
229
230 Aws::String m_roleArn;
231 bool m_roleArnHasBeenSet = false;
232
233 ChannelEngineVersionRequest m_channelEngineVersion;
234 bool m_channelEngineVersionHasBeenSet = false;
235
236 bool m_dryRun{false};
237 bool m_dryRunHasBeenSet = false;
238
239 AnywhereSettings m_anywhereSettings;
240 bool m_anywhereSettingsHasBeenSet = false;
241 };
242
243} // namespace Model
244} // namespace MediaLive
245} // namespace Aws
UpdateChannelRequest & AddDestinations(DestinationsT &&value)
UpdateChannelRequest & WithRoleArn(RoleArnT &&value)
UpdateChannelRequest & WithInputAttachments(InputAttachmentsT &&value)
void SetInputSpecification(InputSpecificationT &&value)
const CdiInputSpecification & GetCdiInputSpecification() const
UpdateChannelRequest & WithEncoderSettings(EncoderSettingsT &&value)
UpdateChannelRequest & WithLogLevel(LogLevel value)
UpdateChannelRequest & WithChannelEngineVersion(ChannelEngineVersionT &&value)
const ChannelEngineVersionRequest & GetChannelEngineVersion() const
void SetInputAttachments(InputAttachmentsT &&value)
const InputSpecification & GetInputSpecification() const
UpdateChannelRequest & WithCdiInputSpecification(CdiInputSpecificationT &&value)
UpdateChannelRequest & WithAnywhereSettings(AnywhereSettingsT &&value)
UpdateChannelRequest & WithInputSpecification(InputSpecificationT &&value)
UpdateChannelRequest & WithChannelId(ChannelIdT &&value)
AWS_MEDIALIVE_API UpdateChannelRequest()=default
void SetEncoderSettings(EncoderSettingsT &&value)
UpdateChannelRequest & WithMaintenance(MaintenanceT &&value)
AWS_MEDIALIVE_API Aws::String SerializePayload() const override
void SetChannelEngineVersion(ChannelEngineVersionT &&value)
const MaintenanceUpdateSettings & GetMaintenance() const
UpdateChannelRequest & WithName(NameT &&value)
UpdateChannelRequest & AddInputAttachments(InputAttachmentsT &&value)
const Aws::Vector< InputAttachment > & GetInputAttachments() const
const AnywhereSettings & GetAnywhereSettings() const
UpdateChannelRequest & WithDestinations(DestinationsT &&value)
void SetCdiInputSpecification(CdiInputSpecificationT &&value)
UpdateChannelRequest & WithDryRun(bool value)
virtual const char * GetServiceRequestName() const override
void SetAnywhereSettings(AnywhereSettingsT &&value)
const Aws::Vector< OutputDestination > & GetDestinations() const
const EncoderSettings & GetEncoderSettings() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector