AWS SDK for C++  1.9.15
AWS SDK for C++
RelevanceFeedback.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace kendra
23 {
24 namespace Model
25 {
26 
35  {
36  public:
41 
42 
47  inline const Aws::String& GetResultId() const{ return m_resultId; }
48 
53  inline bool ResultIdHasBeenSet() const { return m_resultIdHasBeenSet; }
54 
59  inline void SetResultId(const Aws::String& value) { m_resultIdHasBeenSet = true; m_resultId = value; }
60 
65  inline void SetResultId(Aws::String&& value) { m_resultIdHasBeenSet = true; m_resultId = std::move(value); }
66 
71  inline void SetResultId(const char* value) { m_resultIdHasBeenSet = true; m_resultId.assign(value); }
72 
77  inline RelevanceFeedback& WithResultId(const Aws::String& value) { SetResultId(value); return *this;}
78 
83  inline RelevanceFeedback& WithResultId(Aws::String&& value) { SetResultId(std::move(value)); return *this;}
84 
89  inline RelevanceFeedback& WithResultId(const char* value) { SetResultId(value); return *this;}
90 
91 
95  inline const RelevanceType& GetRelevanceValue() const{ return m_relevanceValue; }
96 
100  inline bool RelevanceValueHasBeenSet() const { return m_relevanceValueHasBeenSet; }
101 
105  inline void SetRelevanceValue(const RelevanceType& value) { m_relevanceValueHasBeenSet = true; m_relevanceValue = value; }
106 
110  inline void SetRelevanceValue(RelevanceType&& value) { m_relevanceValueHasBeenSet = true; m_relevanceValue = std::move(value); }
111 
115  inline RelevanceFeedback& WithRelevanceValue(const RelevanceType& value) { SetRelevanceValue(value); return *this;}
116 
120  inline RelevanceFeedback& WithRelevanceValue(RelevanceType&& value) { SetRelevanceValue(std::move(value)); return *this;}
121 
122  private:
123 
124  Aws::String m_resultId;
125  bool m_resultIdHasBeenSet;
126 
127  RelevanceType m_relevanceValue;
128  bool m_relevanceValueHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace kendra
133 } // namespace Aws
RelevanceType.h
Aws::kendra::Model::RelevanceFeedback::SetResultId
void SetResultId(const Aws::String &value)
Definition: RelevanceFeedback.h:59
Aws::kendra::Model::RelevanceFeedback::ResultIdHasBeenSet
bool ResultIdHasBeenSet() const
Definition: RelevanceFeedback.h:53
Aws::kendra::Model::RelevanceFeedback::SetRelevanceValue
void SetRelevanceValue(RelevanceType &&value)
Definition: RelevanceFeedback.h:110
Aws::kendra::Model::RelevanceFeedback::SetRelevanceValue
void SetRelevanceValue(const RelevanceType &value)
Definition: RelevanceFeedback.h:105
Aws::kendra::Model::RelevanceFeedback::RelevanceValueHasBeenSet
bool RelevanceValueHasBeenSet() const
Definition: RelevanceFeedback.h:100
Aws::kendra::Model::RelevanceFeedback::GetResultId
const Aws::String & GetResultId() const
Definition: RelevanceFeedback.h:47
Aws::kendra::Model::RelevanceFeedback::WithResultId
RelevanceFeedback & WithResultId(const Aws::String &value)
Definition: RelevanceFeedback.h:77
Aws::kendra::Model::RelevanceFeedback::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::kendra::Model::RelevanceFeedback::WithResultId
RelevanceFeedback & WithResultId(const char *value)
Definition: RelevanceFeedback.h:89
Aws::kendra::Model::RelevanceFeedback::SetResultId
void SetResultId(Aws::String &&value)
Definition: RelevanceFeedback.h:65
Aws::kendra::Model::RelevanceFeedback::SetResultId
void SetResultId(const char *value)
Definition: RelevanceFeedback.h:71
Kendra_EXPORTS.h
Aws::kendra::Model::RelevanceFeedback::GetRelevanceValue
const RelevanceType & GetRelevanceValue() const
Definition: RelevanceFeedback.h:95
Aws::kendra::Model::RelevanceFeedback::operator=
RelevanceFeedback & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::kendra::Model::RelevanceType
RelevanceType
Definition: RelevanceType.h:17
Aws::kendra::Model::RelevanceFeedback
Definition: RelevanceFeedback.h:35
Aws::kendra::Model::RelevanceFeedback::WithResultId
RelevanceFeedback & WithResultId(Aws::String &&value)
Definition: RelevanceFeedback.h:83
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::kendra::Model::RelevanceFeedback::WithRelevanceValue
RelevanceFeedback & WithRelevanceValue(RelevanceType &&value)
Definition: RelevanceFeedback.h:120
Aws
Definition: AccessManagementClient.h:15
Aws::kendra::Model::RelevanceFeedback::RelevanceFeedback
RelevanceFeedback(Aws::Utils::Json::JsonView jsonValue)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_KENDRA_API
#define AWS_KENDRA_API
Definition: Kendra_EXPORTS.h:28
Aws::kendra::Model::RelevanceFeedback::RelevanceFeedback
RelevanceFeedback()
Aws::kendra::Model::RelevanceFeedback::WithRelevanceValue
RelevanceFeedback & WithRelevanceValue(const RelevanceType &value)
Definition: RelevanceFeedback.h:115