AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Encryption.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
9#include <aws/mediaconnect/model/Algorithm.h>
10#include <aws/mediaconnect/model/KeyType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MediaConnect {
22namespace Model {
23
30 public:
31 AWS_MEDIACONNECT_API Encryption() = default;
32 AWS_MEDIACONNECT_API Encryption(Aws::Utils::Json::JsonView jsonValue);
33 AWS_MEDIACONNECT_API Encryption& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline Algorithm GetAlgorithm() const { return m_algorithm; }
42 inline bool AlgorithmHasBeenSet() const { return m_algorithmHasBeenSet; }
43 inline void SetAlgorithm(Algorithm value) {
44 m_algorithmHasBeenSet = true;
45 m_algorithm = value;
46 }
48 SetAlgorithm(value);
49 return *this;
50 }
52
54
59 inline const Aws::String& GetConstantInitializationVector() const { return m_constantInitializationVector; }
60 inline bool ConstantInitializationVectorHasBeenSet() const { return m_constantInitializationVectorHasBeenSet; }
61 template <typename ConstantInitializationVectorT = Aws::String>
62 void SetConstantInitializationVector(ConstantInitializationVectorT&& value) {
63 m_constantInitializationVectorHasBeenSet = true;
64 m_constantInitializationVector = std::forward<ConstantInitializationVectorT>(value);
65 }
66 template <typename ConstantInitializationVectorT = Aws::String>
67 Encryption& WithConstantInitializationVector(ConstantInitializationVectorT&& value) {
68 SetConstantInitializationVector(std::forward<ConstantInitializationVectorT>(value));
69 return *this;
70 }
72
74
79 inline const Aws::String& GetDeviceId() const { return m_deviceId; }
80 inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
81 template <typename DeviceIdT = Aws::String>
82 void SetDeviceId(DeviceIdT&& value) {
83 m_deviceIdHasBeenSet = true;
84 m_deviceId = std::forward<DeviceIdT>(value);
85 }
86 template <typename DeviceIdT = Aws::String>
87 Encryption& WithDeviceId(DeviceIdT&& value) {
88 SetDeviceId(std::forward<DeviceIdT>(value));
89 return *this;
90 }
92
94
98 inline KeyType GetKeyType() const { return m_keyType; }
99 inline bool KeyTypeHasBeenSet() const { return m_keyTypeHasBeenSet; }
100 inline void SetKeyType(KeyType value) {
101 m_keyTypeHasBeenSet = true;
102 m_keyType = value;
103 }
105 SetKeyType(value);
106 return *this;
107 }
109
111
116 inline const Aws::String& GetRegion() const { return m_region; }
117 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
118 template <typename RegionT = Aws::String>
119 void SetRegion(RegionT&& value) {
120 m_regionHasBeenSet = true;
121 m_region = std::forward<RegionT>(value);
122 }
123 template <typename RegionT = Aws::String>
124 Encryption& WithRegion(RegionT&& value) {
125 SetRegion(std::forward<RegionT>(value));
126 return *this;
127 }
129
131
137 inline const Aws::String& GetResourceId() const { return m_resourceId; }
138 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
139 template <typename ResourceIdT = Aws::String>
140 void SetResourceId(ResourceIdT&& value) {
141 m_resourceIdHasBeenSet = true;
142 m_resourceId = std::forward<ResourceIdT>(value);
143 }
144 template <typename ResourceIdT = Aws::String>
145 Encryption& WithResourceId(ResourceIdT&& value) {
146 SetResourceId(std::forward<ResourceIdT>(value));
147 return *this;
148 }
150
152
156 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
157 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
158 template <typename RoleArnT = Aws::String>
159 void SetRoleArn(RoleArnT&& value) {
160 m_roleArnHasBeenSet = true;
161 m_roleArn = std::forward<RoleArnT>(value);
162 }
163 template <typename RoleArnT = Aws::String>
164 Encryption& WithRoleArn(RoleArnT&& value) {
165 SetRoleArn(std::forward<RoleArnT>(value));
166 return *this;
167 }
169
171
176 inline const Aws::String& GetSecretArn() const { return m_secretArn; }
177 inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
178 template <typename SecretArnT = Aws::String>
179 void SetSecretArn(SecretArnT&& value) {
180 m_secretArnHasBeenSet = true;
181 m_secretArn = std::forward<SecretArnT>(value);
182 }
183 template <typename SecretArnT = Aws::String>
184 Encryption& WithSecretArn(SecretArnT&& value) {
185 SetSecretArn(std::forward<SecretArnT>(value));
186 return *this;
187 }
189
191
196 inline const Aws::String& GetUrl() const { return m_url; }
197 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
198 template <typename UrlT = Aws::String>
199 void SetUrl(UrlT&& value) {
200 m_urlHasBeenSet = true;
201 m_url = std::forward<UrlT>(value);
202 }
203 template <typename UrlT = Aws::String>
204 Encryption& WithUrl(UrlT&& value) {
205 SetUrl(std::forward<UrlT>(value));
206 return *this;
207 }
209 private:
210 Algorithm m_algorithm{Algorithm::NOT_SET};
211
212 Aws::String m_constantInitializationVector;
213
214 Aws::String m_deviceId;
215
216 KeyType m_keyType{KeyType::NOT_SET};
217
218 Aws::String m_region;
219
220 Aws::String m_resourceId;
221
222 Aws::String m_roleArn;
223
224 Aws::String m_secretArn;
225
226 Aws::String m_url;
227 bool m_algorithmHasBeenSet = false;
228 bool m_constantInitializationVectorHasBeenSet = false;
229 bool m_deviceIdHasBeenSet = false;
230 bool m_keyTypeHasBeenSet = false;
231 bool m_regionHasBeenSet = false;
232 bool m_resourceIdHasBeenSet = false;
233 bool m_roleArnHasBeenSet = false;
234 bool m_secretArnHasBeenSet = false;
235 bool m_urlHasBeenSet = false;
236};
237
238} // namespace Model
239} // namespace MediaConnect
240} // namespace Aws
void SetRegion(RegionT &&value)
Definition Encryption.h:119
void SetRoleArn(RoleArnT &&value)
Definition Encryption.h:159
const Aws::String & GetDeviceId() const
Definition Encryption.h:79
AWS_MEDIACONNECT_API Encryption & operator=(Aws::Utils::Json::JsonView jsonValue)
Encryption & WithDeviceId(DeviceIdT &&value)
Definition Encryption.h:87
const Aws::String & GetRegion() const
Definition Encryption.h:116
Encryption & WithAlgorithm(Algorithm value)
Definition Encryption.h:47
AWS_MEDIACONNECT_API Encryption(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetConstantInitializationVector() const
Definition Encryption.h:59
void SetResourceId(ResourceIdT &&value)
Definition Encryption.h:140
Encryption & WithUrl(UrlT &&value)
Definition Encryption.h:204
const Aws::String & GetSecretArn() const
Definition Encryption.h:176
Encryption & WithSecretArn(SecretArnT &&value)
Definition Encryption.h:184
void SetConstantInitializationVector(ConstantInitializationVectorT &&value)
Definition Encryption.h:62
Encryption & WithRegion(RegionT &&value)
Definition Encryption.h:124
const Aws::String & GetUrl() const
Definition Encryption.h:196
Encryption & WithResourceId(ResourceIdT &&value)
Definition Encryption.h:145
Encryption & WithConstantInitializationVector(ConstantInitializationVectorT &&value)
Definition Encryption.h:67
Encryption & WithKeyType(KeyType value)
Definition Encryption.h:104
Encryption & WithRoleArn(RoleArnT &&value)
Definition Encryption.h:164
const Aws::String & GetResourceId() const
Definition Encryption.h:137
bool ConstantInitializationVectorHasBeenSet() const
Definition Encryption.h:60
void SetDeviceId(DeviceIdT &&value)
Definition Encryption.h:82
void SetSecretArn(SecretArnT &&value)
Definition Encryption.h:179
void SetAlgorithm(Algorithm value)
Definition Encryption.h:43
AWS_MEDIACONNECT_API Encryption()=default
const Aws::String & GetRoleArn() const
Definition Encryption.h:156
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue