AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Segment.h
1
6#pragma once
7#include <aws/mediapackagev2/Mediapackagev2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mediapackagev2/model/Scte.h>
10#include <aws/mediapackagev2/model/Encryption.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace mediapackagev2
24{
25namespace Model
26{
27
34 class Segment
35 {
36 public:
37 AWS_MEDIAPACKAGEV2_API Segment();
38 AWS_MEDIAPACKAGEV2_API Segment(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MEDIAPACKAGEV2_API Segment& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MEDIAPACKAGEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
50 inline int GetSegmentDurationSeconds() const{ return m_segmentDurationSeconds; }
51 inline bool SegmentDurationSecondsHasBeenSet() const { return m_segmentDurationSecondsHasBeenSet; }
52 inline void SetSegmentDurationSeconds(int value) { m_segmentDurationSecondsHasBeenSet = true; m_segmentDurationSeconds = value; }
53 inline Segment& WithSegmentDurationSeconds(int value) { SetSegmentDurationSeconds(value); return *this;}
55
57
62 inline const Aws::String& GetSegmentName() const{ return m_segmentName; }
63 inline bool SegmentNameHasBeenSet() const { return m_segmentNameHasBeenSet; }
64 inline void SetSegmentName(const Aws::String& value) { m_segmentNameHasBeenSet = true; m_segmentName = value; }
65 inline void SetSegmentName(Aws::String&& value) { m_segmentNameHasBeenSet = true; m_segmentName = std::move(value); }
66 inline void SetSegmentName(const char* value) { m_segmentNameHasBeenSet = true; m_segmentName.assign(value); }
67 inline Segment& WithSegmentName(const Aws::String& value) { SetSegmentName(value); return *this;}
68 inline Segment& WithSegmentName(Aws::String&& value) { SetSegmentName(std::move(value)); return *this;}
69 inline Segment& WithSegmentName(const char* value) { SetSegmentName(value); return *this;}
71
73
78 inline bool GetTsUseAudioRenditionGroup() const{ return m_tsUseAudioRenditionGroup; }
79 inline bool TsUseAudioRenditionGroupHasBeenSet() const { return m_tsUseAudioRenditionGroupHasBeenSet; }
80 inline void SetTsUseAudioRenditionGroup(bool value) { m_tsUseAudioRenditionGroupHasBeenSet = true; m_tsUseAudioRenditionGroup = value; }
81 inline Segment& WithTsUseAudioRenditionGroup(bool value) { SetTsUseAudioRenditionGroup(value); return *this;}
83
85
93 inline bool GetIncludeIframeOnlyStreams() const{ return m_includeIframeOnlyStreams; }
94 inline bool IncludeIframeOnlyStreamsHasBeenSet() const { return m_includeIframeOnlyStreamsHasBeenSet; }
95 inline void SetIncludeIframeOnlyStreams(bool value) { m_includeIframeOnlyStreamsHasBeenSet = true; m_includeIframeOnlyStreams = value; }
96 inline Segment& WithIncludeIframeOnlyStreams(bool value) { SetIncludeIframeOnlyStreams(value); return *this;}
98
100
105 inline bool GetTsIncludeDvbSubtitles() const{ return m_tsIncludeDvbSubtitles; }
106 inline bool TsIncludeDvbSubtitlesHasBeenSet() const { return m_tsIncludeDvbSubtitlesHasBeenSet; }
107 inline void SetTsIncludeDvbSubtitles(bool value) { m_tsIncludeDvbSubtitlesHasBeenSet = true; m_tsIncludeDvbSubtitles = value; }
108 inline Segment& WithTsIncludeDvbSubtitles(bool value) { SetTsIncludeDvbSubtitles(value); return *this;}
110
112
115 inline const Scte& GetScte() const{ return m_scte; }
116 inline bool ScteHasBeenSet() const { return m_scteHasBeenSet; }
117 inline void SetScte(const Scte& value) { m_scteHasBeenSet = true; m_scte = value; }
118 inline void SetScte(Scte&& value) { m_scteHasBeenSet = true; m_scte = std::move(value); }
119 inline Segment& WithScte(const Scte& value) { SetScte(value); return *this;}
120 inline Segment& WithScte(Scte&& value) { SetScte(std::move(value)); return *this;}
122
124
125 inline const Encryption& GetEncryption() const{ return m_encryption; }
126 inline bool EncryptionHasBeenSet() const { return m_encryptionHasBeenSet; }
127 inline void SetEncryption(const Encryption& value) { m_encryptionHasBeenSet = true; m_encryption = value; }
128 inline void SetEncryption(Encryption&& value) { m_encryptionHasBeenSet = true; m_encryption = std::move(value); }
129 inline Segment& WithEncryption(const Encryption& value) { SetEncryption(value); return *this;}
130 inline Segment& WithEncryption(Encryption&& value) { SetEncryption(std::move(value)); return *this;}
132 private:
133
134 int m_segmentDurationSeconds;
135 bool m_segmentDurationSecondsHasBeenSet = false;
136
137 Aws::String m_segmentName;
138 bool m_segmentNameHasBeenSet = false;
139
140 bool m_tsUseAudioRenditionGroup;
141 bool m_tsUseAudioRenditionGroupHasBeenSet = false;
142
143 bool m_includeIframeOnlyStreams;
144 bool m_includeIframeOnlyStreamsHasBeenSet = false;
145
146 bool m_tsIncludeDvbSubtitles;
147 bool m_tsIncludeDvbSubtitlesHasBeenSet = false;
148
149 Scte m_scte;
150 bool m_scteHasBeenSet = false;
151
152 Encryption m_encryption;
153 bool m_encryptionHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace mediapackagev2
158} // namespace Aws
AWS_MEDIAPACKAGEV2_API Segment & operator=(Aws::Utils::Json::JsonView jsonValue)
Segment & WithScte(Scte &&value)
Definition Segment.h:120
Segment & WithSegmentName(Aws::String &&value)
Definition Segment.h:68
const Aws::String & GetSegmentName() const
Definition Segment.h:62
Segment & WithScte(const Scte &value)
Definition Segment.h:119
Segment & WithTsIncludeDvbSubtitles(bool value)
Definition Segment.h:108
void SetTsUseAudioRenditionGroup(bool value)
Definition Segment.h:80
AWS_MEDIAPACKAGEV2_API Segment(Aws::Utils::Json::JsonView jsonValue)
void SetSegmentName(const Aws::String &value)
Definition Segment.h:64
AWS_MEDIAPACKAGEV2_API Segment()
bool GetTsUseAudioRenditionGroup() const
Definition Segment.h:78
AWS_MEDIAPACKAGEV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetScte(const Scte &value)
Definition Segment.h:117
Segment & WithSegmentDurationSeconds(int value)
Definition Segment.h:53
Segment & WithSegmentName(const char *value)
Definition Segment.h:69
Segment & WithEncryption(Encryption &&value)
Definition Segment.h:130
bool GetIncludeIframeOnlyStreams() const
Definition Segment.h:93
void SetIncludeIframeOnlyStreams(bool value)
Definition Segment.h:95
Segment & WithTsUseAudioRenditionGroup(bool value)
Definition Segment.h:81
bool SegmentDurationSecondsHasBeenSet() const
Definition Segment.h:51
void SetEncryption(const Encryption &value)
Definition Segment.h:127
void SetSegmentName(const char *value)
Definition Segment.h:66
Segment & WithEncryption(const Encryption &value)
Definition Segment.h:129
void SetSegmentDurationSeconds(int value)
Definition Segment.h:52
Segment & WithIncludeIframeOnlyStreams(bool value)
Definition Segment.h:96
const Scte & GetScte() const
Definition Segment.h:115
const Encryption & GetEncryption() const
Definition Segment.h:125
bool IncludeIframeOnlyStreamsHasBeenSet() const
Definition Segment.h:94
bool TsUseAudioRenditionGroupHasBeenSet() const
Definition Segment.h:79
void SetTsIncludeDvbSubtitles(bool value)
Definition Segment.h:107
void SetEncryption(Encryption &&value)
Definition Segment.h:128
void SetSegmentName(Aws::String &&value)
Definition Segment.h:65
Segment & WithSegmentName(const Aws::String &value)
Definition Segment.h:67
bool TsIncludeDvbSubtitlesHasBeenSet() const
Definition Segment.h:106
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue