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/qconnect/QConnect_EXPORTS.h>
8#include <aws/qconnect/model/DataSummary.h>
9#include <aws/qconnect/model/Document.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/qconnect/model/QueryResultType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace QConnect
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_QCONNECT_API ResultData();
38 AWS_QCONNECT_API ResultData(Aws::Utils::Json::JsonView jsonValue);
39 AWS_QCONNECT_API ResultData& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const DataSummary& GetData() const{ return m_data; }
48 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
49 inline void SetData(const DataSummary& value) { m_dataHasBeenSet = true; m_data = value; }
50 inline void SetData(DataSummary&& value) { m_dataHasBeenSet = true; m_data = std::move(value); }
51 inline ResultData& WithData(const DataSummary& value) { SetData(value); return *this;}
52 inline ResultData& WithData(DataSummary&& value) { SetData(std::move(value)); return *this;}
54
56
59 inline const Document& GetDocument() const{ return m_document; }
60 inline bool DocumentHasBeenSet() const { return m_documentHasBeenSet; }
61 inline void SetDocument(const Document& value) { m_documentHasBeenSet = true; m_document = value; }
62 inline void SetDocument(Document&& value) { m_documentHasBeenSet = true; m_document = std::move(value); }
63 inline ResultData& WithDocument(const Document& value) { SetDocument(value); return *this;}
64 inline ResultData& WithDocument(Document&& value) { SetDocument(std::move(value)); return *this;}
66
68
71 inline double GetRelevanceScore() const{ return m_relevanceScore; }
72 inline bool RelevanceScoreHasBeenSet() const { return m_relevanceScoreHasBeenSet; }
73 inline void SetRelevanceScore(double value) { m_relevanceScoreHasBeenSet = true; m_relevanceScore = value; }
74 inline ResultData& WithRelevanceScore(double value) { SetRelevanceScore(value); return *this;}
76
78
81 inline const Aws::String& GetResultId() const{ return m_resultId; }
82 inline bool ResultIdHasBeenSet() const { return m_resultIdHasBeenSet; }
83 inline void SetResultId(const Aws::String& value) { m_resultIdHasBeenSet = true; m_resultId = value; }
84 inline void SetResultId(Aws::String&& value) { m_resultIdHasBeenSet = true; m_resultId = std::move(value); }
85 inline void SetResultId(const char* value) { m_resultIdHasBeenSet = true; m_resultId.assign(value); }
86 inline ResultData& WithResultId(const Aws::String& value) { SetResultId(value); return *this;}
87 inline ResultData& WithResultId(Aws::String&& value) { SetResultId(std::move(value)); return *this;}
88 inline ResultData& WithResultId(const char* value) { SetResultId(value); return *this;}
90
92
95 inline const QueryResultType& GetType() const{ return m_type; }
96 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
97 inline void SetType(const QueryResultType& value) { m_typeHasBeenSet = true; m_type = value; }
98 inline void SetType(QueryResultType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
99 inline ResultData& WithType(const QueryResultType& value) { SetType(value); return *this;}
100 inline ResultData& WithType(QueryResultType&& value) { SetType(std::move(value)); return *this;}
102 private:
103
104 DataSummary m_data;
105 bool m_dataHasBeenSet = false;
106
107 Document m_document;
108 bool m_documentHasBeenSet = false;
109
110 double m_relevanceScore;
111 bool m_relevanceScoreHasBeenSet = false;
112
113 Aws::String m_resultId;
114 bool m_resultIdHasBeenSet = false;
115
116 QueryResultType m_type;
117 bool m_typeHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace QConnect
122} // namespace Aws
void SetType(const QueryResultType &value)
Definition ResultData.h:97
ResultData & WithType(const QueryResultType &value)
Definition ResultData.h:99
const Document & GetDocument() const
Definition ResultData.h:59
AWS_QCONNECT_API ResultData(Aws::Utils::Json::JsonView jsonValue)
void SetData(const DataSummary &value)
Definition ResultData.h:49
ResultData & WithResultId(Aws::String &&value)
Definition ResultData.h:87
const Aws::String & GetResultId() const
Definition ResultData.h:81
void SetType(QueryResultType &&value)
Definition ResultData.h:98
ResultData & WithData(const DataSummary &value)
Definition ResultData.h:51
ResultData & WithDocument(Document &&value)
Definition ResultData.h:64
const DataSummary & GetData() const
Definition ResultData.h:47
ResultData & WithResultId(const char *value)
Definition ResultData.h:88
void SetResultId(const char *value)
Definition ResultData.h:85
const QueryResultType & GetType() const
Definition ResultData.h:95
ResultData & WithResultId(const Aws::String &value)
Definition ResultData.h:86
ResultData & WithData(DataSummary &&value)
Definition ResultData.h:52
void SetData(DataSummary &&value)
Definition ResultData.h:50
ResultData & WithType(QueryResultType &&value)
Definition ResultData.h:100
void SetResultId(Aws::String &&value)
Definition ResultData.h:84
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDocument(Document &&value)
Definition ResultData.h:62
ResultData & WithDocument(const Document &value)
Definition ResultData.h:63
void SetRelevanceScore(double value)
Definition ResultData.h:73
void SetResultId(const Aws::String &value)
Definition ResultData.h:83
void SetDocument(const Document &value)
Definition ResultData.h:61
AWS_QCONNECT_API ResultData & operator=(Aws::Utils::Json::JsonView jsonValue)
ResultData & WithRelevanceScore(double value)
Definition ResultData.h:74
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue