AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateThesaurusRequest.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/kendra/model/S3Path.h>
11#include <utility>
12
13namespace Aws
14{
15namespace kendra
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_KENDRA_API UpdateThesaurusRequest() = 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 "UpdateThesaurus"; }
32
33 AWS_KENDRA_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetId() const { return m_id; }
43 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
44 template<typename IdT = Aws::String>
45 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
46 template<typename IdT = Aws::String>
47 UpdateThesaurusRequest& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
49
51
54 inline const Aws::String& GetName() const { return m_name; }
55 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 template<typename NameT = Aws::String>
57 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
58 template<typename NameT = Aws::String>
59 UpdateThesaurusRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
61
63
66 inline const Aws::String& GetIndexId() const { return m_indexId; }
67 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
68 template<typename IndexIdT = Aws::String>
69 void SetIndexId(IndexIdT&& value) { m_indexIdHasBeenSet = true; m_indexId = std::forward<IndexIdT>(value); }
70 template<typename IndexIdT = Aws::String>
71 UpdateThesaurusRequest& WithIndexId(IndexIdT&& value) { SetIndexId(std::forward<IndexIdT>(value)); return *this;}
73
75
78 inline const Aws::String& GetDescription() const { return m_description; }
79 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
80 template<typename DescriptionT = Aws::String>
81 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
82 template<typename DescriptionT = Aws::String>
83 UpdateThesaurusRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
85
87
91 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
92 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
93 template<typename RoleArnT = Aws::String>
94 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
95 template<typename RoleArnT = Aws::String>
96 UpdateThesaurusRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
98
100
101 inline const S3Path& GetSourceS3Path() const { return m_sourceS3Path; }
102 inline bool SourceS3PathHasBeenSet() const { return m_sourceS3PathHasBeenSet; }
103 template<typename SourceS3PathT = S3Path>
104 void SetSourceS3Path(SourceS3PathT&& value) { m_sourceS3PathHasBeenSet = true; m_sourceS3Path = std::forward<SourceS3PathT>(value); }
105 template<typename SourceS3PathT = S3Path>
106 UpdateThesaurusRequest& WithSourceS3Path(SourceS3PathT&& value) { SetSourceS3Path(std::forward<SourceS3PathT>(value)); return *this;}
108 private:
109
110 Aws::String m_id;
111 bool m_idHasBeenSet = false;
112
113 Aws::String m_name;
114 bool m_nameHasBeenSet = false;
115
116 Aws::String m_indexId;
117 bool m_indexIdHasBeenSet = false;
118
119 Aws::String m_description;
120 bool m_descriptionHasBeenSet = false;
121
122 Aws::String m_roleArn;
123 bool m_roleArnHasBeenSet = false;
124
125 S3Path m_sourceS3Path;
126 bool m_sourceS3PathHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace kendra
131} // 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