AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ListLedgersResult.h
1
6#pragma once
7#include <aws/qldb/QLDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/qldb/model/LedgerSummary.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 QLDB
26{
27namespace Model
28{
30 {
31 public:
32 AWS_QLDB_API ListLedgersResult() = default;
35
36
38
42 inline const Aws::Vector<LedgerSummary>& GetLedgers() const { return m_ledgers; }
43 template<typename LedgersT = Aws::Vector<LedgerSummary>>
44 void SetLedgers(LedgersT&& value) { m_ledgersHasBeenSet = true; m_ledgers = std::forward<LedgersT>(value); }
45 template<typename LedgersT = Aws::Vector<LedgerSummary>>
46 ListLedgersResult& WithLedgers(LedgersT&& value) { SetLedgers(std::forward<LedgersT>(value)); return *this;}
47 template<typename LedgersT = LedgerSummary>
48 ListLedgersResult& AddLedgers(LedgersT&& value) { m_ledgersHasBeenSet = true; m_ledgers.emplace_back(std::forward<LedgersT>(value)); return *this; }
50
52
61 inline const Aws::String& GetNextToken() const { return m_nextToken; }
62 template<typename NextTokenT = Aws::String>
63 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
64 template<typename NextTokenT = Aws::String>
65 ListLedgersResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
67
69
70 inline const Aws::String& GetRequestId() const { return m_requestId; }
71 template<typename RequestIdT = Aws::String>
72 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
73 template<typename RequestIdT = Aws::String>
74 ListLedgersResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
76 private:
77
79 bool m_ledgersHasBeenSet = false;
80
81 Aws::String m_nextToken;
82 bool m_nextTokenHasBeenSet = false;
83
84 Aws::String m_requestId;
85 bool m_requestIdHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace QLDB
90} // namespace Aws
const Aws::String & GetRequestId() const
void SetNextToken(NextTokenT &&value)
ListLedgersResult & AddLedgers(LedgersT &&value)
ListLedgersResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< LedgerSummary > & GetLedgers() const
AWS_QLDB_API ListLedgersResult()=default
void SetRequestId(RequestIdT &&value)
AWS_QLDB_API ListLedgersResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListLedgersResult & WithLedgers(LedgersT &&value)
const Aws::String & GetNextToken() const
AWS_QLDB_API ListLedgersResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListLedgersResult & WithNextToken(NextTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue