/**
* 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 ListDatasets request.See Also:
AWS
* API Reference
*/
class ListDatasetsResult
{
public:
AWS_COGNITOSYNC_API ListDatasetsResult();
AWS_COGNITOSYNC_API ListDatasetsResult(const Aws::AmazonWebServiceResult& result);
AWS_COGNITOSYNC_API ListDatasetsResult& operator=(const Aws::AmazonWebServiceResult& result);
/**
* A set of datasets.
*/
inline const Aws::Vector& GetDatasets() const{ return m_datasets; }
/**
* A set of datasets.
*/
inline void SetDatasets(const Aws::Vector& value) { m_datasets = value; }
/**
* A set of datasets.
*/
inline void SetDatasets(Aws::Vector&& value) { m_datasets = std::move(value); }
/**
* A set of datasets.
*/
inline ListDatasetsResult& WithDatasets(const Aws::Vector& value) { SetDatasets(value); return *this;}
/**
* A set of datasets.
*/
inline ListDatasetsResult& WithDatasets(Aws::Vector&& value) { SetDatasets(std::move(value)); return *this;}
/**
* A set of datasets.
*/
inline ListDatasetsResult& AddDatasets(const Dataset& value) { m_datasets.push_back(value); return *this; }
/**
* A set of datasets.
*/
inline ListDatasetsResult& AddDatasets(Dataset&& value) { m_datasets.push_back(std::move(value)); return *this; }
/**
* Number of datasets returned.
*/
inline int GetCount() const{ return m_count; }
/**
* Number of datasets returned.
*/
inline void SetCount(int value) { m_count = value; }
/**
* Number of datasets returned.
*/
inline ListDatasetsResult& WithCount(int value) { SetCount(value); return *this;}
/**
* A pagination token for obtaining the next page of results.
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* A pagination token for obtaining the next page of results.
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* A pagination token for obtaining the next page of results.
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* A pagination token for obtaining the next page of results.
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* A pagination token for obtaining the next page of results.
*/
inline ListDatasetsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* A pagination token for obtaining the next page of results.
*/
inline ListDatasetsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* A pagination token for obtaining the next page of results.
*/
inline ListDatasetsResult& WithNextToken(const char* value) { SetNextToken(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 ListDatasetsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
inline ListDatasetsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
inline ListDatasetsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
private:
Aws::Vector m_datasets;
int m_count;
Aws::String m_nextToken;
Aws::String m_requestId;
};
} // namespace Model
} // namespace CognitoSync
} // namespace Aws