AWS SDK for C++  1.9.105
AWS SDK for C++
GetRecordsResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace DynamoDBStreams
26 {
27 namespace Model
28 {
36  {
37  public:
41 
42 
47  inline const Aws::Vector<Record>& GetRecords() const{ return m_records; }
48 
53  inline void SetRecords(const Aws::Vector<Record>& value) { m_records = value; }
54 
59  inline void SetRecords(Aws::Vector<Record>&& value) { m_records = std::move(value); }
60 
65  inline GetRecordsResult& WithRecords(const Aws::Vector<Record>& value) { SetRecords(value); return *this;}
66 
71  inline GetRecordsResult& WithRecords(Aws::Vector<Record>&& value) { SetRecords(std::move(value)); return *this;}
72 
77  inline GetRecordsResult& AddRecords(const Record& value) { m_records.push_back(value); return *this; }
78 
83  inline GetRecordsResult& AddRecords(Record&& value) { m_records.push_back(std::move(value)); return *this; }
84 
85 
91  inline const Aws::String& GetNextShardIterator() const{ return m_nextShardIterator; }
92 
98  inline void SetNextShardIterator(const Aws::String& value) { m_nextShardIterator = value; }
99 
105  inline void SetNextShardIterator(Aws::String&& value) { m_nextShardIterator = std::move(value); }
106 
112  inline void SetNextShardIterator(const char* value) { m_nextShardIterator.assign(value); }
113 
119  inline GetRecordsResult& WithNextShardIterator(const Aws::String& value) { SetNextShardIterator(value); return *this;}
120 
126  inline GetRecordsResult& WithNextShardIterator(Aws::String&& value) { SetNextShardIterator(std::move(value)); return *this;}
127 
133  inline GetRecordsResult& WithNextShardIterator(const char* value) { SetNextShardIterator(value); return *this;}
134 
135  private:
136 
137  Aws::Vector<Record> m_records;
138 
139  Aws::String m_nextShardIterator;
140  };
141 
142 } // namespace Model
143 } // namespace DynamoDBStreams
144 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Record.h
Aws::DynamoDBStreams::Model::GetRecordsResult::GetRecordsResult
GetRecordsResult()
Aws::DynamoDBStreams::Model::GetRecordsResult::SetRecords
void SetRecords(Aws::Vector< Record > &&value)
Definition: GetRecordsResult.h:59
Aws::DynamoDBStreams::Model::GetRecordsResult::WithNextShardIterator
GetRecordsResult & WithNextShardIterator(Aws::String &&value)
Definition: GetRecordsResult.h:126
Aws::DynamoDBStreams::Model::GetRecordsResult::AddRecords
GetRecordsResult & AddRecords(const Record &value)
Definition: GetRecordsResult.h:77
DynamoDBStreams_EXPORTS.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::DynamoDBStreams::Model::GetRecordsResult::WithRecords
GetRecordsResult & WithRecords(const Aws::Vector< Record > &value)
Definition: GetRecordsResult.h:65
AWS_DYNAMODBSTREAMS_API
#define AWS_DYNAMODBSTREAMS_API
Definition: DynamoDBStreams_EXPORTS.h:28
Aws::DynamoDBStreams::Model::GetRecordsResult::SetNextShardIterator
void SetNextShardIterator(const char *value)
Definition: GetRecordsResult.h:112
Aws::DynamoDBStreams::Model::GetRecordsResult::operator=
GetRecordsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::DynamoDBStreams::Model::GetRecordsResult::WithRecords
GetRecordsResult & WithRecords(Aws::Vector< Record > &&value)
Definition: GetRecordsResult.h:71
Aws::DynamoDBStreams::Model::GetRecordsResult::WithNextShardIterator
GetRecordsResult & WithNextShardIterator(const char *value)
Definition: GetRecordsResult.h:133
Aws::DynamoDBStreams::Model::GetRecordsResult::GetRecords
const Aws::Vector< Record > & GetRecords() const
Definition: GetRecordsResult.h:47
AWSString.h
Aws::DynamoDBStreams::Model::Record
Definition: Record.h:36
Aws::DynamoDBStreams::Model::GetRecordsResult::GetNextShardIterator
const Aws::String & GetNextShardIterator() const
Definition: GetRecordsResult.h:91
Aws::DynamoDBStreams::Model::GetRecordsResult::SetNextShardIterator
void SetNextShardIterator(const Aws::String &value)
Definition: GetRecordsResult.h:98
Aws::DynamoDBStreams::Model::GetRecordsResult::SetRecords
void SetRecords(const Aws::Vector< Record > &value)
Definition: GetRecordsResult.h:53
Aws::DynamoDBStreams::Model::GetRecordsResult
Definition: GetRecordsResult.h:36
Aws
Definition: AccessManagementClient.h:15
Aws::DynamoDBStreams::Model::GetRecordsResult::SetNextShardIterator
void SetNextShardIterator(Aws::String &&value)
Definition: GetRecordsResult.h:105
Aws::DynamoDBStreams::Model::GetRecordsResult::GetRecordsResult
GetRecordsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DynamoDBStreams::Model::GetRecordsResult::WithNextShardIterator
GetRecordsResult & WithNextShardIterator(const Aws::String &value)
Definition: GetRecordsResult.h:119
Aws::DynamoDBStreams::Model::GetRecordsResult::AddRecords
GetRecordsResult & AddRecords(Record &&value)
Definition: GetRecordsResult.h:83