/** * 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 CloudSearchDomain { namespace Model { /** *

Contains the response to a Suggest request.

See * Also:

AWS * API Reference

*/ class AWS_CLOUDSEARCHDOMAIN_API SuggestResult { public: SuggestResult(); SuggestResult(const Aws::AmazonWebServiceResult& result); SuggestResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The status of a SuggestRequest. Contains the resource ID * (rid) and how long it took to process the request * (timems).

*/ inline const SuggestStatus& GetStatus() const{ return m_status; } /** *

The status of a SuggestRequest. Contains the resource ID * (rid) and how long it took to process the request * (timems).

*/ inline void SetStatus(const SuggestStatus& value) { m_status = value; } /** *

The status of a SuggestRequest. Contains the resource ID * (rid) and how long it took to process the request * (timems).

*/ inline void SetStatus(SuggestStatus&& value) { m_status = std::move(value); } /** *

The status of a SuggestRequest. Contains the resource ID * (rid) and how long it took to process the request * (timems).

*/ inline SuggestResult& WithStatus(const SuggestStatus& value) { SetStatus(value); return *this;} /** *

The status of a SuggestRequest. Contains the resource ID * (rid) and how long it took to process the request * (timems).

*/ inline SuggestResult& WithStatus(SuggestStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

Container for the matching search suggestion information.

*/ inline const SuggestModel& GetSuggest() const{ return m_suggest; } /** *

Container for the matching search suggestion information.

*/ inline void SetSuggest(const SuggestModel& value) { m_suggest = value; } /** *

Container for the matching search suggestion information.

*/ inline void SetSuggest(SuggestModel&& value) { m_suggest = std::move(value); } /** *

Container for the matching search suggestion information.

*/ inline SuggestResult& WithSuggest(const SuggestModel& value) { SetSuggest(value); return *this;} /** *

Container for the matching search suggestion information.

*/ inline SuggestResult& WithSuggest(SuggestModel&& value) { SetSuggest(std::move(value)); return *this;} private: SuggestStatus m_status; SuggestModel m_suggest; }; } // namespace Model } // namespace CloudSearchDomain } // namespace Aws