AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetRecordsResult.h
1
6#pragma once
7#include <aws/keyspacesstreams/KeyspacesStreams_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/keyspacesstreams/model/Record.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 KeyspacesStreams
26{
27namespace Model
28{
30 {
31 public:
32 AWS_KEYSPACESSTREAMS_API GetRecordsResult() = default;
35
36
38
44 inline const Aws::Vector<Record>& GetChangeRecords() const { return m_changeRecords; }
45 template<typename ChangeRecordsT = Aws::Vector<Record>>
46 void SetChangeRecords(ChangeRecordsT&& value) { m_changeRecordsHasBeenSet = true; m_changeRecords = std::forward<ChangeRecordsT>(value); }
47 template<typename ChangeRecordsT = Aws::Vector<Record>>
48 GetRecordsResult& WithChangeRecords(ChangeRecordsT&& value) { SetChangeRecords(std::forward<ChangeRecordsT>(value)); return *this;}
49 template<typename ChangeRecordsT = Record>
50 GetRecordsResult& AddChangeRecords(ChangeRecordsT&& value) { m_changeRecordsHasBeenSet = true; m_changeRecords.emplace_back(std::forward<ChangeRecordsT>(value)); return *this; }
52
54
59 inline const Aws::String& GetNextShardIterator() const { return m_nextShardIterator; }
60 template<typename NextShardIteratorT = Aws::String>
61 void SetNextShardIterator(NextShardIteratorT&& value) { m_nextShardIteratorHasBeenSet = true; m_nextShardIterator = std::forward<NextShardIteratorT>(value); }
62 template<typename NextShardIteratorT = Aws::String>
63 GetRecordsResult& WithNextShardIterator(NextShardIteratorT&& value) { SetNextShardIterator(std::forward<NextShardIteratorT>(value)); return *this;}
65
67
68 inline const Aws::String& GetRequestId() const { return m_requestId; }
69 template<typename RequestIdT = Aws::String>
70 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
71 template<typename RequestIdT = Aws::String>
72 GetRecordsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
74 private:
75
76 Aws::Vector<Record> m_changeRecords;
77 bool m_changeRecordsHasBeenSet = false;
78
79 Aws::String m_nextShardIterator;
80 bool m_nextShardIteratorHasBeenSet = false;
81
82 Aws::String m_requestId;
83 bool m_requestIdHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace KeyspacesStreams
88} // namespace Aws
AWS_KEYSPACESSTREAMS_API GetRecordsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetRecordsResult & AddChangeRecords(ChangeRecordsT &&value)
void SetNextShardIterator(NextShardIteratorT &&value)
AWS_KEYSPACESSTREAMS_API GetRecordsResult()=default
AWS_KEYSPACESSTREAMS_API GetRecordsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetRecordsResult & WithRequestId(RequestIdT &&value)
GetRecordsResult & WithNextShardIterator(NextShardIteratorT &&value)
GetRecordsResult & WithChangeRecords(ChangeRecordsT &&value)
const Aws::Vector< Record > & GetChangeRecords() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue