AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CmafEncryption.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mediapackage/MediaPackage_EXPORTS.h>
9#include <aws/mediapackage/model/CmafEncryptionMethod.h>
10#include <aws/mediapackage/model/SpekeKeyProvider.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MediaPackage {
22namespace Model {
23
31 public:
32 AWS_MEDIAPACKAGE_API CmafEncryption() = default;
33 AWS_MEDIAPACKAGE_API CmafEncryption(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MEDIAPACKAGE_API CmafEncryption& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_MEDIAPACKAGE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline const Aws::String& GetConstantInitializationVector() const { return m_constantInitializationVector; }
44 inline bool ConstantInitializationVectorHasBeenSet() const { return m_constantInitializationVectorHasBeenSet; }
45 template <typename ConstantInitializationVectorT = Aws::String>
46 void SetConstantInitializationVector(ConstantInitializationVectorT&& value) {
47 m_constantInitializationVectorHasBeenSet = true;
48 m_constantInitializationVector = std::forward<ConstantInitializationVectorT>(value);
49 }
50 template <typename ConstantInitializationVectorT = Aws::String>
51 CmafEncryption& WithConstantInitializationVector(ConstantInitializationVectorT&& value) {
52 SetConstantInitializationVector(std::forward<ConstantInitializationVectorT>(value));
53 return *this;
54 }
56
58
59 inline CmafEncryptionMethod GetEncryptionMethod() const { return m_encryptionMethod; }
60 inline bool EncryptionMethodHasBeenSet() const { return m_encryptionMethodHasBeenSet; }
62 m_encryptionMethodHasBeenSet = true;
63 m_encryptionMethod = value;
64 }
67 return *this;
68 }
70
72
75 inline int GetKeyRotationIntervalSeconds() const { return m_keyRotationIntervalSeconds; }
76 inline bool KeyRotationIntervalSecondsHasBeenSet() const { return m_keyRotationIntervalSecondsHasBeenSet; }
77 inline void SetKeyRotationIntervalSeconds(int value) {
78 m_keyRotationIntervalSecondsHasBeenSet = true;
79 m_keyRotationIntervalSeconds = value;
80 }
83 return *this;
84 }
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) {
93 m_spekeKeyProviderHasBeenSet = true;
94 m_spekeKeyProvider = std::forward<SpekeKeyProviderT>(value);
95 }
96 template <typename SpekeKeyProviderT = SpekeKeyProvider>
97 CmafEncryption& WithSpekeKeyProvider(SpekeKeyProviderT&& value) {
98 SetSpekeKeyProvider(std::forward<SpekeKeyProviderT>(value));
99 return *this;
100 }
102 private:
103 Aws::String m_constantInitializationVector;
104
106
107 int m_keyRotationIntervalSeconds{0};
108
109 SpekeKeyProvider m_spekeKeyProvider;
110 bool m_constantInitializationVectorHasBeenSet = false;
111 bool m_encryptionMethodHasBeenSet = false;
112 bool m_keyRotationIntervalSecondsHasBeenSet = false;
113 bool m_spekeKeyProviderHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace MediaPackage
118} // namespace Aws
CmafEncryptionMethod GetEncryptionMethod() const
AWS_MEDIAPACKAGE_API CmafEncryption()=default
CmafEncryption & WithSpekeKeyProvider(SpekeKeyProviderT &&value)
const Aws::String & GetConstantInitializationVector() const
void SetConstantInitializationVector(ConstantInitializationVectorT &&value)
CmafEncryption & WithConstantInitializationVector(ConstantInitializationVectorT &&value)
AWS_MEDIAPACKAGE_API CmafEncryption & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSpekeKeyProvider(SpekeKeyProviderT &&value)
const SpekeKeyProvider & GetSpekeKeyProvider() const
AWS_MEDIAPACKAGE_API Aws::Utils::Json::JsonValue Jsonize() const
CmafEncryption & WithEncryptionMethod(CmafEncryptionMethod value)
CmafEncryption & WithKeyRotationIntervalSeconds(int value)
AWS_MEDIAPACKAGE_API CmafEncryption(Aws::Utils::Json::JsonView jsonValue)
void SetEncryptionMethod(CmafEncryptionMethod value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue