AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
35
36
38
42 inline const Aws::Vector<LedgerSummary>& GetLedgers() const{ return m_ledgers; }
43 inline void SetLedgers(const Aws::Vector<LedgerSummary>& value) { m_ledgers = value; }
44 inline void SetLedgers(Aws::Vector<LedgerSummary>&& value) { m_ledgers = std::move(value); }
45 inline ListLedgersResult& WithLedgers(const Aws::Vector<LedgerSummary>& value) { SetLedgers(value); return *this;}
46 inline ListLedgersResult& WithLedgers(Aws::Vector<LedgerSummary>&& value) { SetLedgers(std::move(value)); return *this;}
47 inline ListLedgersResult& AddLedgers(const LedgerSummary& value) { m_ledgers.push_back(value); return *this; }
48 inline ListLedgersResult& AddLedgers(LedgerSummary&& value) { m_ledgers.push_back(std::move(value)); return *this; }
50
52
61 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
62 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
63 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
64 inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
65 inline ListLedgersResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
66 inline ListLedgersResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
67 inline ListLedgersResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
69
71
72 inline const Aws::String& GetRequestId() const{ return m_requestId; }
73 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
74 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
75 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
76 inline ListLedgersResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
77 inline ListLedgersResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
78 inline ListLedgersResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
80 private:
81
83
84 Aws::String m_nextToken;
85
86 Aws::String m_requestId;
87 };
88
89} // namespace Model
90} // namespace QLDB
91} // namespace Aws
const Aws::String & GetRequestId() const
ListLedgersResult & AddLedgers(LedgerSummary &&value)
ListLedgersResult & AddLedgers(const LedgerSummary &value)
ListLedgersResult & WithLedgers(Aws::Vector< LedgerSummary > &&value)
ListLedgersResult & WithNextToken(const Aws::String &value)
const Aws::Vector< LedgerSummary > & GetLedgers() const
ListLedgersResult & WithRequestId(Aws::String &&value)
ListLedgersResult & WithRequestId(const char *value)
ListLedgersResult & WithLedgers(const Aws::Vector< LedgerSummary > &value)
ListLedgersResult & WithRequestId(const Aws::String &value)
void SetLedgers(const Aws::Vector< LedgerSummary > &value)
void SetLedgers(Aws::Vector< LedgerSummary > &&value)
void SetNextToken(Aws::String &&value)
ListLedgersResult & WithNextToken(const char *value)
AWS_QLDB_API ListLedgersResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetNextToken() const
void SetRequestId(const Aws::String &value)
void SetRequestId(Aws::String &&value)
AWS_QLDB_API ListLedgersResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListLedgersResult & WithNextToken(Aws::String &&value)
void SetNextToken(const Aws::String &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