AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Segment.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mediapackagev2/Mediapackagev2_EXPORTS.h>
9#include <aws/mediapackagev2/model/Encryption.h>
10#include <aws/mediapackagev2/model/Scte.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace mediapackagev2 {
22namespace Model {
23
30class Segment {
31 public:
32 AWS_MEDIAPACKAGEV2_API Segment() = default;
33 AWS_MEDIAPACKAGEV2_API Segment(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MEDIAPACKAGEV2_API Segment& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_MEDIAPACKAGEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
44 inline int GetSegmentDurationSeconds() const { return m_segmentDurationSeconds; }
45 inline bool SegmentDurationSecondsHasBeenSet() const { return m_segmentDurationSecondsHasBeenSet; }
46 inline void SetSegmentDurationSeconds(int value) {
47 m_segmentDurationSecondsHasBeenSet = true;
48 m_segmentDurationSeconds = value;
49 }
52 return *this;
53 }
55
57
62 inline const Aws::String& GetSegmentName() const { return m_segmentName; }
63 inline bool SegmentNameHasBeenSet() const { return m_segmentNameHasBeenSet; }
64 template <typename SegmentNameT = Aws::String>
65 void SetSegmentName(SegmentNameT&& value) {
66 m_segmentNameHasBeenSet = true;
67 m_segmentName = std::forward<SegmentNameT>(value);
68 }
69 template <typename SegmentNameT = Aws::String>
70 Segment& WithSegmentName(SegmentNameT&& value) {
71 SetSegmentName(std::forward<SegmentNameT>(value));
72 return *this;
73 }
75
77
82 inline bool GetTsUseAudioRenditionGroup() const { return m_tsUseAudioRenditionGroup; }
83 inline bool TsUseAudioRenditionGroupHasBeenSet() const { return m_tsUseAudioRenditionGroupHasBeenSet; }
84 inline void SetTsUseAudioRenditionGroup(bool value) {
85 m_tsUseAudioRenditionGroupHasBeenSet = true;
86 m_tsUseAudioRenditionGroup = value;
87 }
90 return *this;
91 }
93
95
103 inline bool GetIncludeIframeOnlyStreams() const { return m_includeIframeOnlyStreams; }
104 inline bool IncludeIframeOnlyStreamsHasBeenSet() const { return m_includeIframeOnlyStreamsHasBeenSet; }
105 inline void SetIncludeIframeOnlyStreams(bool value) {
106 m_includeIframeOnlyStreamsHasBeenSet = true;
107 m_includeIframeOnlyStreams = value;
108 }
111 return *this;
112 }
114
116
121 inline bool GetTsIncludeDvbSubtitles() const { return m_tsIncludeDvbSubtitles; }
122 inline bool TsIncludeDvbSubtitlesHasBeenSet() const { return m_tsIncludeDvbSubtitlesHasBeenSet; }
123 inline void SetTsIncludeDvbSubtitles(bool value) {
124 m_tsIncludeDvbSubtitlesHasBeenSet = true;
125 m_tsIncludeDvbSubtitles = value;
126 }
127 inline Segment& WithTsIncludeDvbSubtitles(bool value) {
129 return *this;
130 }
132
134
137 inline const Scte& GetScte() const { return m_scte; }
138 inline bool ScteHasBeenSet() const { return m_scteHasBeenSet; }
139 template <typename ScteT = Scte>
140 void SetScte(ScteT&& value) {
141 m_scteHasBeenSet = true;
142 m_scte = std::forward<ScteT>(value);
143 }
144 template <typename ScteT = Scte>
145 Segment& WithScte(ScteT&& value) {
146 SetScte(std::forward<ScteT>(value));
147 return *this;
148 }
150
152
153 inline const Encryption& GetEncryption() const { return m_encryption; }
154 inline bool EncryptionHasBeenSet() const { return m_encryptionHasBeenSet; }
155 template <typename EncryptionT = Encryption>
156 void SetEncryption(EncryptionT&& value) {
157 m_encryptionHasBeenSet = true;
158 m_encryption = std::forward<EncryptionT>(value);
159 }
160 template <typename EncryptionT = Encryption>
161 Segment& WithEncryption(EncryptionT&& value) {
162 SetEncryption(std::forward<EncryptionT>(value));
163 return *this;
164 }
166 private:
167 int m_segmentDurationSeconds{0};
168
169 Aws::String m_segmentName;
170
171 bool m_tsUseAudioRenditionGroup{false};
172
173 bool m_includeIframeOnlyStreams{false};
174
175 bool m_tsIncludeDvbSubtitles{false};
176
177 Scte m_scte;
178
179 Encryption m_encryption;
180 bool m_segmentDurationSecondsHasBeenSet = false;
181 bool m_segmentNameHasBeenSet = false;
182 bool m_tsUseAudioRenditionGroupHasBeenSet = false;
183 bool m_includeIframeOnlyStreamsHasBeenSet = false;
184 bool m_tsIncludeDvbSubtitlesHasBeenSet = false;
185 bool m_scteHasBeenSet = false;
186 bool m_encryptionHasBeenSet = false;
187};
188
189} // namespace Model
190} // namespace mediapackagev2
191} // namespace Aws
Segment & WithEncryption(EncryptionT &&value)
Definition Segment.h:161
AWS_MEDIAPACKAGEV2_API Segment & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSegmentName() const
Definition Segment.h:62
Segment & WithTsIncludeDvbSubtitles(bool value)
Definition Segment.h:127
void SetTsUseAudioRenditionGroup(bool value)
Definition Segment.h:84
AWS_MEDIAPACKAGEV2_API Segment(Aws::Utils::Json::JsonView jsonValue)
bool GetTsUseAudioRenditionGroup() const
Definition Segment.h:82
AWS_MEDIAPACKAGEV2_API Aws::Utils::Json::JsonValue Jsonize() const
Segment & WithSegmentDurationSeconds(int value)
Definition Segment.h:50
void SetIncludeIframeOnlyStreams(bool value)
Definition Segment.h:105
Segment & WithTsUseAudioRenditionGroup(bool value)
Definition Segment.h:88
void SetSegmentName(SegmentNameT &&value)
Definition Segment.h:65
bool SegmentDurationSecondsHasBeenSet() const
Definition Segment.h:45
void SetSegmentDurationSeconds(int value)
Definition Segment.h:46
Segment & WithIncludeIframeOnlyStreams(bool value)
Definition Segment.h:109
const Scte & GetScte() const
Definition Segment.h:137
Segment & WithSegmentName(SegmentNameT &&value)
Definition Segment.h:70
AWS_MEDIAPACKAGEV2_API Segment()=default
const Encryption & GetEncryption() const
Definition Segment.h:153
bool IncludeIframeOnlyStreamsHasBeenSet() const
Definition Segment.h:104
bool TsUseAudioRenditionGroupHasBeenSet() const
Definition Segment.h:83
void SetEncryption(EncryptionT &&value)
Definition Segment.h:156
void SetScte(ScteT &&value)
Definition Segment.h:140
void SetTsIncludeDvbSubtitles(bool value)
Definition Segment.h:123
Segment & WithScte(ScteT &&value)
Definition Segment.h:145
bool TsIncludeDvbSubtitlesHasBeenSet() const
Definition Segment.h:122
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue