AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateKeyRequest.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/KeyAttributes.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 CreateKeyRequest();
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 "CreateKey"; }
34
35 AWS_PAYMENTCRYPTOGRAPHY_API Aws::String SerializePayload() const override;
36
37 AWS_PAYMENTCRYPTOGRAPHY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
46 inline const KeyAttributes& GetKeyAttributes() const{ return m_keyAttributes; }
47 inline bool KeyAttributesHasBeenSet() const { return m_keyAttributesHasBeenSet; }
48 inline void SetKeyAttributes(const KeyAttributes& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes = value; }
49 inline void SetKeyAttributes(KeyAttributes&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes = std::move(value); }
50 inline CreateKeyRequest& WithKeyAttributes(const KeyAttributes& value) { SetKeyAttributes(value); return *this;}
51 inline CreateKeyRequest& WithKeyAttributes(KeyAttributes&& value) { SetKeyAttributes(std::move(value)); return *this;}
53
55
64 inline const KeyCheckValueAlgorithm& GetKeyCheckValueAlgorithm() const{ return m_keyCheckValueAlgorithm; }
65 inline bool KeyCheckValueAlgorithmHasBeenSet() const { return m_keyCheckValueAlgorithmHasBeenSet; }
66 inline void SetKeyCheckValueAlgorithm(const KeyCheckValueAlgorithm& value) { m_keyCheckValueAlgorithmHasBeenSet = true; m_keyCheckValueAlgorithm = value; }
67 inline void SetKeyCheckValueAlgorithm(KeyCheckValueAlgorithm&& value) { m_keyCheckValueAlgorithmHasBeenSet = true; m_keyCheckValueAlgorithm = std::move(value); }
71
73
76 inline bool GetExportable() const{ return m_exportable; }
77 inline bool ExportableHasBeenSet() const { return m_exportableHasBeenSet; }
78 inline void SetExportable(bool value) { m_exportableHasBeenSet = true; m_exportable = value; }
79 inline CreateKeyRequest& WithExportable(bool value) { SetExportable(value); return *this;}
81
83
88 inline bool GetEnabled() const{ return m_enabled; }
89 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
90 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
91 inline CreateKeyRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
93
95
109 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
110 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
111 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
112 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
113 inline CreateKeyRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
114 inline CreateKeyRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
115 inline CreateKeyRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
116 inline CreateKeyRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
118 private:
119
120 KeyAttributes m_keyAttributes;
121 bool m_keyAttributesHasBeenSet = false;
122
123 KeyCheckValueAlgorithm m_keyCheckValueAlgorithm;
124 bool m_keyCheckValueAlgorithmHasBeenSet = false;
125
126 bool m_exportable;
127 bool m_exportableHasBeenSet = false;
128
129 bool m_enabled;
130 bool m_enabledHasBeenSet = false;
131
132 Aws::Vector<Tag> m_tags;
133 bool m_tagsHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace PaymentCryptography
138} // namespace Aws
CreateKeyRequest & WithTags(Aws::Vector< Tag > &&value)
CreateKeyRequest & WithKeyCheckValueAlgorithm(KeyCheckValueAlgorithm &&value)
AWS_PAYMENTCRYPTOGRAPHY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateKeyRequest & WithKeyCheckValueAlgorithm(const KeyCheckValueAlgorithm &value)
AWS_PAYMENTCRYPTOGRAPHY_API CreateKeyRequest()
CreateKeyRequest & WithTags(const Aws::Vector< Tag > &value)
const KeyCheckValueAlgorithm & GetKeyCheckValueAlgorithm() const
CreateKeyRequest & WithKeyAttributes(KeyAttributes &&value)
CreateKeyRequest & AddTags(const Tag &value)
void SetTags(const Aws::Vector< Tag > &value)
AWS_PAYMENTCRYPTOGRAPHY_API Aws::String SerializePayload() const override
void SetKeyAttributes(const KeyAttributes &value)
virtual const char * GetServiceRequestName() const override
CreateKeyRequest & WithKeyAttributes(const KeyAttributes &value)
void SetKeyCheckValueAlgorithm(const KeyCheckValueAlgorithm &value)
void SetKeyCheckValueAlgorithm(KeyCheckValueAlgorithm &&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