AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SymmetricEncryptionAttributes.h
1
6#pragma once
7#include <aws/payment-cryptography-data/PaymentCryptographyData_EXPORTS.h>
8#include <aws/payment-cryptography-data/model/EncryptionMode.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/payment-cryptography-data/model/PaddingType.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 PaymentCryptographyData
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_PAYMENTCRYPTOGRAPHYDATA_API SymmetricEncryptionAttributes();
38 AWS_PAYMENTCRYPTOGRAPHYDATA_API SymmetricEncryptionAttributes(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PAYMENTCRYPTOGRAPHYDATA_API SymmetricEncryptionAttributes& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PAYMENTCRYPTOGRAPHYDATA_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const EncryptionMode& GetMode() const{ return m_mode; }
48 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
49 inline void SetMode(const EncryptionMode& value) { m_modeHasBeenSet = true; m_mode = value; }
50 inline void SetMode(EncryptionMode&& value) { m_modeHasBeenSet = true; m_mode = std::move(value); }
51 inline SymmetricEncryptionAttributes& WithMode(const EncryptionMode& value) { SetMode(value); return *this;}
52 inline SymmetricEncryptionAttributes& WithMode(EncryptionMode&& value) { SetMode(std::move(value)); return *this;}
54
56
60 inline const Aws::String& GetInitializationVector() const{ return m_initializationVector; }
61 inline bool InitializationVectorHasBeenSet() const { return m_initializationVectorHasBeenSet; }
62 inline void SetInitializationVector(const Aws::String& value) { m_initializationVectorHasBeenSet = true; m_initializationVector = value; }
63 inline void SetInitializationVector(Aws::String&& value) { m_initializationVectorHasBeenSet = true; m_initializationVector = std::move(value); }
64 inline void SetInitializationVector(const char* value) { m_initializationVectorHasBeenSet = true; m_initializationVector.assign(value); }
67 inline SymmetricEncryptionAttributes& WithInitializationVector(const char* value) { SetInitializationVector(value); return *this;}
69
71
74 inline const PaddingType& GetPaddingType() const{ return m_paddingType; }
75 inline bool PaddingTypeHasBeenSet() const { return m_paddingTypeHasBeenSet; }
76 inline void SetPaddingType(const PaddingType& value) { m_paddingTypeHasBeenSet = true; m_paddingType = value; }
77 inline void SetPaddingType(PaddingType&& value) { m_paddingTypeHasBeenSet = true; m_paddingType = std::move(value); }
78 inline SymmetricEncryptionAttributes& WithPaddingType(const PaddingType& value) { SetPaddingType(value); return *this;}
79 inline SymmetricEncryptionAttributes& WithPaddingType(PaddingType&& value) { SetPaddingType(std::move(value)); return *this;}
81 private:
82
83 EncryptionMode m_mode;
84 bool m_modeHasBeenSet = false;
85
86 Aws::String m_initializationVector;
87 bool m_initializationVectorHasBeenSet = false;
88
89 PaddingType m_paddingType;
90 bool m_paddingTypeHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace PaymentCryptographyData
95} // namespace Aws
SymmetricEncryptionAttributes & WithMode(EncryptionMode &&value)
AWS_PAYMENTCRYPTOGRAPHYDATA_API Aws::Utils::Json::JsonValue Jsonize() const
SymmetricEncryptionAttributes & WithMode(const EncryptionMode &value)
AWS_PAYMENTCRYPTOGRAPHYDATA_API SymmetricEncryptionAttributes(Aws::Utils::Json::JsonView jsonValue)
SymmetricEncryptionAttributes & WithPaddingType(const PaddingType &value)
AWS_PAYMENTCRYPTOGRAPHYDATA_API SymmetricEncryptionAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
SymmetricEncryptionAttributes & WithInitializationVector(Aws::String &&value)
SymmetricEncryptionAttributes & WithPaddingType(PaddingType &&value)
SymmetricEncryptionAttributes & WithInitializationVector(const Aws::String &value)
SymmetricEncryptionAttributes & WithInitializationVector(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue