AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DashPackage.h
1
6#pragma once
7#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/mediapackage-vod/model/DashEncryption.h>
10#include <aws/mediapackage-vod/model/SegmentTemplateFormat.h>
11#include <aws/mediapackage-vod/model/DashManifest.h>
12#include <aws/mediapackage-vod/model/__PeriodTriggersElement.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace MediaPackageVod
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_MEDIAPACKAGEVOD_API DashPackage() = default;
40 AWS_MEDIAPACKAGEVOD_API DashPackage(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MEDIAPACKAGEVOD_API DashPackage& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_MEDIAPACKAGEVOD_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::Vector<DashManifest>& GetDashManifests() const { return m_dashManifests; }
50 inline bool DashManifestsHasBeenSet() const { return m_dashManifestsHasBeenSet; }
51 template<typename DashManifestsT = Aws::Vector<DashManifest>>
52 void SetDashManifests(DashManifestsT&& value) { m_dashManifestsHasBeenSet = true; m_dashManifests = std::forward<DashManifestsT>(value); }
53 template<typename DashManifestsT = Aws::Vector<DashManifest>>
54 DashPackage& WithDashManifests(DashManifestsT&& value) { SetDashManifests(std::forward<DashManifestsT>(value)); return *this;}
55 template<typename DashManifestsT = DashManifest>
56 DashPackage& AddDashManifests(DashManifestsT&& value) { m_dashManifestsHasBeenSet = true; m_dashManifests.emplace_back(std::forward<DashManifestsT>(value)); return *this; }
58
60
61 inline const DashEncryption& GetEncryption() const { return m_encryption; }
62 inline bool EncryptionHasBeenSet() const { return m_encryptionHasBeenSet; }
63 template<typename EncryptionT = DashEncryption>
64 void SetEncryption(EncryptionT&& value) { m_encryptionHasBeenSet = true; m_encryption = std::forward<EncryptionT>(value); }
65 template<typename EncryptionT = DashEncryption>
66 DashPackage& WithEncryption(EncryptionT&& value) { SetEncryption(std::forward<EncryptionT>(value)); return *this;}
68
70
78 inline bool GetIncludeEncoderConfigurationInSegments() const { return m_includeEncoderConfigurationInSegments; }
79 inline bool IncludeEncoderConfigurationInSegmentsHasBeenSet() const { return m_includeEncoderConfigurationInSegmentsHasBeenSet; }
80 inline void SetIncludeEncoderConfigurationInSegments(bool value) { m_includeEncoderConfigurationInSegmentsHasBeenSet = true; m_includeEncoderConfigurationInSegments = value; }
83
85
88 inline bool GetIncludeIframeOnlyStream() const { return m_includeIframeOnlyStream; }
89 inline bool IncludeIframeOnlyStreamHasBeenSet() const { return m_includeIframeOnlyStreamHasBeenSet; }
90 inline void SetIncludeIframeOnlyStream(bool value) { m_includeIframeOnlyStreamHasBeenSet = true; m_includeIframeOnlyStream = value; }
91 inline DashPackage& WithIncludeIframeOnlyStream(bool value) { SetIncludeIframeOnlyStream(value); return *this;}
93
95
106 inline const Aws::Vector<__PeriodTriggersElement>& GetPeriodTriggers() const { return m_periodTriggers; }
107 inline bool PeriodTriggersHasBeenSet() const { return m_periodTriggersHasBeenSet; }
108 template<typename PeriodTriggersT = Aws::Vector<__PeriodTriggersElement>>
109 void SetPeriodTriggers(PeriodTriggersT&& value) { m_periodTriggersHasBeenSet = true; m_periodTriggers = std::forward<PeriodTriggersT>(value); }
110 template<typename PeriodTriggersT = Aws::Vector<__PeriodTriggersElement>>
111 DashPackage& WithPeriodTriggers(PeriodTriggersT&& value) { SetPeriodTriggers(std::forward<PeriodTriggersT>(value)); return *this;}
112 inline DashPackage& AddPeriodTriggers(__PeriodTriggersElement value) { m_periodTriggersHasBeenSet = true; m_periodTriggers.push_back(value); return *this; }
114
116
122 inline int GetSegmentDurationSeconds() const { return m_segmentDurationSeconds; }
123 inline bool SegmentDurationSecondsHasBeenSet() const { return m_segmentDurationSecondsHasBeenSet; }
124 inline void SetSegmentDurationSeconds(int value) { m_segmentDurationSecondsHasBeenSet = true; m_segmentDurationSeconds = value; }
125 inline DashPackage& WithSegmentDurationSeconds(int value) { SetSegmentDurationSeconds(value); return *this;}
127
129
137 inline SegmentTemplateFormat GetSegmentTemplateFormat() const { return m_segmentTemplateFormat; }
138 inline bool SegmentTemplateFormatHasBeenSet() const { return m_segmentTemplateFormatHasBeenSet; }
139 inline void SetSegmentTemplateFormat(SegmentTemplateFormat value) { m_segmentTemplateFormatHasBeenSet = true; m_segmentTemplateFormat = value; }
142 private:
143
144 Aws::Vector<DashManifest> m_dashManifests;
145 bool m_dashManifestsHasBeenSet = false;
146
147 DashEncryption m_encryption;
148 bool m_encryptionHasBeenSet = false;
149
150 bool m_includeEncoderConfigurationInSegments{false};
151 bool m_includeEncoderConfigurationInSegmentsHasBeenSet = false;
152
153 bool m_includeIframeOnlyStream{false};
154 bool m_includeIframeOnlyStreamHasBeenSet = false;
155
157 bool m_periodTriggersHasBeenSet = false;
158
159 int m_segmentDurationSeconds{0};
160 bool m_segmentDurationSecondsHasBeenSet = false;
161
163 bool m_segmentTemplateFormatHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace MediaPackageVod
168} // namespace Aws
DashPackage & WithSegmentTemplateFormat(SegmentTemplateFormat value)
SegmentTemplateFormat GetSegmentTemplateFormat() const
AWS_MEDIAPACKAGEVOD_API DashPackage(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< __PeriodTriggersElement > & GetPeriodTriggers() const
AWS_MEDIAPACKAGEVOD_API DashPackage()=default
void SetDashManifests(DashManifestsT &&value)
Definition DashPackage.h:52
bool IncludeEncoderConfigurationInSegmentsHasBeenSet() const
Definition DashPackage.h:79
void SetEncryption(EncryptionT &&value)
Definition DashPackage.h:64
DashPackage & AddDashManifests(DashManifestsT &&value)
Definition DashPackage.h:56
DashPackage & WithPeriodTriggers(PeriodTriggersT &&value)
void SetSegmentTemplateFormat(SegmentTemplateFormat value)
DashPackage & WithEncryption(EncryptionT &&value)
Definition DashPackage.h:66
void SetPeriodTriggers(PeriodTriggersT &&value)
AWS_MEDIAPACKAGEVOD_API DashPackage & operator=(Aws::Utils::Json::JsonView jsonValue)
DashPackage & AddPeriodTriggers(__PeriodTriggersElement value)
const DashEncryption & GetEncryption() const
Definition DashPackage.h:61
DashPackage & WithIncludeIframeOnlyStream(bool value)
Definition DashPackage.h:91
const Aws::Vector< DashManifest > & GetDashManifests() const
Definition DashPackage.h:49
DashPackage & WithDashManifests(DashManifestsT &&value)
Definition DashPackage.h:54
void SetIncludeEncoderConfigurationInSegments(bool value)
Definition DashPackage.h:80
DashPackage & WithSegmentDurationSeconds(int value)
AWS_MEDIAPACKAGEVOD_API Aws::Utils::Json::JsonValue Jsonize() const
DashPackage & WithIncludeEncoderConfigurationInSegments(bool value)
Definition DashPackage.h:81
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue