AWS SDK for C++

AWS SDK for C++ Version 1.11.814

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/UriSeparator.h>
21
22#include <utility>
23
24namespace Aws {
25template <typename RESULT_TYPE>
26class AmazonWebServiceResult;
27
28namespace Utils {
29namespace Json {
30class JsonValue;
31} // namespace Json
32} // namespace Utils
33namespace mediapackagev2 {
34namespace Model {
36 public:
37 AWS_MEDIAPACKAGEV2_API CreateOriginEndpointResult() = default;
40
42
45 inline const Aws::String& GetArn() const { return m_arn; }
46 template <typename ArnT = Aws::String>
47 void SetArn(ArnT&& value) {
48 m_arnHasBeenSet = true;
49 m_arn = std::forward<ArnT>(value);
50 }
51 template <typename ArnT = Aws::String>
53 SetArn(std::forward<ArnT>(value));
54 return *this;
55 }
57
59
64 inline const Aws::String& GetChannelGroupName() const { return m_channelGroupName; }
65 template <typename ChannelGroupNameT = Aws::String>
66 void SetChannelGroupName(ChannelGroupNameT&& value) {
67 m_channelGroupNameHasBeenSet = true;
68 m_channelGroupName = std::forward<ChannelGroupNameT>(value);
69 }
70 template <typename ChannelGroupNameT = Aws::String>
72 SetChannelGroupName(std::forward<ChannelGroupNameT>(value));
73 return *this;
74 }
76
78
83 inline const Aws::String& GetChannelName() const { return m_channelName; }
84 template <typename ChannelNameT = Aws::String>
85 void SetChannelName(ChannelNameT&& value) {
86 m_channelNameHasBeenSet = true;
87 m_channelName = std::forward<ChannelNameT>(value);
88 }
89 template <typename ChannelNameT = Aws::String>
91 SetChannelName(std::forward<ChannelNameT>(value));
92 return *this;
93 }
95
97
102 inline const Aws::String& GetOriginEndpointName() const { return m_originEndpointName; }
103 template <typename OriginEndpointNameT = Aws::String>
104 void SetOriginEndpointName(OriginEndpointNameT&& value) {
105 m_originEndpointNameHasBeenSet = true;
106 m_originEndpointName = std::forward<OriginEndpointNameT>(value);
107 }
108 template <typename OriginEndpointNameT = Aws::String>
110 SetOriginEndpointName(std::forward<OriginEndpointNameT>(value));
111 return *this;
112 }
114
116
119 inline ContainerType GetContainerType() const { return m_containerType; }
120 inline void SetContainerType(ContainerType value) {
121 m_containerTypeHasBeenSet = true;
122 m_containerType = value;
123 }
125 SetContainerType(value);
126 return *this;
127 }
129
131
135 inline const Segment& GetSegment() const { return m_segment; }
136 template <typename SegmentT = Segment>
137 void SetSegment(SegmentT&& value) {
138 m_segmentHasBeenSet = true;
139 m_segment = std::forward<SegmentT>(value);
140 }
141 template <typename SegmentT = Segment>
143 SetSegment(std::forward<SegmentT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
153 template <typename CreatedAtT = Aws::Utils::DateTime>
154 void SetCreatedAt(CreatedAtT&& value) {
155 m_createdAtHasBeenSet = true;
156 m_createdAt = std::forward<CreatedAtT>(value);
157 }
158 template <typename CreatedAtT = Aws::Utils::DateTime>
160 SetCreatedAt(std::forward<CreatedAtT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
170 template <typename ModifiedAtT = Aws::Utils::DateTime>
171 void SetModifiedAt(ModifiedAtT&& value) {
172 m_modifiedAtHasBeenSet = true;
173 m_modifiedAt = std::forward<ModifiedAtT>(value);
174 }
175 template <typename ModifiedAtT = Aws::Utils::DateTime>
177 SetModifiedAt(std::forward<ModifiedAtT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::String& GetDescription() const { return m_description; }
187 template <typename DescriptionT = Aws::String>
188 void SetDescription(DescriptionT&& value) {
189 m_descriptionHasBeenSet = true;
190 m_description = std::forward<DescriptionT>(value);
191 }
192 template <typename DescriptionT = Aws::String>
194 SetDescription(std::forward<DescriptionT>(value));
195 return *this;
196 }
198
200
205 inline int GetStartoverWindowSeconds() const { return m_startoverWindowSeconds; }
206 inline void SetStartoverWindowSeconds(int value) {
207 m_startoverWindowSecondsHasBeenSet = true;
208 m_startoverWindowSeconds = value;
209 }
212 return *this;
213 }
215
217
220 inline const Aws::Vector<GetHlsManifestConfiguration>& GetGetHlsManifests() const { return m_hlsManifests; }
221 template <typename HlsManifestsT = Aws::Vector<GetHlsManifestConfiguration>>
222 void SetHlsManifests(HlsManifestsT&& value) {
223 m_hlsManifestsHasBeenSet = true;
224 m_hlsManifests = std::forward<HlsManifestsT>(value);
225 }
226 template <typename HlsManifestsT = Aws::Vector<GetHlsManifestConfiguration>>
228 SetHlsManifests(std::forward<HlsManifestsT>(value));
229 return *this;
230 }
231 template <typename HlsManifestsT = GetHlsManifestConfiguration>
233 m_hlsManifestsHasBeenSet = true;
234 m_hlsManifests.emplace_back(std::forward<HlsManifestsT>(value));
235 return *this;
236 }
238
240
243 inline const Aws::Vector<GetLowLatencyHlsManifestConfiguration>& GetGetLowLatencyHlsManifests() const { return m_lowLatencyHlsManifests; }
244 template <typename LowLatencyHlsManifestsT = Aws::Vector<GetLowLatencyHlsManifestConfiguration>>
245 void SetLowLatencyHlsManifests(LowLatencyHlsManifestsT&& value) {
246 m_lowLatencyHlsManifestsHasBeenSet = true;
247 m_lowLatencyHlsManifests = std::forward<LowLatencyHlsManifestsT>(value);
248 }
249 template <typename LowLatencyHlsManifestsT = Aws::Vector<GetLowLatencyHlsManifestConfiguration>>
250 CreateOriginEndpointResult& WithLowLatencyHlsManifests(LowLatencyHlsManifestsT&& value) {
251 SetLowLatencyHlsManifests(std::forward<LowLatencyHlsManifestsT>(value));
252 return *this;
253 }
254 template <typename LowLatencyHlsManifestsT = GetLowLatencyHlsManifestConfiguration>
255 CreateOriginEndpointResult& AddLowLatencyHlsManifests(LowLatencyHlsManifestsT&& value) {
256 m_lowLatencyHlsManifestsHasBeenSet = true;
257 m_lowLatencyHlsManifests.emplace_back(std::forward<LowLatencyHlsManifestsT>(value));
258 return *this;
259 }
261
263
266 inline const Aws::Vector<GetDashManifestConfiguration>& GetGetDashManifests() const { return m_dashManifests; }
267 template <typename DashManifestsT = Aws::Vector<GetDashManifestConfiguration>>
268 void SetDashManifests(DashManifestsT&& value) {
269 m_dashManifestsHasBeenSet = true;
270 m_dashManifests = std::forward<DashManifestsT>(value);
271 }
272 template <typename DashManifestsT = Aws::Vector<GetDashManifestConfiguration>>
274 SetDashManifests(std::forward<DashManifestsT>(value));
275 return *this;
276 }
277 template <typename DashManifestsT = GetDashManifestConfiguration>
279 m_dashManifestsHasBeenSet = true;
280 m_dashManifests.emplace_back(std::forward<DashManifestsT>(value));
281 return *this;
282 }
284
286
290 inline const Aws::Vector<GetMssManifestConfiguration>& GetGetMssManifests() const { return m_mssManifests; }
291 template <typename MssManifestsT = Aws::Vector<GetMssManifestConfiguration>>
292 void SetMssManifests(MssManifestsT&& value) {
293 m_mssManifestsHasBeenSet = true;
294 m_mssManifests = std::forward<MssManifestsT>(value);
295 }
296 template <typename MssManifestsT = Aws::Vector<GetMssManifestConfiguration>>
298 SetMssManifests(std::forward<MssManifestsT>(value));
299 return *this;
300 }
301 template <typename MssManifestsT = GetMssManifestConfiguration>
303 m_mssManifestsHasBeenSet = true;
304 m_mssManifests.emplace_back(std::forward<MssManifestsT>(value));
305 return *this;
306 }
308
310
313 inline const ForceEndpointErrorConfiguration& GetForceEndpointErrorConfiguration() const { return m_forceEndpointErrorConfiguration; }
314 template <typename ForceEndpointErrorConfigurationT = ForceEndpointErrorConfiguration>
315 void SetForceEndpointErrorConfiguration(ForceEndpointErrorConfigurationT&& value) {
316 m_forceEndpointErrorConfigurationHasBeenSet = true;
317 m_forceEndpointErrorConfiguration = std::forward<ForceEndpointErrorConfigurationT>(value);
318 }
319 template <typename ForceEndpointErrorConfigurationT = ForceEndpointErrorConfiguration>
320 CreateOriginEndpointResult& WithForceEndpointErrorConfiguration(ForceEndpointErrorConfigurationT&& value) {
321 SetForceEndpointErrorConfiguration(std::forward<ForceEndpointErrorConfigurationT>(value));
322 return *this;
323 }
325
327
330 inline UriSeparator GetUriSeparator() const { return m_uriSeparator; }
331 inline void SetUriSeparator(UriSeparator value) {
332 m_uriSeparatorHasBeenSet = true;
333 m_uriSeparator = value;
334 }
336 SetUriSeparator(value);
337 return *this;
338 }
340
342
346 inline const Aws::String& GetETag() const { return m_eTag; }
347 template <typename ETagT = Aws::String>
348 void SetETag(ETagT&& value) {
349 m_eTagHasBeenSet = true;
350 m_eTag = std::forward<ETagT>(value);
351 }
352 template <typename ETagT = Aws::String>
354 SetETag(std::forward<ETagT>(value));
355 return *this;
356 }
358
360
364 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
365 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
366 void SetTags(TagsT&& value) {
367 m_tagsHasBeenSet = true;
368 m_tags = std::forward<TagsT>(value);
369 }
370 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
372 SetTags(std::forward<TagsT>(value));
373 return *this;
374 }
375 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
376 CreateOriginEndpointResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
377 m_tagsHasBeenSet = true;
378 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
379 return *this;
380 }
382
384
385 inline const Aws::String& GetRequestId() const { return m_requestId; }
386 template <typename RequestIdT = Aws::String>
387 void SetRequestId(RequestIdT&& value) {
388 m_requestIdHasBeenSet = true;
389 m_requestId = std::forward<RequestIdT>(value);
390 }
391 template <typename RequestIdT = Aws::String>
393 SetRequestId(std::forward<RequestIdT>(value));
394 return *this;
395 }
397 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
398
399 private:
400 Aws::String m_arn;
401
402 Aws::String m_channelGroupName;
403
404 Aws::String m_channelName;
405
406 Aws::String m_originEndpointName;
407
408 ContainerType m_containerType{ContainerType::NOT_SET};
409
410 Segment m_segment;
411
412 Aws::Utils::DateTime m_createdAt{};
413
414 Aws::Utils::DateTime m_modifiedAt{};
415
416 Aws::String m_description;
417
418 int m_startoverWindowSeconds{0};
419
421
423
425
427
428 ForceEndpointErrorConfiguration m_forceEndpointErrorConfiguration;
429
430 UriSeparator m_uriSeparator{UriSeparator::NOT_SET};
431
432 Aws::String m_eTag;
433
435
436 Aws::String m_requestId;
437 Aws::Http::HttpResponseCode m_HttpResponseCode;
438 bool m_arnHasBeenSet = false;
439 bool m_channelGroupNameHasBeenSet = false;
440 bool m_channelNameHasBeenSet = false;
441 bool m_originEndpointNameHasBeenSet = false;
442 bool m_containerTypeHasBeenSet = false;
443 bool m_segmentHasBeenSet = false;
444 bool m_createdAtHasBeenSet = false;
445 bool m_modifiedAtHasBeenSet = false;
446 bool m_descriptionHasBeenSet = false;
447 bool m_startoverWindowSecondsHasBeenSet = false;
448 bool m_hlsManifestsHasBeenSet = false;
449 bool m_lowLatencyHlsManifestsHasBeenSet = false;
450 bool m_dashManifestsHasBeenSet = false;
451 bool m_mssManifestsHasBeenSet = false;
452 bool m_forceEndpointErrorConfigurationHasBeenSet = false;
453 bool m_uriSeparatorHasBeenSet = false;
454 bool m_eTagHasBeenSet = false;
455 bool m_tagsHasBeenSet = false;
456 bool m_requestIdHasBeenSet = false;
457};
458
459} // namespace Model
460} // namespace mediapackagev2
461} // 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 & 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