AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ExportKeyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/payment-cryptography/PaymentCryptographyRequest.h>
9#include <aws/payment-cryptography/PaymentCryptography_EXPORTS.h>
10#include <aws/payment-cryptography/model/ExportAttributes.h>
11#include <aws/payment-cryptography/model/ExportKeyMaterial.h>
12
13#include <utility>
14
15namespace Aws {
16namespace PaymentCryptography {
17namespace Model {
18
22 public:
23 AWS_PAYMENTCRYPTOGRAPHY_API ExportKeyRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "ExportKey"; }
30
31 AWS_PAYMENTCRYPTOGRAPHY_API Aws::String SerializePayload() const override;
32
33 AWS_PAYMENTCRYPTOGRAPHY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
40 inline const ExportKeyMaterial& GetKeyMaterial() const { return m_keyMaterial; }
41 inline bool KeyMaterialHasBeenSet() const { return m_keyMaterialHasBeenSet; }
42 template <typename KeyMaterialT = ExportKeyMaterial>
43 void SetKeyMaterial(KeyMaterialT&& value) {
44 m_keyMaterialHasBeenSet = true;
45 m_keyMaterial = std::forward<KeyMaterialT>(value);
46 }
47 template <typename KeyMaterialT = ExportKeyMaterial>
48 ExportKeyRequest& WithKeyMaterial(KeyMaterialT&& value) {
49 SetKeyMaterial(std::forward<KeyMaterialT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetExportKeyIdentifier() const { return m_exportKeyIdentifier; }
60 inline bool ExportKeyIdentifierHasBeenSet() const { return m_exportKeyIdentifierHasBeenSet; }
61 template <typename ExportKeyIdentifierT = Aws::String>
62 void SetExportKeyIdentifier(ExportKeyIdentifierT&& value) {
63 m_exportKeyIdentifierHasBeenSet = true;
64 m_exportKeyIdentifier = std::forward<ExportKeyIdentifierT>(value);
65 }
66 template <typename ExportKeyIdentifierT = Aws::String>
67 ExportKeyRequest& WithExportKeyIdentifier(ExportKeyIdentifierT&& value) {
68 SetExportKeyIdentifier(std::forward<ExportKeyIdentifierT>(value));
69 return *this;
70 }
72
74
77 inline const ExportAttributes& GetExportAttributes() const { return m_exportAttributes; }
78 inline bool ExportAttributesHasBeenSet() const { return m_exportAttributesHasBeenSet; }
79 template <typename ExportAttributesT = ExportAttributes>
80 void SetExportAttributes(ExportAttributesT&& value) {
81 m_exportAttributesHasBeenSet = true;
82 m_exportAttributes = std::forward<ExportAttributesT>(value);
83 }
84 template <typename ExportAttributesT = ExportAttributes>
85 ExportKeyRequest& WithExportAttributes(ExportAttributesT&& value) {
86 SetExportAttributes(std::forward<ExportAttributesT>(value));
87 return *this;
88 }
90 private:
91 ExportKeyMaterial m_keyMaterial;
92
93 Aws::String m_exportKeyIdentifier;
94
95 ExportAttributes m_exportAttributes;
96 bool m_keyMaterialHasBeenSet = false;
97 bool m_exportKeyIdentifierHasBeenSet = false;
98 bool m_exportAttributesHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace PaymentCryptography
103} // namespace Aws
AWS_PAYMENTCRYPTOGRAPHY_API Aws::String SerializePayload() const override
const ExportKeyMaterial & GetKeyMaterial() const
void SetExportKeyIdentifier(ExportKeyIdentifierT &&value)
AWS_PAYMENTCRYPTOGRAPHY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const ExportAttributes & GetExportAttributes() const
AWS_PAYMENTCRYPTOGRAPHY_API ExportKeyRequest()=default
void SetExportAttributes(ExportAttributesT &&value)
ExportKeyRequest & WithExportAttributes(ExportAttributesT &&value)
ExportKeyRequest & WithExportKeyIdentifier(ExportKeyIdentifierT &&value)
ExportKeyRequest & WithKeyMaterial(KeyMaterialT &&value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String