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/kendra/KendraRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <aws/kendra/model/S3Path.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace kendra
16 {
17 namespace Model
18 {
19 
20   /**
21    */
22   class AWS_KENDRA_API UpdateThesaurusRequest : public KendraRequest
23   {
24   public:
25     UpdateThesaurusRequest();
26 
27     // Service request name is the Operation name which will send this request out,
28     // each operation should has unique request name, so that we can get operation's name from this request.
29     // Note: this is not true for response, multiple operations may have the same response name,
30     // so we can not get operation's name from response.
GetServiceRequestName()31     inline virtual const char* GetServiceRequestName() const override { return "UpdateThesaurus"; }
32 
33     Aws::String SerializePayload() const override;
34 
35     Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36 
37 
38     /**
39      * <p>The identifier of the thesaurus to update.</p>
40      */
GetId()41     inline const Aws::String& GetId() const{ return m_id; }
42 
43     /**
44      * <p>The identifier of the thesaurus to update.</p>
45      */
IdHasBeenSet()46     inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
47 
48     /**
49      * <p>The identifier of the thesaurus to update.</p>
50      */
SetId(const Aws::String & value)51     inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
52 
53     /**
54      * <p>The identifier of the thesaurus to update.</p>
55      */
SetId(Aws::String && value)56     inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
57 
58     /**
59      * <p>The identifier of the thesaurus to update.</p>
60      */
SetId(const char * value)61     inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
62 
63     /**
64      * <p>The identifier of the thesaurus to update.</p>
65      */
WithId(const Aws::String & value)66     inline UpdateThesaurusRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
67 
68     /**
69      * <p>The identifier of the thesaurus to update.</p>
70      */
WithId(Aws::String && value)71     inline UpdateThesaurusRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
72 
73     /**
74      * <p>The identifier of the thesaurus to update.</p>
75      */
WithId(const char * value)76     inline UpdateThesaurusRequest& WithId(const char* value) { SetId(value); return *this;}
77 
78 
79     /**
80      * <p>The updated name of the thesaurus.</p>
81      */
GetName()82     inline const Aws::String& GetName() const{ return m_name; }
83 
84     /**
85      * <p>The updated name of the thesaurus.</p>
86      */
NameHasBeenSet()87     inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
88 
89     /**
90      * <p>The updated name of the thesaurus.</p>
91      */
SetName(const Aws::String & value)92     inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
93 
94     /**
95      * <p>The updated name of the thesaurus.</p>
96      */
SetName(Aws::String && value)97     inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
98 
99     /**
100      * <p>The updated name of the thesaurus.</p>
101      */
SetName(const char * value)102     inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
103 
104     /**
105      * <p>The updated name of the thesaurus.</p>
106      */
WithName(const Aws::String & value)107     inline UpdateThesaurusRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
108 
109     /**
110      * <p>The updated name of the thesaurus.</p>
111      */
WithName(Aws::String && value)112     inline UpdateThesaurusRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
113 
114     /**
115      * <p>The updated name of the thesaurus.</p>
116      */
WithName(const char * value)117     inline UpdateThesaurusRequest& WithName(const char* value) { SetName(value); return *this;}
118 
119 
120     /**
121      * <p>The identifier of the index associated with the thesaurus to update.</p>
122      */
GetIndexId()123     inline const Aws::String& GetIndexId() const{ return m_indexId; }
124 
125     /**
126      * <p>The identifier of the index associated with the thesaurus to update.</p>
127      */
IndexIdHasBeenSet()128     inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
129 
130     /**
131      * <p>The identifier of the index associated with the thesaurus to update.</p>
132      */
SetIndexId(const Aws::String & value)133     inline void SetIndexId(const Aws::String& value) { m_indexIdHasBeenSet = true; m_indexId = value; }
134 
135     /**
136      * <p>The identifier of the index associated with the thesaurus to update.</p>
137      */
SetIndexId(Aws::String && value)138     inline void SetIndexId(Aws::String&& value) { m_indexIdHasBeenSet = true; m_indexId = std::move(value); }
139 
140     /**
141      * <p>The identifier of the index associated with the thesaurus to update.</p>
142      */
SetIndexId(const char * value)143     inline void SetIndexId(const char* value) { m_indexIdHasBeenSet = true; m_indexId.assign(value); }
144 
145     /**
146      * <p>The identifier of the index associated with the thesaurus to update.</p>
147      */
WithIndexId(const Aws::String & value)148     inline UpdateThesaurusRequest& WithIndexId(const Aws::String& value) { SetIndexId(value); return *this;}
149 
150     /**
151      * <p>The identifier of the index associated with the thesaurus to update.</p>
152      */
WithIndexId(Aws::String && value)153     inline UpdateThesaurusRequest& WithIndexId(Aws::String&& value) { SetIndexId(std::move(value)); return *this;}
154 
155     /**
156      * <p>The identifier of the index associated with the thesaurus to update.</p>
157      */
WithIndexId(const char * value)158     inline UpdateThesaurusRequest& WithIndexId(const char* value) { SetIndexId(value); return *this;}
159 
160 
161     /**
162      * <p>The updated description of the thesaurus.</p>
163      */
GetDescription()164     inline const Aws::String& GetDescription() const{ return m_description; }
165 
166     /**
167      * <p>The updated description of the thesaurus.</p>
168      */
DescriptionHasBeenSet()169     inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
170 
171     /**
172      * <p>The updated description of the thesaurus.</p>
173      */
SetDescription(const Aws::String & value)174     inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
175 
176     /**
177      * <p>The updated description of the thesaurus.</p>
178      */
SetDescription(Aws::String && value)179     inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
180 
181     /**
182      * <p>The updated description of the thesaurus.</p>
183      */
SetDescription(const char * value)184     inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
185 
186     /**
187      * <p>The updated description of the thesaurus.</p>
188      */
WithDescription(const Aws::String & value)189     inline UpdateThesaurusRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
190 
191     /**
192      * <p>The updated description of the thesaurus.</p>
193      */
WithDescription(Aws::String && value)194     inline UpdateThesaurusRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
195 
196     /**
197      * <p>The updated description of the thesaurus.</p>
198      */
WithDescription(const char * value)199     inline UpdateThesaurusRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
200 
201 
202     /**
203      * <p>The updated role ARN of the thesaurus.</p>
204      */
GetRoleArn()205     inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
206 
207     /**
208      * <p>The updated role ARN of the thesaurus.</p>
209      */
RoleArnHasBeenSet()210     inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
211 
212     /**
213      * <p>The updated role ARN of the thesaurus.</p>
214      */
SetRoleArn(const Aws::String & value)215     inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
216 
217     /**
218      * <p>The updated role ARN of the thesaurus.</p>
219      */
SetRoleArn(Aws::String && value)220     inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
221 
222     /**
223      * <p>The updated role ARN of the thesaurus.</p>
224      */
SetRoleArn(const char * value)225     inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
226 
227     /**
228      * <p>The updated role ARN of the thesaurus.</p>
229      */
WithRoleArn(const Aws::String & value)230     inline UpdateThesaurusRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
231 
232     /**
233      * <p>The updated role ARN of the thesaurus.</p>
234      */
WithRoleArn(Aws::String && value)235     inline UpdateThesaurusRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
236 
237     /**
238      * <p>The updated role ARN of the thesaurus.</p>
239      */
WithRoleArn(const char * value)240     inline UpdateThesaurusRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
241 
242 
243 
GetSourceS3Path()244     inline const S3Path& GetSourceS3Path() const{ return m_sourceS3Path; }
245 
246 
SourceS3PathHasBeenSet()247     inline bool SourceS3PathHasBeenSet() const { return m_sourceS3PathHasBeenSet; }
248 
249 
SetSourceS3Path(const S3Path & value)250     inline void SetSourceS3Path(const S3Path& value) { m_sourceS3PathHasBeenSet = true; m_sourceS3Path = value; }
251 
252 
SetSourceS3Path(S3Path && value)253     inline void SetSourceS3Path(S3Path&& value) { m_sourceS3PathHasBeenSet = true; m_sourceS3Path = std::move(value); }
254 
255 
WithSourceS3Path(const S3Path & value)256     inline UpdateThesaurusRequest& WithSourceS3Path(const S3Path& value) { SetSourceS3Path(value); return *this;}
257 
258 
WithSourceS3Path(S3Path && value)259     inline UpdateThesaurusRequest& WithSourceS3Path(S3Path&& value) { SetSourceS3Path(std::move(value)); return *this;}
260 
261   private:
262 
263     Aws::String m_id;
264     bool m_idHasBeenSet;
265 
266     Aws::String m_name;
267     bool m_nameHasBeenSet;
268 
269     Aws::String m_indexId;
270     bool m_indexIdHasBeenSet;
271 
272     Aws::String m_description;
273     bool m_descriptionHasBeenSet;
274 
275     Aws::String m_roleArn;
276     bool m_roleArnHasBeenSet;
277 
278     S3Path m_sourceS3Path;
279     bool m_sourceS3PathHasBeenSet;
280   };
281 
282 } // namespace Model
283 } // namespace kendra
284 } // namespace Aws
285