AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RecommendationData.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/RelevanceLevel.h>
12#include <aws/qconnect/model/RecommendationType.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace QConnect
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_QCONNECT_API RecommendationData();
41 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const DataSummary& GetData() const{ return m_data; }
49 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
50 inline void SetData(const DataSummary& value) { m_dataHasBeenSet = true; m_data = value; }
51 inline void SetData(DataSummary&& value) { m_dataHasBeenSet = true; m_data = std::move(value); }
52 inline RecommendationData& WithData(const DataSummary& value) { SetData(value); return *this;}
53 inline RecommendationData& WithData(DataSummary&& value) { SetData(std::move(value)); return *this;}
55
57
60 inline const Document& GetDocument() const{ return m_document; }
61 inline bool DocumentHasBeenSet() const { return m_documentHasBeenSet; }
62 inline void SetDocument(const Document& value) { m_documentHasBeenSet = true; m_document = value; }
63 inline void SetDocument(Document&& value) { m_documentHasBeenSet = true; m_document = std::move(value); }
64 inline RecommendationData& WithDocument(const Document& value) { SetDocument(value); return *this;}
65 inline RecommendationData& WithDocument(Document&& value) { SetDocument(std::move(value)); return *this;}
67
69
72 inline const Aws::String& GetRecommendationId() const{ return m_recommendationId; }
73 inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
74 inline void SetRecommendationId(const Aws::String& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = value; }
75 inline void SetRecommendationId(Aws::String&& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = std::move(value); }
76 inline void SetRecommendationId(const char* value) { m_recommendationIdHasBeenSet = true; m_recommendationId.assign(value); }
77 inline RecommendationData& WithRecommendationId(const Aws::String& value) { SetRecommendationId(value); return *this;}
78 inline RecommendationData& WithRecommendationId(Aws::String&& value) { SetRecommendationId(std::move(value)); return *this;}
79 inline RecommendationData& WithRecommendationId(const char* value) { SetRecommendationId(value); return *this;}
81
83
86 inline const RelevanceLevel& GetRelevanceLevel() const{ return m_relevanceLevel; }
87 inline bool RelevanceLevelHasBeenSet() const { return m_relevanceLevelHasBeenSet; }
88 inline void SetRelevanceLevel(const RelevanceLevel& value) { m_relevanceLevelHasBeenSet = true; m_relevanceLevel = value; }
89 inline void SetRelevanceLevel(RelevanceLevel&& value) { m_relevanceLevelHasBeenSet = true; m_relevanceLevel = std::move(value); }
90 inline RecommendationData& WithRelevanceLevel(const RelevanceLevel& value) { SetRelevanceLevel(value); return *this;}
91 inline RecommendationData& WithRelevanceLevel(RelevanceLevel&& value) { SetRelevanceLevel(std::move(value)); return *this;}
93
95
98 inline double GetRelevanceScore() const{ return m_relevanceScore; }
99 inline bool RelevanceScoreHasBeenSet() const { return m_relevanceScoreHasBeenSet; }
100 inline void SetRelevanceScore(double value) { m_relevanceScoreHasBeenSet = true; m_relevanceScore = value; }
101 inline RecommendationData& WithRelevanceScore(double value) { SetRelevanceScore(value); return *this;}
103
105
108 inline const RecommendationType& GetType() const{ return m_type; }
109 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
110 inline void SetType(const RecommendationType& value) { m_typeHasBeenSet = true; m_type = value; }
111 inline void SetType(RecommendationType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
112 inline RecommendationData& WithType(const RecommendationType& value) { SetType(value); return *this;}
113 inline RecommendationData& WithType(RecommendationType&& value) { SetType(std::move(value)); return *this;}
115 private:
116
117 DataSummary m_data;
118 bool m_dataHasBeenSet = false;
119
120 Document m_document;
121 bool m_documentHasBeenSet = false;
122
123 Aws::String m_recommendationId;
124 bool m_recommendationIdHasBeenSet = false;
125
126 RelevanceLevel m_relevanceLevel;
127 bool m_relevanceLevelHasBeenSet = false;
128
129 double m_relevanceScore;
130 bool m_relevanceScoreHasBeenSet = false;
131
132 RecommendationType m_type;
133 bool m_typeHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace QConnect
138} // namespace Aws
RecommendationData & WithRelevanceLevel(const RelevanceLevel &value)
RecommendationData & WithDocument(Document &&value)
RecommendationData & WithRelevanceScore(double value)
void SetRecommendationId(const Aws::String &value)
RecommendationData & WithRecommendationId(Aws::String &&value)
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRelevanceLevel(RelevanceLevel &&value)
AWS_QCONNECT_API RecommendationData & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRelevanceLevel(const RelevanceLevel &value)
void SetType(RecommendationType &&value)
const Aws::String & GetRecommendationId() const
const RelevanceLevel & GetRelevanceLevel() const
RecommendationData & WithRecommendationId(const Aws::String &value)
RecommendationData & WithData(DataSummary &&value)
void SetRecommendationId(Aws::String &&value)
RecommendationData & WithRelevanceLevel(RelevanceLevel &&value)
void SetType(const RecommendationType &value)
RecommendationData & WithType(const RecommendationType &value)
AWS_QCONNECT_API RecommendationData(Aws::Utils::Json::JsonView jsonValue)
RecommendationData & WithData(const DataSummary &value)
const RecommendationType & GetType() const
RecommendationData & WithRecommendationId(const char *value)
RecommendationData & WithDocument(const Document &value)
RecommendationData & WithType(RecommendationType &&value)
void SetData(const DataSummary &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue