AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
GetBlockResult.h
1
6#pragma once
7#include <aws/qldb/QLDB_EXPORTS.h>
8#include <aws/qldb/model/ValueHolder.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 QLDB
25{
26namespace Model
27{
29 {
30 public:
31 AWS_QLDB_API GetBlockResult() = default;
34
35
37
40 inline const ValueHolder& GetBlock() const { return m_block; }
41 template<typename BlockT = ValueHolder>
42 void SetBlock(BlockT&& value) { m_blockHasBeenSet = true; m_block = std::forward<BlockT>(value); }
43 template<typename BlockT = ValueHolder>
44 GetBlockResult& WithBlock(BlockT&& value) { SetBlock(std::forward<BlockT>(value)); return *this;}
46
48
53 inline const ValueHolder& GetProof() const { return m_proof; }
54 template<typename ProofT = ValueHolder>
55 void SetProof(ProofT&& value) { m_proofHasBeenSet = true; m_proof = std::forward<ProofT>(value); }
56 template<typename ProofT = ValueHolder>
57 GetBlockResult& WithProof(ProofT&& value) { SetProof(std::forward<ProofT>(value)); return *this;}
59
61
62 inline const Aws::String& GetRequestId() const { return m_requestId; }
63 template<typename RequestIdT = Aws::String>
64 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
65 template<typename RequestIdT = Aws::String>
66 GetBlockResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
68 private:
69
70 ValueHolder m_block;
71 bool m_blockHasBeenSet = false;
72
73 ValueHolder m_proof;
74 bool m_proofHasBeenSet = false;
75
76 Aws::String m_requestId;
77 bool m_requestIdHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace QLDB
82} // namespace Aws
const ValueHolder & GetBlock() const
AWS_QLDB_API GetBlockResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_QLDB_API GetBlockResult()=default
void SetRequestId(RequestIdT &&value)
AWS_QLDB_API GetBlockResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetBlockResult & WithRequestId(RequestIdT &&value)
GetBlockResult & WithBlock(BlockT &&value)
const Aws::String & GetRequestId() const
GetBlockResult & WithProof(ProofT &&value)
const ValueHolder & GetProof() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue