AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CmafEncryptionSettings.h
1
6#pragma once
7#include <aws/mediaconvert/MediaConvert_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mediaconvert/model/CmafEncryptionType.h>
10#include <aws/mediaconvert/model/CmafInitializationVectorInManifest.h>
11#include <aws/mediaconvert/model/SpekeKeyProviderCmaf.h>
12#include <aws/mediaconvert/model/StaticKeyProvider.h>
13#include <aws/mediaconvert/model/CmafKeyProviderType.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace MediaConvert
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_MEDIACONVERT_API CmafEncryptionSettings();
40 AWS_MEDIACONVERT_API CmafEncryptionSettings(Aws::Utils::Json::JsonView jsonValue);
42 AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
51 inline const Aws::String& GetConstantInitializationVector() const{ return m_constantInitializationVector; }
52 inline bool ConstantInitializationVectorHasBeenSet() const { return m_constantInitializationVectorHasBeenSet; }
53 inline void SetConstantInitializationVector(const Aws::String& value) { m_constantInitializationVectorHasBeenSet = true; m_constantInitializationVector = value; }
54 inline void SetConstantInitializationVector(Aws::String&& value) { m_constantInitializationVectorHasBeenSet = true; m_constantInitializationVector = std::move(value); }
55 inline void SetConstantInitializationVector(const char* value) { m_constantInitializationVectorHasBeenSet = true; m_constantInitializationVector.assign(value); }
60
62
66 inline const CmafEncryptionType& GetEncryptionMethod() const{ return m_encryptionMethod; }
67 inline bool EncryptionMethodHasBeenSet() const { return m_encryptionMethodHasBeenSet; }
68 inline void SetEncryptionMethod(const CmafEncryptionType& value) { m_encryptionMethodHasBeenSet = true; m_encryptionMethod = value; }
69 inline void SetEncryptionMethod(CmafEncryptionType&& value) { m_encryptionMethodHasBeenSet = true; m_encryptionMethod = std::move(value); }
71 inline CmafEncryptionSettings& WithEncryptionMethod(CmafEncryptionType&& value) { SetEncryptionMethod(std::move(value)); return *this;}
73
75
79 inline const CmafInitializationVectorInManifest& GetInitializationVectorInManifest() const{ return m_initializationVectorInManifest; }
80 inline bool InitializationVectorInManifestHasBeenSet() const { return m_initializationVectorInManifestHasBeenSet; }
81 inline void SetInitializationVectorInManifest(const CmafInitializationVectorInManifest& value) { m_initializationVectorInManifestHasBeenSet = true; m_initializationVectorInManifest = value; }
82 inline void SetInitializationVectorInManifest(CmafInitializationVectorInManifest&& value) { m_initializationVectorInManifestHasBeenSet = true; m_initializationVectorInManifest = std::move(value); }
86
88
93 inline const SpekeKeyProviderCmaf& GetSpekeKeyProvider() const{ return m_spekeKeyProvider; }
94 inline bool SpekeKeyProviderHasBeenSet() const { return m_spekeKeyProviderHasBeenSet; }
95 inline void SetSpekeKeyProvider(const SpekeKeyProviderCmaf& value) { m_spekeKeyProviderHasBeenSet = true; m_spekeKeyProvider = value; }
96 inline void SetSpekeKeyProvider(SpekeKeyProviderCmaf&& value) { m_spekeKeyProviderHasBeenSet = true; m_spekeKeyProvider = std::move(value); }
98 inline CmafEncryptionSettings& WithSpekeKeyProvider(SpekeKeyProviderCmaf&& value) { SetSpekeKeyProvider(std::move(value)); return *this;}
100
102
105 inline const StaticKeyProvider& GetStaticKeyProvider() const{ return m_staticKeyProvider; }
106 inline bool StaticKeyProviderHasBeenSet() const { return m_staticKeyProviderHasBeenSet; }
107 inline void SetStaticKeyProvider(const StaticKeyProvider& value) { m_staticKeyProviderHasBeenSet = true; m_staticKeyProvider = value; }
108 inline void SetStaticKeyProvider(StaticKeyProvider&& value) { m_staticKeyProviderHasBeenSet = true; m_staticKeyProvider = std::move(value); }
110 inline CmafEncryptionSettings& WithStaticKeyProvider(StaticKeyProvider&& value) { SetStaticKeyProvider(std::move(value)); return *this;}
112
114
119 inline const CmafKeyProviderType& GetType() const{ return m_type; }
120 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
121 inline void SetType(const CmafKeyProviderType& value) { m_typeHasBeenSet = true; m_type = value; }
122 inline void SetType(CmafKeyProviderType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
123 inline CmafEncryptionSettings& WithType(const CmafKeyProviderType& value) { SetType(value); return *this;}
124 inline CmafEncryptionSettings& WithType(CmafKeyProviderType&& value) { SetType(std::move(value)); return *this;}
126 private:
127
128 Aws::String m_constantInitializationVector;
129 bool m_constantInitializationVectorHasBeenSet = false;
130
131 CmafEncryptionType m_encryptionMethod;
132 bool m_encryptionMethodHasBeenSet = false;
133
134 CmafInitializationVectorInManifest m_initializationVectorInManifest;
135 bool m_initializationVectorInManifestHasBeenSet = false;
136
137 SpekeKeyProviderCmaf m_spekeKeyProvider;
138 bool m_spekeKeyProviderHasBeenSet = false;
139
140 StaticKeyProvider m_staticKeyProvider;
141 bool m_staticKeyProviderHasBeenSet = false;
142
143 CmafKeyProviderType m_type;
144 bool m_typeHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace MediaConvert
149} // namespace Aws
CmafEncryptionSettings & WithEncryptionMethod(const CmafEncryptionType &value)
CmafEncryptionSettings & WithStaticKeyProvider(StaticKeyProvider &&value)
CmafEncryptionSettings & WithInitializationVectorInManifest(CmafInitializationVectorInManifest &&value)
CmafEncryptionSettings & WithConstantInitializationVector(const char *value)
CmafEncryptionSettings & WithInitializationVectorInManifest(const CmafInitializationVectorInManifest &value)
CmafEncryptionSettings & WithEncryptionMethod(CmafEncryptionType &&value)
CmafEncryptionSettings & WithConstantInitializationVector(Aws::String &&value)
AWS_MEDIACONVERT_API CmafEncryptionSettings(Aws::Utils::Json::JsonView jsonValue)
CmafEncryptionSettings & WithSpekeKeyProvider(SpekeKeyProviderCmaf &&value)
void SetStaticKeyProvider(const StaticKeyProvider &value)
CmafEncryptionSettings & WithType(CmafKeyProviderType &&value)
void SetType(const CmafKeyProviderType &value)
const SpekeKeyProviderCmaf & GetSpekeKeyProvider() const
void SetConstantInitializationVector(const Aws::String &value)
const CmafInitializationVectorInManifest & GetInitializationVectorInManifest() const
void SetSpekeKeyProvider(SpekeKeyProviderCmaf &&value)
void SetSpekeKeyProvider(const SpekeKeyProviderCmaf &value)
CmafEncryptionSettings & WithStaticKeyProvider(const StaticKeyProvider &value)
AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MEDIACONVERT_API CmafEncryptionSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
CmafEncryptionSettings & WithSpekeKeyProvider(const SpekeKeyProviderCmaf &value)
const CmafEncryptionType & GetEncryptionMethod() const
void SetInitializationVectorInManifest(CmafInitializationVectorInManifest &&value)
void SetEncryptionMethod(const CmafEncryptionType &value)
CmafEncryptionSettings & WithConstantInitializationVector(const Aws::String &value)
CmafEncryptionSettings & WithType(const CmafKeyProviderType &value)
void SetInitializationVectorInManifest(const CmafInitializationVectorInManifest &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue