AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReEncryptResult.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 ReEncryptResult();
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 ReEncryptResult& WithCiphertextBlob(const Aws::Utils::ByteBuffer& value) { SetCiphertextBlob(value); return *this;}
46 inline ReEncryptResult& WithCiphertextBlob(Aws::Utils::ByteBuffer&& value) { SetCiphertextBlob(std::move(value)); return *this;}
48
50
53 inline const Aws::String& GetSourceKeyId() const{ return m_sourceKeyId; }
54 inline void SetSourceKeyId(const Aws::String& value) { m_sourceKeyId = value; }
55 inline void SetSourceKeyId(Aws::String&& value) { m_sourceKeyId = std::move(value); }
56 inline void SetSourceKeyId(const char* value) { m_sourceKeyId.assign(value); }
57 inline ReEncryptResult& WithSourceKeyId(const Aws::String& value) { SetSourceKeyId(value); return *this;}
58 inline ReEncryptResult& WithSourceKeyId(Aws::String&& value) { SetSourceKeyId(std::move(value)); return *this;}
59 inline ReEncryptResult& WithSourceKeyId(const char* value) { SetSourceKeyId(value); return *this;}
61
63
68 inline const Aws::String& GetKeyId() const{ return m_keyId; }
69 inline void SetKeyId(const Aws::String& value) { m_keyId = value; }
70 inline void SetKeyId(Aws::String&& value) { m_keyId = std::move(value); }
71 inline void SetKeyId(const char* value) { m_keyId.assign(value); }
72 inline ReEncryptResult& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
73 inline ReEncryptResult& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
74 inline ReEncryptResult& WithKeyId(const char* value) { SetKeyId(value); return *this;}
76
78
82 inline const EncryptionAlgorithmSpec& GetSourceEncryptionAlgorithm() const{ return m_sourceEncryptionAlgorithm; }
83 inline void SetSourceEncryptionAlgorithm(const EncryptionAlgorithmSpec& value) { m_sourceEncryptionAlgorithm = value; }
84 inline void SetSourceEncryptionAlgorithm(EncryptionAlgorithmSpec&& value) { m_sourceEncryptionAlgorithm = std::move(value); }
88
90
93 inline const EncryptionAlgorithmSpec& GetDestinationEncryptionAlgorithm() const{ return m_destinationEncryptionAlgorithm; }
94 inline void SetDestinationEncryptionAlgorithm(const EncryptionAlgorithmSpec& value) { m_destinationEncryptionAlgorithm = value; }
95 inline void SetDestinationEncryptionAlgorithm(EncryptionAlgorithmSpec&& value) { m_destinationEncryptionAlgorithm = std::move(value); }
99
101
102 inline const Aws::String& GetRequestId() const{ return m_requestId; }
103 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
104 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
105 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
106 inline ReEncryptResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
107 inline ReEncryptResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
108 inline ReEncryptResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
110 private:
111
112 Aws::Utils::ByteBuffer m_ciphertextBlob;
113
114 Aws::String m_sourceKeyId;
115
116 Aws::String m_keyId;
117
118 EncryptionAlgorithmSpec m_sourceEncryptionAlgorithm;
119
120 EncryptionAlgorithmSpec m_destinationEncryptionAlgorithm;
121
122 Aws::String m_requestId;
123 };
124
125} // namespace Model
126} // namespace KMS
127} // namespace Aws
ReEncryptResult & WithSourceKeyId(const Aws::String &value)
ReEncryptResult & WithSourceEncryptionAlgorithm(const EncryptionAlgorithmSpec &value)
const Aws::Utils::ByteBuffer & GetCiphertextBlob() const
ReEncryptResult & WithCiphertextBlob(Aws::Utils::ByteBuffer &&value)
void SetKeyId(const char *value)
AWS_KMS_API ReEncryptResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ReEncryptResult & WithKeyId(Aws::String &&value)
void SetCiphertextBlob(Aws::Utils::ByteBuffer &&value)
void SetSourceKeyId(const Aws::String &value)
const Aws::String & GetRequestId() const
const EncryptionAlgorithmSpec & GetSourceEncryptionAlgorithm() const
ReEncryptResult & WithKeyId(const char *value)
ReEncryptResult & WithRequestId(Aws::String &&value)
AWS_KMS_API ReEncryptResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ReEncryptResult & WithRequestId(const char *value)
ReEncryptResult & WithSourceKeyId(const char *value)
const Aws::String & GetSourceKeyId() const
ReEncryptResult & WithRequestId(const Aws::String &value)
ReEncryptResult & WithKeyId(const Aws::String &value)
void SetDestinationEncryptionAlgorithm(EncryptionAlgorithmSpec &&value)
void SetSourceKeyId(Aws::String &&value)
ReEncryptResult & WithDestinationEncryptionAlgorithm(const EncryptionAlgorithmSpec &value)
void SetRequestId(const char *value)
void SetDestinationEncryptionAlgorithm(const EncryptionAlgorithmSpec &value)
const EncryptionAlgorithmSpec & GetDestinationEncryptionAlgorithm() const
ReEncryptResult & WithSourceKeyId(Aws::String &&value)
void SetKeyId(const Aws::String &value)
void SetRequestId(const Aws::String &value)
void SetSourceKeyId(const char *value)
void SetKeyId(Aws::String &&value)
ReEncryptResult & WithSourceEncryptionAlgorithm(EncryptionAlgorithmSpec &&value)
ReEncryptResult & WithDestinationEncryptionAlgorithm(EncryptionAlgorithmSpec &&value)
void SetSourceEncryptionAlgorithm(EncryptionAlgorithmSpec &&value)
void SetCiphertextBlob(const Aws::Utils::ByteBuffer &value)
void SetSourceEncryptionAlgorithm(const EncryptionAlgorithmSpec &value)
ReEncryptResult & WithCiphertextBlob(const Aws::Utils::ByteBuffer &value)
void SetRequestId(Aws::String &&value)
const Aws::String & GetKeyId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue