AWS SDK for C++  0.14.3
AWS SDK for C++
Encryption.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace ElasticTranscoder
29 {
30 namespace Model
31 {
32 
41  {
42  public:
43  Encryption();
44  Encryption(const Aws::Utils::Json::JsonValue& jsonValue);
45  Encryption& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
46  Aws::Utils::Json::JsonValue Jsonize() const;
47 
70  inline const Aws::String& GetMode() const{ return m_mode; }
71 
94  inline void SetMode(const Aws::String& value) { m_modeHasBeenSet = true; m_mode = value; }
95 
118  inline void SetMode(Aws::String&& value) { m_modeHasBeenSet = true; m_mode = value; }
119 
142  inline void SetMode(const char* value) { m_modeHasBeenSet = true; m_mode.assign(value); }
143 
166  inline Encryption& WithMode(const Aws::String& value) { SetMode(value); return *this;}
167 
190  inline Encryption& WithMode(Aws::String&& value) { SetMode(value); return *this;}
191 
214  inline Encryption& WithMode(const char* value) { SetMode(value); return *this;}
215 
224  inline const Aws::String& GetKey() const{ return m_key; }
225 
234  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
235 
244  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = value; }
245 
254  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
255 
264  inline Encryption& WithKey(const Aws::String& value) { SetKey(value); return *this;}
265 
274  inline Encryption& WithKey(Aws::String&& value) { SetKey(value); return *this;}
275 
284  inline Encryption& WithKey(const char* value) { SetKey(value); return *this;}
285 
293  inline const Aws::String& GetKeyMd5() const{ return m_keyMd5; }
294 
302  inline void SetKeyMd5(const Aws::String& value) { m_keyMd5HasBeenSet = true; m_keyMd5 = value; }
303 
311  inline void SetKeyMd5(Aws::String&& value) { m_keyMd5HasBeenSet = true; m_keyMd5 = value; }
312 
320  inline void SetKeyMd5(const char* value) { m_keyMd5HasBeenSet = true; m_keyMd5.assign(value); }
321 
329  inline Encryption& WithKeyMd5(const Aws::String& value) { SetKeyMd5(value); return *this;}
330 
338  inline Encryption& WithKeyMd5(Aws::String&& value) { SetKeyMd5(value); return *this;}
339 
347  inline Encryption& WithKeyMd5(const char* value) { SetKeyMd5(value); return *this;}
348 
356  inline const Aws::String& GetInitializationVector() const{ return m_initializationVector; }
357 
365  inline void SetInitializationVector(const Aws::String& value) { m_initializationVectorHasBeenSet = true; m_initializationVector = value; }
366 
374  inline void SetInitializationVector(Aws::String&& value) { m_initializationVectorHasBeenSet = true; m_initializationVector = value; }
375 
383  inline void SetInitializationVector(const char* value) { m_initializationVectorHasBeenSet = true; m_initializationVector.assign(value); }
384 
392  inline Encryption& WithInitializationVector(const Aws::String& value) { SetInitializationVector(value); return *this;}
393 
401  inline Encryption& WithInitializationVector(Aws::String&& value) { SetInitializationVector(value); return *this;}
402 
410  inline Encryption& WithInitializationVector(const char* value) { SetInitializationVector(value); return *this;}
411 
412  private:
413  Aws::String m_mode;
414  bool m_modeHasBeenSet;
415  Aws::String m_key;
416  bool m_keyHasBeenSet;
417  Aws::String m_keyMd5;
418  bool m_keyMd5HasBeenSet;
419  Aws::String m_initializationVector;
420  bool m_initializationVectorHasBeenSet;
421  };
422 
423 } // namespace Model
424 } // namespace ElasticTranscoder
425 } // namespace Aws
Encryption & WithKeyMd5(const Aws::String &value)
Definition: Encryption.h:329
void SetKey(const Aws::String &value)
Definition: Encryption.h:234
Encryption & WithMode(const char *value)
Definition: Encryption.h:214
Encryption & WithInitializationVector(Aws::String &&value)
Definition: Encryption.h:401
Encryption & WithKeyMd5(const char *value)
Definition: Encryption.h:347
void SetKey(Aws::String &&value)
Definition: Encryption.h:244
void SetMode(const Aws::String &value)
Definition: Encryption.h:94
Encryption & WithKey(Aws::String &&value)
Definition: Encryption.h:274
Encryption & WithMode(const Aws::String &value)
Definition: Encryption.h:166
Encryption & WithInitializationVector(const Aws::String &value)
Definition: Encryption.h:392
Encryption & WithKey(const Aws::String &value)
Definition: Encryption.h:264
Encryption & WithKeyMd5(Aws::String &&value)
Definition: Encryption.h:338
void SetKeyMd5(const Aws::String &value)
Definition: Encryption.h:302
void SetInitializationVector(const char *value)
Definition: Encryption.h:383
Encryption & WithKey(const char *value)
Definition: Encryption.h:284
#define AWS_ELASTICTRANSCODER_API
const Aws::String & GetMode() const
Definition: Encryption.h:70
Encryption & WithInitializationVector(const char *value)
Definition: Encryption.h:410
const Aws::String & GetInitializationVector() const
Definition: Encryption.h:356
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Encryption & WithMode(Aws::String &&value)
Definition: Encryption.h:190
void SetInitializationVector(const Aws::String &value)
Definition: Encryption.h:365
void SetKeyMd5(Aws::String &&value)
Definition: Encryption.h:311
const Aws::String & GetKeyMd5() const
Definition: Encryption.h:293
const Aws::String & GetKey() const
Definition: Encryption.h:224
void SetInitializationVector(Aws::String &&value)
Definition: Encryption.h:374
void SetMode(Aws::String &&value)
Definition: Encryption.h:118
JSON (JavaScript Object Notation).