/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 AWS_COGNITOSYNC_API DescribeDatasetResult { public: DescribeDatasetResult(); DescribeDatasetResult(const Aws::AmazonWebServiceResult& result); 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;} private: Dataset m_dataset; }; } // namespace Model } // namespace CognitoSync } // namespace Aws