AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
DeriveSharedSecretResult.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kms/KMS_EXPORTS.h>
10#include <aws/kms/model/KeyAgreementAlgorithmSpec.h>
11#include <aws/kms/model/OriginType.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace KMS {
25namespace Model {
27 public:
28 AWS_KMS_API DeriveSharedSecretResult() = default;
31
33
36 inline const Aws::String& GetKeyId() const { return m_keyId; }
37 template <typename KeyIdT = Aws::String>
38 void SetKeyId(KeyIdT&& value) {
39 m_keyIdHasBeenSet = true;
40 m_keyId = std::forward<KeyIdT>(value);
41 }
42 template <typename KeyIdT = Aws::String>
44 SetKeyId(std::forward<KeyIdT>(value));
45 return *this;
46 }
48
50
56 inline const Aws::Utils::CryptoBuffer& GetSharedSecret() const { return m_sharedSecret; }
57 template <typename SharedSecretT = Aws::Utils::CryptoBuffer>
58 void SetSharedSecret(SharedSecretT&& value) {
59 m_sharedSecretHasBeenSet = true;
60 m_sharedSecret = std::forward<SharedSecretT>(value);
61 }
62 template <typename SharedSecretT = Aws::Utils::CryptoBuffer>
64 SetSharedSecret(std::forward<SharedSecretT>(value));
65 return *this;
66 }
68
70
82 inline const Aws::Utils::ByteBuffer& GetCiphertextForRecipient() const { return m_ciphertextForRecipient; }
83 template <typename CiphertextForRecipientT = Aws::Utils::ByteBuffer>
84 void SetCiphertextForRecipient(CiphertextForRecipientT&& value) {
85 m_ciphertextForRecipientHasBeenSet = true;
86 m_ciphertextForRecipient = std::forward<CiphertextForRecipientT>(value);
87 }
88 template <typename CiphertextForRecipientT = Aws::Utils::ByteBuffer>
89 DeriveSharedSecretResult& WithCiphertextForRecipient(CiphertextForRecipientT&& value) {
90 SetCiphertextForRecipient(std::forward<CiphertextForRecipientT>(value));
91 return *this;
92 }
94
96
99 inline KeyAgreementAlgorithmSpec GetKeyAgreementAlgorithm() const { return m_keyAgreementAlgorithm; }
101 m_keyAgreementAlgorithmHasBeenSet = true;
102 m_keyAgreementAlgorithm = value;
103 }
106 return *this;
107 }
109
111
120 inline OriginType GetKeyOrigin() const { return m_keyOrigin; }
121 inline void SetKeyOrigin(OriginType value) {
122 m_keyOriginHasBeenSet = true;
123 m_keyOrigin = value;
124 }
126 SetKeyOrigin(value);
127 return *this;
128 }
130
132
133 inline const Aws::String& GetRequestId() const { return m_requestId; }
134 template <typename RequestIdT = Aws::String>
135 void SetRequestId(RequestIdT&& value) {
136 m_requestIdHasBeenSet = true;
137 m_requestId = std::forward<RequestIdT>(value);
138 }
139 template <typename RequestIdT = Aws::String>
141 SetRequestId(std::forward<RequestIdT>(value));
142 return *this;
143 }
145 private:
146 Aws::String m_keyId;
147
148 Aws::Utils::CryptoBuffer m_sharedSecret{};
149
150 Aws::Utils::ByteBuffer m_ciphertextForRecipient{};
151
153
154 OriginType m_keyOrigin{OriginType::NOT_SET};
155
156 Aws::String m_requestId;
157 bool m_keyIdHasBeenSet = false;
158 bool m_sharedSecretHasBeenSet = false;
159 bool m_ciphertextForRecipientHasBeenSet = false;
160 bool m_keyAgreementAlgorithmHasBeenSet = false;
161 bool m_keyOriginHasBeenSet = false;
162 bool m_requestIdHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace KMS
167} // namespace Aws
AWS_KMS_API DeriveSharedSecretResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DeriveSharedSecretResult & WithKeyId(KeyIdT &&value)
void SetKeyAgreementAlgorithm(KeyAgreementAlgorithmSpec value)
AWS_KMS_API DeriveSharedSecretResult()=default
void SetCiphertextForRecipient(CiphertextForRecipientT &&value)
DeriveSharedSecretResult & WithKeyAgreementAlgorithm(KeyAgreementAlgorithmSpec value)
AWS_KMS_API DeriveSharedSecretResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DeriveSharedSecretResult & WithRequestId(RequestIdT &&value)
DeriveSharedSecretResult & WithSharedSecret(SharedSecretT &&value)
const Aws::Utils::CryptoBuffer & GetSharedSecret() const
KeyAgreementAlgorithmSpec GetKeyAgreementAlgorithm() const
const Aws::Utils::ByteBuffer & GetCiphertextForRecipient() const
DeriveSharedSecretResult & WithKeyOrigin(OriginType value)
DeriveSharedSecretResult & WithCiphertextForRecipient(CiphertextForRecipientT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue