AWS SDK for C++

AWS SDK for C++ Version 1.11.937

Loading...
Searching...
No Matches
DecapsulateRequest.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/kms/KMSRequest.h>
11#include <aws/kms/KMS_EXPORTS.h>
12#include <aws/kms/model/EncapsulationAlgorithmSpec.h>
13
14#include <utility>
15
16namespace Aws {
17namespace KMS {
18namespace Model {
19
23 public:
24 AWS_KMS_API DecapsulateRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "Decapsulate"; }
31
32 AWS_KMS_API Aws::String SerializePayload() const override;
33
35
37
53 inline const Aws::String& GetKeyId() const { return m_keyId; }
54 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
55 template <typename KeyIdT = Aws::String>
56 void SetKeyId(KeyIdT&& value) {
57 m_keyIdHasBeenSet = true;
58 m_keyId = std::forward<KeyIdT>(value);
59 }
60 template <typename KeyIdT = Aws::String>
61 DecapsulateRequest& WithKeyId(KeyIdT&& value) {
62 SetKeyId(std::forward<KeyIdT>(value));
63 return *this;
64 }
66
68
74 inline const Aws::Utils::ByteBuffer& GetSharedSecretCiphertextBlob() const { return m_sharedSecretCiphertextBlob; }
75 inline bool SharedSecretCiphertextBlobHasBeenSet() const { return m_sharedSecretCiphertextBlobHasBeenSet; }
76 template <typename SharedSecretCiphertextBlobT = Aws::Utils::ByteBuffer>
77 void SetSharedSecretCiphertextBlob(SharedSecretCiphertextBlobT&& value) {
78 m_sharedSecretCiphertextBlobHasBeenSet = true;
79 m_sharedSecretCiphertextBlob = std::forward<SharedSecretCiphertextBlobT>(value);
80 }
81 template <typename SharedSecretCiphertextBlobT = Aws::Utils::ByteBuffer>
82 DecapsulateRequest& WithSharedSecretCiphertextBlob(SharedSecretCiphertextBlobT&& value) {
83 SetSharedSecretCiphertextBlob(std::forward<SharedSecretCiphertextBlobT>(value));
84 return *this;
85 }
87
89
93 inline EncapsulationAlgorithmSpec GetEncapsulationAlgorithm() const { return m_encapsulationAlgorithm; }
94 inline bool EncapsulationAlgorithmHasBeenSet() const { return m_encapsulationAlgorithmHasBeenSet; }
96 m_encapsulationAlgorithmHasBeenSet = true;
97 m_encapsulationAlgorithm = value;
98 }
104
106
115 inline const Aws::Vector<Aws::String>& GetGrantTokens() const { return m_grantTokens; }
116 inline bool GrantTokensHasBeenSet() const { return m_grantTokensHasBeenSet; }
117 template <typename GrantTokensT = Aws::Vector<Aws::String>>
118 void SetGrantTokens(GrantTokensT&& value) {
119 m_grantTokensHasBeenSet = true;
120 m_grantTokens = std::forward<GrantTokensT>(value);
121 }
122 template <typename GrantTokensT = Aws::Vector<Aws::String>>
123 DecapsulateRequest& WithGrantTokens(GrantTokensT&& value) {
124 SetGrantTokens(std::forward<GrantTokensT>(value));
125 return *this;
126 }
127 template <typename GrantTokensT = Aws::String>
128 DecapsulateRequest& AddGrantTokens(GrantTokensT&& value) {
129 m_grantTokensHasBeenSet = true;
130 m_grantTokens.emplace_back(std::forward<GrantTokensT>(value));
131 return *this;
132 }
134
136
142 inline bool GetDryRun() const { return m_dryRun; }
143 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
144 inline void SetDryRun(bool value) {
145 m_dryRunHasBeenSet = true;
146 m_dryRun = value;
147 }
148 inline DecapsulateRequest& WithDryRun(bool value) {
149 SetDryRun(value);
150 return *this;
151 }
153 private:
154 Aws::String m_keyId;
155
156 Aws::Utils::ByteBuffer m_sharedSecretCiphertextBlob{};
157
159
160 Aws::Vector<Aws::String> m_grantTokens;
161
162 bool m_dryRun{false};
163 bool m_keyIdHasBeenSet = false;
164 bool m_sharedSecretCiphertextBlobHasBeenSet = false;
165 bool m_encapsulationAlgorithmHasBeenSet = false;
166 bool m_grantTokensHasBeenSet = false;
167 bool m_dryRunHasBeenSet = false;
168};
169
170} // namespace Model
171} // namespace KMS
172} // namespace Aws
void SetGrantTokens(GrantTokensT &&value)
virtual const char * GetServiceRequestName() const override
DecapsulateRequest & WithEncapsulationAlgorithm(EncapsulationAlgorithmSpec value)
DecapsulateRequest & AddGrantTokens(GrantTokensT &&value)
const Aws::Utils::ByteBuffer & GetSharedSecretCiphertextBlob() const
void SetSharedSecretCiphertextBlob(SharedSecretCiphertextBlobT &&value)
AWS_KMS_API DecapsulateRequest()=default
AWS_KMS_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetGrantTokens() const
DecapsulateRequest & WithGrantTokens(GrantTokensT &&value)
DecapsulateRequest & WithSharedSecretCiphertextBlob(SharedSecretCiphertextBlobT &&value)
DecapsulateRequest & WithKeyId(KeyIdT &&value)
const Aws::String & GetKeyId() const
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
EncapsulationAlgorithmSpec GetEncapsulationAlgorithm() const
DecapsulateRequest & WithDryRun(bool value)
void SetEncapsulationAlgorithm(EncapsulationAlgorithmSpec 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