AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
KeyAttributes.h
1
6#pragma once
7#include <aws/payment-cryptography/PaymentCryptography_EXPORTS.h>
8#include <aws/payment-cryptography/model/KeyUsage.h>
9#include <aws/payment-cryptography/model/KeyClass.h>
10#include <aws/payment-cryptography/model/KeyAlgorithm.h>
11#include <aws/payment-cryptography/model/KeyModesOfUse.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace PaymentCryptography
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_PAYMENTCRYPTOGRAPHY_API KeyAttributes();
40 AWS_PAYMENTCRYPTOGRAPHY_API KeyAttributes(Aws::Utils::Json::JsonView jsonValue);
41 AWS_PAYMENTCRYPTOGRAPHY_API KeyAttributes& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_PAYMENTCRYPTOGRAPHY_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const KeyUsage& GetKeyUsage() const{ return m_keyUsage; }
51 inline bool KeyUsageHasBeenSet() const { return m_keyUsageHasBeenSet; }
52 inline void SetKeyUsage(const KeyUsage& value) { m_keyUsageHasBeenSet = true; m_keyUsage = value; }
53 inline void SetKeyUsage(KeyUsage&& value) { m_keyUsageHasBeenSet = true; m_keyUsage = std::move(value); }
54 inline KeyAttributes& WithKeyUsage(const KeyUsage& value) { SetKeyUsage(value); return *this;}
55 inline KeyAttributes& WithKeyUsage(KeyUsage&& value) { SetKeyUsage(std::move(value)); return *this;}
57
59
65 inline const KeyClass& GetKeyClass() const{ return m_keyClass; }
66 inline bool KeyClassHasBeenSet() const { return m_keyClassHasBeenSet; }
67 inline void SetKeyClass(const KeyClass& value) { m_keyClassHasBeenSet = true; m_keyClass = value; }
68 inline void SetKeyClass(KeyClass&& value) { m_keyClassHasBeenSet = true; m_keyClass = std::move(value); }
69 inline KeyAttributes& WithKeyClass(const KeyClass& value) { SetKeyClass(value); return *this;}
70 inline KeyAttributes& WithKeyClass(KeyClass&& value) { SetKeyClass(std::move(value)); return *this;}
72
74
81 inline const KeyAlgorithm& GetKeyAlgorithm() const{ return m_keyAlgorithm; }
82 inline bool KeyAlgorithmHasBeenSet() const { return m_keyAlgorithmHasBeenSet; }
83 inline void SetKeyAlgorithm(const KeyAlgorithm& value) { m_keyAlgorithmHasBeenSet = true; m_keyAlgorithm = value; }
84 inline void SetKeyAlgorithm(KeyAlgorithm&& value) { m_keyAlgorithmHasBeenSet = true; m_keyAlgorithm = std::move(value); }
85 inline KeyAttributes& WithKeyAlgorithm(const KeyAlgorithm& value) { SetKeyAlgorithm(value); return *this;}
86 inline KeyAttributes& WithKeyAlgorithm(KeyAlgorithm&& value) { SetKeyAlgorithm(std::move(value)); return *this;}
88
90
93 inline const KeyModesOfUse& GetKeyModesOfUse() const{ return m_keyModesOfUse; }
94 inline bool KeyModesOfUseHasBeenSet() const { return m_keyModesOfUseHasBeenSet; }
95 inline void SetKeyModesOfUse(const KeyModesOfUse& value) { m_keyModesOfUseHasBeenSet = true; m_keyModesOfUse = value; }
96 inline void SetKeyModesOfUse(KeyModesOfUse&& value) { m_keyModesOfUseHasBeenSet = true; m_keyModesOfUse = std::move(value); }
97 inline KeyAttributes& WithKeyModesOfUse(const KeyModesOfUse& value) { SetKeyModesOfUse(value); return *this;}
98 inline KeyAttributes& WithKeyModesOfUse(KeyModesOfUse&& value) { SetKeyModesOfUse(std::move(value)); return *this;}
100 private:
101
102 KeyUsage m_keyUsage;
103 bool m_keyUsageHasBeenSet = false;
104
105 KeyClass m_keyClass;
106 bool m_keyClassHasBeenSet = false;
107
108 KeyAlgorithm m_keyAlgorithm;
109 bool m_keyAlgorithmHasBeenSet = false;
110
111 KeyModesOfUse m_keyModesOfUse;
112 bool m_keyModesOfUseHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace PaymentCryptography
117} // namespace Aws
void SetKeyAlgorithm(const KeyAlgorithm &value)
KeyAttributes & WithKeyUsage(KeyUsage &&value)
KeyAttributes & WithKeyClass(const KeyClass &value)
KeyAttributes & WithKeyAlgorithm(KeyAlgorithm &&value)
KeyAttributes & WithKeyModesOfUse(KeyModesOfUse &&value)
AWS_PAYMENTCRYPTOGRAPHY_API KeyAttributes(Aws::Utils::Json::JsonView jsonValue)
const KeyModesOfUse & GetKeyModesOfUse() const
AWS_PAYMENTCRYPTOGRAPHY_API KeyAttributes()
void SetKeyModesOfUse(KeyModesOfUse &&value)
KeyAttributes & WithKeyAlgorithm(const KeyAlgorithm &value)
void SetKeyModesOfUse(const KeyModesOfUse &value)
KeyAttributes & WithKeyUsage(const KeyUsage &value)
AWS_PAYMENTCRYPTOGRAPHY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PAYMENTCRYPTOGRAPHY_API KeyAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
KeyAttributes & WithKeyModesOfUse(const KeyModesOfUse &value)
const KeyAlgorithm & GetKeyAlgorithm() const
KeyAttributes & WithKeyClass(KeyClass &&value)
Aws::Utils::Json::JsonValue JsonValue