AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetKeyAttributes(const KeyAttributes& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes = value; }
48 inline void SetKeyAttributes(KeyAttributes&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes = std::move(value); }
49 inline ImportKeyCryptogram& WithKeyAttributes(const KeyAttributes& value) { SetKeyAttributes(value); return *this;}
50 inline ImportKeyCryptogram& WithKeyAttributes(KeyAttributes&& value) { SetKeyAttributes(std::move(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 inline void SetWrappedKeyCryptogram(const Aws::String& value) { m_wrappedKeyCryptogramHasBeenSet = true; m_wrappedKeyCryptogram = value; }
70 inline void SetWrappedKeyCryptogram(Aws::String&& value) { m_wrappedKeyCryptogramHasBeenSet = true; m_wrappedKeyCryptogram = std::move(value); }
71 inline void SetWrappedKeyCryptogram(const char* value) { m_wrappedKeyCryptogramHasBeenSet = true; m_wrappedKeyCryptogram.assign(value); }
73 inline ImportKeyCryptogram& WithWrappedKeyCryptogram(Aws::String&& value) { SetWrappedKeyCryptogram(std::move(value)); return *this;}
74 inline ImportKeyCryptogram& WithWrappedKeyCryptogram(const char* value) { SetWrappedKeyCryptogram(value); return *this;}
76
78
84 inline const Aws::String& GetImportToken() const{ return m_importToken; }
85 inline bool ImportTokenHasBeenSet() const { return m_importTokenHasBeenSet; }
86 inline void SetImportToken(const Aws::String& value) { m_importTokenHasBeenSet = true; m_importToken = value; }
87 inline void SetImportToken(Aws::String&& value) { m_importTokenHasBeenSet = true; m_importToken = std::move(value); }
88 inline void SetImportToken(const char* value) { m_importTokenHasBeenSet = true; m_importToken.assign(value); }
89 inline ImportKeyCryptogram& WithImportToken(const Aws::String& value) { SetImportToken(value); return *this;}
90 inline ImportKeyCryptogram& WithImportToken(Aws::String&& value) { SetImportToken(std::move(value)); return *this;}
91 inline ImportKeyCryptogram& WithImportToken(const char* value) { SetImportToken(value); return *this;}
93
95
98 inline const WrappingKeySpec& GetWrappingSpec() const{ return m_wrappingSpec; }
99 inline bool WrappingSpecHasBeenSet() const { return m_wrappingSpecHasBeenSet; }
100 inline void SetWrappingSpec(const WrappingKeySpec& value) { m_wrappingSpecHasBeenSet = true; m_wrappingSpec = value; }
101 inline void SetWrappingSpec(WrappingKeySpec&& value) { m_wrappingSpecHasBeenSet = true; m_wrappingSpec = std::move(value); }
102 inline ImportKeyCryptogram& WithWrappingSpec(const WrappingKeySpec& value) { SetWrappingSpec(value); return *this;}
103 inline ImportKeyCryptogram& WithWrappingSpec(WrappingKeySpec&& value) { SetWrappingSpec(std::move(value)); return *this;}
105 private:
106
107 KeyAttributes m_keyAttributes;
108 bool m_keyAttributesHasBeenSet = false;
109
110 bool m_exportable;
111 bool m_exportableHasBeenSet = false;
112
113 Aws::String m_wrappedKeyCryptogram;
114 bool m_wrappedKeyCryptogramHasBeenSet = false;
115
116 Aws::String m_importToken;
117 bool m_importTokenHasBeenSet = false;
118
119 WrappingKeySpec m_wrappingSpec;
120 bool m_wrappingSpecHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace PaymentCryptography
125} // namespace Aws
ImportKeyCryptogram & WithWrappingSpec(WrappingKeySpec &&value)
ImportKeyCryptogram & WithImportToken(const Aws::String &value)
AWS_PAYMENTCRYPTOGRAPHY_API ImportKeyCryptogram & operator=(Aws::Utils::Json::JsonView jsonValue)
ImportKeyCryptogram & WithWrappedKeyCryptogram(const char *value)
ImportKeyCryptogram & WithImportToken(Aws::String &&value)
ImportKeyCryptogram & WithWrappedKeyCryptogram(Aws::String &&value)
AWS_PAYMENTCRYPTOGRAPHY_API ImportKeyCryptogram(Aws::Utils::Json::JsonView jsonValue)
ImportKeyCryptogram & WithWrappedKeyCryptogram(const Aws::String &value)
ImportKeyCryptogram & WithKeyAttributes(const KeyAttributes &value)
ImportKeyCryptogram & WithWrappingSpec(const WrappingKeySpec &value)
ImportKeyCryptogram & WithKeyAttributes(KeyAttributes &&value)
AWS_PAYMENTCRYPTOGRAPHY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PAYMENTCRYPTOGRAPHY_API ImportKeyCryptogram()
ImportKeyCryptogram & WithImportToken(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue