/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CognitoSync { namespace Model { /** * Returned for a successful UpdateRecordsRequest.

See Also:

AWS * API Reference

*/ class UpdateRecordsResult { public: AWS_COGNITOSYNC_API UpdateRecordsResult(); AWS_COGNITOSYNC_API UpdateRecordsResult(const Aws::AmazonWebServiceResult& result); AWS_COGNITOSYNC_API UpdateRecordsResult& operator=(const Aws::AmazonWebServiceResult& result); /** * A list of records that have been updated. */ inline const Aws::Vector& GetRecords() const{ return m_records; } /** * A list of records that have been updated. */ inline void SetRecords(const Aws::Vector& value) { m_records = value; } /** * A list of records that have been updated. */ inline void SetRecords(Aws::Vector&& value) { m_records = std::move(value); } /** * A list of records that have been updated. */ inline UpdateRecordsResult& WithRecords(const Aws::Vector& value) { SetRecords(value); return *this;} /** * A list of records that have been updated. */ inline UpdateRecordsResult& WithRecords(Aws::Vector&& value) { SetRecords(std::move(value)); return *this;} /** * A list of records that have been updated. */ inline UpdateRecordsResult& AddRecords(const Record& value) { m_records.push_back(value); return *this; } /** * A list of records that have been updated. */ inline UpdateRecordsResult& AddRecords(Record&& value) { m_records.push_back(std::move(value)); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline UpdateRecordsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline UpdateRecordsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline UpdateRecordsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_records; Aws::String m_requestId; }; } // namespace Model } // namespace CognitoSync } // namespace Aws