AWS SDK for C++

AWS SDK for C++ Version 1.11.644

Loading...
Searching...
No Matches
CreateKeyRequest.h
1
6#pragma once
7#include <aws/payment-cryptography/PaymentCryptography_EXPORTS.h>
8#include <aws/payment-cryptography/PaymentCryptographyRequest.h>
9#include <aws/payment-cryptography/model/KeyAttributes.h>
10#include <aws/payment-cryptography/model/KeyCheckValueAlgorithm.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/payment-cryptography/model/DeriveKeyUsage.h>
13#include <aws/payment-cryptography/model/Tag.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <utility>
16
17namespace Aws
18{
19namespace PaymentCryptography
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_PAYMENTCRYPTOGRAPHY_API CreateKeyRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateKey"; }
36
37 AWS_PAYMENTCRYPTOGRAPHY_API Aws::String SerializePayload() const override;
38
39 AWS_PAYMENTCRYPTOGRAPHY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
48 inline const KeyAttributes& GetKeyAttributes() const { return m_keyAttributes; }
49 inline bool KeyAttributesHasBeenSet() const { return m_keyAttributesHasBeenSet; }
50 template<typename KeyAttributesT = KeyAttributes>
51 void SetKeyAttributes(KeyAttributesT&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes = std::forward<KeyAttributesT>(value); }
52 template<typename KeyAttributesT = KeyAttributes>
53 CreateKeyRequest& WithKeyAttributes(KeyAttributesT&& value) { SetKeyAttributes(std::forward<KeyAttributesT>(value)); return *this;}
55
57
66 inline KeyCheckValueAlgorithm GetKeyCheckValueAlgorithm() const { return m_keyCheckValueAlgorithm; }
67 inline bool KeyCheckValueAlgorithmHasBeenSet() const { return m_keyCheckValueAlgorithmHasBeenSet; }
68 inline void SetKeyCheckValueAlgorithm(KeyCheckValueAlgorithm value) { m_keyCheckValueAlgorithmHasBeenSet = true; m_keyCheckValueAlgorithm = value; }
71
73
76 inline bool GetExportable() const { return m_exportable; }
77 inline bool ExportableHasBeenSet() const { return m_exportableHasBeenSet; }
78 inline void SetExportable(bool value) { m_exportableHasBeenSet = true; m_exportable = value; }
79 inline CreateKeyRequest& WithExportable(bool value) { SetExportable(value); return *this;}
81
83
88 inline bool GetEnabled() const { return m_enabled; }
89 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
90 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
91 inline CreateKeyRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
93
95
109 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
110 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
111 template<typename TagsT = Aws::Vector<Tag>>
112 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
113 template<typename TagsT = Aws::Vector<Tag>>
114 CreateKeyRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
115 template<typename TagsT = Tag>
116 CreateKeyRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
118
120
125 inline DeriveKeyUsage GetDeriveKeyUsage() const { return m_deriveKeyUsage; }
126 inline bool DeriveKeyUsageHasBeenSet() const { return m_deriveKeyUsageHasBeenSet; }
127 inline void SetDeriveKeyUsage(DeriveKeyUsage value) { m_deriveKeyUsageHasBeenSet = true; m_deriveKeyUsage = value; }
130
132
133 inline const Aws::Vector<Aws::String>& GetReplicationRegions() const { return m_replicationRegions; }
134 inline bool ReplicationRegionsHasBeenSet() const { return m_replicationRegionsHasBeenSet; }
135 template<typename ReplicationRegionsT = Aws::Vector<Aws::String>>
136 void SetReplicationRegions(ReplicationRegionsT&& value) { m_replicationRegionsHasBeenSet = true; m_replicationRegions = std::forward<ReplicationRegionsT>(value); }
137 template<typename ReplicationRegionsT = Aws::Vector<Aws::String>>
138 CreateKeyRequest& WithReplicationRegions(ReplicationRegionsT&& value) { SetReplicationRegions(std::forward<ReplicationRegionsT>(value)); return *this;}
139 template<typename ReplicationRegionsT = Aws::String>
140 CreateKeyRequest& AddReplicationRegions(ReplicationRegionsT&& value) { m_replicationRegionsHasBeenSet = true; m_replicationRegions.emplace_back(std::forward<ReplicationRegionsT>(value)); return *this; }
142 private:
143
144 KeyAttributes m_keyAttributes;
145 bool m_keyAttributesHasBeenSet = false;
146
148 bool m_keyCheckValueAlgorithmHasBeenSet = false;
149
150 bool m_exportable{false};
151 bool m_exportableHasBeenSet = false;
152
153 bool m_enabled{false};
154 bool m_enabledHasBeenSet = false;
155
156 Aws::Vector<Tag> m_tags;
157 bool m_tagsHasBeenSet = false;
158
159 DeriveKeyUsage m_deriveKeyUsage{DeriveKeyUsage::NOT_SET};
160 bool m_deriveKeyUsageHasBeenSet = false;
161
162 Aws::Vector<Aws::String> m_replicationRegions;
163 bool m_replicationRegionsHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace PaymentCryptography
168} // namespace Aws
AWS_PAYMENTCRYPTOGRAPHY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Aws::String > & GetReplicationRegions() const
CreateKeyRequest & WithReplicationRegions(ReplicationRegionsT &&value)
void SetReplicationRegions(ReplicationRegionsT &&value)
CreateKeyRequest & WithKeyAttributes(KeyAttributesT &&value)
void SetKeyCheckValueAlgorithm(KeyCheckValueAlgorithm value)
CreateKeyRequest & WithKeyCheckValueAlgorithm(KeyCheckValueAlgorithm value)
AWS_PAYMENTCRYPTOGRAPHY_API Aws::String SerializePayload() const override
CreateKeyRequest & WithDeriveKeyUsage(DeriveKeyUsage value)
KeyCheckValueAlgorithm GetKeyCheckValueAlgorithm() const
CreateKeyRequest & AddReplicationRegions(ReplicationRegionsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_PAYMENTCRYPTOGRAPHY_API CreateKeyRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector