AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GenerateRandomResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/Array.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/kms/KMS_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace KMS {
24namespace Model {
26 public:
27 AWS_KMS_API GenerateRandomResult() = default;
30
32
38 inline const Aws::Utils::CryptoBuffer& GetPlaintext() const { return m_plaintext; }
39 template <typename PlaintextT = Aws::Utils::CryptoBuffer>
40 void SetPlaintext(PlaintextT&& value) {
41 m_plaintextHasBeenSet = true;
42 m_plaintext = std::forward<PlaintextT>(value);
43 }
44 template <typename PlaintextT = Aws::Utils::CryptoBuffer>
45 GenerateRandomResult& WithPlaintext(PlaintextT&& value) {
46 SetPlaintext(std::forward<PlaintextT>(value));
47 return *this;
48 }
50
52
64 inline const Aws::Utils::ByteBuffer& GetCiphertextForRecipient() const { return m_ciphertextForRecipient; }
65 template <typename CiphertextForRecipientT = Aws::Utils::ByteBuffer>
66 void SetCiphertextForRecipient(CiphertextForRecipientT&& value) {
67 m_ciphertextForRecipientHasBeenSet = true;
68 m_ciphertextForRecipient = std::forward<CiphertextForRecipientT>(value);
69 }
70 template <typename CiphertextForRecipientT = Aws::Utils::ByteBuffer>
71 GenerateRandomResult& WithCiphertextForRecipient(CiphertextForRecipientT&& value) {
72 SetCiphertextForRecipient(std::forward<CiphertextForRecipientT>(value));
73 return *this;
74 }
76
78
79 inline const Aws::String& GetRequestId() const { return m_requestId; }
80 template <typename RequestIdT = Aws::String>
81 void SetRequestId(RequestIdT&& value) {
82 m_requestIdHasBeenSet = true;
83 m_requestId = std::forward<RequestIdT>(value);
84 }
85 template <typename RequestIdT = Aws::String>
86 GenerateRandomResult& WithRequestId(RequestIdT&& value) {
87 SetRequestId(std::forward<RequestIdT>(value));
88 return *this;
89 }
91 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
92
93 private:
94 Aws::Utils::CryptoBuffer m_plaintext{};
95
96 Aws::Utils::ByteBuffer m_ciphertextForRecipient{};
97
98 Aws::String m_requestId;
99 Aws::Http::HttpResponseCode m_HttpResponseCode;
100 bool m_plaintextHasBeenSet = false;
101 bool m_ciphertextForRecipientHasBeenSet = false;
102 bool m_requestIdHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace KMS
107} // namespace Aws
GenerateRandomResult & WithPlaintext(PlaintextT &&value)
const Aws::String & GetRequestId() const
const Aws::Utils::CryptoBuffer & GetPlaintext() const
Aws::Http::HttpResponseCode GetHttpResponseCode() 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