AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GenerateRandomResult.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 <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace KMS
25{
26namespace Model
27{
29 {
30 public:
31 AWS_KMS_API GenerateRandomResult();
34
35
37
43 inline const Aws::Utils::CryptoBuffer& GetPlaintext() const{ return m_plaintext; }
44 inline void SetPlaintext(const Aws::Utils::CryptoBuffer& value) { m_plaintext = value; }
45 inline void SetPlaintext(Aws::Utils::CryptoBuffer&& value) { m_plaintext = std::move(value); }
46 inline GenerateRandomResult& WithPlaintext(const Aws::Utils::CryptoBuffer& value) { SetPlaintext(value); return *this;}
47 inline GenerateRandomResult& WithPlaintext(Aws::Utils::CryptoBuffer&& value) { SetPlaintext(std::move(value)); return *this;}
49
51
62 inline const Aws::Utils::ByteBuffer& GetCiphertextForRecipient() const{ return m_ciphertextForRecipient; }
63 inline void SetCiphertextForRecipient(const Aws::Utils::ByteBuffer& value) { m_ciphertextForRecipient = value; }
64 inline void SetCiphertextForRecipient(Aws::Utils::ByteBuffer&& value) { m_ciphertextForRecipient = std::move(value); }
68
70
71 inline const Aws::String& GetRequestId() const{ return m_requestId; }
72 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
73 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
74 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
75 inline GenerateRandomResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
76 inline GenerateRandomResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
77 inline GenerateRandomResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
79 private:
80
81 Aws::Utils::CryptoBuffer m_plaintext;
82
83 Aws::Utils::ByteBuffer m_ciphertextForRecipient;
84
85 Aws::String m_requestId;
86 };
87
88} // namespace Model
89} // namespace KMS
90} // namespace Aws
void SetPlaintext(const Aws::Utils::CryptoBuffer &value)
const Aws::String & GetRequestId() const
GenerateRandomResult & WithRequestId(const Aws::String &value)
const Aws::Utils::CryptoBuffer & GetPlaintext() const
GenerateRandomResult & WithPlaintext(const Aws::Utils::CryptoBuffer &value)
GenerateRandomResult & WithCiphertextForRecipient(Aws::Utils::ByteBuffer &&value)
void SetCiphertextForRecipient(const Aws::Utils::ByteBuffer &value)
const Aws::Utils::ByteBuffer & GetCiphertextForRecipient() const
void SetPlaintext(Aws::Utils::CryptoBuffer &&value)
AWS_KMS_API GenerateRandomResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GenerateRandomResult & WithCiphertextForRecipient(const Aws::Utils::ByteBuffer &value)
GenerateRandomResult & WithRequestId(Aws::String &&value)
void SetCiphertextForRecipient(Aws::Utils::ByteBuffer &&value)
AWS_KMS_API GenerateRandomResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GenerateRandomResult & WithPlaintext(Aws::Utils::CryptoBuffer &&value)
GenerateRandomResult & WithRequestId(const char *value)
void SetRequestId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue