AWS SDK for C++

AWS SDK for C++ Version 1.11.761

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
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace mediapackagev2 {
30namespace Model {
32 public:
33 AWS_MEDIAPACKAGEV2_API GetChannelResult() = default;
36
38
41 inline const Aws::String& GetArn() const { return m_arn; }
42 template <typename ArnT = Aws::String>
43 void SetArn(ArnT&& value) {
44 m_arnHasBeenSet = true;
45 m_arn = std::forward<ArnT>(value);
46 }
47 template <typename ArnT = Aws::String>
48 GetChannelResult& WithArn(ArnT&& value) {
49 SetArn(std::forward<ArnT>(value));
50 return *this;
51 }
53
55
60 inline const Aws::String& GetChannelName() const { return m_channelName; }
61 template <typename ChannelNameT = Aws::String>
62 void SetChannelName(ChannelNameT&& value) {
63 m_channelNameHasBeenSet = true;
64 m_channelName = std::forward<ChannelNameT>(value);
65 }
66 template <typename ChannelNameT = Aws::String>
67 GetChannelResult& WithChannelName(ChannelNameT&& value) {
68 SetChannelName(std::forward<ChannelNameT>(value));
69 return *this;
70 }
72
74
79 inline const Aws::String& GetChannelGroupName() const { return m_channelGroupName; }
80 template <typename ChannelGroupNameT = Aws::String>
81 void SetChannelGroupName(ChannelGroupNameT&& value) {
82 m_channelGroupNameHasBeenSet = true;
83 m_channelGroupName = std::forward<ChannelGroupNameT>(value);
84 }
85 template <typename ChannelGroupNameT = Aws::String>
86 GetChannelResult& WithChannelGroupName(ChannelGroupNameT&& value) {
87 SetChannelGroupName(std::forward<ChannelGroupNameT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
97 template <typename CreatedAtT = Aws::Utils::DateTime>
98 void SetCreatedAt(CreatedAtT&& value) {
99 m_createdAtHasBeenSet = true;
100 m_createdAt = std::forward<CreatedAtT>(value);
101 }
102 template <typename CreatedAtT = Aws::Utils::DateTime>
103 GetChannelResult& WithCreatedAt(CreatedAtT&& value) {
104 SetCreatedAt(std::forward<CreatedAtT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
114 template <typename ModifiedAtT = Aws::Utils::DateTime>
115 void SetModifiedAt(ModifiedAtT&& value) {
116 m_modifiedAtHasBeenSet = true;
117 m_modifiedAt = std::forward<ModifiedAtT>(value);
118 }
119 template <typename ModifiedAtT = Aws::Utils::DateTime>
120 GetChannelResult& WithModifiedAt(ModifiedAtT&& value) {
121 SetModifiedAt(std::forward<ModifiedAtT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::Utils::DateTime& GetResetAt() const { return m_resetAt; }
131 template <typename ResetAtT = Aws::Utils::DateTime>
132 void SetResetAt(ResetAtT&& value) {
133 m_resetAtHasBeenSet = true;
134 m_resetAt = std::forward<ResetAtT>(value);
135 }
136 template <typename ResetAtT = Aws::Utils::DateTime>
137 GetChannelResult& WithResetAt(ResetAtT&& value) {
138 SetResetAt(std::forward<ResetAtT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::String& GetDescription() const { return m_description; }
148 template <typename DescriptionT = Aws::String>
149 void SetDescription(DescriptionT&& value) {
150 m_descriptionHasBeenSet = true;
151 m_description = std::forward<DescriptionT>(value);
152 }
153 template <typename DescriptionT = Aws::String>
154 GetChannelResult& WithDescription(DescriptionT&& value) {
155 SetDescription(std::forward<DescriptionT>(value));
156 return *this;
157 }
159
161
162 inline const Aws::Vector<IngestEndpoint>& GetIngestEndpoints() const { return m_ingestEndpoints; }
163 template <typename IngestEndpointsT = Aws::Vector<IngestEndpoint>>
164 void SetIngestEndpoints(IngestEndpointsT&& value) {
165 m_ingestEndpointsHasBeenSet = true;
166 m_ingestEndpoints = std::forward<IngestEndpointsT>(value);
167 }
168 template <typename IngestEndpointsT = Aws::Vector<IngestEndpoint>>
169 GetChannelResult& WithIngestEndpoints(IngestEndpointsT&& value) {
170 SetIngestEndpoints(std::forward<IngestEndpointsT>(value));
171 return *this;
172 }
173 template <typename IngestEndpointsT = IngestEndpoint>
174 GetChannelResult& AddIngestEndpoints(IngestEndpointsT&& value) {
175 m_ingestEndpointsHasBeenSet = true;
176 m_ingestEndpoints.emplace_back(std::forward<IngestEndpointsT>(value));
177 return *this;
178 }
180
182
191 inline InputType GetInputType() const { return m_inputType; }
192 inline void SetInputType(InputType value) {
193 m_inputTypeHasBeenSet = true;
194 m_inputType = value;
195 }
197 SetInputType(value);
198 return *this;
199 }
201
203
207 inline const Aws::String& GetETag() const { return m_eTag; }
208 template <typename ETagT = Aws::String>
209 void SetETag(ETagT&& value) {
210 m_eTagHasBeenSet = true;
211 m_eTag = std::forward<ETagT>(value);
212 }
213 template <typename ETagT = Aws::String>
214 GetChannelResult& WithETag(ETagT&& value) {
215 SetETag(std::forward<ETagT>(value));
216 return *this;
217 }
219
221
224 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
225 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
226 void SetTags(TagsT&& value) {
227 m_tagsHasBeenSet = true;
228 m_tags = std::forward<TagsT>(value);
229 }
230 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
231 GetChannelResult& WithTags(TagsT&& value) {
232 SetTags(std::forward<TagsT>(value));
233 return *this;
234 }
235 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
236 GetChannelResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
237 m_tagsHasBeenSet = true;
238 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
239 return *this;
240 }
242
244
249 inline const InputSwitchConfiguration& GetInputSwitchConfiguration() const { return m_inputSwitchConfiguration; }
250 template <typename InputSwitchConfigurationT = InputSwitchConfiguration>
251 void SetInputSwitchConfiguration(InputSwitchConfigurationT&& value) {
252 m_inputSwitchConfigurationHasBeenSet = true;
253 m_inputSwitchConfiguration = std::forward<InputSwitchConfigurationT>(value);
254 }
255 template <typename InputSwitchConfigurationT = InputSwitchConfiguration>
256 GetChannelResult& WithInputSwitchConfiguration(InputSwitchConfigurationT&& value) {
257 SetInputSwitchConfiguration(std::forward<InputSwitchConfigurationT>(value));
258 return *this;
259 }
261
263
268 inline const OutputHeaderConfiguration& GetOutputHeaderConfiguration() const { return m_outputHeaderConfiguration; }
269 template <typename OutputHeaderConfigurationT = OutputHeaderConfiguration>
270 void SetOutputHeaderConfiguration(OutputHeaderConfigurationT&& value) {
271 m_outputHeaderConfigurationHasBeenSet = true;
272 m_outputHeaderConfiguration = std::forward<OutputHeaderConfigurationT>(value);
273 }
274 template <typename OutputHeaderConfigurationT = OutputHeaderConfiguration>
275 GetChannelResult& WithOutputHeaderConfiguration(OutputHeaderConfigurationT&& value) {
276 SetOutputHeaderConfiguration(std::forward<OutputHeaderConfigurationT>(value));
277 return *this;
278 }
280
282
283 inline const Aws::String& GetRequestId() const { return m_requestId; }
284 template <typename RequestIdT = Aws::String>
285 void SetRequestId(RequestIdT&& value) {
286 m_requestIdHasBeenSet = true;
287 m_requestId = std::forward<RequestIdT>(value);
288 }
289 template <typename RequestIdT = Aws::String>
290 GetChannelResult& WithRequestId(RequestIdT&& value) {
291 SetRequestId(std::forward<RequestIdT>(value));
292 return *this;
293 }
295 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
296
297 private:
298 Aws::String m_arn;
299
300 Aws::String m_channelName;
301
302 Aws::String m_channelGroupName;
303
304 Aws::Utils::DateTime m_createdAt{};
305
306 Aws::Utils::DateTime m_modifiedAt{};
307
308 Aws::Utils::DateTime m_resetAt{};
309
310 Aws::String m_description;
311
312 Aws::Vector<IngestEndpoint> m_ingestEndpoints;
313
314 InputType m_inputType{InputType::NOT_SET};
315
316 Aws::String m_eTag;
317
319
320 InputSwitchConfiguration m_inputSwitchConfiguration;
321
322 OutputHeaderConfiguration m_outputHeaderConfiguration;
323
324 Aws::String m_requestId;
325 Aws::Http::HttpResponseCode m_HttpResponseCode;
326 bool m_arnHasBeenSet = false;
327 bool m_channelNameHasBeenSet = false;
328 bool m_channelGroupNameHasBeenSet = false;
329 bool m_createdAtHasBeenSet = false;
330 bool m_modifiedAtHasBeenSet = false;
331 bool m_resetAtHasBeenSet = false;
332 bool m_descriptionHasBeenSet = false;
333 bool m_ingestEndpointsHasBeenSet = false;
334 bool m_inputTypeHasBeenSet = false;
335 bool m_eTagHasBeenSet = false;
336 bool m_tagsHasBeenSet = false;
337 bool m_inputSwitchConfigurationHasBeenSet = false;
338 bool m_outputHeaderConfigurationHasBeenSet = false;
339 bool m_requestIdHasBeenSet = false;
340};
341
342} // namespace Model
343} // namespace mediapackagev2
344} // 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)
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