AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ImportKeyCryptogram.h
1
6#pragma once
7#include <aws/payment-cryptography/PaymentCryptography_EXPORTS.h>
8#include <aws/payment-cryptography/model/KeyAttributes.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/payment-cryptography/model/WrappingKeySpec.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 PaymentCryptography
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_PAYMENTCRYPTOGRAPHY_API ImportKeyCryptogram() = default;
38 AWS_PAYMENTCRYPTOGRAPHY_API ImportKeyCryptogram(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PAYMENTCRYPTOGRAPHY_API ImportKeyCryptogram& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PAYMENTCRYPTOGRAPHY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
45 inline const KeyAttributes& GetKeyAttributes() const { return m_keyAttributes; }
46 inline bool KeyAttributesHasBeenSet() const { return m_keyAttributesHasBeenSet; }
47 template<typename KeyAttributesT = KeyAttributes>
48 void SetKeyAttributes(KeyAttributesT&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes = std::forward<KeyAttributesT>(value); }
49 template<typename KeyAttributesT = KeyAttributes>
50 ImportKeyCryptogram& WithKeyAttributes(KeyAttributesT&& value) { SetKeyAttributes(std::forward<KeyAttributesT>(value)); return *this;}
52
54
57 inline bool GetExportable() const { return m_exportable; }
58 inline bool ExportableHasBeenSet() const { return m_exportableHasBeenSet; }
59 inline void SetExportable(bool value) { m_exportableHasBeenSet = true; m_exportable = value; }
60 inline ImportKeyCryptogram& WithExportable(bool value) { SetExportable(value); return *this;}
62
64
67 inline const Aws::String& GetWrappedKeyCryptogram() const { return m_wrappedKeyCryptogram; }
68 inline bool WrappedKeyCryptogramHasBeenSet() const { return m_wrappedKeyCryptogramHasBeenSet; }
69 template<typename WrappedKeyCryptogramT = Aws::String>
70 void SetWrappedKeyCryptogram(WrappedKeyCryptogramT&& value) { m_wrappedKeyCryptogramHasBeenSet = true; m_wrappedKeyCryptogram = std::forward<WrappedKeyCryptogramT>(value); }
71 template<typename WrappedKeyCryptogramT = Aws::String>
72 ImportKeyCryptogram& WithWrappedKeyCryptogram(WrappedKeyCryptogramT&& value) { SetWrappedKeyCryptogram(std::forward<WrappedKeyCryptogramT>(value)); return *this;}
74
76
82 inline const Aws::String& GetImportToken() const { return m_importToken; }
83 inline bool ImportTokenHasBeenSet() const { return m_importTokenHasBeenSet; }
84 template<typename ImportTokenT = Aws::String>
85 void SetImportToken(ImportTokenT&& value) { m_importTokenHasBeenSet = true; m_importToken = std::forward<ImportTokenT>(value); }
86 template<typename ImportTokenT = Aws::String>
87 ImportKeyCryptogram& WithImportToken(ImportTokenT&& value) { SetImportToken(std::forward<ImportTokenT>(value)); return *this;}
89
91
94 inline WrappingKeySpec GetWrappingSpec() const { return m_wrappingSpec; }
95 inline bool WrappingSpecHasBeenSet() const { return m_wrappingSpecHasBeenSet; }
96 inline void SetWrappingSpec(WrappingKeySpec value) { m_wrappingSpecHasBeenSet = true; m_wrappingSpec = value; }
99 private:
100
101 KeyAttributes m_keyAttributes;
102 bool m_keyAttributesHasBeenSet = false;
103
104 bool m_exportable{false};
105 bool m_exportableHasBeenSet = false;
106
107 Aws::String m_wrappedKeyCryptogram;
108 bool m_wrappedKeyCryptogramHasBeenSet = false;
109
110 Aws::String m_importToken;
111 bool m_importTokenHasBeenSet = false;
112
114 bool m_wrappingSpecHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace PaymentCryptography
119} // namespace Aws
AWS_PAYMENTCRYPTOGRAPHY_API ImportKeyCryptogram & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetWrappedKeyCryptogram(WrappedKeyCryptogramT &&value)
AWS_PAYMENTCRYPTOGRAPHY_API ImportKeyCryptogram(Aws::Utils::Json::JsonView jsonValue)
ImportKeyCryptogram & WithImportToken(ImportTokenT &&value)
ImportKeyCryptogram & WithWrappingSpec(WrappingKeySpec value)
ImportKeyCryptogram & WithKeyAttributes(KeyAttributesT &&value)
AWS_PAYMENTCRYPTOGRAPHY_API Aws::Utils::Json::JsonValue Jsonize() const
ImportKeyCryptogram & WithWrappedKeyCryptogram(WrappedKeyCryptogramT &&value)
AWS_PAYMENTCRYPTOGRAPHY_API ImportKeyCryptogram()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue