AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetKeyMaterial(const ImportKeyMaterial& value) { m_keyMaterialHasBeenSet = true; m_keyMaterial = value; }
48 inline void SetKeyMaterial(ImportKeyMaterial&& value) { m_keyMaterialHasBeenSet = true; m_keyMaterial = std::move(value); }
49 inline ImportKeyRequest& WithKeyMaterial(const ImportKeyMaterial& value) { SetKeyMaterial(value); return *this;}
50 inline ImportKeyRequest& WithKeyMaterial(ImportKeyMaterial&& value) { SetKeyMaterial(std::move(value)); return *this;}
52
54
63 inline const KeyCheckValueAlgorithm& GetKeyCheckValueAlgorithm() const{ return m_keyCheckValueAlgorithm; }
64 inline bool KeyCheckValueAlgorithmHasBeenSet() const { return m_keyCheckValueAlgorithmHasBeenSet; }
65 inline void SetKeyCheckValueAlgorithm(const KeyCheckValueAlgorithm& value) { m_keyCheckValueAlgorithmHasBeenSet = true; m_keyCheckValueAlgorithm = value; }
66 inline void SetKeyCheckValueAlgorithm(KeyCheckValueAlgorithm&& value) { m_keyCheckValueAlgorithmHasBeenSet = true; m_keyCheckValueAlgorithm = std::move(value); }
70
72
75 inline bool GetEnabled() const{ return m_enabled; }
76 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
77 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
78 inline ImportKeyRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
80
82
98 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
99 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
100 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
101 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
102 inline ImportKeyRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
103 inline ImportKeyRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
104 inline ImportKeyRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
105 inline ImportKeyRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
107 private:
108
109 ImportKeyMaterial m_keyMaterial;
110 bool m_keyMaterialHasBeenSet = false;
111
112 KeyCheckValueAlgorithm m_keyCheckValueAlgorithm;
113 bool m_keyCheckValueAlgorithmHasBeenSet = false;
114
115 bool m_enabled;
116 bool m_enabledHasBeenSet = false;
117
118 Aws::Vector<Tag> m_tags;
119 bool m_tagsHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace PaymentCryptography
124} // namespace Aws
const KeyCheckValueAlgorithm & GetKeyCheckValueAlgorithm() const
ImportKeyRequest & WithTags(Aws::Vector< Tag > &&value)
AWS_PAYMENTCRYPTOGRAPHY_API Aws::String SerializePayload() const override
ImportKeyRequest & WithTags(const Aws::Vector< Tag > &value)
virtual const char * GetServiceRequestName() const override
void SetKeyCheckValueAlgorithm(KeyCheckValueAlgorithm &&value)
ImportKeyRequest & WithKeyCheckValueAlgorithm(const KeyCheckValueAlgorithm &value)
void SetTags(const Aws::Vector< Tag > &value)
AWS_PAYMENTCRYPTOGRAPHY_API ImportKeyRequest()
const ImportKeyMaterial & GetKeyMaterial() const
ImportKeyRequest & WithKeyMaterial(ImportKeyMaterial &&value)
ImportKeyRequest & AddTags(const Tag &value)
ImportKeyRequest & WithKeyCheckValueAlgorithm(KeyCheckValueAlgorithm &&value)
ImportKeyRequest & WithKeyMaterial(const ImportKeyMaterial &value)
AWS_PAYMENTCRYPTOGRAPHY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetKeyCheckValueAlgorithm(const KeyCheckValueAlgorithm &value)
const Aws::Vector< Tag > & GetTags() const
void SetKeyMaterial(const ImportKeyMaterial &value)
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