AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
Channel.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.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/MaintenanceStatus.h>
16#include <aws/medialive/model/ChannelState.h>
17#include <aws/core/utils/memory/stl/AWSMap.h>
18#include <aws/medialive/model/VpcOutputSettingsDescription.h>
19#include <aws/medialive/model/DescribeAnywhereSettings.h>
20#include <aws/medialive/model/ChannelEngineVersionResponse.h>
21#include <aws/medialive/model/OutputDestination.h>
22#include <aws/medialive/model/ChannelEgressEndpoint.h>
23#include <aws/medialive/model/InputAttachment.h>
24#include <aws/medialive/model/PipelineDetail.h>
25#include <utility>
26
27namespace Aws
28{
29namespace Utils
30{
31namespace Json
32{
33 class JsonValue;
34 class JsonView;
35} // namespace Json
36} // namespace Utils
37namespace MediaLive
38{
39namespace Model
40{
41
47 class Channel
48 {
49 public:
50 AWS_MEDIALIVE_API Channel() = default;
51 AWS_MEDIALIVE_API Channel(Aws::Utils::Json::JsonView jsonValue);
52 AWS_MEDIALIVE_API Channel& operator=(Aws::Utils::Json::JsonView jsonValue);
53 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
54
55
57
60 inline const Aws::String& GetArn() const { return m_arn; }
61 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
62 template<typename ArnT = Aws::String>
63 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
64 template<typename ArnT = Aws::String>
65 Channel& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
67
69
72 inline const CdiInputSpecification& GetCdiInputSpecification() const { return m_cdiInputSpecification; }
73 inline bool CdiInputSpecificationHasBeenSet() const { return m_cdiInputSpecificationHasBeenSet; }
74 template<typename CdiInputSpecificationT = CdiInputSpecification>
75 void SetCdiInputSpecification(CdiInputSpecificationT&& value) { m_cdiInputSpecificationHasBeenSet = true; m_cdiInputSpecification = std::forward<CdiInputSpecificationT>(value); }
76 template<typename CdiInputSpecificationT = CdiInputSpecification>
77 Channel& WithCdiInputSpecification(CdiInputSpecificationT&& value) { SetCdiInputSpecification(std::forward<CdiInputSpecificationT>(value)); return *this;}
79
81
85 inline ChannelClass GetChannelClass() const { return m_channelClass; }
86 inline bool ChannelClassHasBeenSet() const { return m_channelClassHasBeenSet; }
87 inline void SetChannelClass(ChannelClass value) { m_channelClassHasBeenSet = true; m_channelClass = value; }
88 inline Channel& WithChannelClass(ChannelClass value) { SetChannelClass(value); return *this;}
90
92
99 inline const Aws::Vector<OutputDestination>& GetDestinations() const { return m_destinations; }
100 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
101 template<typename DestinationsT = Aws::Vector<OutputDestination>>
102 void SetDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations = std::forward<DestinationsT>(value); }
103 template<typename DestinationsT = Aws::Vector<OutputDestination>>
104 Channel& WithDestinations(DestinationsT&& value) { SetDestinations(std::forward<DestinationsT>(value)); return *this;}
105 template<typename DestinationsT = OutputDestination>
106 Channel& AddDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations.emplace_back(std::forward<DestinationsT>(value)); return *this; }
108
110
113 inline const Aws::Vector<ChannelEgressEndpoint>& GetEgressEndpoints() const { return m_egressEndpoints; }
114 inline bool EgressEndpointsHasBeenSet() const { return m_egressEndpointsHasBeenSet; }
115 template<typename EgressEndpointsT = Aws::Vector<ChannelEgressEndpoint>>
116 void SetEgressEndpoints(EgressEndpointsT&& value) { m_egressEndpointsHasBeenSet = true; m_egressEndpoints = std::forward<EgressEndpointsT>(value); }
117 template<typename EgressEndpointsT = Aws::Vector<ChannelEgressEndpoint>>
118 Channel& WithEgressEndpoints(EgressEndpointsT&& value) { SetEgressEndpoints(std::forward<EgressEndpointsT>(value)); return *this;}
119 template<typename EgressEndpointsT = ChannelEgressEndpoint>
120 Channel& AddEgressEndpoints(EgressEndpointsT&& value) { m_egressEndpointsHasBeenSet = true; m_egressEndpoints.emplace_back(std::forward<EgressEndpointsT>(value)); return *this; }
122
124
125 inline const EncoderSettings& GetEncoderSettings() const { return m_encoderSettings; }
126 inline bool EncoderSettingsHasBeenSet() const { return m_encoderSettingsHasBeenSet; }
127 template<typename EncoderSettingsT = EncoderSettings>
128 void SetEncoderSettings(EncoderSettingsT&& value) { m_encoderSettingsHasBeenSet = true; m_encoderSettings = std::forward<EncoderSettingsT>(value); }
129 template<typename EncoderSettingsT = EncoderSettings>
130 Channel& WithEncoderSettings(EncoderSettingsT&& value) { SetEncoderSettings(std::forward<EncoderSettingsT>(value)); return *this;}
132
134
137 inline const Aws::String& GetId() const { return m_id; }
138 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
139 template<typename IdT = Aws::String>
140 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
141 template<typename IdT = Aws::String>
142 Channel& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
144
146
149 inline const Aws::Vector<InputAttachment>& GetInputAttachments() const { return m_inputAttachments; }
150 inline bool InputAttachmentsHasBeenSet() const { return m_inputAttachmentsHasBeenSet; }
151 template<typename InputAttachmentsT = Aws::Vector<InputAttachment>>
152 void SetInputAttachments(InputAttachmentsT&& value) { m_inputAttachmentsHasBeenSet = true; m_inputAttachments = std::forward<InputAttachmentsT>(value); }
153 template<typename InputAttachmentsT = Aws::Vector<InputAttachment>>
154 Channel& WithInputAttachments(InputAttachmentsT&& value) { SetInputAttachments(std::forward<InputAttachmentsT>(value)); return *this;}
155 template<typename InputAttachmentsT = InputAttachment>
156 Channel& AddInputAttachments(InputAttachmentsT&& value) { m_inputAttachmentsHasBeenSet = true; m_inputAttachments.emplace_back(std::forward<InputAttachmentsT>(value)); return *this; }
158
160
163 inline const InputSpecification& GetInputSpecification() const { return m_inputSpecification; }
164 inline bool InputSpecificationHasBeenSet() const { return m_inputSpecificationHasBeenSet; }
165 template<typename InputSpecificationT = InputSpecification>
166 void SetInputSpecification(InputSpecificationT&& value) { m_inputSpecificationHasBeenSet = true; m_inputSpecification = std::forward<InputSpecificationT>(value); }
167 template<typename InputSpecificationT = InputSpecification>
168 Channel& WithInputSpecification(InputSpecificationT&& value) { SetInputSpecification(std::forward<InputSpecificationT>(value)); return *this;}
170
172
175 inline LogLevel GetLogLevel() const { return m_logLevel; }
176 inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
177 inline void SetLogLevel(LogLevel value) { m_logLevelHasBeenSet = true; m_logLevel = value; }
178 inline Channel& WithLogLevel(LogLevel value) { SetLogLevel(value); return *this;}
180
182
185 inline const MaintenanceStatus& GetMaintenance() const { return m_maintenance; }
186 inline bool MaintenanceHasBeenSet() const { return m_maintenanceHasBeenSet; }
187 template<typename MaintenanceT = MaintenanceStatus>
188 void SetMaintenance(MaintenanceT&& value) { m_maintenanceHasBeenSet = true; m_maintenance = std::forward<MaintenanceT>(value); }
189 template<typename MaintenanceT = MaintenanceStatus>
190 Channel& WithMaintenance(MaintenanceT&& value) { SetMaintenance(std::forward<MaintenanceT>(value)); return *this;}
192
194
197 inline const Aws::String& GetName() const { return m_name; }
198 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
199 template<typename NameT = Aws::String>
200 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
201 template<typename NameT = Aws::String>
202 Channel& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
204
206
209 inline const Aws::Vector<PipelineDetail>& GetPipelineDetails() const { return m_pipelineDetails; }
210 inline bool PipelineDetailsHasBeenSet() const { return m_pipelineDetailsHasBeenSet; }
211 template<typename PipelineDetailsT = Aws::Vector<PipelineDetail>>
212 void SetPipelineDetails(PipelineDetailsT&& value) { m_pipelineDetailsHasBeenSet = true; m_pipelineDetails = std::forward<PipelineDetailsT>(value); }
213 template<typename PipelineDetailsT = Aws::Vector<PipelineDetail>>
214 Channel& WithPipelineDetails(PipelineDetailsT&& value) { SetPipelineDetails(std::forward<PipelineDetailsT>(value)); return *this;}
215 template<typename PipelineDetailsT = PipelineDetail>
216 Channel& AddPipelineDetails(PipelineDetailsT&& value) { m_pipelineDetailsHasBeenSet = true; m_pipelineDetails.emplace_back(std::forward<PipelineDetailsT>(value)); return *this; }
218
220
223 inline int GetPipelinesRunningCount() const { return m_pipelinesRunningCount; }
224 inline bool PipelinesRunningCountHasBeenSet() const { return m_pipelinesRunningCountHasBeenSet; }
225 inline void SetPipelinesRunningCount(int value) { m_pipelinesRunningCountHasBeenSet = true; m_pipelinesRunningCount = value; }
226 inline Channel& WithPipelinesRunningCount(int value) { SetPipelinesRunningCount(value); return *this;}
228
230
233 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
234 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
235 template<typename RoleArnT = Aws::String>
236 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
237 template<typename RoleArnT = Aws::String>
238 Channel& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
240
242
243 inline ChannelState GetState() const { return m_state; }
244 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
245 inline void SetState(ChannelState value) { m_stateHasBeenSet = true; m_state = value; }
246 inline Channel& WithState(ChannelState value) { SetState(value); return *this;}
248
250
253 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
254 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
255 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
256 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
257 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
258 Channel& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
259 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
260 Channel& AddTags(TagsKeyT&& key, TagsValueT&& value) {
261 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
262 }
264
266
269 inline const VpcOutputSettingsDescription& GetVpc() const { return m_vpc; }
270 inline bool VpcHasBeenSet() const { return m_vpcHasBeenSet; }
271 template<typename VpcT = VpcOutputSettingsDescription>
272 void SetVpc(VpcT&& value) { m_vpcHasBeenSet = true; m_vpc = std::forward<VpcT>(value); }
273 template<typename VpcT = VpcOutputSettingsDescription>
274 Channel& WithVpc(VpcT&& value) { SetVpc(std::forward<VpcT>(value)); return *this;}
276
278
281 inline const DescribeAnywhereSettings& GetAnywhereSettings() const { return m_anywhereSettings; }
282 inline bool AnywhereSettingsHasBeenSet() const { return m_anywhereSettingsHasBeenSet; }
283 template<typename AnywhereSettingsT = DescribeAnywhereSettings>
284 void SetAnywhereSettings(AnywhereSettingsT&& value) { m_anywhereSettingsHasBeenSet = true; m_anywhereSettings = std::forward<AnywhereSettingsT>(value); }
285 template<typename AnywhereSettingsT = DescribeAnywhereSettings>
286 Channel& WithAnywhereSettings(AnywhereSettingsT&& value) { SetAnywhereSettings(std::forward<AnywhereSettingsT>(value)); return *this;}
288
290
293 inline const ChannelEngineVersionResponse& GetChannelEngineVersion() const { return m_channelEngineVersion; }
294 inline bool ChannelEngineVersionHasBeenSet() const { return m_channelEngineVersionHasBeenSet; }
295 template<typename ChannelEngineVersionT = ChannelEngineVersionResponse>
296 void SetChannelEngineVersion(ChannelEngineVersionT&& value) { m_channelEngineVersionHasBeenSet = true; m_channelEngineVersion = std::forward<ChannelEngineVersionT>(value); }
297 template<typename ChannelEngineVersionT = ChannelEngineVersionResponse>
298 Channel& WithChannelEngineVersion(ChannelEngineVersionT&& value) { SetChannelEngineVersion(std::forward<ChannelEngineVersionT>(value)); return *this;}
300 private:
301
302 Aws::String m_arn;
303 bool m_arnHasBeenSet = false;
304
305 CdiInputSpecification m_cdiInputSpecification;
306 bool m_cdiInputSpecificationHasBeenSet = false;
307
308 ChannelClass m_channelClass{ChannelClass::NOT_SET};
309 bool m_channelClassHasBeenSet = false;
310
311 Aws::Vector<OutputDestination> m_destinations;
312 bool m_destinationsHasBeenSet = false;
313
314 Aws::Vector<ChannelEgressEndpoint> m_egressEndpoints;
315 bool m_egressEndpointsHasBeenSet = false;
316
317 EncoderSettings m_encoderSettings;
318 bool m_encoderSettingsHasBeenSet = false;
319
320 Aws::String m_id;
321 bool m_idHasBeenSet = false;
322
323 Aws::Vector<InputAttachment> m_inputAttachments;
324 bool m_inputAttachmentsHasBeenSet = false;
325
326 InputSpecification m_inputSpecification;
327 bool m_inputSpecificationHasBeenSet = false;
328
329 LogLevel m_logLevel{LogLevel::NOT_SET};
330 bool m_logLevelHasBeenSet = false;
331
332 MaintenanceStatus m_maintenance;
333 bool m_maintenanceHasBeenSet = false;
334
335 Aws::String m_name;
336 bool m_nameHasBeenSet = false;
337
338 Aws::Vector<PipelineDetail> m_pipelineDetails;
339 bool m_pipelineDetailsHasBeenSet = false;
340
341 int m_pipelinesRunningCount{0};
342 bool m_pipelinesRunningCountHasBeenSet = false;
343
344 Aws::String m_roleArn;
345 bool m_roleArnHasBeenSet = false;
346
348 bool m_stateHasBeenSet = false;
349
351 bool m_tagsHasBeenSet = false;
352
353 VpcOutputSettingsDescription m_vpc;
354 bool m_vpcHasBeenSet = false;
355
356 DescribeAnywhereSettings m_anywhereSettings;
357 bool m_anywhereSettingsHasBeenSet = false;
358
359 ChannelEngineVersionResponse m_channelEngineVersion;
360 bool m_channelEngineVersionHasBeenSet = false;
361 };
362
363} // namespace Model
364} // namespace MediaLive
365} // namespace Aws
Channel & WithPipelineDetails(PipelineDetailsT &&value)
Definition Channel.h:214
const Aws::String & GetName() const
Definition Channel.h:197
bool LogLevelHasBeenSet() const
Definition Channel.h:176
void SetVpc(VpcT &&value)
Definition Channel.h:272
const Aws::String & GetRoleArn() const
Definition Channel.h:233
Channel & WithDestinations(DestinationsT &&value)
Definition Channel.h:104
const CdiInputSpecification & GetCdiInputSpecification() const
Definition Channel.h:72
void SetAnywhereSettings(AnywhereSettingsT &&value)
Definition Channel.h:284
Channel & AddPipelineDetails(PipelineDetailsT &&value)
Definition Channel.h:216
Channel & WithLogLevel(LogLevel value)
Definition Channel.h:178
Channel & WithAnywhereSettings(AnywhereSettingsT &&value)
Definition Channel.h:286
AWS_MEDIALIVE_API Channel()=default
bool EncoderSettingsHasBeenSet() const
Definition Channel.h:126
bool PipelineDetailsHasBeenSet() const
Definition Channel.h:210
void SetInputSpecification(InputSpecificationT &&value)
Definition Channel.h:166
LogLevel GetLogLevel() const
Definition Channel.h:175
bool CdiInputSpecificationHasBeenSet() const
Definition Channel.h:73
Channel & AddEgressEndpoints(EgressEndpointsT &&value)
Definition Channel.h:120
void SetEgressEndpoints(EgressEndpointsT &&value)
Definition Channel.h:116
Channel & WithChannelClass(ChannelClass value)
Definition Channel.h:88
Channel & WithMaintenance(MaintenanceT &&value)
Definition Channel.h:190
const VpcOutputSettingsDescription & GetVpc() const
Definition Channel.h:269
void SetState(ChannelState value)
Definition Channel.h:245
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
Channel & WithState(ChannelState value)
Definition Channel.h:246
bool MaintenanceHasBeenSet() const
Definition Channel.h:186
bool ChannelClassHasBeenSet() const
Definition Channel.h:86
Channel & WithCdiInputSpecification(CdiInputSpecificationT &&value)
Definition Channel.h:77
ChannelClass GetChannelClass() const
Definition Channel.h:85
bool InputAttachmentsHasBeenSet() const
Definition Channel.h:150
void SetCdiInputSpecification(CdiInputSpecificationT &&value)
Definition Channel.h:75
Channel & WithPipelinesRunningCount(int value)
Definition Channel.h:226
void SetName(NameT &&value)
Definition Channel.h:200
AWS_MEDIALIVE_API Channel & operator=(Aws::Utils::Json::JsonView jsonValue)
Channel & WithName(NameT &&value)
Definition Channel.h:202
const Aws::Vector< PipelineDetail > & GetPipelineDetails() const
Definition Channel.h:209
Channel & WithRoleArn(RoleArnT &&value)
Definition Channel.h:238
bool ChannelEngineVersionHasBeenSet() const
Definition Channel.h:294
void SetPipelinesRunningCount(int value)
Definition Channel.h:225
const EncoderSettings & GetEncoderSettings() const
Definition Channel.h:125
bool PipelinesRunningCountHasBeenSet() const
Definition Channel.h:224
const Aws::String & GetId() const
Definition Channel.h:137
const Aws::Vector< OutputDestination > & GetDestinations() const
Definition Channel.h:99
Channel & WithId(IdT &&value)
Definition Channel.h:142
Channel & AddInputAttachments(InputAttachmentsT &&value)
Definition Channel.h:156
void SetEncoderSettings(EncoderSettingsT &&value)
Definition Channel.h:128
void SetInputAttachments(InputAttachmentsT &&value)
Definition Channel.h:152
Channel & WithEncoderSettings(EncoderSettingsT &&value)
Definition Channel.h:130
void SetLogLevel(LogLevel value)
Definition Channel.h:177
const ChannelEngineVersionResponse & GetChannelEngineVersion() const
Definition Channel.h:293
Channel & WithInputSpecification(InputSpecificationT &&value)
Definition Channel.h:168
void SetTags(TagsT &&value)
Definition Channel.h:256
bool DestinationsHasBeenSet() const
Definition Channel.h:100
void SetMaintenance(MaintenanceT &&value)
Definition Channel.h:188
Channel & AddDestinations(DestinationsT &&value)
Definition Channel.h:106
const Aws::Vector< InputAttachment > & GetInputAttachments() const
Definition Channel.h:149
const MaintenanceStatus & GetMaintenance() const
Definition Channel.h:185
ChannelState GetState() const
Definition Channel.h:243
const Aws::String & GetArn() const
Definition Channel.h:60
void SetRoleArn(RoleArnT &&value)
Definition Channel.h:236
Channel & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Channel.h:260
Channel & WithTags(TagsT &&value)
Definition Channel.h:258
void SetArn(ArnT &&value)
Definition Channel.h:63
void SetDestinations(DestinationsT &&value)
Definition Channel.h:102
Channel & WithInputAttachments(InputAttachmentsT &&value)
Definition Channel.h:154
const DescribeAnywhereSettings & GetAnywhereSettings() const
Definition Channel.h:281
bool AnywhereSettingsHasBeenSet() const
Definition Channel.h:282
bool InputSpecificationHasBeenSet() const
Definition Channel.h:164
const Aws::Vector< ChannelEgressEndpoint > & GetEgressEndpoints() const
Definition Channel.h:113
Channel & WithEgressEndpoints(EgressEndpointsT &&value)
Definition Channel.h:118
AWS_MEDIALIVE_API Channel(Aws::Utils::Json::JsonView jsonValue)
int GetPipelinesRunningCount() const
Definition Channel.h:223
void SetChannelClass(ChannelClass value)
Definition Channel.h:87
void SetId(IdT &&value)
Definition Channel.h:140
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Channel.h:253
Channel & WithVpc(VpcT &&value)
Definition Channel.h:274
void SetChannelEngineVersion(ChannelEngineVersionT &&value)
Definition Channel.h:296
const InputSpecification & GetInputSpecification() const
Definition Channel.h:163
Channel & WithChannelEngineVersion(ChannelEngineVersionT &&value)
Definition Channel.h:298
bool EgressEndpointsHasBeenSet() const
Definition Channel.h:114
void SetPipelineDetails(PipelineDetailsT &&value)
Definition Channel.h:212
Channel & WithArn(ArnT &&value)
Definition Channel.h:65
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
Aws::Utils::Json::JsonValue JsonValue