AWS SDK for C++

AWS SDK for C++ Version 1.11.937

Loading...
Searching...
No Matches
DecapsulateResult.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 DecapsulateResult() = 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 DecapsulateResult& WithKeyId(KeyIdT&& value) {
45 SetKeyId(std::forward<KeyIdT>(value));
46 return *this;
47 }
49
51
57 inline const Aws::Utils::CryptoBuffer& GetSharedSecret() const { return m_sharedSecret; }
58 template <typename SharedSecretT = Aws::Utils::CryptoBuffer>
59 void SetSharedSecret(SharedSecretT&& value) {
60 m_sharedSecretHasBeenSet = true;
61 m_sharedSecret = std::forward<SharedSecretT>(value);
62 }
63 template <typename SharedSecretT = Aws::Utils::CryptoBuffer>
64 DecapsulateResult& WithSharedSecret(SharedSecretT&& value) {
65 SetSharedSecret(std::forward<SharedSecretT>(value));
66 return *this;
67 }
69
71
74 inline EncapsulationAlgorithmSpec GetEncapsulationAlgorithm() const { return m_encapsulationAlgorithm; }
76 m_encapsulationAlgorithmHasBeenSet = true;
77 m_encapsulationAlgorithm = value;
78 }
84
86
87 inline const Aws::String& GetRequestId() const { return m_requestId; }
88 template <typename RequestIdT = Aws::String>
89 void SetRequestId(RequestIdT&& value) {
90 m_requestIdHasBeenSet = true;
91 m_requestId = std::forward<RequestIdT>(value);
92 }
93 template <typename RequestIdT = Aws::String>
94 DecapsulateResult& WithRequestId(RequestIdT&& value) {
95 SetRequestId(std::forward<RequestIdT>(value));
96 return *this;
97 }
99 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
100
101 private:
102 Aws::String m_keyId;
103
104 Aws::Utils::CryptoBuffer m_sharedSecret{};
105
107
108 Aws::String m_requestId;
109 Aws::Http::HttpResponseCode m_HttpResponseCode;
110 bool m_keyIdHasBeenSet = false;
111 bool m_sharedSecretHasBeenSet = false;
112 bool m_encapsulationAlgorithmHasBeenSet = false;
113 bool m_requestIdHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace KMS
118} // namespace Aws
DecapsulateResult & WithEncapsulationAlgorithm(EncapsulationAlgorithmSpec value)
DecapsulateResult & WithSharedSecret(SharedSecretT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
DecapsulateResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::CryptoBuffer & GetSharedSecret() const
const Aws::String & GetRequestId() const
AWS_KMS_API DecapsulateResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetEncapsulationAlgorithm(EncapsulationAlgorithmSpec value)
AWS_KMS_API DecapsulateResult()=default
DecapsulateResult & WithKeyId(KeyIdT &&value)
AWS_KMS_API DecapsulateResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetKeyId() const
void SetSharedSecret(SharedSecretT &&value)
EncapsulationAlgorithmSpec GetEncapsulationAlgorithm() const
void SetRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue