AWS SDK for C++

AWS SDK for C++ Version 1.11.871

Loading...
Searching...
No Matches
CreateOriginEndpointResult.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/ContainerType.h>
14#include <aws/mediapackagev2/model/ForceEndpointErrorConfiguration.h>
15#include <aws/mediapackagev2/model/GetDashManifestConfiguration.h>
16#include <aws/mediapackagev2/model/GetHlsManifestConfiguration.h>
17#include <aws/mediapackagev2/model/GetLowLatencyHlsManifestConfiguration.h>
18#include <aws/mediapackagev2/model/GetMssManifestConfiguration.h>
19#include <aws/mediapackagev2/model/Segment.h>
20#include <aws/mediapackagev2/model/StreamNameOutputMode.h>
21#include <aws/mediapackagev2/model/UriSeparator.h>
22
23#include <utility>
24
25namespace Aws {
26template <typename RESULT_TYPE>
27class AmazonWebServiceResult;
28
29namespace Utils {
30namespace Json {
31class JsonValue;
32} // namespace Json
33} // namespace Utils
34namespace mediapackagev2 {
35namespace Model {
37 public:
38 AWS_MEDIAPACKAGEV2_API CreateOriginEndpointResult() = default;
41
43
46 inline const Aws::String& GetArn() const { return m_arn; }
47 template <typename ArnT = Aws::String>
48 void SetArn(ArnT&& value) {
49 m_arnHasBeenSet = true;
50 m_arn = std::forward<ArnT>(value);
51 }
52 template <typename ArnT = Aws::String>
54 SetArn(std::forward<ArnT>(value));
55 return *this;
56 }
58
60
65 inline const Aws::String& GetChannelGroupName() const { return m_channelGroupName; }
66 template <typename ChannelGroupNameT = Aws::String>
67 void SetChannelGroupName(ChannelGroupNameT&& value) {
68 m_channelGroupNameHasBeenSet = true;
69 m_channelGroupName = std::forward<ChannelGroupNameT>(value);
70 }
71 template <typename ChannelGroupNameT = Aws::String>
73 SetChannelGroupName(std::forward<ChannelGroupNameT>(value));
74 return *this;
75 }
77
79
84 inline const Aws::String& GetChannelName() const { return m_channelName; }
85 template <typename ChannelNameT = Aws::String>
86 void SetChannelName(ChannelNameT&& value) {
87 m_channelNameHasBeenSet = true;
88 m_channelName = std::forward<ChannelNameT>(value);
89 }
90 template <typename ChannelNameT = Aws::String>
92 SetChannelName(std::forward<ChannelNameT>(value));
93 return *this;
94 }
96
98
103 inline const Aws::String& GetOriginEndpointName() const { return m_originEndpointName; }
104 template <typename OriginEndpointNameT = Aws::String>
105 void SetOriginEndpointName(OriginEndpointNameT&& value) {
106 m_originEndpointNameHasBeenSet = true;
107 m_originEndpointName = std::forward<OriginEndpointNameT>(value);
108 }
109 template <typename OriginEndpointNameT = Aws::String>
111 SetOriginEndpointName(std::forward<OriginEndpointNameT>(value));
112 return *this;
113 }
115
117
120 inline ContainerType GetContainerType() const { return m_containerType; }
121 inline void SetContainerType(ContainerType value) {
122 m_containerTypeHasBeenSet = true;
123 m_containerType = value;
124 }
126 SetContainerType(value);
127 return *this;
128 }
130
132
136 inline const Segment& GetSegment() const { return m_segment; }
137 template <typename SegmentT = Segment>
138 void SetSegment(SegmentT&& value) {
139 m_segmentHasBeenSet = true;
140 m_segment = std::forward<SegmentT>(value);
141 }
142 template <typename SegmentT = Segment>
144 SetSegment(std::forward<SegmentT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
154 template <typename CreatedAtT = Aws::Utils::DateTime>
155 void SetCreatedAt(CreatedAtT&& value) {
156 m_createdAtHasBeenSet = true;
157 m_createdAt = std::forward<CreatedAtT>(value);
158 }
159 template <typename CreatedAtT = Aws::Utils::DateTime>
161 SetCreatedAt(std::forward<CreatedAtT>(value));
162 return *this;
163 }
165
167
170 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
171 template <typename ModifiedAtT = Aws::Utils::DateTime>
172 void SetModifiedAt(ModifiedAtT&& value) {
173 m_modifiedAtHasBeenSet = true;
174 m_modifiedAt = std::forward<ModifiedAtT>(value);
175 }
176 template <typename ModifiedAtT = Aws::Utils::DateTime>
178 SetModifiedAt(std::forward<ModifiedAtT>(value));
179 return *this;
180 }
182
184
187 inline const Aws::String& GetDescription() const { return m_description; }
188 template <typename DescriptionT = Aws::String>
189 void SetDescription(DescriptionT&& value) {
190 m_descriptionHasBeenSet = true;
191 m_description = std::forward<DescriptionT>(value);
192 }
193 template <typename DescriptionT = Aws::String>
195 SetDescription(std::forward<DescriptionT>(value));
196 return *this;
197 }
199
201
206 inline int GetStartoverWindowSeconds() const { return m_startoverWindowSeconds; }
207 inline void SetStartoverWindowSeconds(int value) {
208 m_startoverWindowSecondsHasBeenSet = true;
209 m_startoverWindowSeconds = value;
210 }
213 return *this;
214 }
216
218
221 inline const Aws::Vector<GetHlsManifestConfiguration>& GetGetHlsManifests() const { return m_hlsManifests; }
222 template <typename HlsManifestsT = Aws::Vector<GetHlsManifestConfiguration>>
223 void SetHlsManifests(HlsManifestsT&& value) {
224 m_hlsManifestsHasBeenSet = true;
225 m_hlsManifests = std::forward<HlsManifestsT>(value);
226 }
227 template <typename HlsManifestsT = Aws::Vector<GetHlsManifestConfiguration>>
229 SetHlsManifests(std::forward<HlsManifestsT>(value));
230 return *this;
231 }
232 template <typename HlsManifestsT = GetHlsManifestConfiguration>
234 m_hlsManifestsHasBeenSet = true;
235 m_hlsManifests.emplace_back(std::forward<HlsManifestsT>(value));
236 return *this;
237 }
239
241
244 inline const Aws::Vector<GetLowLatencyHlsManifestConfiguration>& GetGetLowLatencyHlsManifests() const { return m_lowLatencyHlsManifests; }
245 template <typename LowLatencyHlsManifestsT = Aws::Vector<GetLowLatencyHlsManifestConfiguration>>
246 void SetLowLatencyHlsManifests(LowLatencyHlsManifestsT&& value) {
247 m_lowLatencyHlsManifestsHasBeenSet = true;
248 m_lowLatencyHlsManifests = std::forward<LowLatencyHlsManifestsT>(value);
249 }
250 template <typename LowLatencyHlsManifestsT = Aws::Vector<GetLowLatencyHlsManifestConfiguration>>
251 CreateOriginEndpointResult& WithLowLatencyHlsManifests(LowLatencyHlsManifestsT&& value) {
252 SetLowLatencyHlsManifests(std::forward<LowLatencyHlsManifestsT>(value));
253 return *this;
254 }
255 template <typename LowLatencyHlsManifestsT = GetLowLatencyHlsManifestConfiguration>
256 CreateOriginEndpointResult& AddLowLatencyHlsManifests(LowLatencyHlsManifestsT&& value) {
257 m_lowLatencyHlsManifestsHasBeenSet = true;
258 m_lowLatencyHlsManifests.emplace_back(std::forward<LowLatencyHlsManifestsT>(value));
259 return *this;
260 }
262
264
267 inline const Aws::Vector<GetDashManifestConfiguration>& GetGetDashManifests() const { return m_dashManifests; }
268 template <typename DashManifestsT = Aws::Vector<GetDashManifestConfiguration>>
269 void SetDashManifests(DashManifestsT&& value) {
270 m_dashManifestsHasBeenSet = true;
271 m_dashManifests = std::forward<DashManifestsT>(value);
272 }
273 template <typename DashManifestsT = Aws::Vector<GetDashManifestConfiguration>>
275 SetDashManifests(std::forward<DashManifestsT>(value));
276 return *this;
277 }
278 template <typename DashManifestsT = GetDashManifestConfiguration>
280 m_dashManifestsHasBeenSet = true;
281 m_dashManifests.emplace_back(std::forward<DashManifestsT>(value));
282 return *this;
283 }
285
287
291 inline const Aws::Vector<GetMssManifestConfiguration>& GetGetMssManifests() const { return m_mssManifests; }
292 template <typename MssManifestsT = Aws::Vector<GetMssManifestConfiguration>>
293 void SetMssManifests(MssManifestsT&& value) {
294 m_mssManifestsHasBeenSet = true;
295 m_mssManifests = std::forward<MssManifestsT>(value);
296 }
297 template <typename MssManifestsT = Aws::Vector<GetMssManifestConfiguration>>
299 SetMssManifests(std::forward<MssManifestsT>(value));
300 return *this;
301 }
302 template <typename MssManifestsT = GetMssManifestConfiguration>
304 m_mssManifestsHasBeenSet = true;
305 m_mssManifests.emplace_back(std::forward<MssManifestsT>(value));
306 return *this;
307 }
309
311
314 inline const ForceEndpointErrorConfiguration& GetForceEndpointErrorConfiguration() const { return m_forceEndpointErrorConfiguration; }
315 template <typename ForceEndpointErrorConfigurationT = ForceEndpointErrorConfiguration>
316 void SetForceEndpointErrorConfiguration(ForceEndpointErrorConfigurationT&& value) {
317 m_forceEndpointErrorConfigurationHasBeenSet = true;
318 m_forceEndpointErrorConfiguration = std::forward<ForceEndpointErrorConfigurationT>(value);
319 }
320 template <typename ForceEndpointErrorConfigurationT = ForceEndpointErrorConfiguration>
321 CreateOriginEndpointResult& WithForceEndpointErrorConfiguration(ForceEndpointErrorConfigurationT&& value) {
322 SetForceEndpointErrorConfiguration(std::forward<ForceEndpointErrorConfigurationT>(value));
323 return *this;
324 }
326
328
331 inline UriSeparator GetUriSeparator() const { return m_uriSeparator; }
332 inline void SetUriSeparator(UriSeparator value) {
333 m_uriSeparatorHasBeenSet = true;
334 m_uriSeparator = value;
335 }
337 SetUriSeparator(value);
338 return *this;
339 }
341
343
347 inline StreamNameOutputMode GetStreamNameOutputMode() const { return m_streamNameOutputMode; }
349 m_streamNameOutputModeHasBeenSet = true;
350 m_streamNameOutputMode = value;
351 }
354 return *this;
355 }
357
359
363 inline const Aws::String& GetETag() const { return m_eTag; }
364 template <typename ETagT = Aws::String>
365 void SetETag(ETagT&& value) {
366 m_eTagHasBeenSet = true;
367 m_eTag = std::forward<ETagT>(value);
368 }
369 template <typename ETagT = Aws::String>
371 SetETag(std::forward<ETagT>(value));
372 return *this;
373 }
375
377
381 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
382 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
383 void SetTags(TagsT&& value) {
384 m_tagsHasBeenSet = true;
385 m_tags = std::forward<TagsT>(value);
386 }
387 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
389 SetTags(std::forward<TagsT>(value));
390 return *this;
391 }
392 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
393 CreateOriginEndpointResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
394 m_tagsHasBeenSet = true;
395 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
396 return *this;
397 }
399
401
402 inline const Aws::String& GetRequestId() const { return m_requestId; }
403 template <typename RequestIdT = Aws::String>
404 void SetRequestId(RequestIdT&& value) {
405 m_requestIdHasBeenSet = true;
406 m_requestId = std::forward<RequestIdT>(value);
407 }
408 template <typename RequestIdT = Aws::String>
410 SetRequestId(std::forward<RequestIdT>(value));
411 return *this;
412 }
414 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
415
416 private:
417 Aws::String m_arn;
418
419 Aws::String m_channelGroupName;
420
421 Aws::String m_channelName;
422
423 Aws::String m_originEndpointName;
424
425 ContainerType m_containerType{ContainerType::NOT_SET};
426
427 Segment m_segment;
428
429 Aws::Utils::DateTime m_createdAt{};
430
431 Aws::Utils::DateTime m_modifiedAt{};
432
433 Aws::String m_description;
434
435 int m_startoverWindowSeconds{0};
436
438
440
442
444
445 ForceEndpointErrorConfiguration m_forceEndpointErrorConfiguration;
446
447 UriSeparator m_uriSeparator{UriSeparator::NOT_SET};
448
450
451 Aws::String m_eTag;
452
454
455 Aws::String m_requestId;
456 Aws::Http::HttpResponseCode m_HttpResponseCode;
457 bool m_arnHasBeenSet = false;
458 bool m_channelGroupNameHasBeenSet = false;
459 bool m_channelNameHasBeenSet = false;
460 bool m_originEndpointNameHasBeenSet = false;
461 bool m_containerTypeHasBeenSet = false;
462 bool m_segmentHasBeenSet = false;
463 bool m_createdAtHasBeenSet = false;
464 bool m_modifiedAtHasBeenSet = false;
465 bool m_descriptionHasBeenSet = false;
466 bool m_startoverWindowSecondsHasBeenSet = false;
467 bool m_hlsManifestsHasBeenSet = false;
468 bool m_lowLatencyHlsManifestsHasBeenSet = false;
469 bool m_dashManifestsHasBeenSet = false;
470 bool m_mssManifestsHasBeenSet = false;
471 bool m_forceEndpointErrorConfigurationHasBeenSet = false;
472 bool m_uriSeparatorHasBeenSet = false;
473 bool m_streamNameOutputModeHasBeenSet = false;
474 bool m_eTagHasBeenSet = false;
475 bool m_tagsHasBeenSet = false;
476 bool m_requestIdHasBeenSet = false;
477};
478
479} // namespace Model
480} // namespace mediapackagev2
481} // namespace Aws
AWS_MEDIAPACKAGEV2_API CreateOriginEndpointResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateOriginEndpointResult & AddDashManifests(DashManifestsT &&value)
const ForceEndpointErrorConfiguration & GetForceEndpointErrorConfiguration() const
CreateOriginEndpointResult & WithRequestId(RequestIdT &&value)
CreateOriginEndpointResult & WithLowLatencyHlsManifests(LowLatencyHlsManifestsT &&value)
CreateOriginEndpointResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Vector< GetDashManifestConfiguration > & GetGetDashManifests() const
CreateOriginEndpointResult & WithModifiedAt(ModifiedAtT &&value)
CreateOriginEndpointResult & AddHlsManifests(HlsManifestsT &&value)
CreateOriginEndpointResult & WithSegment(SegmentT &&value)
CreateOriginEndpointResult & WithChannelName(ChannelNameT &&value)
const Aws::Vector< GetMssManifestConfiguration > & GetGetMssManifests() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_MEDIAPACKAGEV2_API CreateOriginEndpointResult()=default
CreateOriginEndpointResult & WithHlsManifests(HlsManifestsT &&value)
void SetForceEndpointErrorConfiguration(ForceEndpointErrorConfigurationT &&value)
CreateOriginEndpointResult & AddLowLatencyHlsManifests(LowLatencyHlsManifestsT &&value)
CreateOriginEndpointResult & WithContainerType(ContainerType value)
CreateOriginEndpointResult & WithStreamNameOutputMode(StreamNameOutputMode value)
CreateOriginEndpointResult & WithCreatedAt(CreatedAtT &&value)
const Aws::Vector< GetHlsManifestConfiguration > & GetGetHlsManifests() const
CreateOriginEndpointResult & WithForceEndpointErrorConfiguration(ForceEndpointErrorConfigurationT &&value)
CreateOriginEndpointResult & AddMssManifests(MssManifestsT &&value)
const Aws::Vector< GetLowLatencyHlsManifestConfiguration > & GetGetLowLatencyHlsManifests() const
CreateOriginEndpointResult & WithUriSeparator(UriSeparator value)
CreateOriginEndpointResult & WithOriginEndpointName(OriginEndpointNameT &&value)
AWS_MEDIAPACKAGEV2_API CreateOriginEndpointResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateOriginEndpointResult & WithDashManifests(DashManifestsT &&value)
CreateOriginEndpointResult & WithChannelGroupName(ChannelGroupNameT &&value)
CreateOriginEndpointResult & WithStartoverWindowSeconds(int value)
CreateOriginEndpointResult & WithMssManifests(MssManifestsT &&value)
CreateOriginEndpointResult & WithDescription(DescriptionT &&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