AWS SDK for C++

AWS SDK for C++ Version 1.11.681

Loading...
Searching...
No Matches
UpdateThesaurusRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kendra/KendraRequest.h>
9#include <aws/kendra/Kendra_EXPORTS.h>
10#include <aws/kendra/model/S3Path.h>
11
12#include <utility>
13
14namespace Aws {
15namespace kendra {
16namespace Model {
17
21 public:
22 AWS_KENDRA_API UpdateThesaurusRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateThesaurus"; }
29
30 AWS_KENDRA_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetId() const { return m_id; }
39 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
40 template <typename IdT = Aws::String>
41 void SetId(IdT&& value) {
42 m_idHasBeenSet = true;
43 m_id = std::forward<IdT>(value);
44 }
45 template <typename IdT = Aws::String>
47 SetId(std::forward<IdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetName() const { return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 template <typename NameT = Aws::String>
59 void SetName(NameT&& value) {
60 m_nameHasBeenSet = true;
61 m_name = std::forward<NameT>(value);
62 }
63 template <typename NameT = Aws::String>
65 SetName(std::forward<NameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetIndexId() const { return m_indexId; }
75 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
76 template <typename IndexIdT = Aws::String>
77 void SetIndexId(IndexIdT&& value) {
78 m_indexIdHasBeenSet = true;
79 m_indexId = std::forward<IndexIdT>(value);
80 }
81 template <typename IndexIdT = Aws::String>
83 SetIndexId(std::forward<IndexIdT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetDescription() const { return m_description; }
93 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
94 template <typename DescriptionT = Aws::String>
95 void SetDescription(DescriptionT&& value) {
96 m_descriptionHasBeenSet = true;
97 m_description = std::forward<DescriptionT>(value);
98 }
99 template <typename DescriptionT = Aws::String>
101 SetDescription(std::forward<DescriptionT>(value));
102 return *this;
103 }
105
107
111 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
112 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
113 template <typename RoleArnT = Aws::String>
114 void SetRoleArn(RoleArnT&& value) {
115 m_roleArnHasBeenSet = true;
116 m_roleArn = std::forward<RoleArnT>(value);
117 }
118 template <typename RoleArnT = Aws::String>
120 SetRoleArn(std::forward<RoleArnT>(value));
121 return *this;
122 }
124
126
127 inline const S3Path& GetSourceS3Path() const { return m_sourceS3Path; }
128 inline bool SourceS3PathHasBeenSet() const { return m_sourceS3PathHasBeenSet; }
129 template <typename SourceS3PathT = S3Path>
130 void SetSourceS3Path(SourceS3PathT&& value) {
131 m_sourceS3PathHasBeenSet = true;
132 m_sourceS3Path = std::forward<SourceS3PathT>(value);
133 }
134 template <typename SourceS3PathT = S3Path>
135 UpdateThesaurusRequest& WithSourceS3Path(SourceS3PathT&& value) {
136 SetSourceS3Path(std::forward<SourceS3PathT>(value));
137 return *this;
138 }
140 private:
141 Aws::String m_id;
142 bool m_idHasBeenSet = false;
143
144 Aws::String m_name;
145 bool m_nameHasBeenSet = false;
146
147 Aws::String m_indexId;
148 bool m_indexIdHasBeenSet = false;
149
150 Aws::String m_description;
151 bool m_descriptionHasBeenSet = false;
152
153 Aws::String m_roleArn;
154 bool m_roleArnHasBeenSet = false;
155
156 S3Path m_sourceS3Path;
157 bool m_sourceS3PathHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace kendra
162} // namespace Aws
UpdateThesaurusRequest & WithId(IdT &&value)
AWS_KENDRA_API UpdateThesaurusRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_KENDRA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateThesaurusRequest & WithSourceS3Path(SourceS3PathT &&value)
UpdateThesaurusRequest & WithRoleArn(RoleArnT &&value)
UpdateThesaurusRequest & WithDescription(DescriptionT &&value)
UpdateThesaurusRequest & WithIndexId(IndexIdT &&value)
UpdateThesaurusRequest & WithName(NameT &&value)
AWS_KENDRA_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String