AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RescoreResultItem.h
1
6#pragma once
7#include <aws/kendra-ranking/KendraRanking_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace KendraRanking
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_KENDRARANKING_API RescoreResultItem();
36 AWS_KENDRARANKING_API RescoreResultItem(Aws::Utils::Json::JsonView jsonValue);
37 AWS_KENDRARANKING_API RescoreResultItem& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_KENDRARANKING_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetDocumentId() const{ return m_documentId; }
46 inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; }
47 inline void SetDocumentId(const Aws::String& value) { m_documentIdHasBeenSet = true; m_documentId = value; }
48 inline void SetDocumentId(Aws::String&& value) { m_documentIdHasBeenSet = true; m_documentId = std::move(value); }
49 inline void SetDocumentId(const char* value) { m_documentIdHasBeenSet = true; m_documentId.assign(value); }
50 inline RescoreResultItem& WithDocumentId(const Aws::String& value) { SetDocumentId(value); return *this;}
51 inline RescoreResultItem& WithDocumentId(Aws::String&& value) { SetDocumentId(std::move(value)); return *this;}
52 inline RescoreResultItem& WithDocumentId(const char* value) { SetDocumentId(value); return *this;}
54
56
60 inline double GetScore() const{ return m_score; }
61 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
62 inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
63 inline RescoreResultItem& WithScore(double value) { SetScore(value); return *this;}
65 private:
66
67 Aws::String m_documentId;
68 bool m_documentIdHasBeenSet = false;
69
70 double m_score;
71 bool m_scoreHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace KendraRanking
76} // namespace Aws
RescoreResultItem & WithDocumentId(const char *value)
void SetDocumentId(const Aws::String &value)
RescoreResultItem & WithDocumentId(Aws::String &&value)
AWS_KENDRARANKING_API RescoreResultItem & operator=(Aws::Utils::Json::JsonView jsonValue)
RescoreResultItem & WithScore(double value)
AWS_KENDRARANKING_API RescoreResultItem(Aws::Utils::Json::JsonView jsonValue)
AWS_KENDRARANKING_API Aws::Utils::Json::JsonValue Jsonize() const
RescoreResultItem & WithDocumentId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue