AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/OutputDestination.h>
21#include <aws/medialive/model/InputAttachment.h>
22#include <utility>
23#include <aws/core/utils/UUID.h>
24
25namespace Aws
26{
27namespace MediaLive
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_MEDIALIVE_API CreateChannelRequest();
41
42 // Service request name is the Operation name which will send this request out,
43 // each operation should has unique request name, so that we can get operation's name from this request.
44 // Note: this is not true for response, multiple operations may have the same response name,
45 // so we can not get operation's name from response.
46 inline virtual const char* GetServiceRequestName() const override { return "CreateChannel"; }
47
48 AWS_MEDIALIVE_API Aws::String SerializePayload() const override;
49
50
52
55 inline const CdiInputSpecification& GetCdiInputSpecification() const{ return m_cdiInputSpecification; }
56 inline bool CdiInputSpecificationHasBeenSet() const { return m_cdiInputSpecificationHasBeenSet; }
57 inline void SetCdiInputSpecification(const CdiInputSpecification& value) { m_cdiInputSpecificationHasBeenSet = true; m_cdiInputSpecification = value; }
58 inline void SetCdiInputSpecification(CdiInputSpecification&& value) { m_cdiInputSpecificationHasBeenSet = true; m_cdiInputSpecification = std::move(value); }
62
64
68 inline const ChannelClass& GetChannelClass() const{ return m_channelClass; }
69 inline bool ChannelClassHasBeenSet() const { return m_channelClassHasBeenSet; }
70 inline void SetChannelClass(const ChannelClass& value) { m_channelClassHasBeenSet = true; m_channelClass = value; }
71 inline void SetChannelClass(ChannelClass&& value) { m_channelClassHasBeenSet = true; m_channelClass = std::move(value); }
72 inline CreateChannelRequest& WithChannelClass(const ChannelClass& value) { SetChannelClass(value); return *this;}
73 inline CreateChannelRequest& WithChannelClass(ChannelClass&& value) { SetChannelClass(std::move(value)); return *this;}
75
77
78 inline const Aws::Vector<OutputDestination>& GetDestinations() const{ return m_destinations; }
79 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
80 inline void SetDestinations(const Aws::Vector<OutputDestination>& value) { m_destinationsHasBeenSet = true; m_destinations = value; }
81 inline void SetDestinations(Aws::Vector<OutputDestination>&& value) { m_destinationsHasBeenSet = true; m_destinations = std::move(value); }
83 inline CreateChannelRequest& WithDestinations(Aws::Vector<OutputDestination>&& value) { SetDestinations(std::move(value)); return *this;}
84 inline CreateChannelRequest& AddDestinations(const OutputDestination& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; }
85 inline CreateChannelRequest& AddDestinations(OutputDestination&& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(std::move(value)); return *this; }
87
89
90 inline const EncoderSettings& GetEncoderSettings() const{ return m_encoderSettings; }
91 inline bool EncoderSettingsHasBeenSet() const { return m_encoderSettingsHasBeenSet; }
92 inline void SetEncoderSettings(const EncoderSettings& value) { m_encoderSettingsHasBeenSet = true; m_encoderSettings = value; }
93 inline void SetEncoderSettings(EncoderSettings&& value) { m_encoderSettingsHasBeenSet = true; m_encoderSettings = std::move(value); }
94 inline CreateChannelRequest& WithEncoderSettings(const EncoderSettings& value) { SetEncoderSettings(value); return *this;}
95 inline CreateChannelRequest& WithEncoderSettings(EncoderSettings&& value) { SetEncoderSettings(std::move(value)); return *this;}
97
99
102 inline const Aws::Vector<InputAttachment>& GetInputAttachments() const{ return m_inputAttachments; }
103 inline bool InputAttachmentsHasBeenSet() const { return m_inputAttachmentsHasBeenSet; }
104 inline void SetInputAttachments(const Aws::Vector<InputAttachment>& value) { m_inputAttachmentsHasBeenSet = true; m_inputAttachments = value; }
105 inline void SetInputAttachments(Aws::Vector<InputAttachment>&& value) { m_inputAttachmentsHasBeenSet = true; m_inputAttachments = std::move(value); }
108 inline CreateChannelRequest& AddInputAttachments(const InputAttachment& value) { m_inputAttachmentsHasBeenSet = true; m_inputAttachments.push_back(value); return *this; }
109 inline CreateChannelRequest& AddInputAttachments(InputAttachment&& value) { m_inputAttachmentsHasBeenSet = true; m_inputAttachments.push_back(std::move(value)); return *this; }
111
113
116 inline const InputSpecification& GetInputSpecification() const{ return m_inputSpecification; }
117 inline bool InputSpecificationHasBeenSet() const { return m_inputSpecificationHasBeenSet; }
118 inline void SetInputSpecification(const InputSpecification& value) { m_inputSpecificationHasBeenSet = true; m_inputSpecification = value; }
119 inline void SetInputSpecification(InputSpecification&& value) { m_inputSpecificationHasBeenSet = true; m_inputSpecification = std::move(value); }
121 inline CreateChannelRequest& WithInputSpecification(InputSpecification&& value) { SetInputSpecification(std::move(value)); return *this;}
123
125
128 inline const LogLevel& GetLogLevel() const{ return m_logLevel; }
129 inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
130 inline void SetLogLevel(const LogLevel& value) { m_logLevelHasBeenSet = true; m_logLevel = value; }
131 inline void SetLogLevel(LogLevel&& value) { m_logLevelHasBeenSet = true; m_logLevel = std::move(value); }
132 inline CreateChannelRequest& WithLogLevel(const LogLevel& value) { SetLogLevel(value); return *this;}
133 inline CreateChannelRequest& WithLogLevel(LogLevel&& value) { SetLogLevel(std::move(value)); return *this;}
135
137
140 inline const MaintenanceCreateSettings& GetMaintenance() const{ return m_maintenance; }
141 inline bool MaintenanceHasBeenSet() const { return m_maintenanceHasBeenSet; }
142 inline void SetMaintenance(const MaintenanceCreateSettings& value) { m_maintenanceHasBeenSet = true; m_maintenance = value; }
143 inline void SetMaintenance(MaintenanceCreateSettings&& value) { m_maintenanceHasBeenSet = true; m_maintenance = std::move(value); }
145 inline CreateChannelRequest& WithMaintenance(MaintenanceCreateSettings&& value) { SetMaintenance(std::move(value)); return *this;}
147
149
152 inline const Aws::String& GetName() const{ return m_name; }
153 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
154 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
155 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
156 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
157 inline CreateChannelRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
158 inline CreateChannelRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
159 inline CreateChannelRequest& WithName(const char* value) { SetName(value); return *this;}
161
163
168 inline const Aws::String& GetRequestId() const{ return m_requestId; }
169 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
170 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
171 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
172 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
173 inline CreateChannelRequest& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
174 inline CreateChannelRequest& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
175 inline CreateChannelRequest& WithRequestId(const char* value) { SetRequestId(value); return *this;}
177
179
183 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
184 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
185 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
186 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
187 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
188 inline CreateChannelRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
189 inline CreateChannelRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
190 inline CreateChannelRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
192
194
197 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
198 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
199 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
200 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
201 inline CreateChannelRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
202 inline CreateChannelRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
203 inline CreateChannelRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
204 inline CreateChannelRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
205 inline CreateChannelRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
206 inline CreateChannelRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
207 inline CreateChannelRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
208 inline CreateChannelRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
209 inline CreateChannelRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
211
213
216 inline const VpcOutputSettings& GetVpc() const{ return m_vpc; }
217 inline bool VpcHasBeenSet() const { return m_vpcHasBeenSet; }
218 inline void SetVpc(const VpcOutputSettings& value) { m_vpcHasBeenSet = true; m_vpc = value; }
219 inline void SetVpc(VpcOutputSettings&& value) { m_vpcHasBeenSet = true; m_vpc = std::move(value); }
220 inline CreateChannelRequest& WithVpc(const VpcOutputSettings& value) { SetVpc(value); return *this;}
221 inline CreateChannelRequest& WithVpc(VpcOutputSettings&& value) { SetVpc(std::move(value)); return *this;}
223
225
228 inline const AnywhereSettings& GetAnywhereSettings() const{ return m_anywhereSettings; }
229 inline bool AnywhereSettingsHasBeenSet() const { return m_anywhereSettingsHasBeenSet; }
230 inline void SetAnywhereSettings(const AnywhereSettings& value) { m_anywhereSettingsHasBeenSet = true; m_anywhereSettings = value; }
231 inline void SetAnywhereSettings(AnywhereSettings&& value) { m_anywhereSettingsHasBeenSet = true; m_anywhereSettings = std::move(value); }
233 inline CreateChannelRequest& WithAnywhereSettings(AnywhereSettings&& value) { SetAnywhereSettings(std::move(value)); return *this;}
235 private:
236
237 CdiInputSpecification m_cdiInputSpecification;
238 bool m_cdiInputSpecificationHasBeenSet = false;
239
240 ChannelClass m_channelClass;
241 bool m_channelClassHasBeenSet = false;
242
243 Aws::Vector<OutputDestination> m_destinations;
244 bool m_destinationsHasBeenSet = false;
245
246 EncoderSettings m_encoderSettings;
247 bool m_encoderSettingsHasBeenSet = false;
248
249 Aws::Vector<InputAttachment> m_inputAttachments;
250 bool m_inputAttachmentsHasBeenSet = false;
251
252 InputSpecification m_inputSpecification;
253 bool m_inputSpecificationHasBeenSet = false;
254
255 LogLevel m_logLevel;
256 bool m_logLevelHasBeenSet = false;
257
258 MaintenanceCreateSettings m_maintenance;
259 bool m_maintenanceHasBeenSet = false;
260
261 Aws::String m_name;
262 bool m_nameHasBeenSet = false;
263
264 Aws::String m_requestId;
265 bool m_requestIdHasBeenSet = false;
266
267 Aws::String m_roleArn;
268 bool m_roleArnHasBeenSet = false;
269
271 bool m_tagsHasBeenSet = false;
272
273 VpcOutputSettings m_vpc;
274 bool m_vpcHasBeenSet = false;
275
276 AnywhereSettings m_anywhereSettings;
277 bool m_anywhereSettingsHasBeenSet = false;
278 };
279
280} // namespace Model
281} // namespace MediaLive
282} // namespace Aws
void SetInputSpecification(const InputSpecification &value)
void SetEncoderSettings(EncoderSettings &&value)
CreateChannelRequest & WithCdiInputSpecification(CdiInputSpecification &&value)
void SetAnywhereSettings(AnywhereSettings &&value)
CreateChannelRequest & WithAnywhereSettings(const AnywhereSettings &value)
CreateChannelRequest & WithEncoderSettings(EncoderSettings &&value)
virtual const char * GetServiceRequestName() const override
CreateChannelRequest & AddDestinations(OutputDestination &&value)
CreateChannelRequest & WithDestinations(Aws::Vector< OutputDestination > &&value)
CreateChannelRequest & WithRoleArn(Aws::String &&value)
CreateChannelRequest & AddTags(Aws::String &&key, const char *value)
CreateChannelRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateChannelRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetDestinations(Aws::Vector< OutputDestination > &&value)
CreateChannelRequest & WithVpc(VpcOutputSettings &&value)
void SetInputSpecification(InputSpecification &&value)
CreateChannelRequest & WithInputSpecification(const InputSpecification &value)
CreateChannelRequest & WithChannelClass(const ChannelClass &value)
void SetDestinations(const Aws::Vector< OutputDestination > &value)
CreateChannelRequest & WithCdiInputSpecification(const CdiInputSpecification &value)
CreateChannelRequest & WithInputAttachments(Aws::Vector< InputAttachment > &&value)
CreateChannelRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateChannelRequest & AddInputAttachments(InputAttachment &&value)
CreateChannelRequest & WithInputAttachments(const Aws::Vector< InputAttachment > &value)
const Aws::Vector< OutputDestination > & GetDestinations() const
const InputSpecification & GetInputSpecification() const
CreateChannelRequest & WithMaintenance(MaintenanceCreateSettings &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateChannelRequest & WithAnywhereSettings(AnywhereSettings &&value)
const Aws::Vector< InputAttachment > & GetInputAttachments() const
CreateChannelRequest & WithEncoderSettings(const EncoderSettings &value)
CreateChannelRequest & WithChannelClass(ChannelClass &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateChannelRequest & WithInputSpecification(InputSpecification &&value)
void SetInputAttachments(const Aws::Vector< InputAttachment > &value)
void SetVpc(const VpcOutputSettings &value)
CreateChannelRequest & WithRequestId(Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateChannelRequest & AddInputAttachments(const InputAttachment &value)
CreateChannelRequest & WithName(const char *value)
AWS_MEDIALIVE_API Aws::String SerializePayload() const override
CreateChannelRequest & WithMaintenance(const MaintenanceCreateSettings &value)
const CdiInputSpecification & GetCdiInputSpecification() const
CreateChannelRequest & AddTags(const char *key, const char *value)
void SetAnywhereSettings(const AnywhereSettings &value)
CreateChannelRequest & WithLogLevel(const LogLevel &value)
CreateChannelRequest & WithRequestId(const Aws::String &value)
const MaintenanceCreateSettings & GetMaintenance() const
CreateChannelRequest & WithRoleArn(const Aws::String &value)
void SetMaintenance(MaintenanceCreateSettings &&value)
void SetInputAttachments(Aws::Vector< InputAttachment > &&value)
CreateChannelRequest & WithRoleArn(const char *value)
void SetMaintenance(const MaintenanceCreateSettings &value)
CreateChannelRequest & WithLogLevel(LogLevel &&value)
void SetChannelClass(const ChannelClass &value)
CreateChannelRequest & WithRequestId(const char *value)
const AnywhereSettings & GetAnywhereSettings() const
CreateChannelRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateChannelRequest & WithName(const Aws::String &value)
CreateChannelRequest & WithVpc(const VpcOutputSettings &value)
const EncoderSettings & GetEncoderSettings() const
void SetEncoderSettings(const EncoderSettings &value)
CreateChannelRequest & WithDestinations(const Aws::Vector< OutputDestination > &value)
CreateChannelRequest & AddTags(Aws::String &&key, const Aws::String &value)
void SetCdiInputSpecification(const CdiInputSpecification &value)
CreateChannelRequest & AddDestinations(const OutputDestination &value)
CreateChannelRequest & WithName(Aws::String &&value)
CreateChannelRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetCdiInputSpecification(CdiInputSpecification &&value)
CreateChannelRequest & AddTags(const char *key, Aws::String &&value)
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