AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DeriveSharedSecretResult.h
1
6#pragma once
7#include <aws/kms/KMS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/Array.h>
10#include <aws/kms/model/KeyAgreementAlgorithmSpec.h>
11#include <aws/kms/model/OriginType.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace KMS
27{
28namespace Model
29{
31 {
32 public:
33 AWS_KMS_API DeriveSharedSecretResult() = default;
36
37
39
42 inline const Aws::String& GetKeyId() const { return m_keyId; }
43 template<typename KeyIdT = Aws::String>
44 void SetKeyId(KeyIdT&& value) { m_keyIdHasBeenSet = true; m_keyId = std::forward<KeyIdT>(value); }
45 template<typename KeyIdT = Aws::String>
46 DeriveSharedSecretResult& WithKeyId(KeyIdT&& value) { SetKeyId(std::forward<KeyIdT>(value)); return *this;}
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) { m_sharedSecretHasBeenSet = true; m_sharedSecret = std::forward<SharedSecretT>(value); }
59 template<typename SharedSecretT = Aws::Utils::CryptoBuffer>
60 DeriveSharedSecretResult& WithSharedSecret(SharedSecretT&& value) { SetSharedSecret(std::forward<SharedSecretT>(value)); return *this;}
62
64
74 inline const Aws::Utils::ByteBuffer& GetCiphertextForRecipient() const { return m_ciphertextForRecipient; }
75 template<typename CiphertextForRecipientT = Aws::Utils::ByteBuffer>
76 void SetCiphertextForRecipient(CiphertextForRecipientT&& value) { m_ciphertextForRecipientHasBeenSet = true; m_ciphertextForRecipient = std::forward<CiphertextForRecipientT>(value); }
77 template<typename CiphertextForRecipientT = Aws::Utils::ByteBuffer>
78 DeriveSharedSecretResult& WithCiphertextForRecipient(CiphertextForRecipientT&& value) { SetCiphertextForRecipient(std::forward<CiphertextForRecipientT>(value)); return *this;}
80
82
85 inline KeyAgreementAlgorithmSpec GetKeyAgreementAlgorithm() const { return m_keyAgreementAlgorithm; }
86 inline void SetKeyAgreementAlgorithm(KeyAgreementAlgorithmSpec value) { m_keyAgreementAlgorithmHasBeenSet = true; m_keyAgreementAlgorithm = value; }
89
91
100 inline OriginType GetKeyOrigin() const { return m_keyOrigin; }
101 inline void SetKeyOrigin(OriginType value) { m_keyOriginHasBeenSet = true; m_keyOrigin = value; }
102 inline DeriveSharedSecretResult& WithKeyOrigin(OriginType value) { SetKeyOrigin(value); return *this;}
104
106
107 inline const Aws::String& GetRequestId() const { return m_requestId; }
108 template<typename RequestIdT = Aws::String>
109 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
110 template<typename RequestIdT = Aws::String>
111 DeriveSharedSecretResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
113 private:
114
115 Aws::String m_keyId;
116 bool m_keyIdHasBeenSet = false;
117
118 Aws::Utils::CryptoBuffer m_sharedSecret{};
119 bool m_sharedSecretHasBeenSet = false;
120
121 Aws::Utils::ByteBuffer m_ciphertextForRecipient{};
122 bool m_ciphertextForRecipientHasBeenSet = false;
123
125 bool m_keyAgreementAlgorithmHasBeenSet = false;
126
127 OriginType m_keyOrigin{OriginType::NOT_SET};
128 bool m_keyOriginHasBeenSet = false;
129
130 Aws::String m_requestId;
131 bool m_requestIdHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace KMS
136} // 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