AWS SDK for C++

AWS SDK for C++ Version 1.11.788

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
21#include <utility>
22
23namespace Aws {
24template <typename RESULT_TYPE>
25class AmazonWebServiceResult;
26
27namespace Utils {
28namespace Json {
29class JsonValue;
30} // namespace Json
31} // namespace Utils
32namespace mediapackagev2 {
33namespace Model {
35 public:
36 AWS_MEDIAPACKAGEV2_API CreateOriginEndpointResult() = default;
39
41
44 inline const Aws::String& GetArn() const { return m_arn; }
45 template <typename ArnT = Aws::String>
46 void SetArn(ArnT&& value) {
47 m_arnHasBeenSet = true;
48 m_arn = std::forward<ArnT>(value);
49 }
50 template <typename ArnT = Aws::String>
52 SetArn(std::forward<ArnT>(value));
53 return *this;
54 }
56
58
63 inline const Aws::String& GetChannelGroupName() const { return m_channelGroupName; }
64 template <typename ChannelGroupNameT = Aws::String>
65 void SetChannelGroupName(ChannelGroupNameT&& value) {
66 m_channelGroupNameHasBeenSet = true;
67 m_channelGroupName = std::forward<ChannelGroupNameT>(value);
68 }
69 template <typename ChannelGroupNameT = Aws::String>
71 SetChannelGroupName(std::forward<ChannelGroupNameT>(value));
72 return *this;
73 }
75
77
82 inline const Aws::String& GetChannelName() const { return m_channelName; }
83 template <typename ChannelNameT = Aws::String>
84 void SetChannelName(ChannelNameT&& value) {
85 m_channelNameHasBeenSet = true;
86 m_channelName = std::forward<ChannelNameT>(value);
87 }
88 template <typename ChannelNameT = Aws::String>
90 SetChannelName(std::forward<ChannelNameT>(value));
91 return *this;
92 }
94
96
101 inline const Aws::String& GetOriginEndpointName() const { return m_originEndpointName; }
102 template <typename OriginEndpointNameT = Aws::String>
103 void SetOriginEndpointName(OriginEndpointNameT&& value) {
104 m_originEndpointNameHasBeenSet = true;
105 m_originEndpointName = std::forward<OriginEndpointNameT>(value);
106 }
107 template <typename OriginEndpointNameT = Aws::String>
109 SetOriginEndpointName(std::forward<OriginEndpointNameT>(value));
110 return *this;
111 }
113
115
118 inline ContainerType GetContainerType() const { return m_containerType; }
119 inline void SetContainerType(ContainerType value) {
120 m_containerTypeHasBeenSet = true;
121 m_containerType = value;
122 }
124 SetContainerType(value);
125 return *this;
126 }
128
130
134 inline const Segment& GetSegment() const { return m_segment; }
135 template <typename SegmentT = Segment>
136 void SetSegment(SegmentT&& value) {
137 m_segmentHasBeenSet = true;
138 m_segment = std::forward<SegmentT>(value);
139 }
140 template <typename SegmentT = Segment>
142 SetSegment(std::forward<SegmentT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
152 template <typename CreatedAtT = Aws::Utils::DateTime>
153 void SetCreatedAt(CreatedAtT&& value) {
154 m_createdAtHasBeenSet = true;
155 m_createdAt = std::forward<CreatedAtT>(value);
156 }
157 template <typename CreatedAtT = Aws::Utils::DateTime>
159 SetCreatedAt(std::forward<CreatedAtT>(value));
160 return *this;
161 }
163
165
168 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
169 template <typename ModifiedAtT = Aws::Utils::DateTime>
170 void SetModifiedAt(ModifiedAtT&& value) {
171 m_modifiedAtHasBeenSet = true;
172 m_modifiedAt = std::forward<ModifiedAtT>(value);
173 }
174 template <typename ModifiedAtT = Aws::Utils::DateTime>
176 SetModifiedAt(std::forward<ModifiedAtT>(value));
177 return *this;
178 }
180
182
185 inline const Aws::String& GetDescription() const { return m_description; }
186 template <typename DescriptionT = Aws::String>
187 void SetDescription(DescriptionT&& value) {
188 m_descriptionHasBeenSet = true;
189 m_description = std::forward<DescriptionT>(value);
190 }
191 template <typename DescriptionT = Aws::String>
193 SetDescription(std::forward<DescriptionT>(value));
194 return *this;
195 }
197
199
204 inline int GetStartoverWindowSeconds() const { return m_startoverWindowSeconds; }
205 inline void SetStartoverWindowSeconds(int value) {
206 m_startoverWindowSecondsHasBeenSet = true;
207 m_startoverWindowSeconds = value;
208 }
211 return *this;
212 }
214
216
219 inline const Aws::Vector<GetHlsManifestConfiguration>& GetGetHlsManifests() const { return m_hlsManifests; }
220 template <typename HlsManifestsT = Aws::Vector<GetHlsManifestConfiguration>>
221 void SetHlsManifests(HlsManifestsT&& value) {
222 m_hlsManifestsHasBeenSet = true;
223 m_hlsManifests = std::forward<HlsManifestsT>(value);
224 }
225 template <typename HlsManifestsT = Aws::Vector<GetHlsManifestConfiguration>>
227 SetHlsManifests(std::forward<HlsManifestsT>(value));
228 return *this;
229 }
230 template <typename HlsManifestsT = GetHlsManifestConfiguration>
232 m_hlsManifestsHasBeenSet = true;
233 m_hlsManifests.emplace_back(std::forward<HlsManifestsT>(value));
234 return *this;
235 }
237
239
242 inline const Aws::Vector<GetLowLatencyHlsManifestConfiguration>& GetGetLowLatencyHlsManifests() const { return m_lowLatencyHlsManifests; }
243 template <typename LowLatencyHlsManifestsT = Aws::Vector<GetLowLatencyHlsManifestConfiguration>>
244 void SetLowLatencyHlsManifests(LowLatencyHlsManifestsT&& value) {
245 m_lowLatencyHlsManifestsHasBeenSet = true;
246 m_lowLatencyHlsManifests = std::forward<LowLatencyHlsManifestsT>(value);
247 }
248 template <typename LowLatencyHlsManifestsT = Aws::Vector<GetLowLatencyHlsManifestConfiguration>>
249 CreateOriginEndpointResult& WithLowLatencyHlsManifests(LowLatencyHlsManifestsT&& value) {
250 SetLowLatencyHlsManifests(std::forward<LowLatencyHlsManifestsT>(value));
251 return *this;
252 }
253 template <typename LowLatencyHlsManifestsT = GetLowLatencyHlsManifestConfiguration>
254 CreateOriginEndpointResult& AddLowLatencyHlsManifests(LowLatencyHlsManifestsT&& value) {
255 m_lowLatencyHlsManifestsHasBeenSet = true;
256 m_lowLatencyHlsManifests.emplace_back(std::forward<LowLatencyHlsManifestsT>(value));
257 return *this;
258 }
260
262
265 inline const Aws::Vector<GetDashManifestConfiguration>& GetGetDashManifests() const { return m_dashManifests; }
266 template <typename DashManifestsT = Aws::Vector<GetDashManifestConfiguration>>
267 void SetDashManifests(DashManifestsT&& value) {
268 m_dashManifestsHasBeenSet = true;
269 m_dashManifests = std::forward<DashManifestsT>(value);
270 }
271 template <typename DashManifestsT = Aws::Vector<GetDashManifestConfiguration>>
273 SetDashManifests(std::forward<DashManifestsT>(value));
274 return *this;
275 }
276 template <typename DashManifestsT = GetDashManifestConfiguration>
278 m_dashManifestsHasBeenSet = true;
279 m_dashManifests.emplace_back(std::forward<DashManifestsT>(value));
280 return *this;
281 }
283
285
289 inline const Aws::Vector<GetMssManifestConfiguration>& GetGetMssManifests() const { return m_mssManifests; }
290 template <typename MssManifestsT = Aws::Vector<GetMssManifestConfiguration>>
291 void SetMssManifests(MssManifestsT&& value) {
292 m_mssManifestsHasBeenSet = true;
293 m_mssManifests = std::forward<MssManifestsT>(value);
294 }
295 template <typename MssManifestsT = Aws::Vector<GetMssManifestConfiguration>>
297 SetMssManifests(std::forward<MssManifestsT>(value));
298 return *this;
299 }
300 template <typename MssManifestsT = GetMssManifestConfiguration>
302 m_mssManifestsHasBeenSet = true;
303 m_mssManifests.emplace_back(std::forward<MssManifestsT>(value));
304 return *this;
305 }
307
309
312 inline const ForceEndpointErrorConfiguration& GetForceEndpointErrorConfiguration() const { return m_forceEndpointErrorConfiguration; }
313 template <typename ForceEndpointErrorConfigurationT = ForceEndpointErrorConfiguration>
314 void SetForceEndpointErrorConfiguration(ForceEndpointErrorConfigurationT&& value) {
315 m_forceEndpointErrorConfigurationHasBeenSet = true;
316 m_forceEndpointErrorConfiguration = std::forward<ForceEndpointErrorConfigurationT>(value);
317 }
318 template <typename ForceEndpointErrorConfigurationT = ForceEndpointErrorConfiguration>
319 CreateOriginEndpointResult& WithForceEndpointErrorConfiguration(ForceEndpointErrorConfigurationT&& value) {
320 SetForceEndpointErrorConfiguration(std::forward<ForceEndpointErrorConfigurationT>(value));
321 return *this;
322 }
324
326
330 inline const Aws::String& GetETag() const { return m_eTag; }
331 template <typename ETagT = Aws::String>
332 void SetETag(ETagT&& value) {
333 m_eTagHasBeenSet = true;
334 m_eTag = std::forward<ETagT>(value);
335 }
336 template <typename ETagT = Aws::String>
338 SetETag(std::forward<ETagT>(value));
339 return *this;
340 }
342
344
348 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
349 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
350 void SetTags(TagsT&& value) {
351 m_tagsHasBeenSet = true;
352 m_tags = std::forward<TagsT>(value);
353 }
354 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
356 SetTags(std::forward<TagsT>(value));
357 return *this;
358 }
359 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
360 CreateOriginEndpointResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
361 m_tagsHasBeenSet = true;
362 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
363 return *this;
364 }
366
368
369 inline const Aws::String& GetRequestId() const { return m_requestId; }
370 template <typename RequestIdT = Aws::String>
371 void SetRequestId(RequestIdT&& value) {
372 m_requestIdHasBeenSet = true;
373 m_requestId = std::forward<RequestIdT>(value);
374 }
375 template <typename RequestIdT = Aws::String>
377 SetRequestId(std::forward<RequestIdT>(value));
378 return *this;
379 }
381 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
382
383 private:
384 Aws::String m_arn;
385
386 Aws::String m_channelGroupName;
387
388 Aws::String m_channelName;
389
390 Aws::String m_originEndpointName;
391
392 ContainerType m_containerType{ContainerType::NOT_SET};
393
394 Segment m_segment;
395
396 Aws::Utils::DateTime m_createdAt{};
397
398 Aws::Utils::DateTime m_modifiedAt{};
399
400 Aws::String m_description;
401
402 int m_startoverWindowSeconds{0};
403
405
407
409
411
412 ForceEndpointErrorConfiguration m_forceEndpointErrorConfiguration;
413
414 Aws::String m_eTag;
415
417
418 Aws::String m_requestId;
419 Aws::Http::HttpResponseCode m_HttpResponseCode;
420 bool m_arnHasBeenSet = false;
421 bool m_channelGroupNameHasBeenSet = false;
422 bool m_channelNameHasBeenSet = false;
423 bool m_originEndpointNameHasBeenSet = false;
424 bool m_containerTypeHasBeenSet = false;
425 bool m_segmentHasBeenSet = false;
426 bool m_createdAtHasBeenSet = false;
427 bool m_modifiedAtHasBeenSet = false;
428 bool m_descriptionHasBeenSet = false;
429 bool m_startoverWindowSecondsHasBeenSet = false;
430 bool m_hlsManifestsHasBeenSet = false;
431 bool m_lowLatencyHlsManifestsHasBeenSet = false;
432 bool m_dashManifestsHasBeenSet = false;
433 bool m_mssManifestsHasBeenSet = false;
434 bool m_forceEndpointErrorConfigurationHasBeenSet = false;
435 bool m_eTagHasBeenSet = false;
436 bool m_tagsHasBeenSet = false;
437 bool m_requestIdHasBeenSet = false;
438};
439
440} // namespace Model
441} // namespace mediapackagev2
442} // 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 & 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