AWS SDK for C++

AWS SDK for C++ Version 1.11.889

Loading...
Searching...
No Matches
CreateChannelResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/mediapackagev2/Mediapackagev2_EXPORTS.h>
13#include <aws/mediapackagev2/model/IngestEndpoint.h>
14#include <aws/mediapackagev2/model/InputSwitchConfiguration.h>
15#include <aws/mediapackagev2/model/InputType.h>
16#include <aws/mediapackagev2/model/MultiviewConfiguration.h>
17#include <aws/mediapackagev2/model/OutputHeaderConfiguration.h>
18#include <aws/mediapackagev2/model/OutputLockingMode.h>
19
20#include <utility>
21
22namespace Aws {
23template <typename RESULT_TYPE>
24class AmazonWebServiceResult;
25
26namespace Utils {
27namespace Json {
28class JsonValue;
29} // namespace Json
30} // namespace Utils
31namespace mediapackagev2 {
32namespace Model {
34 public:
35 AWS_MEDIAPACKAGEV2_API CreateChannelResult() = default;
38
40
44 inline const MultiviewConfiguration& GetMultiviewConfiguration() const { return m_multiviewConfiguration; }
45 template <typename MultiviewConfigurationT = MultiviewConfiguration>
46 void SetMultiviewConfiguration(MultiviewConfigurationT&& value) {
47 m_multiviewConfigurationHasBeenSet = true;
48 m_multiviewConfiguration = std::forward<MultiviewConfigurationT>(value);
49 }
50 template <typename MultiviewConfigurationT = MultiviewConfiguration>
51 CreateChannelResult& WithMultiviewConfiguration(MultiviewConfigurationT&& value) {
52 SetMultiviewConfiguration(std::forward<MultiviewConfigurationT>(value));
53 return *this;
54 }
56
58
64 inline const Aws::Vector<Aws::String>& GetAttachedMultiviewChannels() const { return m_attachedMultiviewChannels; }
65 template <typename AttachedMultiviewChannelsT = Aws::Vector<Aws::String>>
66 void SetAttachedMultiviewChannels(AttachedMultiviewChannelsT&& value) {
67 m_attachedMultiviewChannelsHasBeenSet = true;
68 m_attachedMultiviewChannels = std::forward<AttachedMultiviewChannelsT>(value);
69 }
70 template <typename AttachedMultiviewChannelsT = Aws::Vector<Aws::String>>
71 CreateChannelResult& WithAttachedMultiviewChannels(AttachedMultiviewChannelsT&& value) {
72 SetAttachedMultiviewChannels(std::forward<AttachedMultiviewChannelsT>(value));
73 return *this;
74 }
75 template <typename AttachedMultiviewChannelsT = Aws::String>
76 CreateChannelResult& AddAttachedMultiviewChannels(AttachedMultiviewChannelsT&& value) {
77 m_attachedMultiviewChannelsHasBeenSet = true;
78 m_attachedMultiviewChannels.emplace_back(std::forward<AttachedMultiviewChannelsT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetArn() const { return m_arn; }
88 template <typename ArnT = Aws::String>
89 void SetArn(ArnT&& value) {
90 m_arnHasBeenSet = true;
91 m_arn = std::forward<ArnT>(value);
92 }
93 template <typename ArnT = Aws::String>
95 SetArn(std::forward<ArnT>(value));
96 return *this;
97 }
99
101
106 inline const Aws::String& GetChannelName() const { return m_channelName; }
107 template <typename ChannelNameT = Aws::String>
108 void SetChannelName(ChannelNameT&& value) {
109 m_channelNameHasBeenSet = true;
110 m_channelName = std::forward<ChannelNameT>(value);
111 }
112 template <typename ChannelNameT = Aws::String>
113 CreateChannelResult& WithChannelName(ChannelNameT&& value) {
114 SetChannelName(std::forward<ChannelNameT>(value));
115 return *this;
116 }
118
120
125 inline const Aws::String& GetChannelGroupName() const { return m_channelGroupName; }
126 template <typename ChannelGroupNameT = Aws::String>
127 void SetChannelGroupName(ChannelGroupNameT&& value) {
128 m_channelGroupNameHasBeenSet = true;
129 m_channelGroupName = std::forward<ChannelGroupNameT>(value);
130 }
131 template <typename ChannelGroupNameT = Aws::String>
132 CreateChannelResult& WithChannelGroupName(ChannelGroupNameT&& value) {
133 SetChannelGroupName(std::forward<ChannelGroupNameT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
143 template <typename CreatedAtT = Aws::Utils::DateTime>
144 void SetCreatedAt(CreatedAtT&& value) {
145 m_createdAtHasBeenSet = true;
146 m_createdAt = std::forward<CreatedAtT>(value);
147 }
148 template <typename CreatedAtT = Aws::Utils::DateTime>
149 CreateChannelResult& WithCreatedAt(CreatedAtT&& value) {
150 SetCreatedAt(std::forward<CreatedAtT>(value));
151 return *this;
152 }
154
156
159 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
160 template <typename ModifiedAtT = Aws::Utils::DateTime>
161 void SetModifiedAt(ModifiedAtT&& value) {
162 m_modifiedAtHasBeenSet = true;
163 m_modifiedAt = std::forward<ModifiedAtT>(value);
164 }
165 template <typename ModifiedAtT = Aws::Utils::DateTime>
166 CreateChannelResult& WithModifiedAt(ModifiedAtT&& value) {
167 SetModifiedAt(std::forward<ModifiedAtT>(value));
168 return *this;
169 }
171
173
176 inline const Aws::String& GetDescription() const { return m_description; }
177 template <typename DescriptionT = Aws::String>
178 void SetDescription(DescriptionT&& value) {
179 m_descriptionHasBeenSet = true;
180 m_description = std::forward<DescriptionT>(value);
181 }
182 template <typename DescriptionT = Aws::String>
183 CreateChannelResult& WithDescription(DescriptionT&& value) {
184 SetDescription(std::forward<DescriptionT>(value));
185 return *this;
186 }
188
190
191 inline const Aws::Vector<IngestEndpoint>& GetIngestEndpoints() const { return m_ingestEndpoints; }
192 template <typename IngestEndpointsT = Aws::Vector<IngestEndpoint>>
193 void SetIngestEndpoints(IngestEndpointsT&& value) {
194 m_ingestEndpointsHasBeenSet = true;
195 m_ingestEndpoints = std::forward<IngestEndpointsT>(value);
196 }
197 template <typename IngestEndpointsT = Aws::Vector<IngestEndpoint>>
198 CreateChannelResult& WithIngestEndpoints(IngestEndpointsT&& value) {
199 SetIngestEndpoints(std::forward<IngestEndpointsT>(value));
200 return *this;
201 }
202 template <typename IngestEndpointsT = IngestEndpoint>
203 CreateChannelResult& AddIngestEndpoints(IngestEndpointsT&& value) {
204 m_ingestEndpointsHasBeenSet = true;
205 m_ingestEndpoints.emplace_back(std::forward<IngestEndpointsT>(value));
206 return *this;
207 }
209
211
224 inline InputType GetInputType() const { return m_inputType; }
225 inline void SetInputType(InputType value) {
226 m_inputTypeHasBeenSet = true;
227 m_inputType = value;
228 }
230 SetInputType(value);
231 return *this;
232 }
234
236
240 inline const Aws::String& GetETag() const { return m_eTag; }
241 template <typename ETagT = Aws::String>
242 void SetETag(ETagT&& value) {
243 m_eTagHasBeenSet = true;
244 m_eTag = std::forward<ETagT>(value);
245 }
246 template <typename ETagT = Aws::String>
248 SetETag(std::forward<ETagT>(value));
249 return *this;
250 }
252
254
257 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
258 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
259 void SetTags(TagsT&& value) {
260 m_tagsHasBeenSet = true;
261 m_tags = std::forward<TagsT>(value);
262 }
263 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
265 SetTags(std::forward<TagsT>(value));
266 return *this;
267 }
268 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
269 CreateChannelResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
270 m_tagsHasBeenSet = true;
271 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
272 return *this;
273 }
275
277
282 inline const InputSwitchConfiguration& GetInputSwitchConfiguration() const { return m_inputSwitchConfiguration; }
283 template <typename InputSwitchConfigurationT = InputSwitchConfiguration>
284 void SetInputSwitchConfiguration(InputSwitchConfigurationT&& value) {
285 m_inputSwitchConfigurationHasBeenSet = true;
286 m_inputSwitchConfiguration = std::forward<InputSwitchConfigurationT>(value);
287 }
288 template <typename InputSwitchConfigurationT = InputSwitchConfiguration>
289 CreateChannelResult& WithInputSwitchConfiguration(InputSwitchConfigurationT&& value) {
290 SetInputSwitchConfiguration(std::forward<InputSwitchConfigurationT>(value));
291 return *this;
292 }
294
296
301 inline const OutputHeaderConfiguration& GetOutputHeaderConfiguration() const { return m_outputHeaderConfiguration; }
302 template <typename OutputHeaderConfigurationT = OutputHeaderConfiguration>
303 void SetOutputHeaderConfiguration(OutputHeaderConfigurationT&& value) {
304 m_outputHeaderConfigurationHasBeenSet = true;
305 m_outputHeaderConfiguration = std::forward<OutputHeaderConfigurationT>(value);
306 }
307 template <typename OutputHeaderConfigurationT = OutputHeaderConfiguration>
308 CreateChannelResult& WithOutputHeaderConfiguration(OutputHeaderConfigurationT&& value) {
309 SetOutputHeaderConfiguration(std::forward<OutputHeaderConfigurationT>(value));
310 return *this;
311 }
313
315
323 inline OutputLockingMode GetOutputLockingMode() const { return m_outputLockingMode; }
325 m_outputLockingModeHasBeenSet = true;
326 m_outputLockingMode = value;
327 }
330 return *this;
331 }
333
335
336 inline const Aws::String& GetRequestId() const { return m_requestId; }
337 template <typename RequestIdT = Aws::String>
338 void SetRequestId(RequestIdT&& value) {
339 m_requestIdHasBeenSet = true;
340 m_requestId = std::forward<RequestIdT>(value);
341 }
342 template <typename RequestIdT = Aws::String>
343 CreateChannelResult& WithRequestId(RequestIdT&& value) {
344 SetRequestId(std::forward<RequestIdT>(value));
345 return *this;
346 }
348 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
349
350 private:
351 MultiviewConfiguration m_multiviewConfiguration;
352
353 Aws::Vector<Aws::String> m_attachedMultiviewChannels;
354
355 Aws::String m_arn;
356
357 Aws::String m_channelName;
358
359 Aws::String m_channelGroupName;
360
361 Aws::Utils::DateTime m_createdAt{};
362
363 Aws::Utils::DateTime m_modifiedAt{};
364
365 Aws::String m_description;
366
367 Aws::Vector<IngestEndpoint> m_ingestEndpoints;
368
369 InputType m_inputType{InputType::NOT_SET};
370
371 Aws::String m_eTag;
372
374
375 InputSwitchConfiguration m_inputSwitchConfiguration;
376
377 OutputHeaderConfiguration m_outputHeaderConfiguration;
378
380
381 Aws::String m_requestId;
382 Aws::Http::HttpResponseCode m_HttpResponseCode;
383 bool m_multiviewConfigurationHasBeenSet = false;
384 bool m_attachedMultiviewChannelsHasBeenSet = false;
385 bool m_arnHasBeenSet = false;
386 bool m_channelNameHasBeenSet = false;
387 bool m_channelGroupNameHasBeenSet = false;
388 bool m_createdAtHasBeenSet = false;
389 bool m_modifiedAtHasBeenSet = false;
390 bool m_descriptionHasBeenSet = false;
391 bool m_ingestEndpointsHasBeenSet = false;
392 bool m_inputTypeHasBeenSet = false;
393 bool m_eTagHasBeenSet = false;
394 bool m_tagsHasBeenSet = false;
395 bool m_inputSwitchConfigurationHasBeenSet = false;
396 bool m_outputHeaderConfigurationHasBeenSet = false;
397 bool m_outputLockingModeHasBeenSet = false;
398 bool m_requestIdHasBeenSet = false;
399};
400
401} // namespace Model
402} // namespace mediapackagev2
403} // namespace Aws
CreateChannelResult & WithInputSwitchConfiguration(InputSwitchConfigurationT &&value)
CreateChannelResult & WithOutputLockingMode(OutputLockingMode value)
void SetOutputHeaderConfiguration(OutputHeaderConfigurationT &&value)
CreateChannelResult & WithChannelName(ChannelNameT &&value)
const InputSwitchConfiguration & GetInputSwitchConfiguration() const
CreateChannelResult & WithChannelGroupName(ChannelGroupNameT &&value)
AWS_MEDIAPACKAGEV2_API CreateChannelResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateChannelResult & AddIngestEndpoints(IngestEndpointsT &&value)
CreateChannelResult & WithOutputHeaderConfiguration(OutputHeaderConfigurationT &&value)
CreateChannelResult & WithIngestEndpoints(IngestEndpointsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateChannelResult & WithRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CreateChannelResult & WithAttachedMultiviewChannels(AttachedMultiviewChannelsT &&value)
CreateChannelResult & WithInputType(InputType value)
CreateChannelResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateChannelResult & WithETag(ETagT &&value)
void SetChannelGroupName(ChannelGroupNameT &&value)
CreateChannelResult & AddAttachedMultiviewChannels(AttachedMultiviewChannelsT &&value)
CreateChannelResult & WithArn(ArnT &&value)
const Aws::Vector< Aws::String > & GetAttachedMultiviewChannels() const
const Aws::Vector< IngestEndpoint > & GetIngestEndpoints() const
const Aws::Utils::DateTime & GetCreatedAt() const
void SetAttachedMultiviewChannels(AttachedMultiviewChannelsT &&value)
const MultiviewConfiguration & GetMultiviewConfiguration() const
CreateChannelResult & WithTags(TagsT &&value)
void SetInputSwitchConfiguration(InputSwitchConfigurationT &&value)
AWS_MEDIAPACKAGEV2_API CreateChannelResult()=default
CreateChannelResult & WithCreatedAt(CreatedAtT &&value)
CreateChannelResult & WithModifiedAt(ModifiedAtT &&value)
const OutputHeaderConfiguration & GetOutputHeaderConfiguration() const
const Aws::Utils::DateTime & GetModifiedAt() const
AWS_MEDIAPACKAGEV2_API CreateChannelResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetMultiviewConfiguration(MultiviewConfigurationT &&value)
CreateChannelResult & WithDescription(DescriptionT &&value)
CreateChannelResult & WithMultiviewConfiguration(MultiviewConfigurationT &&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
Aws::Utils::Json::JsonValue JsonValue