AWS SDK for C++

AWS SDK for C++ Version 1.11.937

Loading...
Searching...
No Matches
EncapsulateResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/Array.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/kms/KMS_EXPORTS.h>
11#include <aws/kms/model/EncapsulationAlgorithmSpec.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 EncapsulateResult() = default;
31
33
37 inline const Aws::String& GetKeyId() const { return m_keyId; }
38 template <typename KeyIdT = Aws::String>
39 void SetKeyId(KeyIdT&& value) {
40 m_keyIdHasBeenSet = true;
41 m_keyId = std::forward<KeyIdT>(value);
42 }
43 template <typename KeyIdT = Aws::String>
44 EncapsulateResult& WithKeyId(KeyIdT&& value) {
45 SetKeyId(std::forward<KeyIdT>(value));
46 return *this;
47 }
49
51
58 inline const Aws::Utils::CryptoBuffer& GetSharedSecret() const { return m_sharedSecret; }
59 template <typename SharedSecretT = Aws::Utils::CryptoBuffer>
60 void SetSharedSecret(SharedSecretT&& value) {
61 m_sharedSecretHasBeenSet = true;
62 m_sharedSecret = std::forward<SharedSecretT>(value);
63 }
64 template <typename SharedSecretT = Aws::Utils::CryptoBuffer>
65 EncapsulateResult& WithSharedSecret(SharedSecretT&& value) {
66 SetSharedSecret(std::forward<SharedSecretT>(value));
67 return *this;
68 }
70
72
81 inline const Aws::Utils::ByteBuffer& GetSharedSecretCiphertextBlob() const { return m_sharedSecretCiphertextBlob; }
82 template <typename SharedSecretCiphertextBlobT = Aws::Utils::ByteBuffer>
83 void SetSharedSecretCiphertextBlob(SharedSecretCiphertextBlobT&& value) {
84 m_sharedSecretCiphertextBlobHasBeenSet = true;
85 m_sharedSecretCiphertextBlob = std::forward<SharedSecretCiphertextBlobT>(value);
86 }
87 template <typename SharedSecretCiphertextBlobT = Aws::Utils::ByteBuffer>
88 EncapsulateResult& WithSharedSecretCiphertextBlob(SharedSecretCiphertextBlobT&& value) {
89 SetSharedSecretCiphertextBlob(std::forward<SharedSecretCiphertextBlobT>(value));
90 return *this;
91 }
93
95
98 inline EncapsulationAlgorithmSpec GetEncapsulationAlgorithm() const { return m_encapsulationAlgorithm; }
100 m_encapsulationAlgorithmHasBeenSet = true;
101 m_encapsulationAlgorithm = value;
102 }
108
110
111 inline const Aws::String& GetRequestId() const { return m_requestId; }
112 template <typename RequestIdT = Aws::String>
113 void SetRequestId(RequestIdT&& value) {
114 m_requestIdHasBeenSet = true;
115 m_requestId = std::forward<RequestIdT>(value);
116 }
117 template <typename RequestIdT = Aws::String>
118 EncapsulateResult& WithRequestId(RequestIdT&& value) {
119 SetRequestId(std::forward<RequestIdT>(value));
120 return *this;
121 }
123 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
124
125 private:
126 Aws::String m_keyId;
127
128 Aws::Utils::CryptoBuffer m_sharedSecret{};
129
130 Aws::Utils::ByteBuffer m_sharedSecretCiphertextBlob{};
131
133
134 Aws::String m_requestId;
135 Aws::Http::HttpResponseCode m_HttpResponseCode;
136 bool m_keyIdHasBeenSet = false;
137 bool m_sharedSecretHasBeenSet = false;
138 bool m_sharedSecretCiphertextBlobHasBeenSet = false;
139 bool m_encapsulationAlgorithmHasBeenSet = false;
140 bool m_requestIdHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace KMS
145} // namespace Aws
const Aws::String & GetRequestId() const
AWS_KMS_API EncapsulateResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
EncapsulateResult & WithRequestId(RequestIdT &&value)
EncapsulateResult & WithKeyId(KeyIdT &&value)
const Aws::Utils::CryptoBuffer & GetSharedSecret() const
const Aws::String & GetKeyId() const
EncapsulateResult & WithEncapsulationAlgorithm(EncapsulationAlgorithmSpec value)
void SetSharedSecretCiphertextBlob(SharedSecretCiphertextBlobT &&value)
EncapsulateResult & WithSharedSecret(SharedSecretT &&value)
void SetSharedSecret(SharedSecretT &&value)
const Aws::Utils::ByteBuffer & GetSharedSecretCiphertextBlob() const
void SetEncapsulationAlgorithm(EncapsulationAlgorithmSpec value)
EncapsulateResult & WithSharedSecretCiphertextBlob(SharedSecretCiphertextBlobT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_KMS_API EncapsulateResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_KMS_API EncapsulateResult()=default
void SetRequestId(RequestIdT &&value)
EncapsulationAlgorithmSpec GetEncapsulationAlgorithm() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue