AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
EncryptResult.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/EncryptionAlgorithmSpec.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 EncryptResult() = default;
31
33
37 inline const Aws::Utils::ByteBuffer& GetCiphertextBlob() const { return m_ciphertextBlob; }
38 template <typename CiphertextBlobT = Aws::Utils::ByteBuffer>
39 void SetCiphertextBlob(CiphertextBlobT&& value) {
40 m_ciphertextBlobHasBeenSet = true;
41 m_ciphertextBlob = std::forward<CiphertextBlobT>(value);
42 }
43 template <typename CiphertextBlobT = Aws::Utils::ByteBuffer>
44 EncryptResult& WithCiphertextBlob(CiphertextBlobT&& value) {
45 SetCiphertextBlob(std::forward<CiphertextBlobT>(value));
46 return *this;
47 }
49
51
56 inline const Aws::String& GetKeyId() const { return m_keyId; }
57 template <typename KeyIdT = Aws::String>
58 void SetKeyId(KeyIdT&& value) {
59 m_keyIdHasBeenSet = true;
60 m_keyId = std::forward<KeyIdT>(value);
61 }
62 template <typename KeyIdT = Aws::String>
63 EncryptResult& WithKeyId(KeyIdT&& value) {
64 SetKeyId(std::forward<KeyIdT>(value));
65 return *this;
66 }
68
70
73 inline EncryptionAlgorithmSpec GetEncryptionAlgorithm() const { return m_encryptionAlgorithm; }
75 m_encryptionAlgorithmHasBeenSet = true;
76 m_encryptionAlgorithm = value;
77 }
80 return *this;
81 }
83
85
86 inline const Aws::String& GetRequestId() const { return m_requestId; }
87 template <typename RequestIdT = Aws::String>
88 void SetRequestId(RequestIdT&& value) {
89 m_requestIdHasBeenSet = true;
90 m_requestId = std::forward<RequestIdT>(value);
91 }
92 template <typename RequestIdT = Aws::String>
93 EncryptResult& WithRequestId(RequestIdT&& value) {
94 SetRequestId(std::forward<RequestIdT>(value));
95 return *this;
96 }
98 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
99
100 private:
101 Aws::Utils::ByteBuffer m_ciphertextBlob{};
102
103 Aws::String m_keyId;
104
106
107 Aws::String m_requestId;
108 Aws::Http::HttpResponseCode m_HttpResponseCode;
109 bool m_ciphertextBlobHasBeenSet = false;
110 bool m_keyIdHasBeenSet = false;
111 bool m_encryptionAlgorithmHasBeenSet = false;
112 bool m_requestIdHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace KMS
117} // namespace Aws
void SetKeyId(KeyIdT &&value)
AWS_KMS_API EncryptResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetCiphertextBlob(CiphertextBlobT &&value)
void SetEncryptionAlgorithm(EncryptionAlgorithmSpec value)
EncryptionAlgorithmSpec GetEncryptionAlgorithm() const
EncryptResult & WithKeyId(KeyIdT &&value)
EncryptResult & WithEncryptionAlgorithm(EncryptionAlgorithmSpec value)
const Aws::Utils::ByteBuffer & GetCiphertextBlob() const
const Aws::String & GetRequestId() const
AWS_KMS_API EncryptResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetRequestId(RequestIdT &&value)
const Aws::String & GetKeyId() const
EncryptResult & WithCiphertextBlob(CiphertextBlobT &&value)
AWS_KMS_API EncryptResult()=default
EncryptResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue