AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
MssPackage.h
1
6#pragma once
7#include <aws/mediapackage/MediaPackage_EXPORTS.h>
8#include <aws/mediapackage/model/MssEncryption.h>
9#include <aws/mediapackage/model/StreamSelection.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace MediaPackage {
21namespace Model {
22
30 public:
31 AWS_MEDIAPACKAGE_API MssPackage() = default;
32 AWS_MEDIAPACKAGE_API MssPackage(Aws::Utils::Json::JsonView jsonValue);
33 AWS_MEDIAPACKAGE_API MssPackage& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MEDIAPACKAGE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
38 inline const MssEncryption& GetEncryption() const { return m_encryption; }
39 inline bool EncryptionHasBeenSet() const { return m_encryptionHasBeenSet; }
40 template <typename EncryptionT = MssEncryption>
41 void SetEncryption(EncryptionT&& value) {
42 m_encryptionHasBeenSet = true;
43 m_encryption = std::forward<EncryptionT>(value);
44 }
45 template <typename EncryptionT = MssEncryption>
46 MssPackage& WithEncryption(EncryptionT&& value) {
47 SetEncryption(std::forward<EncryptionT>(value));
48 return *this;
49 }
51
53
56 inline int GetManifestWindowSeconds() const { return m_manifestWindowSeconds; }
57 inline bool ManifestWindowSecondsHasBeenSet() const { return m_manifestWindowSecondsHasBeenSet; }
58 inline void SetManifestWindowSeconds(int value) {
59 m_manifestWindowSecondsHasBeenSet = true;
60 m_manifestWindowSeconds = value;
61 }
64 return *this;
65 }
67
69
72 inline int GetSegmentDurationSeconds() const { return m_segmentDurationSeconds; }
73 inline bool SegmentDurationSecondsHasBeenSet() const { return m_segmentDurationSecondsHasBeenSet; }
74 inline void SetSegmentDurationSeconds(int value) {
75 m_segmentDurationSecondsHasBeenSet = true;
76 m_segmentDurationSeconds = value;
77 }
80 return *this;
81 }
83
85
86 inline const StreamSelection& GetStreamSelection() const { return m_streamSelection; }
87 inline bool StreamSelectionHasBeenSet() const { return m_streamSelectionHasBeenSet; }
88 template <typename StreamSelectionT = StreamSelection>
89 void SetStreamSelection(StreamSelectionT&& value) {
90 m_streamSelectionHasBeenSet = true;
91 m_streamSelection = std::forward<StreamSelectionT>(value);
92 }
93 template <typename StreamSelectionT = StreamSelection>
94 MssPackage& WithStreamSelection(StreamSelectionT&& value) {
95 SetStreamSelection(std::forward<StreamSelectionT>(value));
96 return *this;
97 }
99 private:
100 MssEncryption m_encryption;
101
102 int m_manifestWindowSeconds{0};
103
104 int m_segmentDurationSeconds{0};
105
106 StreamSelection m_streamSelection;
107 bool m_encryptionHasBeenSet = false;
108 bool m_manifestWindowSecondsHasBeenSet = false;
109 bool m_segmentDurationSecondsHasBeenSet = false;
110 bool m_streamSelectionHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace MediaPackage
115} // namespace Aws
AWS_MEDIAPACKAGE_API MssPackage()=default
MssPackage & WithManifestWindowSeconds(int value)
Definition MssPackage.h:62
MssPackage & WithEncryption(EncryptionT &&value)
Definition MssPackage.h:46
AWS_MEDIAPACKAGE_API MssPackage(Aws::Utils::Json::JsonView jsonValue)
const MssEncryption & GetEncryption() const
Definition MssPackage.h:38
void SetSegmentDurationSeconds(int value)
Definition MssPackage.h:74
const StreamSelection & GetStreamSelection() const
Definition MssPackage.h:86
MssPackage & WithSegmentDurationSeconds(int value)
Definition MssPackage.h:78
MssPackage & WithStreamSelection(StreamSelectionT &&value)
Definition MssPackage.h:94
void SetEncryption(EncryptionT &&value)
Definition MssPackage.h:41
void SetStreamSelection(StreamSelectionT &&value)
Definition MssPackage.h:89
AWS_MEDIAPACKAGE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MEDIAPACKAGE_API MssPackage & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue