AWS SDK for C++

AWS SDK for C++ Version 1.11.889

Loading...
Searching...
No Matches
GetChannelResult.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 GetChannelResult() = 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 GetChannelResult& 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 GetChannelResult& WithAttachedMultiviewChannels(AttachedMultiviewChannelsT&& value) {
72 SetAttachedMultiviewChannels(std::forward<AttachedMultiviewChannelsT>(value));
73 return *this;
74 }
75 template <typename AttachedMultiviewChannelsT = Aws::String>
76 GetChannelResult& 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>
94 GetChannelResult& WithArn(ArnT&& value) {
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 GetChannelResult& 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 GetChannelResult& 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 GetChannelResult& 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 GetChannelResult& WithModifiedAt(ModifiedAtT&& value) {
167 SetModifiedAt(std::forward<ModifiedAtT>(value));
168 return *this;
169 }
171
173
176 inline const Aws::Utils::DateTime& GetResetAt() const { return m_resetAt; }
177 template <typename ResetAtT = Aws::Utils::DateTime>
178 void SetResetAt(ResetAtT&& value) {
179 m_resetAtHasBeenSet = true;
180 m_resetAt = std::forward<ResetAtT>(value);
181 }
182 template <typename ResetAtT = Aws::Utils::DateTime>
183 GetChannelResult& WithResetAt(ResetAtT&& value) {
184 SetResetAt(std::forward<ResetAtT>(value));
185 return *this;
186 }
188
190
193 inline const Aws::String& GetDescription() const { return m_description; }
194 template <typename DescriptionT = Aws::String>
195 void SetDescription(DescriptionT&& value) {
196 m_descriptionHasBeenSet = true;
197 m_description = std::forward<DescriptionT>(value);
198 }
199 template <typename DescriptionT = Aws::String>
200 GetChannelResult& WithDescription(DescriptionT&& value) {
201 SetDescription(std::forward<DescriptionT>(value));
202 return *this;
203 }
205
207
208 inline const Aws::Vector<IngestEndpoint>& GetIngestEndpoints() const { return m_ingestEndpoints; }
209 template <typename IngestEndpointsT = Aws::Vector<IngestEndpoint>>
210 void SetIngestEndpoints(IngestEndpointsT&& value) {
211 m_ingestEndpointsHasBeenSet = true;
212 m_ingestEndpoints = std::forward<IngestEndpointsT>(value);
213 }
214 template <typename IngestEndpointsT = Aws::Vector<IngestEndpoint>>
215 GetChannelResult& WithIngestEndpoints(IngestEndpointsT&& value) {
216 SetIngestEndpoints(std::forward<IngestEndpointsT>(value));
217 return *this;
218 }
219 template <typename IngestEndpointsT = IngestEndpoint>
220 GetChannelResult& AddIngestEndpoints(IngestEndpointsT&& value) {
221 m_ingestEndpointsHasBeenSet = true;
222 m_ingestEndpoints.emplace_back(std::forward<IngestEndpointsT>(value));
223 return *this;
224 }
226
228
241 inline InputType GetInputType() const { return m_inputType; }
242 inline void SetInputType(InputType value) {
243 m_inputTypeHasBeenSet = true;
244 m_inputType = value;
245 }
247 SetInputType(value);
248 return *this;
249 }
251
253
257 inline const Aws::String& GetETag() const { return m_eTag; }
258 template <typename ETagT = Aws::String>
259 void SetETag(ETagT&& value) {
260 m_eTagHasBeenSet = true;
261 m_eTag = std::forward<ETagT>(value);
262 }
263 template <typename ETagT = Aws::String>
264 GetChannelResult& WithETag(ETagT&& value) {
265 SetETag(std::forward<ETagT>(value));
266 return *this;
267 }
269
271
274 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
275 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
276 void SetTags(TagsT&& value) {
277 m_tagsHasBeenSet = true;
278 m_tags = std::forward<TagsT>(value);
279 }
280 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
281 GetChannelResult& WithTags(TagsT&& value) {
282 SetTags(std::forward<TagsT>(value));
283 return *this;
284 }
285 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
286 GetChannelResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
287 m_tagsHasBeenSet = true;
288 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
289 return *this;
290 }
292
294
299 inline const InputSwitchConfiguration& GetInputSwitchConfiguration() const { return m_inputSwitchConfiguration; }
300 template <typename InputSwitchConfigurationT = InputSwitchConfiguration>
301 void SetInputSwitchConfiguration(InputSwitchConfigurationT&& value) {
302 m_inputSwitchConfigurationHasBeenSet = true;
303 m_inputSwitchConfiguration = std::forward<InputSwitchConfigurationT>(value);
304 }
305 template <typename InputSwitchConfigurationT = InputSwitchConfiguration>
306 GetChannelResult& WithInputSwitchConfiguration(InputSwitchConfigurationT&& value) {
307 SetInputSwitchConfiguration(std::forward<InputSwitchConfigurationT>(value));
308 return *this;
309 }
311
313
318 inline const OutputHeaderConfiguration& GetOutputHeaderConfiguration() const { return m_outputHeaderConfiguration; }
319 template <typename OutputHeaderConfigurationT = OutputHeaderConfiguration>
320 void SetOutputHeaderConfiguration(OutputHeaderConfigurationT&& value) {
321 m_outputHeaderConfigurationHasBeenSet = true;
322 m_outputHeaderConfiguration = std::forward<OutputHeaderConfigurationT>(value);
323 }
324 template <typename OutputHeaderConfigurationT = OutputHeaderConfiguration>
325 GetChannelResult& WithOutputHeaderConfiguration(OutputHeaderConfigurationT&& value) {
326 SetOutputHeaderConfiguration(std::forward<OutputHeaderConfigurationT>(value));
327 return *this;
328 }
330
332
340 inline OutputLockingMode GetOutputLockingMode() const { return m_outputLockingMode; }
342 m_outputLockingModeHasBeenSet = true;
343 m_outputLockingMode = value;
344 }
347 return *this;
348 }
350
352
353 inline const Aws::String& GetRequestId() const { return m_requestId; }
354 template <typename RequestIdT = Aws::String>
355 void SetRequestId(RequestIdT&& value) {
356 m_requestIdHasBeenSet = true;
357 m_requestId = std::forward<RequestIdT>(value);
358 }
359 template <typename RequestIdT = Aws::String>
360 GetChannelResult& WithRequestId(RequestIdT&& value) {
361 SetRequestId(std::forward<RequestIdT>(value));
362 return *this;
363 }
365 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
366
367 private:
368 MultiviewConfiguration m_multiviewConfiguration;
369
370 Aws::Vector<Aws::String> m_attachedMultiviewChannels;
371
372 Aws::String m_arn;
373
374 Aws::String m_channelName;
375
376 Aws::String m_channelGroupName;
377
378 Aws::Utils::DateTime m_createdAt{};
379
380 Aws::Utils::DateTime m_modifiedAt{};
381
382 Aws::Utils::DateTime m_resetAt{};
383
384 Aws::String m_description;
385
386 Aws::Vector<IngestEndpoint> m_ingestEndpoints;
387
388 InputType m_inputType{InputType::NOT_SET};
389
390 Aws::String m_eTag;
391
393
394 InputSwitchConfiguration m_inputSwitchConfiguration;
395
396 OutputHeaderConfiguration m_outputHeaderConfiguration;
397
399
400 Aws::String m_requestId;
401 Aws::Http::HttpResponseCode m_HttpResponseCode;
402 bool m_multiviewConfigurationHasBeenSet = false;
403 bool m_attachedMultiviewChannelsHasBeenSet = false;
404 bool m_arnHasBeenSet = false;
405 bool m_channelNameHasBeenSet = false;
406 bool m_channelGroupNameHasBeenSet = false;
407 bool m_createdAtHasBeenSet = false;
408 bool m_modifiedAtHasBeenSet = false;
409 bool m_resetAtHasBeenSet = false;
410 bool m_descriptionHasBeenSet = false;
411 bool m_ingestEndpointsHasBeenSet = false;
412 bool m_inputTypeHasBeenSet = false;
413 bool m_eTagHasBeenSet = false;
414 bool m_tagsHasBeenSet = false;
415 bool m_inputSwitchConfigurationHasBeenSet = false;
416 bool m_outputHeaderConfigurationHasBeenSet = false;
417 bool m_outputLockingModeHasBeenSet = false;
418 bool m_requestIdHasBeenSet = false;
419};
420
421} // namespace Model
422} // namespace mediapackagev2
423} // namespace Aws
const Aws::Utils::DateTime & GetModifiedAt() const
void SetAttachedMultiviewChannels(AttachedMultiviewChannelsT &&value)
const Aws::Vector< Aws::String > & GetAttachedMultiviewChannels() const
GetChannelResult & AddIngestEndpoints(IngestEndpointsT &&value)
GetChannelResult & WithResetAt(ResetAtT &&value)
GetChannelResult & WithOutputHeaderConfiguration(OutputHeaderConfigurationT &&value)
GetChannelResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetChannelResult & WithInputType(InputType value)
GetChannelResult & WithChannelName(ChannelNameT &&value)
const Aws::String & GetChannelGroupName() const
GetChannelResult & AddAttachedMultiviewChannels(AttachedMultiviewChannelsT &&value)
const OutputHeaderConfiguration & GetOutputHeaderConfiguration() const
GetChannelResult & WithInputSwitchConfiguration(InputSwitchConfigurationT &&value)
GetChannelResult & WithRequestId(RequestIdT &&value)
void SetIngestEndpoints(IngestEndpointsT &&value)
AWS_MEDIAPACKAGEV2_API GetChannelResult()=default
const InputSwitchConfiguration & GetInputSwitchConfiguration() const
GetChannelResult & WithOutputLockingMode(OutputLockingMode value)
const MultiviewConfiguration & GetMultiviewConfiguration() const
void SetChannelGroupName(ChannelGroupNameT &&value)
GetChannelResult & WithIngestEndpoints(IngestEndpointsT &&value)
const Aws::Vector< IngestEndpoint > & GetIngestEndpoints() const
const Aws::Utils::DateTime & GetCreatedAt() const
GetChannelResult & WithArn(ArnT &&value)
const Aws::Utils::DateTime & GetResetAt() const
void SetOutputLockingMode(OutputLockingMode value)
AWS_MEDIAPACKAGEV2_API GetChannelResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_MEDIAPACKAGEV2_API GetChannelResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetChannelResult & WithETag(ETagT &&value)
GetChannelResult & WithModifiedAt(ModifiedAtT &&value)
GetChannelResult & WithTags(TagsT &&value)
GetChannelResult & WithDescription(DescriptionT &&value)
GetChannelResult & WithAttachedMultiviewChannels(AttachedMultiviewChannelsT &&value)
GetChannelResult & WithMultiviewConfiguration(MultiviewConfigurationT &&value)
void SetInputSwitchConfiguration(InputSwitchConfigurationT &&value)
GetChannelResult & WithCreatedAt(CreatedAtT &&value)
GetChannelResult & WithChannelGroupName(ChannelGroupNameT &&value)
void SetMultiviewConfiguration(MultiviewConfigurationT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetOutputHeaderConfiguration(OutputHeaderConfigurationT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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