AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
HlsEncryption.h
1
6#pragma once
7#include <aws/mediapackage/MediaPackage_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mediapackage/model/EncryptionMethod.h>
10#include <aws/mediapackage/model/SpekeKeyProvider.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 MediaPackage
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_MEDIAPACKAGE_API HlsEncryption() = default;
37 AWS_MEDIAPACKAGE_API HlsEncryption(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MEDIAPACKAGE_API HlsEncryption& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MEDIAPACKAGE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
49 inline const Aws::String& GetConstantInitializationVector() const { return m_constantInitializationVector; }
50 inline bool ConstantInitializationVectorHasBeenSet() const { return m_constantInitializationVectorHasBeenSet; }
51 template<typename ConstantInitializationVectorT = Aws::String>
52 void SetConstantInitializationVector(ConstantInitializationVectorT&& value) { m_constantInitializationVectorHasBeenSet = true; m_constantInitializationVector = std::forward<ConstantInitializationVectorT>(value); }
53 template<typename ConstantInitializationVectorT = Aws::String>
54 HlsEncryption& WithConstantInitializationVector(ConstantInitializationVectorT&& value) { SetConstantInitializationVector(std::forward<ConstantInitializationVectorT>(value)); return *this;}
56
58
61 inline EncryptionMethod GetEncryptionMethod() const { return m_encryptionMethod; }
62 inline bool EncryptionMethodHasBeenSet() const { return m_encryptionMethodHasBeenSet; }
63 inline void SetEncryptionMethod(EncryptionMethod value) { m_encryptionMethodHasBeenSet = true; m_encryptionMethod = value; }
66
68
71 inline int GetKeyRotationIntervalSeconds() const { return m_keyRotationIntervalSeconds; }
72 inline bool KeyRotationIntervalSecondsHasBeenSet() const { return m_keyRotationIntervalSecondsHasBeenSet; }
73 inline void SetKeyRotationIntervalSeconds(int value) { m_keyRotationIntervalSecondsHasBeenSet = true; m_keyRotationIntervalSeconds = value; }
76
78
81 inline bool GetRepeatExtXKey() const { return m_repeatExtXKey; }
82 inline bool RepeatExtXKeyHasBeenSet() const { return m_repeatExtXKeyHasBeenSet; }
83 inline void SetRepeatExtXKey(bool value) { m_repeatExtXKeyHasBeenSet = true; m_repeatExtXKey = value; }
84 inline HlsEncryption& WithRepeatExtXKey(bool value) { SetRepeatExtXKey(value); return *this;}
86
88
89 inline const SpekeKeyProvider& GetSpekeKeyProvider() const { return m_spekeKeyProvider; }
90 inline bool SpekeKeyProviderHasBeenSet() const { return m_spekeKeyProviderHasBeenSet; }
91 template<typename SpekeKeyProviderT = SpekeKeyProvider>
92 void SetSpekeKeyProvider(SpekeKeyProviderT&& value) { m_spekeKeyProviderHasBeenSet = true; m_spekeKeyProvider = std::forward<SpekeKeyProviderT>(value); }
93 template<typename SpekeKeyProviderT = SpekeKeyProvider>
94 HlsEncryption& WithSpekeKeyProvider(SpekeKeyProviderT&& value) { SetSpekeKeyProvider(std::forward<SpekeKeyProviderT>(value)); return *this;}
96 private:
97
98 Aws::String m_constantInitializationVector;
99 bool m_constantInitializationVectorHasBeenSet = false;
100
102 bool m_encryptionMethodHasBeenSet = false;
103
104 int m_keyRotationIntervalSeconds{0};
105 bool m_keyRotationIntervalSecondsHasBeenSet = false;
106
107 bool m_repeatExtXKey{false};
108 bool m_repeatExtXKeyHasBeenSet = false;
109
110 SpekeKeyProvider m_spekeKeyProvider;
111 bool m_spekeKeyProviderHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace MediaPackage
116} // namespace Aws
HlsEncryption & WithSpekeKeyProvider(SpekeKeyProviderT &&value)
HlsEncryption & WithConstantInitializationVector(ConstantInitializationVectorT &&value)
AWS_MEDIAPACKAGE_API Aws::Utils::Json::JsonValue Jsonize() const
HlsEncryption & WithRepeatExtXKey(bool value)
HlsEncryption & WithEncryptionMethod(EncryptionMethod value)
AWS_MEDIAPACKAGE_API HlsEncryption(Aws::Utils::Json::JsonView jsonValue)
const SpekeKeyProvider & GetSpekeKeyProvider() const
AWS_MEDIAPACKAGE_API HlsEncryption()=default
EncryptionMethod GetEncryptionMethod() const
void SetConstantInitializationVector(ConstantInitializationVectorT &&value)
HlsEncryption & WithKeyRotationIntervalSeconds(int value)
AWS_MEDIAPACKAGE_API HlsEncryption & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetConstantInitializationVector() const
void SetEncryptionMethod(EncryptionMethod value)
void SetSpekeKeyProvider(SpekeKeyProviderT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue