AWS SDK for C++  1.8.126
AWS SDK for C++
UpdateRecordsResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace CognitoSync
25 {
26 namespace Model
27 {
34  {
35  public:
39 
40 
44  inline const Aws::Vector<Record>& GetRecords() const{ return m_records; }
45 
49  inline void SetRecords(const Aws::Vector<Record>& value) { m_records = value; }
50 
54  inline void SetRecords(Aws::Vector<Record>&& value) { m_records = std::move(value); }
55 
59  inline UpdateRecordsResult& WithRecords(const Aws::Vector<Record>& value) { SetRecords(value); return *this;}
60 
64  inline UpdateRecordsResult& WithRecords(Aws::Vector<Record>&& value) { SetRecords(std::move(value)); return *this;}
65 
69  inline UpdateRecordsResult& AddRecords(const Record& value) { m_records.push_back(value); return *this; }
70 
74  inline UpdateRecordsResult& AddRecords(Record&& value) { m_records.push_back(std::move(value)); return *this; }
75 
76  private:
77 
78  Aws::Vector<Record> m_records;
79  };
80 
81 } // namespace Model
82 } // namespace CognitoSync
83 } // namespace Aws
Aws::CognitoSync::Model::UpdateRecordsResult::AddRecords
UpdateRecordsResult & AddRecords(Record &&value)
Definition: UpdateRecordsResult.h:74
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::CognitoSync::Model::UpdateRecordsResult::GetRecords
const Aws::Vector< Record > & GetRecords() const
Definition: UpdateRecordsResult.h:44
CognitoSync_EXPORTS.h
Aws::CognitoSync::Model::Record
Definition: Record.h:33
Aws::CognitoSync::Model::UpdateRecordsResult::WithRecords
UpdateRecordsResult & WithRecords(const Aws::Vector< Record > &value)
Definition: UpdateRecordsResult.h:59
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Record.h
Aws::CognitoSync::Model::UpdateRecordsResult::AddRecords
UpdateRecordsResult & AddRecords(const Record &value)
Definition: UpdateRecordsResult.h:69
Aws::CognitoSync::Model::UpdateRecordsResult::WithRecords
UpdateRecordsResult & WithRecords(Aws::Vector< Record > &&value)
Definition: UpdateRecordsResult.h:64
Aws
Definition: AccessManagementClient.h:15
Aws::CognitoSync::Model::UpdateRecordsResult::SetRecords
void SetRecords(const Aws::Vector< Record > &value)
Definition: UpdateRecordsResult.h:49
Aws::CognitoSync::Model::UpdateRecordsResult::operator=
UpdateRecordsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_COGNITOSYNC_API
#define AWS_COGNITOSYNC_API
Definition: CognitoSync_EXPORTS.h:28
Aws::CognitoSync::Model::UpdateRecordsResult::UpdateRecordsResult
UpdateRecordsResult()
Aws::CognitoSync::Model::UpdateRecordsResult::SetRecords
void SetRecords(Aws::Vector< Record > &&value)
Definition: UpdateRecordsResult.h:54
Aws::CognitoSync::Model::UpdateRecordsResult::UpdateRecordsResult
UpdateRecordsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CognitoSync::Model::UpdateRecordsResult
Definition: UpdateRecordsResult.h:34