AWS SDK for C++

AWS SDK for C++ Version 1.11.854

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/OutputHeaderConfiguration.h>
17#include <aws/mediapackagev2/model/OutputLockingMode.h>
18
19#include <utility>
20
21namespace Aws {
22template <typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils {
26namespace Json {
27class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace mediapackagev2 {
31namespace Model {
33 public:
34 AWS_MEDIAPACKAGEV2_API GetChannelResult() = default;
37
39
42 inline const Aws::String& GetArn() const { return m_arn; }
43 template <typename ArnT = Aws::String>
44 void SetArn(ArnT&& value) {
45 m_arnHasBeenSet = true;
46 m_arn = std::forward<ArnT>(value);
47 }
48 template <typename ArnT = Aws::String>
49 GetChannelResult& WithArn(ArnT&& value) {
50 SetArn(std::forward<ArnT>(value));
51 return *this;
52 }
54
56
61 inline const Aws::String& GetChannelName() const { return m_channelName; }
62 template <typename ChannelNameT = Aws::String>
63 void SetChannelName(ChannelNameT&& value) {
64 m_channelNameHasBeenSet = true;
65 m_channelName = std::forward<ChannelNameT>(value);
66 }
67 template <typename ChannelNameT = Aws::String>
68 GetChannelResult& WithChannelName(ChannelNameT&& value) {
69 SetChannelName(std::forward<ChannelNameT>(value));
70 return *this;
71 }
73
75
80 inline const Aws::String& GetChannelGroupName() const { return m_channelGroupName; }
81 template <typename ChannelGroupNameT = Aws::String>
82 void SetChannelGroupName(ChannelGroupNameT&& value) {
83 m_channelGroupNameHasBeenSet = true;
84 m_channelGroupName = std::forward<ChannelGroupNameT>(value);
85 }
86 template <typename ChannelGroupNameT = Aws::String>
87 GetChannelResult& WithChannelGroupName(ChannelGroupNameT&& value) {
88 SetChannelGroupName(std::forward<ChannelGroupNameT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
98 template <typename CreatedAtT = Aws::Utils::DateTime>
99 void SetCreatedAt(CreatedAtT&& value) {
100 m_createdAtHasBeenSet = true;
101 m_createdAt = std::forward<CreatedAtT>(value);
102 }
103 template <typename CreatedAtT = Aws::Utils::DateTime>
104 GetChannelResult& WithCreatedAt(CreatedAtT&& value) {
105 SetCreatedAt(std::forward<CreatedAtT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
115 template <typename ModifiedAtT = Aws::Utils::DateTime>
116 void SetModifiedAt(ModifiedAtT&& value) {
117 m_modifiedAtHasBeenSet = true;
118 m_modifiedAt = std::forward<ModifiedAtT>(value);
119 }
120 template <typename ModifiedAtT = Aws::Utils::DateTime>
121 GetChannelResult& WithModifiedAt(ModifiedAtT&& value) {
122 SetModifiedAt(std::forward<ModifiedAtT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::Utils::DateTime& GetResetAt() const { return m_resetAt; }
132 template <typename ResetAtT = Aws::Utils::DateTime>
133 void SetResetAt(ResetAtT&& value) {
134 m_resetAtHasBeenSet = true;
135 m_resetAt = std::forward<ResetAtT>(value);
136 }
137 template <typename ResetAtT = Aws::Utils::DateTime>
138 GetChannelResult& WithResetAt(ResetAtT&& value) {
139 SetResetAt(std::forward<ResetAtT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::String& GetDescription() const { return m_description; }
149 template <typename DescriptionT = Aws::String>
150 void SetDescription(DescriptionT&& value) {
151 m_descriptionHasBeenSet = true;
152 m_description = std::forward<DescriptionT>(value);
153 }
154 template <typename DescriptionT = Aws::String>
155 GetChannelResult& WithDescription(DescriptionT&& value) {
156 SetDescription(std::forward<DescriptionT>(value));
157 return *this;
158 }
160
162
163 inline const Aws::Vector<IngestEndpoint>& GetIngestEndpoints() const { return m_ingestEndpoints; }
164 template <typename IngestEndpointsT = Aws::Vector<IngestEndpoint>>
165 void SetIngestEndpoints(IngestEndpointsT&& value) {
166 m_ingestEndpointsHasBeenSet = true;
167 m_ingestEndpoints = std::forward<IngestEndpointsT>(value);
168 }
169 template <typename IngestEndpointsT = Aws::Vector<IngestEndpoint>>
170 GetChannelResult& WithIngestEndpoints(IngestEndpointsT&& value) {
171 SetIngestEndpoints(std::forward<IngestEndpointsT>(value));
172 return *this;
173 }
174 template <typename IngestEndpointsT = IngestEndpoint>
175 GetChannelResult& AddIngestEndpoints(IngestEndpointsT&& value) {
176 m_ingestEndpointsHasBeenSet = true;
177 m_ingestEndpoints.emplace_back(std::forward<IngestEndpointsT>(value));
178 return *this;
179 }
181
183
192 inline InputType GetInputType() const { return m_inputType; }
193 inline void SetInputType(InputType value) {
194 m_inputTypeHasBeenSet = true;
195 m_inputType = value;
196 }
198 SetInputType(value);
199 return *this;
200 }
202
204
208 inline const Aws::String& GetETag() const { return m_eTag; }
209 template <typename ETagT = Aws::String>
210 void SetETag(ETagT&& value) {
211 m_eTagHasBeenSet = true;
212 m_eTag = std::forward<ETagT>(value);
213 }
214 template <typename ETagT = Aws::String>
215 GetChannelResult& WithETag(ETagT&& value) {
216 SetETag(std::forward<ETagT>(value));
217 return *this;
218 }
220
222
225 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
226 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
227 void SetTags(TagsT&& value) {
228 m_tagsHasBeenSet = true;
229 m_tags = std::forward<TagsT>(value);
230 }
231 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
232 GetChannelResult& WithTags(TagsT&& value) {
233 SetTags(std::forward<TagsT>(value));
234 return *this;
235 }
236 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
237 GetChannelResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
238 m_tagsHasBeenSet = true;
239 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
240 return *this;
241 }
243
245
250 inline const InputSwitchConfiguration& GetInputSwitchConfiguration() const { return m_inputSwitchConfiguration; }
251 template <typename InputSwitchConfigurationT = InputSwitchConfiguration>
252 void SetInputSwitchConfiguration(InputSwitchConfigurationT&& value) {
253 m_inputSwitchConfigurationHasBeenSet = true;
254 m_inputSwitchConfiguration = std::forward<InputSwitchConfigurationT>(value);
255 }
256 template <typename InputSwitchConfigurationT = InputSwitchConfiguration>
257 GetChannelResult& WithInputSwitchConfiguration(InputSwitchConfigurationT&& value) {
258 SetInputSwitchConfiguration(std::forward<InputSwitchConfigurationT>(value));
259 return *this;
260 }
262
264
269 inline const OutputHeaderConfiguration& GetOutputHeaderConfiguration() const { return m_outputHeaderConfiguration; }
270 template <typename OutputHeaderConfigurationT = OutputHeaderConfiguration>
271 void SetOutputHeaderConfiguration(OutputHeaderConfigurationT&& value) {
272 m_outputHeaderConfigurationHasBeenSet = true;
273 m_outputHeaderConfiguration = std::forward<OutputHeaderConfigurationT>(value);
274 }
275 template <typename OutputHeaderConfigurationT = OutputHeaderConfiguration>
276 GetChannelResult& WithOutputHeaderConfiguration(OutputHeaderConfigurationT&& value) {
277 SetOutputHeaderConfiguration(std::forward<OutputHeaderConfigurationT>(value));
278 return *this;
279 }
281
283
291 inline OutputLockingMode GetOutputLockingMode() const { return m_outputLockingMode; }
293 m_outputLockingModeHasBeenSet = true;
294 m_outputLockingMode = value;
295 }
298 return *this;
299 }
301
303
304 inline const Aws::String& GetRequestId() const { return m_requestId; }
305 template <typename RequestIdT = Aws::String>
306 void SetRequestId(RequestIdT&& value) {
307 m_requestIdHasBeenSet = true;
308 m_requestId = std::forward<RequestIdT>(value);
309 }
310 template <typename RequestIdT = Aws::String>
311 GetChannelResult& WithRequestId(RequestIdT&& value) {
312 SetRequestId(std::forward<RequestIdT>(value));
313 return *this;
314 }
316 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
317
318 private:
319 Aws::String m_arn;
320
321 Aws::String m_channelName;
322
323 Aws::String m_channelGroupName;
324
325 Aws::Utils::DateTime m_createdAt{};
326
327 Aws::Utils::DateTime m_modifiedAt{};
328
329 Aws::Utils::DateTime m_resetAt{};
330
331 Aws::String m_description;
332
333 Aws::Vector<IngestEndpoint> m_ingestEndpoints;
334
335 InputType m_inputType{InputType::NOT_SET};
336
337 Aws::String m_eTag;
338
340
341 InputSwitchConfiguration m_inputSwitchConfiguration;
342
343 OutputHeaderConfiguration m_outputHeaderConfiguration;
344
346
347 Aws::String m_requestId;
348 Aws::Http::HttpResponseCode m_HttpResponseCode;
349 bool m_arnHasBeenSet = false;
350 bool m_channelNameHasBeenSet = false;
351 bool m_channelGroupNameHasBeenSet = false;
352 bool m_createdAtHasBeenSet = false;
353 bool m_modifiedAtHasBeenSet = false;
354 bool m_resetAtHasBeenSet = false;
355 bool m_descriptionHasBeenSet = false;
356 bool m_ingestEndpointsHasBeenSet = false;
357 bool m_inputTypeHasBeenSet = false;
358 bool m_eTagHasBeenSet = false;
359 bool m_tagsHasBeenSet = false;
360 bool m_inputSwitchConfigurationHasBeenSet = false;
361 bool m_outputHeaderConfigurationHasBeenSet = false;
362 bool m_outputLockingModeHasBeenSet = false;
363 bool m_requestIdHasBeenSet = false;
364};
365
366} // namespace Model
367} // namespace mediapackagev2
368} // namespace Aws
const Aws::Utils::DateTime & GetModifiedAt() 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
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)
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)
void SetInputSwitchConfiguration(InputSwitchConfigurationT &&value)
GetChannelResult & WithCreatedAt(CreatedAtT &&value)
GetChannelResult & WithChannelGroupName(ChannelGroupNameT &&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