AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetChannelResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/mediapackagev2/Mediapackagev2_EXPORTS.h>
12#include <aws/mediapackagev2/model/IngestEndpoint.h>
13#include <aws/mediapackagev2/model/InputSwitchConfiguration.h>
14#include <aws/mediapackagev2/model/InputType.h>
15#include <aws/mediapackagev2/model/OutputHeaderConfiguration.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace mediapackagev2 {
29namespace Model {
31 public:
32 AWS_MEDIAPACKAGEV2_API GetChannelResult() = default;
35
37
40 inline const Aws::String& GetArn() const { return m_arn; }
41 template <typename ArnT = Aws::String>
42 void SetArn(ArnT&& value) {
43 m_arnHasBeenSet = true;
44 m_arn = std::forward<ArnT>(value);
45 }
46 template <typename ArnT = Aws::String>
47 GetChannelResult& WithArn(ArnT&& value) {
48 SetArn(std::forward<ArnT>(value));
49 return *this;
50 }
52
54
59 inline const Aws::String& GetChannelName() const { return m_channelName; }
60 template <typename ChannelNameT = Aws::String>
61 void SetChannelName(ChannelNameT&& value) {
62 m_channelNameHasBeenSet = true;
63 m_channelName = std::forward<ChannelNameT>(value);
64 }
65 template <typename ChannelNameT = Aws::String>
66 GetChannelResult& WithChannelName(ChannelNameT&& value) {
67 SetChannelName(std::forward<ChannelNameT>(value));
68 return *this;
69 }
71
73
78 inline const Aws::String& GetChannelGroupName() const { return m_channelGroupName; }
79 template <typename ChannelGroupNameT = Aws::String>
80 void SetChannelGroupName(ChannelGroupNameT&& value) {
81 m_channelGroupNameHasBeenSet = true;
82 m_channelGroupName = std::forward<ChannelGroupNameT>(value);
83 }
84 template <typename ChannelGroupNameT = Aws::String>
85 GetChannelResult& WithChannelGroupName(ChannelGroupNameT&& value) {
86 SetChannelGroupName(std::forward<ChannelGroupNameT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
96 template <typename CreatedAtT = Aws::Utils::DateTime>
97 void SetCreatedAt(CreatedAtT&& value) {
98 m_createdAtHasBeenSet = true;
99 m_createdAt = std::forward<CreatedAtT>(value);
100 }
101 template <typename CreatedAtT = Aws::Utils::DateTime>
102 GetChannelResult& WithCreatedAt(CreatedAtT&& value) {
103 SetCreatedAt(std::forward<CreatedAtT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
113 template <typename ModifiedAtT = Aws::Utils::DateTime>
114 void SetModifiedAt(ModifiedAtT&& value) {
115 m_modifiedAtHasBeenSet = true;
116 m_modifiedAt = std::forward<ModifiedAtT>(value);
117 }
118 template <typename ModifiedAtT = Aws::Utils::DateTime>
119 GetChannelResult& WithModifiedAt(ModifiedAtT&& value) {
120 SetModifiedAt(std::forward<ModifiedAtT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::Utils::DateTime& GetResetAt() const { return m_resetAt; }
130 template <typename ResetAtT = Aws::Utils::DateTime>
131 void SetResetAt(ResetAtT&& value) {
132 m_resetAtHasBeenSet = true;
133 m_resetAt = std::forward<ResetAtT>(value);
134 }
135 template <typename ResetAtT = Aws::Utils::DateTime>
136 GetChannelResult& WithResetAt(ResetAtT&& value) {
137 SetResetAt(std::forward<ResetAtT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::String& GetDescription() const { return m_description; }
147 template <typename DescriptionT = Aws::String>
148 void SetDescription(DescriptionT&& value) {
149 m_descriptionHasBeenSet = true;
150 m_description = std::forward<DescriptionT>(value);
151 }
152 template <typename DescriptionT = Aws::String>
153 GetChannelResult& WithDescription(DescriptionT&& value) {
154 SetDescription(std::forward<DescriptionT>(value));
155 return *this;
156 }
158
160
161 inline const Aws::Vector<IngestEndpoint>& GetIngestEndpoints() const { return m_ingestEndpoints; }
162 template <typename IngestEndpointsT = Aws::Vector<IngestEndpoint>>
163 void SetIngestEndpoints(IngestEndpointsT&& value) {
164 m_ingestEndpointsHasBeenSet = true;
165 m_ingestEndpoints = std::forward<IngestEndpointsT>(value);
166 }
167 template <typename IngestEndpointsT = Aws::Vector<IngestEndpoint>>
168 GetChannelResult& WithIngestEndpoints(IngestEndpointsT&& value) {
169 SetIngestEndpoints(std::forward<IngestEndpointsT>(value));
170 return *this;
171 }
172 template <typename IngestEndpointsT = IngestEndpoint>
173 GetChannelResult& AddIngestEndpoints(IngestEndpointsT&& value) {
174 m_ingestEndpointsHasBeenSet = true;
175 m_ingestEndpoints.emplace_back(std::forward<IngestEndpointsT>(value));
176 return *this;
177 }
179
181
190 inline InputType GetInputType() const { return m_inputType; }
191 inline void SetInputType(InputType value) {
192 m_inputTypeHasBeenSet = true;
193 m_inputType = value;
194 }
196 SetInputType(value);
197 return *this;
198 }
200
202
206 inline const Aws::String& GetETag() const { return m_eTag; }
207 template <typename ETagT = Aws::String>
208 void SetETag(ETagT&& value) {
209 m_eTagHasBeenSet = true;
210 m_eTag = std::forward<ETagT>(value);
211 }
212 template <typename ETagT = Aws::String>
213 GetChannelResult& WithETag(ETagT&& value) {
214 SetETag(std::forward<ETagT>(value));
215 return *this;
216 }
218
220
223 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
224 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
225 void SetTags(TagsT&& value) {
226 m_tagsHasBeenSet = true;
227 m_tags = std::forward<TagsT>(value);
228 }
229 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
230 GetChannelResult& WithTags(TagsT&& value) {
231 SetTags(std::forward<TagsT>(value));
232 return *this;
233 }
234 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
235 GetChannelResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
236 m_tagsHasBeenSet = true;
237 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
238 return *this;
239 }
241
243
248 inline const InputSwitchConfiguration& GetInputSwitchConfiguration() const { return m_inputSwitchConfiguration; }
249 template <typename InputSwitchConfigurationT = InputSwitchConfiguration>
250 void SetInputSwitchConfiguration(InputSwitchConfigurationT&& value) {
251 m_inputSwitchConfigurationHasBeenSet = true;
252 m_inputSwitchConfiguration = std::forward<InputSwitchConfigurationT>(value);
253 }
254 template <typename InputSwitchConfigurationT = InputSwitchConfiguration>
255 GetChannelResult& WithInputSwitchConfiguration(InputSwitchConfigurationT&& value) {
256 SetInputSwitchConfiguration(std::forward<InputSwitchConfigurationT>(value));
257 return *this;
258 }
260
262
267 inline const OutputHeaderConfiguration& GetOutputHeaderConfiguration() const { return m_outputHeaderConfiguration; }
268 template <typename OutputHeaderConfigurationT = OutputHeaderConfiguration>
269 void SetOutputHeaderConfiguration(OutputHeaderConfigurationT&& value) {
270 m_outputHeaderConfigurationHasBeenSet = true;
271 m_outputHeaderConfiguration = std::forward<OutputHeaderConfigurationT>(value);
272 }
273 template <typename OutputHeaderConfigurationT = OutputHeaderConfiguration>
274 GetChannelResult& WithOutputHeaderConfiguration(OutputHeaderConfigurationT&& value) {
275 SetOutputHeaderConfiguration(std::forward<OutputHeaderConfigurationT>(value));
276 return *this;
277 }
279
281
282 inline const Aws::String& GetRequestId() const { return m_requestId; }
283 template <typename RequestIdT = Aws::String>
284 void SetRequestId(RequestIdT&& value) {
285 m_requestIdHasBeenSet = true;
286 m_requestId = std::forward<RequestIdT>(value);
287 }
288 template <typename RequestIdT = Aws::String>
289 GetChannelResult& WithRequestId(RequestIdT&& value) {
290 SetRequestId(std::forward<RequestIdT>(value));
291 return *this;
292 }
294 private:
295 Aws::String m_arn;
296
297 Aws::String m_channelName;
298
299 Aws::String m_channelGroupName;
300
301 Aws::Utils::DateTime m_createdAt{};
302
303 Aws::Utils::DateTime m_modifiedAt{};
304
305 Aws::Utils::DateTime m_resetAt{};
306
307 Aws::String m_description;
308
309 Aws::Vector<IngestEndpoint> m_ingestEndpoints;
310
311 InputType m_inputType{InputType::NOT_SET};
312
313 Aws::String m_eTag;
314
316
317 InputSwitchConfiguration m_inputSwitchConfiguration;
318
319 OutputHeaderConfiguration m_outputHeaderConfiguration;
320
321 Aws::String m_requestId;
322 bool m_arnHasBeenSet = false;
323 bool m_channelNameHasBeenSet = false;
324 bool m_channelGroupNameHasBeenSet = false;
325 bool m_createdAtHasBeenSet = false;
326 bool m_modifiedAtHasBeenSet = false;
327 bool m_resetAtHasBeenSet = false;
328 bool m_descriptionHasBeenSet = false;
329 bool m_ingestEndpointsHasBeenSet = false;
330 bool m_inputTypeHasBeenSet = false;
331 bool m_eTagHasBeenSet = false;
332 bool m_tagsHasBeenSet = false;
333 bool m_inputSwitchConfigurationHasBeenSet = false;
334 bool m_outputHeaderConfigurationHasBeenSet = false;
335 bool m_requestIdHasBeenSet = false;
336};
337
338} // namespace Model
339} // namespace mediapackagev2
340} // 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
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
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)
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