AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Document.h
1
6#pragma once
7#include <aws/kendra-ranking/KendraRanking_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace KendraRanking
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_KENDRARANKING_API Document();
38 AWS_KENDRARANKING_API Document(Aws::Utils::Json::JsonView jsonValue);
39 AWS_KENDRARANKING_API Document& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_KENDRARANKING_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetId() const{ return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
50 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
51 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
52 inline Document& WithId(const Aws::String& value) { SetId(value); return *this;}
53 inline Document& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
54 inline Document& WithId(const char* value) { SetId(value); return *this;}
56
58
63 inline const Aws::String& GetGroupId() const{ return m_groupId; }
64 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
65 inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
66 inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
67 inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
68 inline Document& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
69 inline Document& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
70 inline Document& WithGroupId(const char* value) { SetGroupId(value); return *this;}
72
74
77 inline const Aws::String& GetTitle() const{ return m_title; }
78 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
79 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
80 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
81 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
82 inline Document& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
83 inline Document& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
84 inline Document& WithTitle(const char* value) { SetTitle(value); return *this;}
86
88
91 inline const Aws::String& GetBody() const{ return m_body; }
92 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
93 inline void SetBody(const Aws::String& value) { m_bodyHasBeenSet = true; m_body = value; }
94 inline void SetBody(Aws::String&& value) { m_bodyHasBeenSet = true; m_body = std::move(value); }
95 inline void SetBody(const char* value) { m_bodyHasBeenSet = true; m_body.assign(value); }
96 inline Document& WithBody(const Aws::String& value) { SetBody(value); return *this;}
97 inline Document& WithBody(Aws::String&& value) { SetBody(std::move(value)); return *this;}
98 inline Document& WithBody(const char* value) { SetBody(value); return *this;}
100
102
107 inline const Aws::Vector<Aws::String>& GetTokenizedTitle() const{ return m_tokenizedTitle; }
108 inline bool TokenizedTitleHasBeenSet() const { return m_tokenizedTitleHasBeenSet; }
109 inline void SetTokenizedTitle(const Aws::Vector<Aws::String>& value) { m_tokenizedTitleHasBeenSet = true; m_tokenizedTitle = value; }
110 inline void SetTokenizedTitle(Aws::Vector<Aws::String>&& value) { m_tokenizedTitleHasBeenSet = true; m_tokenizedTitle = std::move(value); }
111 inline Document& WithTokenizedTitle(const Aws::Vector<Aws::String>& value) { SetTokenizedTitle(value); return *this;}
112 inline Document& WithTokenizedTitle(Aws::Vector<Aws::String>&& value) { SetTokenizedTitle(std::move(value)); return *this;}
113 inline Document& AddTokenizedTitle(const Aws::String& value) { m_tokenizedTitleHasBeenSet = true; m_tokenizedTitle.push_back(value); return *this; }
114 inline Document& AddTokenizedTitle(Aws::String&& value) { m_tokenizedTitleHasBeenSet = true; m_tokenizedTitle.push_back(std::move(value)); return *this; }
115 inline Document& AddTokenizedTitle(const char* value) { m_tokenizedTitleHasBeenSet = true; m_tokenizedTitle.push_back(value); return *this; }
117
119
124 inline const Aws::Vector<Aws::String>& GetTokenizedBody() const{ return m_tokenizedBody; }
125 inline bool TokenizedBodyHasBeenSet() const { return m_tokenizedBodyHasBeenSet; }
126 inline void SetTokenizedBody(const Aws::Vector<Aws::String>& value) { m_tokenizedBodyHasBeenSet = true; m_tokenizedBody = value; }
127 inline void SetTokenizedBody(Aws::Vector<Aws::String>&& value) { m_tokenizedBodyHasBeenSet = true; m_tokenizedBody = std::move(value); }
128 inline Document& WithTokenizedBody(const Aws::Vector<Aws::String>& value) { SetTokenizedBody(value); return *this;}
129 inline Document& WithTokenizedBody(Aws::Vector<Aws::String>&& value) { SetTokenizedBody(std::move(value)); return *this;}
130 inline Document& AddTokenizedBody(const Aws::String& value) { m_tokenizedBodyHasBeenSet = true; m_tokenizedBody.push_back(value); return *this; }
131 inline Document& AddTokenizedBody(Aws::String&& value) { m_tokenizedBodyHasBeenSet = true; m_tokenizedBody.push_back(std::move(value)); return *this; }
132 inline Document& AddTokenizedBody(const char* value) { m_tokenizedBodyHasBeenSet = true; m_tokenizedBody.push_back(value); return *this; }
134
136
141 inline double GetOriginalScore() const{ return m_originalScore; }
142 inline bool OriginalScoreHasBeenSet() const { return m_originalScoreHasBeenSet; }
143 inline void SetOriginalScore(double value) { m_originalScoreHasBeenSet = true; m_originalScore = value; }
144 inline Document& WithOriginalScore(double value) { SetOriginalScore(value); return *this;}
146 private:
147
148 Aws::String m_id;
149 bool m_idHasBeenSet = false;
150
151 Aws::String m_groupId;
152 bool m_groupIdHasBeenSet = false;
153
154 Aws::String m_title;
155 bool m_titleHasBeenSet = false;
156
157 Aws::String m_body;
158 bool m_bodyHasBeenSet = false;
159
160 Aws::Vector<Aws::String> m_tokenizedTitle;
161 bool m_tokenizedTitleHasBeenSet = false;
162
163 Aws::Vector<Aws::String> m_tokenizedBody;
164 bool m_tokenizedBodyHasBeenSet = false;
165
166 double m_originalScore;
167 bool m_originalScoreHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace KendraRanking
172} // namespace Aws
Document & WithBody(const char *value)
Definition Document.h:98
const Aws::String & GetBody() const
Definition Document.h:91
void SetId(Aws::String &&value)
Definition Document.h:50
void SetBody(Aws::String &&value)
Definition Document.h:94
Document & AddTokenizedTitle(const Aws::String &value)
Definition Document.h:113
void SetTokenizedBody(Aws::Vector< Aws::String > &&value)
Definition Document.h:127
const Aws::String & GetId() const
Definition Document.h:47
AWS_KENDRARANKING_API Document()
void SetGroupId(const char *value)
Definition Document.h:67
Document & AddTokenizedTitle(Aws::String &&value)
Definition Document.h:114
const Aws::Vector< Aws::String > & GetTokenizedTitle() const
Definition Document.h:107
Document & WithOriginalScore(double value)
Definition Document.h:144
void SetOriginalScore(double value)
Definition Document.h:143
Document & WithId(const Aws::String &value)
Definition Document.h:52
Document & WithBody(const Aws::String &value)
Definition Document.h:96
void SetId(const char *value)
Definition Document.h:51
Document & WithGroupId(const Aws::String &value)
Definition Document.h:68
Document & WithTokenizedBody(Aws::Vector< Aws::String > &&value)
Definition Document.h:129
Document & WithTokenizedTitle(Aws::Vector< Aws::String > &&value)
Definition Document.h:112
Document & WithId(Aws::String &&value)
Definition Document.h:53
Document & AddTokenizedTitle(const char *value)
Definition Document.h:115
Document & AddTokenizedBody(const char *value)
Definition Document.h:132
const Aws::String & GetTitle() const
Definition Document.h:77
void SetTokenizedBody(const Aws::Vector< Aws::String > &value)
Definition Document.h:126
const Aws::Vector< Aws::String > & GetTokenizedBody() const
Definition Document.h:124
Document & AddTokenizedBody(const Aws::String &value)
Definition Document.h:130
Document & WithTokenizedBody(const Aws::Vector< Aws::String > &value)
Definition Document.h:128
void SetGroupId(const Aws::String &value)
Definition Document.h:65
const Aws::String & GetGroupId() const
Definition Document.h:63
void SetBody(const char *value)
Definition Document.h:95
void SetGroupId(Aws::String &&value)
Definition Document.h:66
void SetBody(const Aws::String &value)
Definition Document.h:93
AWS_KENDRARANKING_API Document(Aws::Utils::Json::JsonView jsonValue)
Document & WithTitle(Aws::String &&value)
Definition Document.h:83
void SetId(const Aws::String &value)
Definition Document.h:49
Document & WithGroupId(Aws::String &&value)
Definition Document.h:69
Document & WithTitle(const Aws::String &value)
Definition Document.h:82
Document & WithId(const char *value)
Definition Document.h:54
void SetTitle(const char *value)
Definition Document.h:81
Document & WithTokenizedTitle(const Aws::Vector< Aws::String > &value)
Definition Document.h:111
void SetTokenizedTitle(const Aws::Vector< Aws::String > &value)
Definition Document.h:109
AWS_KENDRARANKING_API Document & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_KENDRARANKING_API Aws::Utils::Json::JsonValue Jsonize() const
Document & WithGroupId(const char *value)
Definition Document.h:70
Document & WithBody(Aws::String &&value)
Definition Document.h:97
Document & AddTokenizedBody(Aws::String &&value)
Definition Document.h:131
void SetTitle(Aws::String &&value)
Definition Document.h:80
void SetTitle(const Aws::String &value)
Definition Document.h:79
Document & WithTitle(const char *value)
Definition Document.h:84
void SetTokenizedTitle(Aws::Vector< Aws::String > &&value)
Definition Document.h:110
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue