AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
EncryptResult.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kms/KMS_EXPORTS.h>
10#include <aws/kms/model/EncryptionAlgorithmSpec.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace KMS {
24namespace Model {
26 public:
27 AWS_KMS_API EncryptResult() = default;
30
32
36 inline const Aws::Utils::ByteBuffer& GetCiphertextBlob() const { return m_ciphertextBlob; }
37 template <typename CiphertextBlobT = Aws::Utils::ByteBuffer>
38 void SetCiphertextBlob(CiphertextBlobT&& value) {
39 m_ciphertextBlobHasBeenSet = true;
40 m_ciphertextBlob = std::forward<CiphertextBlobT>(value);
41 }
42 template <typename CiphertextBlobT = Aws::Utils::ByteBuffer>
43 EncryptResult& WithCiphertextBlob(CiphertextBlobT&& value) {
44 SetCiphertextBlob(std::forward<CiphertextBlobT>(value));
45 return *this;
46 }
48
50
55 inline const Aws::String& GetKeyId() const { return m_keyId; }
56 template <typename KeyIdT = Aws::String>
57 void SetKeyId(KeyIdT&& value) {
58 m_keyIdHasBeenSet = true;
59 m_keyId = std::forward<KeyIdT>(value);
60 }
61 template <typename KeyIdT = Aws::String>
62 EncryptResult& WithKeyId(KeyIdT&& value) {
63 SetKeyId(std::forward<KeyIdT>(value));
64 return *this;
65 }
67
69
72 inline EncryptionAlgorithmSpec GetEncryptionAlgorithm() const { return m_encryptionAlgorithm; }
74 m_encryptionAlgorithmHasBeenSet = true;
75 m_encryptionAlgorithm = value;
76 }
79 return *this;
80 }
82
84
85 inline const Aws::String& GetRequestId() const { return m_requestId; }
86 template <typename RequestIdT = Aws::String>
87 void SetRequestId(RequestIdT&& value) {
88 m_requestIdHasBeenSet = true;
89 m_requestId = std::forward<RequestIdT>(value);
90 }
91 template <typename RequestIdT = Aws::String>
92 EncryptResult& WithRequestId(RequestIdT&& value) {
93 SetRequestId(std::forward<RequestIdT>(value));
94 return *this;
95 }
97 private:
98 Aws::Utils::ByteBuffer m_ciphertextBlob{};
99
100 Aws::String m_keyId;
101
103
104 Aws::String m_requestId;
105 bool m_ciphertextBlobHasBeenSet = false;
106 bool m_keyIdHasBeenSet = false;
107 bool m_encryptionAlgorithmHasBeenSet = false;
108 bool m_requestIdHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace KMS
113} // namespace Aws
void SetKeyId(KeyIdT &&value)
AWS_KMS_API EncryptResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
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