AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GenerateRandomResult.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
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace KMS {
23namespace Model {
25 public:
26 AWS_KMS_API GenerateRandomResult() = default;
29
31
37 inline const Aws::Utils::CryptoBuffer& GetPlaintext() const { return m_plaintext; }
38 template <typename PlaintextT = Aws::Utils::CryptoBuffer>
39 void SetPlaintext(PlaintextT&& value) {
40 m_plaintextHasBeenSet = true;
41 m_plaintext = std::forward<PlaintextT>(value);
42 }
43 template <typename PlaintextT = Aws::Utils::CryptoBuffer>
44 GenerateRandomResult& WithPlaintext(PlaintextT&& value) {
45 SetPlaintext(std::forward<PlaintextT>(value));
46 return *this;
47 }
49
51
63 inline const Aws::Utils::ByteBuffer& GetCiphertextForRecipient() const { return m_ciphertextForRecipient; }
64 template <typename CiphertextForRecipientT = Aws::Utils::ByteBuffer>
65 void SetCiphertextForRecipient(CiphertextForRecipientT&& value) {
66 m_ciphertextForRecipientHasBeenSet = true;
67 m_ciphertextForRecipient = std::forward<CiphertextForRecipientT>(value);
68 }
69 template <typename CiphertextForRecipientT = Aws::Utils::ByteBuffer>
70 GenerateRandomResult& WithCiphertextForRecipient(CiphertextForRecipientT&& value) {
71 SetCiphertextForRecipient(std::forward<CiphertextForRecipientT>(value));
72 return *this;
73 }
75
77
78 inline const Aws::String& GetRequestId() const { return m_requestId; }
79 template <typename RequestIdT = Aws::String>
80 void SetRequestId(RequestIdT&& value) {
81 m_requestIdHasBeenSet = true;
82 m_requestId = std::forward<RequestIdT>(value);
83 }
84 template <typename RequestIdT = Aws::String>
85 GenerateRandomResult& WithRequestId(RequestIdT&& value) {
86 SetRequestId(std::forward<RequestIdT>(value));
87 return *this;
88 }
90 private:
91 Aws::Utils::CryptoBuffer m_plaintext{};
92
93 Aws::Utils::ByteBuffer m_ciphertextForRecipient{};
94
95 Aws::String m_requestId;
96 bool m_plaintextHasBeenSet = false;
97 bool m_ciphertextForRecipientHasBeenSet = false;
98 bool m_requestIdHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace KMS
103} // namespace Aws
GenerateRandomResult & WithPlaintext(PlaintextT &&value)
const Aws::String & GetRequestId() const
const Aws::Utils::CryptoBuffer & GetPlaintext() const
void SetCiphertextForRecipient(CiphertextForRecipientT &&value)
const Aws::Utils::ByteBuffer & GetCiphertextForRecipient() const
AWS_KMS_API GenerateRandomResult()=default
AWS_KMS_API GenerateRandomResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GenerateRandomResult & WithRequestId(RequestIdT &&value)
GenerateRandomResult & WithCiphertextForRecipient(CiphertextForRecipientT &&value)
AWS_KMS_API GenerateRandomResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue