AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
36
37
39
42 inline const Aws::String& GetKeyId() const{ return m_keyId; }
43 inline void SetKeyId(const Aws::String& value) { m_keyId = value; }
44 inline void SetKeyId(Aws::String&& value) { m_keyId = std::move(value); }
45 inline void SetKeyId(const char* value) { m_keyId.assign(value); }
46 inline DeriveSharedSecretResult& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
47 inline DeriveSharedSecretResult& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
48 inline DeriveSharedSecretResult& WithKeyId(const char* value) { SetKeyId(value); return *this;}
50
52
58 inline const Aws::Utils::CryptoBuffer& GetSharedSecret() const{ return m_sharedSecret; }
59 inline void SetSharedSecret(const Aws::Utils::CryptoBuffer& value) { m_sharedSecret = value; }
60 inline void SetSharedSecret(Aws::Utils::CryptoBuffer&& value) { m_sharedSecret = std::move(value); }
62 inline DeriveSharedSecretResult& WithSharedSecret(Aws::Utils::CryptoBuffer&& value) { SetSharedSecret(std::move(value)); return *this;}
64
66
76 inline const Aws::Utils::ByteBuffer& GetCiphertextForRecipient() const{ return m_ciphertextForRecipient; }
77 inline void SetCiphertextForRecipient(const Aws::Utils::ByteBuffer& value) { m_ciphertextForRecipient = value; }
78 inline void SetCiphertextForRecipient(Aws::Utils::ByteBuffer&& value) { m_ciphertextForRecipient = std::move(value); }
82
84
87 inline const KeyAgreementAlgorithmSpec& GetKeyAgreementAlgorithm() const{ return m_keyAgreementAlgorithm; }
88 inline void SetKeyAgreementAlgorithm(const KeyAgreementAlgorithmSpec& value) { m_keyAgreementAlgorithm = value; }
89 inline void SetKeyAgreementAlgorithm(KeyAgreementAlgorithmSpec&& value) { m_keyAgreementAlgorithm = std::move(value); }
93
95
104 inline const OriginType& GetKeyOrigin() const{ return m_keyOrigin; }
105 inline void SetKeyOrigin(const OriginType& value) { m_keyOrigin = value; }
106 inline void SetKeyOrigin(OriginType&& value) { m_keyOrigin = std::move(value); }
107 inline DeriveSharedSecretResult& WithKeyOrigin(const OriginType& value) { SetKeyOrigin(value); return *this;}
108 inline DeriveSharedSecretResult& WithKeyOrigin(OriginType&& value) { SetKeyOrigin(std::move(value)); return *this;}
110
112
113 inline const Aws::String& GetRequestId() const{ return m_requestId; }
114 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
115 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
116 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
117 inline DeriveSharedSecretResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
118 inline DeriveSharedSecretResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
119 inline DeriveSharedSecretResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
121 private:
122
123 Aws::String m_keyId;
124
125 Aws::Utils::CryptoBuffer m_sharedSecret;
126
127 Aws::Utils::ByteBuffer m_ciphertextForRecipient;
128
129 KeyAgreementAlgorithmSpec m_keyAgreementAlgorithm;
130
131 OriginType m_keyOrigin;
132
133 Aws::String m_requestId;
134 };
135
136} // namespace Model
137} // namespace KMS
138} // namespace Aws
AWS_KMS_API DeriveSharedSecretResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DeriveSharedSecretResult & WithRequestId(Aws::String &&value)
DeriveSharedSecretResult & WithCiphertextForRecipient(const Aws::Utils::ByteBuffer &value)
void SetKeyAgreementAlgorithm(const KeyAgreementAlgorithmSpec &value)
DeriveSharedSecretResult & WithKeyAgreementAlgorithm(KeyAgreementAlgorithmSpec &&value)
DeriveSharedSecretResult & WithSharedSecret(const Aws::Utils::CryptoBuffer &value)
DeriveSharedSecretResult & WithRequestId(const Aws::String &value)
void SetCiphertextForRecipient(const Aws::Utils::ByteBuffer &value)
void SetSharedSecret(const Aws::Utils::CryptoBuffer &value)
DeriveSharedSecretResult & WithKeyOrigin(OriginType &&value)
DeriveSharedSecretResult & WithKeyAgreementAlgorithm(const KeyAgreementAlgorithmSpec &value)
void SetCiphertextForRecipient(Aws::Utils::ByteBuffer &&value)
void SetSharedSecret(Aws::Utils::CryptoBuffer &&value)
DeriveSharedSecretResult & WithKeyId(Aws::String &&value)
AWS_KMS_API DeriveSharedSecretResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DeriveSharedSecretResult & WithKeyId(const char *value)
void SetKeyAgreementAlgorithm(KeyAgreementAlgorithmSpec &&value)
const Aws::Utils::CryptoBuffer & GetSharedSecret() const
DeriveSharedSecretResult & WithKeyOrigin(const OriginType &value)
const KeyAgreementAlgorithmSpec & GetKeyAgreementAlgorithm() const
DeriveSharedSecretResult & WithRequestId(const char *value)
DeriveSharedSecretResult & WithCiphertextForRecipient(Aws::Utils::ByteBuffer &&value)
const Aws::Utils::ByteBuffer & GetCiphertextForRecipient() const
DeriveSharedSecretResult & WithSharedSecret(Aws::Utils::CryptoBuffer &&value)
DeriveSharedSecretResult & WithKeyId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue