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/wisdom/ConnectWisdomService_EXPORTS.h>
8#include <aws/wisdom/model/Document.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/wisdom/model/RelevanceLevel.h>
11#include <aws/wisdom/model/RecommendationType.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 ConnectWisdomService
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_CONNECTWISDOMSERVICE_API RecommendationData();
38 AWS_CONNECTWISDOMSERVICE_API RecommendationData(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONNECTWISDOMSERVICE_API RecommendationData& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Document& GetDocument() const{ return m_document; }
48 inline bool DocumentHasBeenSet() const { return m_documentHasBeenSet; }
49 inline void SetDocument(const Document& value) { m_documentHasBeenSet = true; m_document = value; }
50 inline void SetDocument(Document&& value) { m_documentHasBeenSet = true; m_document = std::move(value); }
51 inline RecommendationData& WithDocument(const Document& value) { SetDocument(value); return *this;}
52 inline RecommendationData& WithDocument(Document&& value) { SetDocument(std::move(value)); return *this;}
54
56
59 inline const Aws::String& GetRecommendationId() const{ return m_recommendationId; }
60 inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
61 inline void SetRecommendationId(const Aws::String& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = value; }
62 inline void SetRecommendationId(Aws::String&& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = std::move(value); }
63 inline void SetRecommendationId(const char* value) { m_recommendationIdHasBeenSet = true; m_recommendationId.assign(value); }
64 inline RecommendationData& WithRecommendationId(const Aws::String& value) { SetRecommendationId(value); return *this;}
65 inline RecommendationData& WithRecommendationId(Aws::String&& value) { SetRecommendationId(std::move(value)); return *this;}
66 inline RecommendationData& WithRecommendationId(const char* value) { SetRecommendationId(value); return *this;}
68
70
73 inline const RelevanceLevel& GetRelevanceLevel() const{ return m_relevanceLevel; }
74 inline bool RelevanceLevelHasBeenSet() const { return m_relevanceLevelHasBeenSet; }
75 inline void SetRelevanceLevel(const RelevanceLevel& value) { m_relevanceLevelHasBeenSet = true; m_relevanceLevel = value; }
76 inline void SetRelevanceLevel(RelevanceLevel&& value) { m_relevanceLevelHasBeenSet = true; m_relevanceLevel = std::move(value); }
77 inline RecommendationData& WithRelevanceLevel(const RelevanceLevel& value) { SetRelevanceLevel(value); return *this;}
78 inline RecommendationData& WithRelevanceLevel(RelevanceLevel&& value) { SetRelevanceLevel(std::move(value)); return *this;}
80
82
85 inline double GetRelevanceScore() const{ return m_relevanceScore; }
86 inline bool RelevanceScoreHasBeenSet() const { return m_relevanceScoreHasBeenSet; }
87 inline void SetRelevanceScore(double value) { m_relevanceScoreHasBeenSet = true; m_relevanceScore = value; }
88 inline RecommendationData& WithRelevanceScore(double value) { SetRelevanceScore(value); return *this;}
90
92
95 inline const RecommendationType& GetType() const{ return m_type; }
96 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
97 inline void SetType(const RecommendationType& value) { m_typeHasBeenSet = true; m_type = value; }
98 inline void SetType(RecommendationType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
99 inline RecommendationData& WithType(const RecommendationType& value) { SetType(value); return *this;}
100 inline RecommendationData& WithType(RecommendationType&& value) { SetType(std::move(value)); return *this;}
102 private:
103
104 Document m_document;
105 bool m_documentHasBeenSet = false;
106
107 Aws::String m_recommendationId;
108 bool m_recommendationIdHasBeenSet = false;
109
110 RelevanceLevel m_relevanceLevel;
111 bool m_relevanceLevelHasBeenSet = false;
112
113 double m_relevanceScore;
114 bool m_relevanceScoreHasBeenSet = false;
115
116 RecommendationType m_type;
117 bool m_typeHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace ConnectWisdomService
122} // namespace Aws
RecommendationData & WithDocument(Document &&value)
RecommendationData & WithRecommendationId(Aws::String &&value)
RecommendationData & WithRelevanceLevel(RelevanceLevel &&value)
RecommendationData & WithRelevanceLevel(const RelevanceLevel &value)
void SetType(const RecommendationType &value)
AWS_CONNECTWISDOMSERVICE_API RecommendationData(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTWISDOMSERVICE_API RecommendationData()
RecommendationData & WithRecommendationId(const char *value)
RecommendationData & WithType(RecommendationType &&value)
RecommendationData & WithDocument(const Document &value)
RecommendationData & WithRecommendationId(const Aws::String &value)
AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECTWISDOMSERVICE_API RecommendationData & operator=(Aws::Utils::Json::JsonView jsonValue)
RecommendationData & WithRelevanceScore(double value)
RecommendationData & WithType(const RecommendationType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue