AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateThesaurusRequest.h
1
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/core/utils/memory/stl/AWSVector.h>
11#include <aws/kendra/model/S3Path.h>
12#include <aws/kendra/model/Tag.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace kendra
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_KENDRA_API CreateThesaurusRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateThesaurus"; }
35
36 AWS_KENDRA_API Aws::String SerializePayload() const override;
37
39
40
42
45 inline const Aws::String& GetIndexId() const { return m_indexId; }
46 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
47 template<typename IndexIdT = Aws::String>
48 void SetIndexId(IndexIdT&& value) { m_indexIdHasBeenSet = true; m_indexId = std::forward<IndexIdT>(value); }
49 template<typename IndexIdT = Aws::String>
50 CreateThesaurusRequest& WithIndexId(IndexIdT&& value) { SetIndexId(std::forward<IndexIdT>(value)); return *this;}
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template<typename NameT = Aws::String>
60 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
61 template<typename NameT = Aws::String>
62 CreateThesaurusRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
64
66
69 inline const Aws::String& GetDescription() const { return m_description; }
70 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
71 template<typename DescriptionT = Aws::String>
72 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
73 template<typename DescriptionT = Aws::String>
74 CreateThesaurusRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
76
78
84 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
85 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
86 template<typename RoleArnT = Aws::String>
87 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
88 template<typename RoleArnT = Aws::String>
89 CreateThesaurusRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
91
93
99 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
100 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
101 template<typename TagsT = Aws::Vector<Tag>>
102 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
103 template<typename TagsT = Aws::Vector<Tag>>
104 CreateThesaurusRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
105 template<typename TagsT = Tag>
106 CreateThesaurusRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
108
110
113 inline const S3Path& GetSourceS3Path() const { return m_sourceS3Path; }
114 inline bool SourceS3PathHasBeenSet() const { return m_sourceS3PathHasBeenSet; }
115 template<typename SourceS3PathT = S3Path>
116 void SetSourceS3Path(SourceS3PathT&& value) { m_sourceS3PathHasBeenSet = true; m_sourceS3Path = std::forward<SourceS3PathT>(value); }
117 template<typename SourceS3PathT = S3Path>
118 CreateThesaurusRequest& WithSourceS3Path(SourceS3PathT&& value) { SetSourceS3Path(std::forward<SourceS3PathT>(value)); return *this;}
120
122
127 inline const Aws::String& GetClientToken() const { return m_clientToken; }
128 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
129 template<typename ClientTokenT = Aws::String>
130 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
131 template<typename ClientTokenT = Aws::String>
132 CreateThesaurusRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
134 private:
135
136 Aws::String m_indexId;
137 bool m_indexIdHasBeenSet = false;
138
139 Aws::String m_name;
140 bool m_nameHasBeenSet = false;
141
142 Aws::String m_description;
143 bool m_descriptionHasBeenSet = false;
144
145 Aws::String m_roleArn;
146 bool m_roleArnHasBeenSet = false;
147
148 Aws::Vector<Tag> m_tags;
149 bool m_tagsHasBeenSet = false;
150
151 S3Path m_sourceS3Path;
152 bool m_sourceS3PathHasBeenSet = false;
153
155 bool m_clientTokenHasBeenSet = true;
156 };
157
158} // namespace Model
159} // namespace kendra
160} // 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