AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResultData.h
1
6#pragma once
7#include <aws/wisdom/ConnectWisdomService_EXPORTS.h>
8#include <aws/wisdom/model/Document.h>
9#include <aws/core/utils/memory/stl/AWSString.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 ConnectWisdomService
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_CONNECTWISDOMSERVICE_API ResultData();
36 AWS_CONNECTWISDOMSERVICE_API ResultData(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONNECTWISDOMSERVICE_API ResultData& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Document& GetDocument() const{ return m_document; }
46 inline bool DocumentHasBeenSet() const { return m_documentHasBeenSet; }
47 inline void SetDocument(const Document& value) { m_documentHasBeenSet = true; m_document = value; }
48 inline void SetDocument(Document&& value) { m_documentHasBeenSet = true; m_document = std::move(value); }
49 inline ResultData& WithDocument(const Document& value) { SetDocument(value); return *this;}
50 inline ResultData& WithDocument(Document&& value) { SetDocument(std::move(value)); return *this;}
52
54
57 inline double GetRelevanceScore() const{ return m_relevanceScore; }
58 inline bool RelevanceScoreHasBeenSet() const { return m_relevanceScoreHasBeenSet; }
59 inline void SetRelevanceScore(double value) { m_relevanceScoreHasBeenSet = true; m_relevanceScore = value; }
60 inline ResultData& WithRelevanceScore(double value) { SetRelevanceScore(value); return *this;}
62
64
67 inline const Aws::String& GetResultId() const{ return m_resultId; }
68 inline bool ResultIdHasBeenSet() const { return m_resultIdHasBeenSet; }
69 inline void SetResultId(const Aws::String& value) { m_resultIdHasBeenSet = true; m_resultId = value; }
70 inline void SetResultId(Aws::String&& value) { m_resultIdHasBeenSet = true; m_resultId = std::move(value); }
71 inline void SetResultId(const char* value) { m_resultIdHasBeenSet = true; m_resultId.assign(value); }
72 inline ResultData& WithResultId(const Aws::String& value) { SetResultId(value); return *this;}
73 inline ResultData& WithResultId(Aws::String&& value) { SetResultId(std::move(value)); return *this;}
74 inline ResultData& WithResultId(const char* value) { SetResultId(value); return *this;}
76 private:
77
78 Document m_document;
79 bool m_documentHasBeenSet = false;
80
81 double m_relevanceScore;
82 bool m_relevanceScoreHasBeenSet = false;
83
84 Aws::String m_resultId;
85 bool m_resultIdHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace ConnectWisdomService
90} // namespace Aws
ResultData & WithResultId(const char *value)
Definition ResultData.h:74
ResultData & WithDocument(const Document &value)
Definition ResultData.h:49
const Aws::String & GetResultId() const
Definition ResultData.h:67
AWS_CONNECTWISDOMSERVICE_API ResultData()
ResultData & WithRelevanceScore(double value)
Definition ResultData.h:60
ResultData & WithDocument(Document &&value)
Definition ResultData.h:50
AWS_CONNECTWISDOMSERVICE_API ResultData & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDocument(const Document &value)
Definition ResultData.h:47
void SetResultId(const Aws::String &value)
Definition ResultData.h:69
AWS_CONNECTWISDOMSERVICE_API ResultData(Aws::Utils::Json::JsonView jsonValue)
ResultData & WithResultId(Aws::String &&value)
Definition ResultData.h:73
ResultData & WithResultId(const Aws::String &value)
Definition ResultData.h:72
AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetResultId(Aws::String &&value)
Definition ResultData.h:70
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue