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/medialive/MediaLive_EXPORTS.h>
8#include <aws/medialive/MediaLiveRequest.h>
9#include <aws/medialive/model/CdiInputSpecification.h>
10#include <aws/medialive/model/ChannelClass.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/MaintenanceCreateSettings.h>
16#include <aws/core/utils/memory/stl/AWSString.h>
17#include <aws/core/utils/memory/stl/AWSMap.h>
18#include <aws/medialive/model/VpcOutputSettings.h>
19#include <aws/medialive/model/AnywhereSettings.h>
20#include <aws/medialive/model/ChannelEngineVersionRequest.h>
21#include <aws/medialive/model/OutputDestination.h>
22#include <aws/medialive/model/InputAttachment.h>
23#include <utility>
24#include <aws/core/utils/UUID.h>
25
26namespace Aws
27{
28namespace MediaLive
29{
30namespace Model
31{
32
39 {
40 public:
41 AWS_MEDIALIVE_API CreateChannelRequest() = default;
42
43 // Service request name is the Operation name which will send this request out,
44 // each operation should has unique request name, so that we can get operation's name from this request.
45 // Note: this is not true for response, multiple operations may have the same response name,
46 // so we can not get operation's name from response.
47 inline virtual const char* GetServiceRequestName() const override { return "CreateChannel"; }
48
49 AWS_MEDIALIVE_API Aws::String SerializePayload() const override;
50
51
53
56 inline const CdiInputSpecification& GetCdiInputSpecification() const { return m_cdiInputSpecification; }
57 inline bool CdiInputSpecificationHasBeenSet() const { return m_cdiInputSpecificationHasBeenSet; }
58 template<typename CdiInputSpecificationT = CdiInputSpecification>
59 void SetCdiInputSpecification(CdiInputSpecificationT&& value) { m_cdiInputSpecificationHasBeenSet = true; m_cdiInputSpecification = std::forward<CdiInputSpecificationT>(value); }
60 template<typename CdiInputSpecificationT = CdiInputSpecification>
61 CreateChannelRequest& WithCdiInputSpecification(CdiInputSpecificationT&& value) { SetCdiInputSpecification(std::forward<CdiInputSpecificationT>(value)); return *this;}
63
65
69 inline ChannelClass GetChannelClass() const { return m_channelClass; }
70 inline bool ChannelClassHasBeenSet() const { return m_channelClassHasBeenSet; }
71 inline void SetChannelClass(ChannelClass value) { m_channelClassHasBeenSet = true; m_channelClass = value; }
72 inline CreateChannelRequest& WithChannelClass(ChannelClass value) { SetChannelClass(value); return *this;}
74
76
77 inline const Aws::Vector<OutputDestination>& GetDestinations() const { return m_destinations; }
78 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
79 template<typename DestinationsT = Aws::Vector<OutputDestination>>
80 void SetDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations = std::forward<DestinationsT>(value); }
81 template<typename DestinationsT = Aws::Vector<OutputDestination>>
82 CreateChannelRequest& WithDestinations(DestinationsT&& value) { SetDestinations(std::forward<DestinationsT>(value)); return *this;}
83 template<typename DestinationsT = OutputDestination>
84 CreateChannelRequest& AddDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations.emplace_back(std::forward<DestinationsT>(value)); return *this; }
86
88
89 inline const EncoderSettings& GetEncoderSettings() const { return m_encoderSettings; }
90 inline bool EncoderSettingsHasBeenSet() const { return m_encoderSettingsHasBeenSet; }
91 template<typename EncoderSettingsT = EncoderSettings>
92 void SetEncoderSettings(EncoderSettingsT&& value) { m_encoderSettingsHasBeenSet = true; m_encoderSettings = std::forward<EncoderSettingsT>(value); }
93 template<typename EncoderSettingsT = EncoderSettings>
94 CreateChannelRequest& WithEncoderSettings(EncoderSettingsT&& value) { SetEncoderSettings(std::forward<EncoderSettingsT>(value)); return *this;}
96
98
101 inline const Aws::Vector<InputAttachment>& GetInputAttachments() const { return m_inputAttachments; }
102 inline bool InputAttachmentsHasBeenSet() const { return m_inputAttachmentsHasBeenSet; }
103 template<typename InputAttachmentsT = Aws::Vector<InputAttachment>>
104 void SetInputAttachments(InputAttachmentsT&& value) { m_inputAttachmentsHasBeenSet = true; m_inputAttachments = std::forward<InputAttachmentsT>(value); }
105 template<typename InputAttachmentsT = Aws::Vector<InputAttachment>>
106 CreateChannelRequest& WithInputAttachments(InputAttachmentsT&& value) { SetInputAttachments(std::forward<InputAttachmentsT>(value)); return *this;}
107 template<typename InputAttachmentsT = InputAttachment>
108 CreateChannelRequest& AddInputAttachments(InputAttachmentsT&& value) { m_inputAttachmentsHasBeenSet = true; m_inputAttachments.emplace_back(std::forward<InputAttachmentsT>(value)); return *this; }
110
112
115 inline const InputSpecification& GetInputSpecification() const { return m_inputSpecification; }
116 inline bool InputSpecificationHasBeenSet() const { return m_inputSpecificationHasBeenSet; }
117 template<typename InputSpecificationT = InputSpecification>
118 void SetInputSpecification(InputSpecificationT&& value) { m_inputSpecificationHasBeenSet = true; m_inputSpecification = std::forward<InputSpecificationT>(value); }
119 template<typename InputSpecificationT = InputSpecification>
120 CreateChannelRequest& WithInputSpecification(InputSpecificationT&& value) { SetInputSpecification(std::forward<InputSpecificationT>(value)); return *this;}
122
124
127 inline LogLevel GetLogLevel() const { return m_logLevel; }
128 inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
129 inline void SetLogLevel(LogLevel value) { m_logLevelHasBeenSet = true; m_logLevel = value; }
130 inline CreateChannelRequest& WithLogLevel(LogLevel value) { SetLogLevel(value); return *this;}
132
134
137 inline const MaintenanceCreateSettings& GetMaintenance() const { return m_maintenance; }
138 inline bool MaintenanceHasBeenSet() const { return m_maintenanceHasBeenSet; }
139 template<typename MaintenanceT = MaintenanceCreateSettings>
140 void SetMaintenance(MaintenanceT&& value) { m_maintenanceHasBeenSet = true; m_maintenance = std::forward<MaintenanceT>(value); }
141 template<typename MaintenanceT = MaintenanceCreateSettings>
142 CreateChannelRequest& WithMaintenance(MaintenanceT&& value) { SetMaintenance(std::forward<MaintenanceT>(value)); return *this;}
144
146
149 inline const Aws::String& GetName() const { return m_name; }
150 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
151 template<typename NameT = Aws::String>
152 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
153 template<typename NameT = Aws::String>
154 CreateChannelRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
156
158
163 inline const Aws::String& GetRequestId() const { return m_requestId; }
164 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
165 template<typename RequestIdT = Aws::String>
166 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
167 template<typename RequestIdT = Aws::String>
168 CreateChannelRequest& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
170
172
176 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
177 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
178 template<typename RoleArnT = Aws::String>
179 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
180 template<typename RoleArnT = Aws::String>
181 CreateChannelRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
183
185
188 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
189 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
190 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
191 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
192 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
193 CreateChannelRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
194 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
195 CreateChannelRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
196 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
197 }
199
201
204 inline const VpcOutputSettings& GetVpc() const { return m_vpc; }
205 inline bool VpcHasBeenSet() const { return m_vpcHasBeenSet; }
206 template<typename VpcT = VpcOutputSettings>
207 void SetVpc(VpcT&& value) { m_vpcHasBeenSet = true; m_vpc = std::forward<VpcT>(value); }
208 template<typename VpcT = VpcOutputSettings>
209 CreateChannelRequest& WithVpc(VpcT&& value) { SetVpc(std::forward<VpcT>(value)); return *this;}
211
213
216 inline const AnywhereSettings& GetAnywhereSettings() const { return m_anywhereSettings; }
217 inline bool AnywhereSettingsHasBeenSet() const { return m_anywhereSettingsHasBeenSet; }
218 template<typename AnywhereSettingsT = AnywhereSettings>
219 void SetAnywhereSettings(AnywhereSettingsT&& value) { m_anywhereSettingsHasBeenSet = true; m_anywhereSettings = std::forward<AnywhereSettingsT>(value); }
220 template<typename AnywhereSettingsT = AnywhereSettings>
221 CreateChannelRequest& WithAnywhereSettings(AnywhereSettingsT&& value) { SetAnywhereSettings(std::forward<AnywhereSettingsT>(value)); return *this;}
223
225
228 inline const ChannelEngineVersionRequest& GetChannelEngineVersion() const { return m_channelEngineVersion; }
229 inline bool ChannelEngineVersionHasBeenSet() const { return m_channelEngineVersionHasBeenSet; }
230 template<typename ChannelEngineVersionT = ChannelEngineVersionRequest>
231 void SetChannelEngineVersion(ChannelEngineVersionT&& value) { m_channelEngineVersionHasBeenSet = true; m_channelEngineVersion = std::forward<ChannelEngineVersionT>(value); }
232 template<typename ChannelEngineVersionT = ChannelEngineVersionRequest>
233 CreateChannelRequest& WithChannelEngineVersion(ChannelEngineVersionT&& value) { SetChannelEngineVersion(std::forward<ChannelEngineVersionT>(value)); return *this;}
235
237
238 inline bool GetDryRun() const { return m_dryRun; }
239 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
240 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
241 inline CreateChannelRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
243 private:
244
245 CdiInputSpecification m_cdiInputSpecification;
246 bool m_cdiInputSpecificationHasBeenSet = false;
247
248 ChannelClass m_channelClass{ChannelClass::NOT_SET};
249 bool m_channelClassHasBeenSet = false;
250
251 Aws::Vector<OutputDestination> m_destinations;
252 bool m_destinationsHasBeenSet = false;
253
254 EncoderSettings m_encoderSettings;
255 bool m_encoderSettingsHasBeenSet = false;
256
257 Aws::Vector<InputAttachment> m_inputAttachments;
258 bool m_inputAttachmentsHasBeenSet = false;
259
260 InputSpecification m_inputSpecification;
261 bool m_inputSpecificationHasBeenSet = false;
262
263 LogLevel m_logLevel{LogLevel::NOT_SET};
264 bool m_logLevelHasBeenSet = false;
265
266 MaintenanceCreateSettings m_maintenance;
267 bool m_maintenanceHasBeenSet = false;
268
269 Aws::String m_name;
270 bool m_nameHasBeenSet = false;
271
273 bool m_requestIdHasBeenSet = true;
274
275 Aws::String m_roleArn;
276 bool m_roleArnHasBeenSet = false;
277
279 bool m_tagsHasBeenSet = false;
280
281 VpcOutputSettings m_vpc;
282 bool m_vpcHasBeenSet = false;
283
284 AnywhereSettings m_anywhereSettings;
285 bool m_anywhereSettingsHasBeenSet = false;
286
287 ChannelEngineVersionRequest m_channelEngineVersion;
288 bool m_channelEngineVersionHasBeenSet = false;
289
290 bool m_dryRun{false};
291 bool m_dryRunHasBeenSet = false;
292 };
293
294} // namespace Model
295} // namespace MediaLive
296} // namespace Aws
CreateChannelRequest & WithCdiInputSpecification(CdiInputSpecificationT &&value)
CreateChannelRequest & WithChannelEngineVersion(ChannelEngineVersionT &&value)
virtual const char * GetServiceRequestName() const override
CreateChannelRequest & WithInputSpecification(InputSpecificationT &&value)
CreateChannelRequest & WithDryRun(bool value)
CreateChannelRequest & WithTags(TagsT &&value)
void SetInputSpecification(InputSpecificationT &&value)
const ChannelEngineVersionRequest & GetChannelEngineVersion() const
void SetCdiInputSpecification(CdiInputSpecificationT &&value)
CreateChannelRequest & WithMaintenance(MaintenanceT &&value)
void SetAnywhereSettings(AnywhereSettingsT &&value)
const Aws::Vector< OutputDestination > & GetDestinations() const
const InputSpecification & GetInputSpecification() const
CreateChannelRequest & WithName(NameT &&value)
const Aws::Vector< InputAttachment > & GetInputAttachments() const
CreateChannelRequest & WithChannelClass(ChannelClass value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetEncoderSettings(EncoderSettingsT &&value)
void SetChannelEngineVersion(ChannelEngineVersionT &&value)
void SetInputAttachments(InputAttachmentsT &&value)
AWS_MEDIALIVE_API Aws::String SerializePayload() const override
const CdiInputSpecification & GetCdiInputSpecification() const
CreateChannelRequest & WithEncoderSettings(EncoderSettingsT &&value)
CreateChannelRequest & AddInputAttachments(InputAttachmentsT &&value)
CreateChannelRequest & WithInputAttachments(InputAttachmentsT &&value)
const MaintenanceCreateSettings & GetMaintenance() const
CreateChannelRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateChannelRequest & WithDestinations(DestinationsT &&value)
CreateChannelRequest & AddDestinations(DestinationsT &&value)
CreateChannelRequest & WithRoleArn(RoleArnT &&value)
CreateChannelRequest & WithLogLevel(LogLevel value)
AWS_MEDIALIVE_API CreateChannelRequest()=default
CreateChannelRequest & WithVpc(VpcT &&value)
const AnywhereSettings & GetAnywhereSettings() const
const EncoderSettings & GetEncoderSettings() const
CreateChannelRequest & WithAnywhereSettings(AnywhereSettingsT &&value)
CreateChannelRequest & WithRequestId(RequestIdT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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
std::vector< T, Aws::Allocator< T > > Vector