/** * 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 SageMaker { namespace Model { class AWS_SAGEMAKER_API SearchResult { public: SearchResult(); SearchResult(const Aws::AmazonWebServiceResult& result); SearchResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A list of SearchRecord objects.

*/ inline const Aws::Vector& GetResults() const{ return m_results; } /** *

A list of SearchRecord objects.

*/ inline void SetResults(const Aws::Vector& value) { m_results = value; } /** *

A list of SearchRecord objects.

*/ inline void SetResults(Aws::Vector&& value) { m_results = std::move(value); } /** *

A list of SearchRecord objects.

*/ inline SearchResult& WithResults(const Aws::Vector& value) { SetResults(value); return *this;} /** *

A list of SearchRecord objects.

*/ inline SearchResult& WithResults(Aws::Vector&& value) { SetResults(std::move(value)); return *this;} /** *

A list of SearchRecord objects.

*/ inline SearchResult& AddResults(const SearchRecord& value) { m_results.push_back(value); return *this; } /** *

A list of SearchRecord objects.

*/ inline SearchResult& AddResults(SearchRecord&& value) { m_results.push_back(std::move(value)); return *this; } /** *

If the result of the previous Search request was truncated, the * response includes a NextToken. To retrieve the next set of results, use the * token in the next request.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

If the result of the previous Search request was truncated, the * response includes a NextToken. To retrieve the next set of results, use the * token in the next request.

*/ inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } /** *

If the result of the previous Search request was truncated, the * response includes a NextToken. To retrieve the next set of results, use the * token in the next request.

*/ inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } /** *

If the result of the previous Search request was truncated, the * response includes a NextToken. To retrieve the next set of results, use the * token in the next request.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

If the result of the previous Search request was truncated, the * response includes a NextToken. To retrieve the next set of results, use the * token in the next request.

*/ inline SearchResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

If the result of the previous Search request was truncated, the * response includes a NextToken. To retrieve the next set of results, use the * token in the next request.

*/ inline SearchResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

If the result of the previous Search request was truncated, the * response includes a NextToken. To retrieve the next set of results, use the * token in the next request.

*/ inline SearchResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::Vector m_results; Aws::String m_nextToken; }; } // namespace Model } // namespace SageMaker } // namespace Aws