1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/wisdom/ConnectWisdomService_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSString.h>
9 #include <aws/core/utils/memory/stl/AWSVector.h>
10 #include <aws/wisdom/model/ResultData.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22   class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace ConnectWisdomService
26 {
27 namespace Model
28 {
29   class AWS_CONNECTWISDOMSERVICE_API QueryAssistantResult
30   {
31   public:
32     QueryAssistantResult();
33     QueryAssistantResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
34     QueryAssistantResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
35 
36 
37     /**
38      * <p>If there are additional results, this is the token for the next set of
39      * results.</p>
40      */
GetNextToken()41     inline const Aws::String& GetNextToken() const{ return m_nextToken; }
42 
43     /**
44      * <p>If there are additional results, this is the token for the next set of
45      * results.</p>
46      */
SetNextToken(const Aws::String & value)47     inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
48 
49     /**
50      * <p>If there are additional results, this is the token for the next set of
51      * results.</p>
52      */
SetNextToken(Aws::String && value)53     inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
54 
55     /**
56      * <p>If there are additional results, this is the token for the next set of
57      * results.</p>
58      */
SetNextToken(const char * value)59     inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
60 
61     /**
62      * <p>If there are additional results, this is the token for the next set of
63      * results.</p>
64      */
WithNextToken(const Aws::String & value)65     inline QueryAssistantResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
66 
67     /**
68      * <p>If there are additional results, this is the token for the next set of
69      * results.</p>
70      */
WithNextToken(Aws::String && value)71     inline QueryAssistantResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
72 
73     /**
74      * <p>If there are additional results, this is the token for the next set of
75      * results.</p>
76      */
WithNextToken(const char * value)77     inline QueryAssistantResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
78 
79 
80     /**
81      * <p>The results of the query.</p>
82      */
GetResults()83     inline const Aws::Vector<ResultData>& GetResults() const{ return m_results; }
84 
85     /**
86      * <p>The results of the query.</p>
87      */
SetResults(const Aws::Vector<ResultData> & value)88     inline void SetResults(const Aws::Vector<ResultData>& value) { m_results = value; }
89 
90     /**
91      * <p>The results of the query.</p>
92      */
SetResults(Aws::Vector<ResultData> && value)93     inline void SetResults(Aws::Vector<ResultData>&& value) { m_results = std::move(value); }
94 
95     /**
96      * <p>The results of the query.</p>
97      */
WithResults(const Aws::Vector<ResultData> & value)98     inline QueryAssistantResult& WithResults(const Aws::Vector<ResultData>& value) { SetResults(value); return *this;}
99 
100     /**
101      * <p>The results of the query.</p>
102      */
WithResults(Aws::Vector<ResultData> && value)103     inline QueryAssistantResult& WithResults(Aws::Vector<ResultData>&& value) { SetResults(std::move(value)); return *this;}
104 
105     /**
106      * <p>The results of the query.</p>
107      */
AddResults(const ResultData & value)108     inline QueryAssistantResult& AddResults(const ResultData& value) { m_results.push_back(value); return *this; }
109 
110     /**
111      * <p>The results of the query.</p>
112      */
AddResults(ResultData && value)113     inline QueryAssistantResult& AddResults(ResultData&& value) { m_results.push_back(std::move(value)); return *this; }
114 
115   private:
116 
117     Aws::String m_nextToken;
118 
119     Aws::Vector<ResultData> m_results;
120   };
121 
122 } // namespace Model
123 } // namespace ConnectWisdomService
124 } // namespace Aws
125