AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
66 inline KeyCheckValueAlgorithm GetKeyCheckValueAlgorithm() const { return m_keyCheckValueAlgorithm; }
67 inline bool KeyCheckValueAlgorithmHasBeenSet() const { return m_keyCheckValueAlgorithmHasBeenSet; }
69 m_keyCheckValueAlgorithmHasBeenSet = true;
70 m_keyCheckValueAlgorithm = value;
71 }
74 return *this;
75 }
77
79
82 inline bool GetEnabled() const { return m_enabled; }
83 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
84 inline void SetEnabled(bool value) {
85 m_enabledHasBeenSet = true;
86 m_enabled = value;
87 }
88 inline ImportKeyRequest& WithEnabled(bool value) {
89 SetEnabled(value);
90 return *this;
91 }
93
95
111 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
112 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
113 template <typename TagsT = Aws::Vector<Tag>>
114 void SetTags(TagsT&& value) {
115 m_tagsHasBeenSet = true;
116 m_tags = std::forward<TagsT>(value);
117 }
118 template <typename TagsT = Aws::Vector<Tag>>
119 ImportKeyRequest& WithTags(TagsT&& value) {
120 SetTags(std::forward<TagsT>(value));
121 return *this;
122 }
123 template <typename TagsT = Tag>
124 ImportKeyRequest& AddTags(TagsT&& value) {
125 m_tagsHasBeenSet = true;
126 m_tags.emplace_back(std::forward<TagsT>(value));
127 return *this;
128 }
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) {
137 m_replicationRegionsHasBeenSet = true;
138 m_replicationRegions = std::forward<ReplicationRegionsT>(value);
139 }
140 template <typename ReplicationRegionsT = Aws::Vector<Aws::String>>
141 ImportKeyRequest& WithReplicationRegions(ReplicationRegionsT&& value) {
142 SetReplicationRegions(std::forward<ReplicationRegionsT>(value));
143 return *this;
144 }
145 template <typename ReplicationRegionsT = Aws::String>
146 ImportKeyRequest& AddReplicationRegions(ReplicationRegionsT&& value) {
147 m_replicationRegionsHasBeenSet = true;
148 m_replicationRegions.emplace_back(std::forward<ReplicationRegionsT>(value));
149 return *this;
150 }
152 private:
153 ImportKeyMaterial m_keyMaterial;
154
156
157 bool m_enabled{false};
158
159 Aws::Vector<Tag> m_tags;
160
161 Aws::Vector<Aws::String> m_replicationRegions;
162 bool m_keyMaterialHasBeenSet = false;
163 bool m_keyCheckValueAlgorithmHasBeenSet = false;
164 bool m_enabledHasBeenSet = false;
165 bool m_tagsHasBeenSet = false;
166 bool m_replicationRegionsHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace PaymentCryptography
171} // namespace Aws
void SetReplicationRegions(ReplicationRegionsT &&value)
AWS_PAYMENTCRYPTOGRAPHY_API Aws::String SerializePayload() const override
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)
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