AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
GetRecordsResult.h
1
6#pragma once
7#include <aws/dynamodbstreams/DynamoDBStreams_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/dynamodbstreams/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 DynamoDBStreams
26{
27namespace Model
28{
36 {
37 public:
38 AWS_DYNAMODBSTREAMS_API GetRecordsResult() = default;
41
42
44
48 inline const Aws::Vector<Record>& GetRecords() const { return m_records; }
49 template<typename RecordsT = Aws::Vector<Record>>
50 void SetRecords(RecordsT&& value) { m_recordsHasBeenSet = true; m_records = std::forward<RecordsT>(value); }
51 template<typename RecordsT = Aws::Vector<Record>>
52 GetRecordsResult& WithRecords(RecordsT&& value) { SetRecords(std::forward<RecordsT>(value)); return *this;}
53 template<typename RecordsT = Record>
54 GetRecordsResult& AddRecords(RecordsT&& value) { m_recordsHasBeenSet = true; m_records.emplace_back(std::forward<RecordsT>(value)); return *this; }
56
58
63 inline const Aws::String& GetNextShardIterator() const { return m_nextShardIterator; }
64 template<typename NextShardIteratorT = Aws::String>
65 void SetNextShardIterator(NextShardIteratorT&& value) { m_nextShardIteratorHasBeenSet = true; m_nextShardIterator = std::forward<NextShardIteratorT>(value); }
66 template<typename NextShardIteratorT = Aws::String>
67 GetRecordsResult& WithNextShardIterator(NextShardIteratorT&& value) { SetNextShardIterator(std::forward<NextShardIteratorT>(value)); return *this;}
69
71
72 inline const Aws::String& GetRequestId() const { return m_requestId; }
73 template<typename RequestIdT = Aws::String>
74 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
75 template<typename RequestIdT = Aws::String>
76 GetRecordsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
78 private:
79
80 Aws::Vector<Record> m_records;
81 bool m_recordsHasBeenSet = false;
82
83 Aws::String m_nextShardIterator;
84 bool m_nextShardIteratorHasBeenSet = false;
85
86 Aws::String m_requestId;
87 bool m_requestIdHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace DynamoDBStreams
92} // namespace Aws
AWS_DYNAMODBSTREAMS_API GetRecordsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetRecordsResult & WithRequestId(RequestIdT &&value)
AWS_DYNAMODBSTREAMS_API GetRecordsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetRecordsResult & WithNextShardIterator(NextShardIteratorT &&value)
GetRecordsResult & WithRecords(RecordsT &&value)
const Aws::Vector< Record > & GetRecords() const
GetRecordsResult & AddRecords(RecordsT &&value)
AWS_DYNAMODBSTREAMS_API GetRecordsResult()=default
const Aws::String & GetNextShardIterator() const
void SetNextShardIterator(NextShardIteratorT &&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