AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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 <utility>
14
15namespace Aws
16{
17namespace PaymentCryptography
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_PAYMENTCRYPTOGRAPHY_API ImportKeyRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "ImportKey"; }
34
35 AWS_PAYMENTCRYPTOGRAPHY_API Aws::String SerializePayload() const override;
36
37 AWS_PAYMENTCRYPTOGRAPHY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
45 inline const ImportKeyMaterial& GetKeyMaterial() const { return m_keyMaterial; }
46 inline bool KeyMaterialHasBeenSet() const { return m_keyMaterialHasBeenSet; }
47 template<typename KeyMaterialT = ImportKeyMaterial>
48 void SetKeyMaterial(KeyMaterialT&& value) { m_keyMaterialHasBeenSet = true; m_keyMaterial = std::forward<KeyMaterialT>(value); }
49 template<typename KeyMaterialT = ImportKeyMaterial>
50 ImportKeyRequest& WithKeyMaterial(KeyMaterialT&& value) { SetKeyMaterial(std::forward<KeyMaterialT>(value)); return *this;}
52
54
63 inline KeyCheckValueAlgorithm GetKeyCheckValueAlgorithm() const { return m_keyCheckValueAlgorithm; }
64 inline bool KeyCheckValueAlgorithmHasBeenSet() const { return m_keyCheckValueAlgorithmHasBeenSet; }
65 inline void SetKeyCheckValueAlgorithm(KeyCheckValueAlgorithm value) { m_keyCheckValueAlgorithmHasBeenSet = true; m_keyCheckValueAlgorithm = value; }
68
70
73 inline bool GetEnabled() const { return m_enabled; }
74 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
75 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
76 inline ImportKeyRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
78
80
96 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
97 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
98 template<typename TagsT = Aws::Vector<Tag>>
99 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
100 template<typename TagsT = Aws::Vector<Tag>>
101 ImportKeyRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
102 template<typename TagsT = Tag>
103 ImportKeyRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
105 private:
106
107 ImportKeyMaterial m_keyMaterial;
108 bool m_keyMaterialHasBeenSet = false;
109
111 bool m_keyCheckValueAlgorithmHasBeenSet = false;
112
113 bool m_enabled{false};
114 bool m_enabledHasBeenSet = false;
115
116 Aws::Vector<Tag> m_tags;
117 bool m_tagsHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace PaymentCryptography
122} // namespace Aws
AWS_PAYMENTCRYPTOGRAPHY_API Aws::String SerializePayload() const override
ImportKeyRequest & WithKeyCheckValueAlgorithm(KeyCheckValueAlgorithm value)
virtual const char * GetServiceRequestName() const override
void SetKeyCheckValueAlgorithm(KeyCheckValueAlgorithm 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