AWS SDK for C++

AWS SDK for C++ Version 1.11.681

Loading...
Searching...
No Matches
CreateThesaurusRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/kendra/KendraRequest.h>
11#include <aws/kendra/Kendra_EXPORTS.h>
12#include <aws/kendra/model/S3Path.h>
13#include <aws/kendra/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace kendra {
19namespace Model {
20
24 public:
25 AWS_KENDRA_API CreateThesaurusRequest() = default;
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.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateThesaurus"; }
32
33 AWS_KENDRA_API Aws::String SerializePayload() const override;
34
36
38
41 inline const Aws::String& GetIndexId() const { return m_indexId; }
42 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
43 template <typename IndexIdT = Aws::String>
44 void SetIndexId(IndexIdT&& value) {
45 m_indexIdHasBeenSet = true;
46 m_indexId = std::forward<IndexIdT>(value);
47 }
48 template <typename IndexIdT = Aws::String>
50 SetIndexId(std::forward<IndexIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template <typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) {
81 m_descriptionHasBeenSet = true;
82 m_description = std::forward<DescriptionT>(value);
83 }
84 template <typename DescriptionT = Aws::String>
85 CreateThesaurusRequest& WithDescription(DescriptionT&& value) {
86 SetDescription(std::forward<DescriptionT>(value));
87 return *this;
88 }
90
92
98 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
99 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
100 template <typename RoleArnT = Aws::String>
101 void SetRoleArn(RoleArnT&& value) {
102 m_roleArnHasBeenSet = true;
103 m_roleArn = std::forward<RoleArnT>(value);
104 }
105 template <typename RoleArnT = Aws::String>
107 SetRoleArn(std::forward<RoleArnT>(value));
108 return *this;
109 }
111
113
119 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
120 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
121 template <typename TagsT = Aws::Vector<Tag>>
122 void SetTags(TagsT&& value) {
123 m_tagsHasBeenSet = true;
124 m_tags = std::forward<TagsT>(value);
125 }
126 template <typename TagsT = Aws::Vector<Tag>>
128 SetTags(std::forward<TagsT>(value));
129 return *this;
130 }
131 template <typename TagsT = Tag>
133 m_tagsHasBeenSet = true;
134 m_tags.emplace_back(std::forward<TagsT>(value));
135 return *this;
136 }
138
140
143 inline const S3Path& GetSourceS3Path() const { return m_sourceS3Path; }
144 inline bool SourceS3PathHasBeenSet() const { return m_sourceS3PathHasBeenSet; }
145 template <typename SourceS3PathT = S3Path>
146 void SetSourceS3Path(SourceS3PathT&& value) {
147 m_sourceS3PathHasBeenSet = true;
148 m_sourceS3Path = std::forward<SourceS3PathT>(value);
149 }
150 template <typename SourceS3PathT = S3Path>
151 CreateThesaurusRequest& WithSourceS3Path(SourceS3PathT&& value) {
152 SetSourceS3Path(std::forward<SourceS3PathT>(value));
153 return *this;
154 }
156
158
163 inline const Aws::String& GetClientToken() const { return m_clientToken; }
164 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
165 template <typename ClientTokenT = Aws::String>
166 void SetClientToken(ClientTokenT&& value) {
167 m_clientTokenHasBeenSet = true;
168 m_clientToken = std::forward<ClientTokenT>(value);
169 }
170 template <typename ClientTokenT = Aws::String>
172 SetClientToken(std::forward<ClientTokenT>(value));
173 return *this;
174 }
176 private:
177 Aws::String m_indexId;
178 bool m_indexIdHasBeenSet = false;
179
180 Aws::String m_name;
181 bool m_nameHasBeenSet = false;
182
183 Aws::String m_description;
184 bool m_descriptionHasBeenSet = false;
185
186 Aws::String m_roleArn;
187 bool m_roleArnHasBeenSet = false;
188
189 Aws::Vector<Tag> m_tags;
190 bool m_tagsHasBeenSet = false;
191
192 S3Path m_sourceS3Path;
193 bool m_sourceS3PathHasBeenSet = false;
194
196 bool m_clientTokenHasBeenSet = true;
197};
198
199} // namespace Model
200} // namespace kendra
201} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
virtual const char * GetServiceRequestName() const override
AWS_KENDRA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateThesaurusRequest & AddTags(TagsT &&value)
const Aws::Vector< Tag > & GetTags() const
CreateThesaurusRequest & WithName(NameT &&value)
CreateThesaurusRequest & WithSourceS3Path(SourceS3PathT &&value)
CreateThesaurusRequest & WithIndexId(IndexIdT &&value)
CreateThesaurusRequest & WithTags(TagsT &&value)
AWS_KENDRA_API Aws::String SerializePayload() const override
CreateThesaurusRequest & WithRoleArn(RoleArnT &&value)
CreateThesaurusRequest & WithDescription(DescriptionT &&value)
AWS_KENDRA_API CreateThesaurusRequest()=default
CreateThesaurusRequest & WithClientToken(ClientTokenT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector