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

See Also:

AWS * API Reference

*/ class DescribeDatasetResult { public: AWS_COGNITOSYNC_API DescribeDatasetResult(); AWS_COGNITOSYNC_API DescribeDatasetResult(const Aws::AmazonWebServiceResult& result); AWS_COGNITOSYNC_API DescribeDatasetResult& operator=(const Aws::AmazonWebServiceResult& result); /** * Meta data for a collection of data for an identity. An identity can have * multiple datasets. A dataset can be general or associated with a particular * entity in an application (like a saved game). Datasets are automatically created * if they don't exist. Data is synced by dataset, and a dataset can hold up to 1MB * of key-value pairs. */ inline const Dataset& GetDataset() const{ return m_dataset; } /** * Meta data for a collection of data for an identity. An identity can have * multiple datasets. A dataset can be general or associated with a particular * entity in an application (like a saved game). Datasets are automatically created * if they don't exist. Data is synced by dataset, and a dataset can hold up to 1MB * of key-value pairs. */ inline void SetDataset(const Dataset& value) { m_dataset = value; } /** * Meta data for a collection of data for an identity. An identity can have * multiple datasets. A dataset can be general or associated with a particular * entity in an application (like a saved game). Datasets are automatically created * if they don't exist. Data is synced by dataset, and a dataset can hold up to 1MB * of key-value pairs. */ inline void SetDataset(Dataset&& value) { m_dataset = std::move(value); } /** * Meta data for a collection of data for an identity. An identity can have * multiple datasets. A dataset can be general or associated with a particular * entity in an application (like a saved game). Datasets are automatically created * if they don't exist. Data is synced by dataset, and a dataset can hold up to 1MB * of key-value pairs. */ inline DescribeDatasetResult& WithDataset(const Dataset& value) { SetDataset(value); return *this;} /** * Meta data for a collection of data for an identity. An identity can have * multiple datasets. A dataset can be general or associated with a particular * entity in an application (like a saved game). Datasets are automatically created * if they don't exist. Data is synced by dataset, and a dataset can hold up to 1MB * of key-value pairs. */ inline DescribeDatasetResult& WithDataset(Dataset&& value) { SetDataset(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 DescribeDatasetResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeDatasetResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeDatasetResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Dataset m_dataset; Aws::String m_requestId; }; } // namespace Model } // namespace CognitoSync } // namespace Aws