AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Encryption.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/EncryptionMethod.h>
10#include <aws/mediapackagev2/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 mediapackagev2
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_MEDIAPACKAGEV2_API Encryption() = default;
37 AWS_MEDIAPACKAGEV2_API Encryption(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MEDIAPACKAGEV2_API Encryption& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MEDIAPACKAGEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
48 inline const Aws::String& GetConstantInitializationVector() const { return m_constantInitializationVector; }
49 inline bool ConstantInitializationVectorHasBeenSet() const { return m_constantInitializationVectorHasBeenSet; }
50 template<typename ConstantInitializationVectorT = Aws::String>
51 void SetConstantInitializationVector(ConstantInitializationVectorT&& value) { m_constantInitializationVectorHasBeenSet = true; m_constantInitializationVector = std::forward<ConstantInitializationVectorT>(value); }
52 template<typename ConstantInitializationVectorT = Aws::String>
53 Encryption& WithConstantInitializationVector(ConstantInitializationVectorT&& value) { SetConstantInitializationVector(std::forward<ConstantInitializationVectorT>(value)); return *this;}
55
57
60 inline const EncryptionMethod& GetEncryptionMethod() const { return m_encryptionMethod; }
61 inline bool EncryptionMethodHasBeenSet() const { return m_encryptionMethodHasBeenSet; }
62 template<typename EncryptionMethodT = EncryptionMethod>
63 void SetEncryptionMethod(EncryptionMethodT&& value) { m_encryptionMethodHasBeenSet = true; m_encryptionMethod = std::forward<EncryptionMethodT>(value); }
64 template<typename EncryptionMethodT = EncryptionMethod>
65 Encryption& WithEncryptionMethod(EncryptionMethodT&& value) { SetEncryptionMethod(std::forward<EncryptionMethodT>(value)); return *this;}
67
69
79 inline int GetKeyRotationIntervalSeconds() const { return m_keyRotationIntervalSeconds; }
80 inline bool KeyRotationIntervalSecondsHasBeenSet() const { return m_keyRotationIntervalSecondsHasBeenSet; }
81 inline void SetKeyRotationIntervalSeconds(int value) { m_keyRotationIntervalSecondsHasBeenSet = true; m_keyRotationIntervalSeconds = value; }
84
86
97 inline bool GetCmafExcludeSegmentDrmMetadata() const { return m_cmafExcludeSegmentDrmMetadata; }
98 inline bool CmafExcludeSegmentDrmMetadataHasBeenSet() const { return m_cmafExcludeSegmentDrmMetadataHasBeenSet; }
99 inline void SetCmafExcludeSegmentDrmMetadata(bool value) { m_cmafExcludeSegmentDrmMetadataHasBeenSet = true; m_cmafExcludeSegmentDrmMetadata = value; }
102
104
107 inline const SpekeKeyProvider& GetSpekeKeyProvider() const { return m_spekeKeyProvider; }
108 inline bool SpekeKeyProviderHasBeenSet() const { return m_spekeKeyProviderHasBeenSet; }
109 template<typename SpekeKeyProviderT = SpekeKeyProvider>
110 void SetSpekeKeyProvider(SpekeKeyProviderT&& value) { m_spekeKeyProviderHasBeenSet = true; m_spekeKeyProvider = std::forward<SpekeKeyProviderT>(value); }
111 template<typename SpekeKeyProviderT = SpekeKeyProvider>
112 Encryption& WithSpekeKeyProvider(SpekeKeyProviderT&& value) { SetSpekeKeyProvider(std::forward<SpekeKeyProviderT>(value)); return *this;}
114 private:
115
116 Aws::String m_constantInitializationVector;
117 bool m_constantInitializationVectorHasBeenSet = false;
118
119 EncryptionMethod m_encryptionMethod;
120 bool m_encryptionMethodHasBeenSet = false;
121
122 int m_keyRotationIntervalSeconds{0};
123 bool m_keyRotationIntervalSecondsHasBeenSet = false;
124
125 bool m_cmafExcludeSegmentDrmMetadata{false};
126 bool m_cmafExcludeSegmentDrmMetadataHasBeenSet = false;
127
128 SpekeKeyProvider m_spekeKeyProvider;
129 bool m_spekeKeyProviderHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace mediapackagev2
134} // namespace Aws
void SetKeyRotationIntervalSeconds(int value)
Definition Encryption.h:81
bool ConstantInitializationVectorHasBeenSet() const
Definition Encryption.h:49
Encryption & WithKeyRotationIntervalSeconds(int value)
Definition Encryption.h:82
void SetSpekeKeyProvider(SpekeKeyProviderT &&value)
Definition Encryption.h:110
AWS_MEDIAPACKAGEV2_API Encryption & operator=(Aws::Utils::Json::JsonView jsonValue)
Encryption & WithCmafExcludeSegmentDrmMetadata(bool value)
Definition Encryption.h:100
const SpekeKeyProvider & GetSpekeKeyProvider() const
Definition Encryption.h:107
AWS_MEDIAPACKAGEV2_API Encryption()=default
void SetEncryptionMethod(EncryptionMethodT &&value)
Definition Encryption.h:63
AWS_MEDIAPACKAGEV2_API Aws::Utils::Json::JsonValue Jsonize() const
const EncryptionMethod & GetEncryptionMethod() const
Definition Encryption.h:60
AWS_MEDIAPACKAGEV2_API Encryption(Aws::Utils::Json::JsonView jsonValue)
Encryption & WithEncryptionMethod(EncryptionMethodT &&value)
Definition Encryption.h:65
bool CmafExcludeSegmentDrmMetadataHasBeenSet() const
Definition Encryption.h:98
Encryption & WithSpekeKeyProvider(SpekeKeyProviderT &&value)
Definition Encryption.h:112
void SetConstantInitializationVector(ConstantInitializationVectorT &&value)
Definition Encryption.h:51
const Aws::String & GetConstantInitializationVector() const
Definition Encryption.h:48
void SetCmafExcludeSegmentDrmMetadata(bool value)
Definition Encryption.h:99
Encryption & WithConstantInitializationVector(ConstantInitializationVectorT &&value)
Definition Encryption.h:53
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue