AWS SDK for C++

AWS SDK for C++ Version 1.11.644

Loading...
Searching...
No Matches
ImportKeyRequest.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/ImportKeyMaterial.h>
10#include <aws/payment-cryptography/model/KeyCheckValueAlgorithm.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/payment-cryptography/model/Tag.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <utility>
15
16namespace Aws
17{
18namespace PaymentCryptography
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_PAYMENTCRYPTOGRAPHY_API ImportKeyRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "ImportKey"; }
35
36 AWS_PAYMENTCRYPTOGRAPHY_API Aws::String SerializePayload() const override;
37
38 AWS_PAYMENTCRYPTOGRAPHY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
46 inline const ImportKeyMaterial& GetKeyMaterial() const { return m_keyMaterial; }
47 inline bool KeyMaterialHasBeenSet() const { return m_keyMaterialHasBeenSet; }
48 template<typename KeyMaterialT = ImportKeyMaterial>
49 void SetKeyMaterial(KeyMaterialT&& value) { m_keyMaterialHasBeenSet = true; m_keyMaterial = std::forward<KeyMaterialT>(value); }
50 template<typename KeyMaterialT = ImportKeyMaterial>
51 ImportKeyRequest& WithKeyMaterial(KeyMaterialT&& value) { SetKeyMaterial(std::forward<KeyMaterialT>(value)); return *this;}
53
55
64 inline KeyCheckValueAlgorithm GetKeyCheckValueAlgorithm() const { return m_keyCheckValueAlgorithm; }
65 inline bool KeyCheckValueAlgorithmHasBeenSet() const { return m_keyCheckValueAlgorithmHasBeenSet; }
66 inline void SetKeyCheckValueAlgorithm(KeyCheckValueAlgorithm value) { m_keyCheckValueAlgorithmHasBeenSet = true; m_keyCheckValueAlgorithm = value; }
69
71
74 inline bool GetEnabled() const { return m_enabled; }
75 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
76 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
77 inline ImportKeyRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
79
81
97 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
98 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
99 template<typename TagsT = Aws::Vector<Tag>>
100 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
101 template<typename TagsT = Aws::Vector<Tag>>
102 ImportKeyRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
103 template<typename TagsT = Tag>
104 ImportKeyRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
106
108
109 inline const Aws::Vector<Aws::String>& GetReplicationRegions() const { return m_replicationRegions; }
110 inline bool ReplicationRegionsHasBeenSet() const { return m_replicationRegionsHasBeenSet; }
111 template<typename ReplicationRegionsT = Aws::Vector<Aws::String>>
112 void SetReplicationRegions(ReplicationRegionsT&& value) { m_replicationRegionsHasBeenSet = true; m_replicationRegions = std::forward<ReplicationRegionsT>(value); }
113 template<typename ReplicationRegionsT = Aws::Vector<Aws::String>>
114 ImportKeyRequest& WithReplicationRegions(ReplicationRegionsT&& value) { SetReplicationRegions(std::forward<ReplicationRegionsT>(value)); return *this;}
115 template<typename ReplicationRegionsT = Aws::String>
116 ImportKeyRequest& AddReplicationRegions(ReplicationRegionsT&& value) { m_replicationRegionsHasBeenSet = true; m_replicationRegions.emplace_back(std::forward<ReplicationRegionsT>(value)); return *this; }
118 private:
119
120 ImportKeyMaterial m_keyMaterial;
121 bool m_keyMaterialHasBeenSet = false;
122
124 bool m_keyCheckValueAlgorithmHasBeenSet = false;
125
126 bool m_enabled{false};
127 bool m_enabledHasBeenSet = false;
128
129 Aws::Vector<Tag> m_tags;
130 bool m_tagsHasBeenSet = false;
131
132 Aws::Vector<Aws::String> m_replicationRegions;
133 bool m_replicationRegionsHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace PaymentCryptography
138} // 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
const Aws::Vector< Tag > & GetTags() const
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