AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EncryptResult.h
1
6#pragma once
7#include <aws/kms/KMS_EXPORTS.h>
8#include <aws/core/utils/Array.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/kms/model/EncryptionAlgorithmSpec.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace KMS
26{
27namespace Model
28{
30 {
31 public:
32 AWS_KMS_API EncryptResult() = default;
35
36
38
42 inline const Aws::Utils::ByteBuffer& GetCiphertextBlob() const { return m_ciphertextBlob; }
43 template<typename CiphertextBlobT = Aws::Utils::ByteBuffer>
44 void SetCiphertextBlob(CiphertextBlobT&& value) { m_ciphertextBlobHasBeenSet = true; m_ciphertextBlob = std::forward<CiphertextBlobT>(value); }
45 template<typename CiphertextBlobT = Aws::Utils::ByteBuffer>
46 EncryptResult& WithCiphertextBlob(CiphertextBlobT&& value) { SetCiphertextBlob(std::forward<CiphertextBlobT>(value)); return *this;}
48
50
55 inline const Aws::String& GetKeyId() const { return m_keyId; }
56 template<typename KeyIdT = Aws::String>
57 void SetKeyId(KeyIdT&& value) { m_keyIdHasBeenSet = true; m_keyId = std::forward<KeyIdT>(value); }
58 template<typename KeyIdT = Aws::String>
59 EncryptResult& WithKeyId(KeyIdT&& value) { SetKeyId(std::forward<KeyIdT>(value)); return *this;}
61
63
66 inline EncryptionAlgorithmSpec GetEncryptionAlgorithm() const { return m_encryptionAlgorithm; }
67 inline void SetEncryptionAlgorithm(EncryptionAlgorithmSpec value) { m_encryptionAlgorithmHasBeenSet = true; m_encryptionAlgorithm = value; }
70
72
73 inline const Aws::String& GetRequestId() const { return m_requestId; }
74 template<typename RequestIdT = Aws::String>
75 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
76 template<typename RequestIdT = Aws::String>
77 EncryptResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
79 private:
80
81 Aws::Utils::ByteBuffer m_ciphertextBlob{};
82 bool m_ciphertextBlobHasBeenSet = false;
83
84 Aws::String m_keyId;
85 bool m_keyIdHasBeenSet = false;
86
88 bool m_encryptionAlgorithmHasBeenSet = false;
89
90 Aws::String m_requestId;
91 bool m_requestIdHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace KMS
96} // 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