AWS SDK for C++

AWS SDK for C++ Version 1.11.844

Loading...
Searching...
No Matches
ImportKeyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/payment-cryptography/PaymentCryptographyRequest.h>
10#include <aws/payment-cryptography/PaymentCryptography_EXPORTS.h>
11#include <aws/payment-cryptography/model/ImportKeyMaterial.h>
12#include <aws/payment-cryptography/model/KeyCheckValueAlgorithm.h>
13#include <aws/payment-cryptography/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace PaymentCryptography {
19namespace Model {
20
24 public:
25 AWS_PAYMENTCRYPTOGRAPHY_API ImportKeyRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ImportKey"; }
32
33 AWS_PAYMENTCRYPTOGRAPHY_API Aws::String SerializePayload() const override;
34
35 AWS_PAYMENTCRYPTOGRAPHY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
42 inline const ImportKeyMaterial& GetKeyMaterial() const { return m_keyMaterial; }
43 inline bool KeyMaterialHasBeenSet() const { return m_keyMaterialHasBeenSet; }
44 template <typename KeyMaterialT = ImportKeyMaterial>
45 void SetKeyMaterial(KeyMaterialT&& value) {
46 m_keyMaterialHasBeenSet = true;
47 m_keyMaterial = std::forward<KeyMaterialT>(value);
48 }
49 template <typename KeyMaterialT = ImportKeyMaterial>
50 ImportKeyRequest& WithKeyMaterial(KeyMaterialT&& value) {
51 SetKeyMaterial(std::forward<KeyMaterialT>(value));
52 return *this;
53 }
55
57
67 inline KeyCheckValueAlgorithm GetKeyCheckValueAlgorithm() const { return m_keyCheckValueAlgorithm; }
68 inline bool KeyCheckValueAlgorithmHasBeenSet() const { return m_keyCheckValueAlgorithmHasBeenSet; }
70 m_keyCheckValueAlgorithmHasBeenSet = true;
71 m_keyCheckValueAlgorithm = value;
72 }
75 return *this;
76 }
78
80
83 inline bool GetEnabled() const { return m_enabled; }
84 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
85 inline void SetEnabled(bool value) {
86 m_enabledHasBeenSet = true;
87 m_enabled = value;
88 }
89 inline ImportKeyRequest& WithEnabled(bool value) {
90 SetEnabled(value);
91 return *this;
92 }
94
96
112 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
113 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
114 template <typename TagsT = Aws::Vector<Tag>>
115 void SetTags(TagsT&& value) {
116 m_tagsHasBeenSet = true;
117 m_tags = std::forward<TagsT>(value);
118 }
119 template <typename TagsT = Aws::Vector<Tag>>
120 ImportKeyRequest& WithTags(TagsT&& value) {
121 SetTags(std::forward<TagsT>(value));
122 return *this;
123 }
124 template <typename TagsT = Tag>
125 ImportKeyRequest& AddTags(TagsT&& value) {
126 m_tagsHasBeenSet = true;
127 m_tags.emplace_back(std::forward<TagsT>(value));
128 return *this;
129 }
131
133
134 inline const Aws::Vector<Aws::String>& GetReplicationRegions() const { return m_replicationRegions; }
135 inline bool ReplicationRegionsHasBeenSet() const { return m_replicationRegionsHasBeenSet; }
136 template <typename ReplicationRegionsT = Aws::Vector<Aws::String>>
137 void SetReplicationRegions(ReplicationRegionsT&& value) {
138 m_replicationRegionsHasBeenSet = true;
139 m_replicationRegions = std::forward<ReplicationRegionsT>(value);
140 }
141 template <typename ReplicationRegionsT = Aws::Vector<Aws::String>>
142 ImportKeyRequest& WithReplicationRegions(ReplicationRegionsT&& value) {
143 SetReplicationRegions(std::forward<ReplicationRegionsT>(value));
144 return *this;
145 }
146 template <typename ReplicationRegionsT = Aws::String>
147 ImportKeyRequest& AddReplicationRegions(ReplicationRegionsT&& value) {
148 m_replicationRegionsHasBeenSet = true;
149 m_replicationRegions.emplace_back(std::forward<ReplicationRegionsT>(value));
150 return *this;
151 }
153
155
161 inline const Aws::String& GetRequesterComment() const { return m_requesterComment; }
162 inline bool RequesterCommentHasBeenSet() const { return m_requesterCommentHasBeenSet; }
163 template <typename RequesterCommentT = Aws::String>
164 void SetRequesterComment(RequesterCommentT&& value) {
165 m_requesterCommentHasBeenSet = true;
166 m_requesterComment = std::forward<RequesterCommentT>(value);
167 }
168 template <typename RequesterCommentT = Aws::String>
169 ImportKeyRequest& WithRequesterComment(RequesterCommentT&& value) {
170 SetRequesterComment(std::forward<RequesterCommentT>(value));
171 return *this;
172 }
174 private:
175 ImportKeyMaterial m_keyMaterial;
176
178
179 bool m_enabled{false};
180
181 Aws::Vector<Tag> m_tags;
182
183 Aws::Vector<Aws::String> m_replicationRegions;
184
185 Aws::String m_requesterComment;
186 bool m_keyMaterialHasBeenSet = false;
187 bool m_keyCheckValueAlgorithmHasBeenSet = false;
188 bool m_enabledHasBeenSet = false;
189 bool m_tagsHasBeenSet = false;
190 bool m_replicationRegionsHasBeenSet = false;
191 bool m_requesterCommentHasBeenSet = false;
192};
193
194} // namespace Model
195} // namespace PaymentCryptography
196} // namespace Aws
void SetReplicationRegions(ReplicationRegionsT &&value)
AWS_PAYMENTCRYPTOGRAPHY_API Aws::String SerializePayload() const override
void SetRequesterComment(RequesterCommentT &&value)
const Aws::Vector< Aws::String > & GetReplicationRegions() const
ImportKeyRequest & WithKeyCheckValueAlgorithm(KeyCheckValueAlgorithm value)
ImportKeyRequest & AddReplicationRegions(ReplicationRegionsT &&value)
virtual const char * GetServiceRequestName() const override
void SetKeyCheckValueAlgorithm(KeyCheckValueAlgorithm value)
ImportKeyRequest & WithReplicationRegions(ReplicationRegionsT &&value)
ImportKeyRequest & WithRequesterComment(RequesterCommentT &&value)
const ImportKeyMaterial & GetKeyMaterial() const
AWS_PAYMENTCRYPTOGRAPHY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ImportKeyRequest & WithKeyMaterial(KeyMaterialT &&value)
KeyCheckValueAlgorithm GetKeyCheckValueAlgorithm() const
AWS_PAYMENTCRYPTOGRAPHY_API ImportKeyRequest()=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