AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
35
36
38
42 inline const Aws::Utils::ByteBuffer& GetCiphertextBlob() const{ return m_ciphertextBlob; }
43 inline void SetCiphertextBlob(const Aws::Utils::ByteBuffer& value) { m_ciphertextBlob = value; }
44 inline void SetCiphertextBlob(Aws::Utils::ByteBuffer&& value) { m_ciphertextBlob = std::move(value); }
45 inline EncryptResult& WithCiphertextBlob(const Aws::Utils::ByteBuffer& value) { SetCiphertextBlob(value); return *this;}
46 inline EncryptResult& WithCiphertextBlob(Aws::Utils::ByteBuffer&& value) { SetCiphertextBlob(std::move(value)); return *this;}
48
50
55 inline const Aws::String& GetKeyId() const{ return m_keyId; }
56 inline void SetKeyId(const Aws::String& value) { m_keyId = value; }
57 inline void SetKeyId(Aws::String&& value) { m_keyId = std::move(value); }
58 inline void SetKeyId(const char* value) { m_keyId.assign(value); }
59 inline EncryptResult& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
60 inline EncryptResult& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
61 inline EncryptResult& WithKeyId(const char* value) { SetKeyId(value); return *this;}
63
65
68 inline const EncryptionAlgorithmSpec& GetEncryptionAlgorithm() const{ return m_encryptionAlgorithm; }
69 inline void SetEncryptionAlgorithm(const EncryptionAlgorithmSpec& value) { m_encryptionAlgorithm = value; }
70 inline void SetEncryptionAlgorithm(EncryptionAlgorithmSpec&& value) { m_encryptionAlgorithm = std::move(value); }
72 inline EncryptResult& WithEncryptionAlgorithm(EncryptionAlgorithmSpec&& value) { SetEncryptionAlgorithm(std::move(value)); return *this;}
74
76
77 inline const Aws::String& GetRequestId() const{ return m_requestId; }
78 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
79 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
80 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
81 inline EncryptResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
82 inline EncryptResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
83 inline EncryptResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
85 private:
86
87 Aws::Utils::ByteBuffer m_ciphertextBlob;
88
89 Aws::String m_keyId;
90
91 EncryptionAlgorithmSpec m_encryptionAlgorithm;
92
93 Aws::String m_requestId;
94 };
95
96} // namespace Model
97} // namespace KMS
98} // namespace Aws
void SetCiphertextBlob(const Aws::Utils::ByteBuffer &value)
const EncryptionAlgorithmSpec & GetEncryptionAlgorithm() const
void SetKeyId(const Aws::String &value)
void SetRequestId(const Aws::String &value)
void SetRequestId(Aws::String &&value)
AWS_KMS_API EncryptResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetKeyId(const char *value)
EncryptResult & WithCiphertextBlob(Aws::Utils::ByteBuffer &&value)
EncryptResult & WithRequestId(const Aws::String &value)
EncryptResult & WithEncryptionAlgorithm(EncryptionAlgorithmSpec &&value)
EncryptResult & WithEncryptionAlgorithm(const EncryptionAlgorithmSpec &value)
EncryptResult & WithCiphertextBlob(const Aws::Utils::ByteBuffer &value)
void SetEncryptionAlgorithm(EncryptionAlgorithmSpec &&value)
EncryptResult & WithRequestId(Aws::String &&value)
const Aws::Utils::ByteBuffer & GetCiphertextBlob() const
EncryptResult & WithKeyId(Aws::String &&value)
void SetRequestId(const char *value)
const Aws::String & GetRequestId() const
EncryptResult & WithRequestId(const char *value)
AWS_KMS_API EncryptResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetCiphertextBlob(Aws::Utils::ByteBuffer &&value)
void SetEncryptionAlgorithm(const EncryptionAlgorithmSpec &value)
void SetKeyId(Aws::String &&value)
const Aws::String & GetKeyId() const
EncryptResult & WithKeyId(const Aws::String &value)
EncryptResult & WithKeyId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue