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/kendra/Kendra_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSString.h>
9 #include <aws/core/utils/memory/stl/AWSVector.h>
10 #include <aws/kendra/model/Suggestion.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 kendra
26 {
27 namespace Model
28 {
29   class AWS_KENDRA_API GetQuerySuggestionsResult
30   {
31   public:
32     GetQuerySuggestionsResult();
33     GetQuerySuggestionsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
34     GetQuerySuggestionsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
35 
36 
37     /**
38      * <p>The unique identifier for a list of query suggestions for an index.</p>
39      */
GetQuerySuggestionsId()40     inline const Aws::String& GetQuerySuggestionsId() const{ return m_querySuggestionsId; }
41 
42     /**
43      * <p>The unique identifier for a list of query suggestions for an index.</p>
44      */
SetQuerySuggestionsId(const Aws::String & value)45     inline void SetQuerySuggestionsId(const Aws::String& value) { m_querySuggestionsId = value; }
46 
47     /**
48      * <p>The unique identifier for a list of query suggestions for an index.</p>
49      */
SetQuerySuggestionsId(Aws::String && value)50     inline void SetQuerySuggestionsId(Aws::String&& value) { m_querySuggestionsId = std::move(value); }
51 
52     /**
53      * <p>The unique identifier for a list of query suggestions for an index.</p>
54      */
SetQuerySuggestionsId(const char * value)55     inline void SetQuerySuggestionsId(const char* value) { m_querySuggestionsId.assign(value); }
56 
57     /**
58      * <p>The unique identifier for a list of query suggestions for an index.</p>
59      */
WithQuerySuggestionsId(const Aws::String & value)60     inline GetQuerySuggestionsResult& WithQuerySuggestionsId(const Aws::String& value) { SetQuerySuggestionsId(value); return *this;}
61 
62     /**
63      * <p>The unique identifier for a list of query suggestions for an index.</p>
64      */
WithQuerySuggestionsId(Aws::String && value)65     inline GetQuerySuggestionsResult& WithQuerySuggestionsId(Aws::String&& value) { SetQuerySuggestionsId(std::move(value)); return *this;}
66 
67     /**
68      * <p>The unique identifier for a list of query suggestions for an index.</p>
69      */
WithQuerySuggestionsId(const char * value)70     inline GetQuerySuggestionsResult& WithQuerySuggestionsId(const char* value) { SetQuerySuggestionsId(value); return *this;}
71 
72 
73     /**
74      * <p>A list of query suggestions for an index.</p>
75      */
GetSuggestions()76     inline const Aws::Vector<Suggestion>& GetSuggestions() const{ return m_suggestions; }
77 
78     /**
79      * <p>A list of query suggestions for an index.</p>
80      */
SetSuggestions(const Aws::Vector<Suggestion> & value)81     inline void SetSuggestions(const Aws::Vector<Suggestion>& value) { m_suggestions = value; }
82 
83     /**
84      * <p>A list of query suggestions for an index.</p>
85      */
SetSuggestions(Aws::Vector<Suggestion> && value)86     inline void SetSuggestions(Aws::Vector<Suggestion>&& value) { m_suggestions = std::move(value); }
87 
88     /**
89      * <p>A list of query suggestions for an index.</p>
90      */
WithSuggestions(const Aws::Vector<Suggestion> & value)91     inline GetQuerySuggestionsResult& WithSuggestions(const Aws::Vector<Suggestion>& value) { SetSuggestions(value); return *this;}
92 
93     /**
94      * <p>A list of query suggestions for an index.</p>
95      */
WithSuggestions(Aws::Vector<Suggestion> && value)96     inline GetQuerySuggestionsResult& WithSuggestions(Aws::Vector<Suggestion>&& value) { SetSuggestions(std::move(value)); return *this;}
97 
98     /**
99      * <p>A list of query suggestions for an index.</p>
100      */
AddSuggestions(const Suggestion & value)101     inline GetQuerySuggestionsResult& AddSuggestions(const Suggestion& value) { m_suggestions.push_back(value); return *this; }
102 
103     /**
104      * <p>A list of query suggestions for an index.</p>
105      */
AddSuggestions(Suggestion && value)106     inline GetQuerySuggestionsResult& AddSuggestions(Suggestion&& value) { m_suggestions.push_back(std::move(value)); return *this; }
107 
108   private:
109 
110     Aws::String m_querySuggestionsId;
111 
112     Aws::Vector<Suggestion> m_suggestions;
113   };
114 
115 } // namespace Model
116 } // namespace kendra
117 } // namespace Aws
118