AWS SDK for C++  1.9.175
AWS SDK for C++
Relevance.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace kendra
24 {
25 namespace Model
26 {
27 
37  {
38  public:
43 
44 
52  inline bool GetFreshness() const{ return m_freshness; }
53 
61  inline bool FreshnessHasBeenSet() const { return m_freshnessHasBeenSet; }
62 
70  inline void SetFreshness(bool value) { m_freshnessHasBeenSet = true; m_freshness = value; }
71 
79  inline Relevance& WithFreshness(bool value) { SetFreshness(value); return *this;}
80 
81 
86  inline int GetImportance() const{ return m_importance; }
87 
92  inline bool ImportanceHasBeenSet() const { return m_importanceHasBeenSet; }
93 
98  inline void SetImportance(int value) { m_importanceHasBeenSet = true; m_importance = value; }
99 
104  inline Relevance& WithImportance(int value) { SetImportance(value); return *this;}
105 
106 
117  inline const Aws::String& GetDuration() const{ return m_duration; }
118 
129  inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
130 
141  inline void SetDuration(const Aws::String& value) { m_durationHasBeenSet = true; m_duration = value; }
142 
153  inline void SetDuration(Aws::String&& value) { m_durationHasBeenSet = true; m_duration = std::move(value); }
154 
165  inline void SetDuration(const char* value) { m_durationHasBeenSet = true; m_duration.assign(value); }
166 
177  inline Relevance& WithDuration(const Aws::String& value) { SetDuration(value); return *this;}
178 
189  inline Relevance& WithDuration(Aws::String&& value) { SetDuration(std::move(value)); return *this;}
190 
201  inline Relevance& WithDuration(const char* value) { SetDuration(value); return *this;}
202 
203 
214  inline const Order& GetRankOrder() const{ return m_rankOrder; }
215 
226  inline bool RankOrderHasBeenSet() const { return m_rankOrderHasBeenSet; }
227 
238  inline void SetRankOrder(const Order& value) { m_rankOrderHasBeenSet = true; m_rankOrder = value; }
239 
250  inline void SetRankOrder(Order&& value) { m_rankOrderHasBeenSet = true; m_rankOrder = std::move(value); }
251 
262  inline Relevance& WithRankOrder(const Order& value) { SetRankOrder(value); return *this;}
263 
274  inline Relevance& WithRankOrder(Order&& value) { SetRankOrder(std::move(value)); return *this;}
275 
276 
288  inline const Aws::Map<Aws::String, int>& GetValueImportanceMap() const{ return m_valueImportanceMap; }
289 
301  inline bool ValueImportanceMapHasBeenSet() const { return m_valueImportanceMapHasBeenSet; }
302 
314  inline void SetValueImportanceMap(const Aws::Map<Aws::String, int>& value) { m_valueImportanceMapHasBeenSet = true; m_valueImportanceMap = value; }
315 
327  inline void SetValueImportanceMap(Aws::Map<Aws::String, int>&& value) { m_valueImportanceMapHasBeenSet = true; m_valueImportanceMap = std::move(value); }
328 
340  inline Relevance& WithValueImportanceMap(const Aws::Map<Aws::String, int>& value) { SetValueImportanceMap(value); return *this;}
341 
353  inline Relevance& WithValueImportanceMap(Aws::Map<Aws::String, int>&& value) { SetValueImportanceMap(std::move(value)); return *this;}
354 
366  inline Relevance& AddValueImportanceMap(const Aws::String& key, int value) { m_valueImportanceMapHasBeenSet = true; m_valueImportanceMap.emplace(key, value); return *this; }
367 
379  inline Relevance& AddValueImportanceMap(Aws::String&& key, int value) { m_valueImportanceMapHasBeenSet = true; m_valueImportanceMap.emplace(std::move(key), value); return *this; }
380 
392  inline Relevance& AddValueImportanceMap(const char* key, int value) { m_valueImportanceMapHasBeenSet = true; m_valueImportanceMap.emplace(key, value); return *this; }
393 
394  private:
395 
396  bool m_freshness;
397  bool m_freshnessHasBeenSet;
398 
399  int m_importance;
400  bool m_importanceHasBeenSet;
401 
402  Aws::String m_duration;
403  bool m_durationHasBeenSet;
404 
405  Order m_rankOrder;
406  bool m_rankOrderHasBeenSet;
407 
408  Aws::Map<Aws::String, int> m_valueImportanceMap;
409  bool m_valueImportanceMapHasBeenSet;
410  };
411 
412 } // namespace Model
413 } // namespace kendra
414 } // namespace Aws
Aws::kendra::Model::Relevance::GetRankOrder
const Order & GetRankOrder() const
Definition: Relevance.h:214
Aws::kendra::Model::Relevance::SetRankOrder
void SetRankOrder(const Order &value)
Definition: Relevance.h:238
Aws::kendra::Model::Relevance::WithDuration
Relevance & WithDuration(const Aws::String &value)
Definition: Relevance.h:177
Aws::kendra::Model::Relevance::ImportanceHasBeenSet
bool ImportanceHasBeenSet() const
Definition: Relevance.h:92
Aws::kendra::Model::Relevance::GetImportance
int GetImportance() const
Definition: Relevance.h:86
Aws::kendra::Model::Relevance::WithDuration
Relevance & WithDuration(Aws::String &&value)
Definition: Relevance.h:189
Aws::kendra::Model::Relevance::AddValueImportanceMap
Relevance & AddValueImportanceMap(const Aws::String &key, int value)
Definition: Relevance.h:366
Aws::kendra::Model::Relevance::AddValueImportanceMap
Relevance & AddValueImportanceMap(Aws::String &&key, int value)
Definition: Relevance.h:379
Aws::kendra::Model::Relevance::WithRankOrder
Relevance & WithRankOrder(const Order &value)
Definition: Relevance.h:262
Aws::kendra::Model::Relevance::Relevance
Relevance(Aws::Utils::Json::JsonView jsonValue)
Aws::kendra::Model::Relevance::FreshnessHasBeenSet
bool FreshnessHasBeenSet() const
Definition: Relevance.h:61
Aws::kendra::Model::Relevance::WithFreshness
Relevance & WithFreshness(bool value)
Definition: Relevance.h:79
Order.h
Aws::kendra::Model::Relevance::SetRankOrder
void SetRankOrder(Order &&value)
Definition: Relevance.h:250
Aws::kendra::Model::Relevance::GetFreshness
bool GetFreshness() const
Definition: Relevance.h:52
Kendra_EXPORTS.h
Aws::kendra::Model::Relevance::Relevance
Relevance()
Aws::kendra::Model::Relevance::SetValueImportanceMap
void SetValueImportanceMap(const Aws::Map< Aws::String, int > &value)
Definition: Relevance.h:314
Aws::kendra::Model::Relevance::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::kendra::Model::Relevance::DurationHasBeenSet
bool DurationHasBeenSet() const
Definition: Relevance.h:129
Aws::kendra::Model::Relevance::SetFreshness
void SetFreshness(bool value)
Definition: Relevance.h:70
Aws::kendra::Model::Relevance::AddValueImportanceMap
Relevance & AddValueImportanceMap(const char *key, int value)
Definition: Relevance.h:392
Aws::kendra::Model::Relevance::GetDuration
const Aws::String & GetDuration() const
Definition: Relevance.h:117
Aws::kendra::Model::Relevance::ValueImportanceMapHasBeenSet
bool ValueImportanceMapHasBeenSet() const
Definition: Relevance.h:301
Aws::kendra::Model::Relevance::SetDuration
void SetDuration(const Aws::String &value)
Definition: Relevance.h:141
Aws::kendra::Model::Order
Order
Definition: Order.h:17
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::kendra::Model::Relevance::SetValueImportanceMap
void SetValueImportanceMap(Aws::Map< Aws::String, int > &&value)
Definition: Relevance.h:327
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::kendra::Model::Relevance::operator=
Relevance & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::kendra::Model::Relevance::WithDuration
Relevance & WithDuration(const char *value)
Definition: Relevance.h:201
Aws::kendra::Model::Relevance::WithRankOrder
Relevance & WithRankOrder(Order &&value)
Definition: Relevance.h:274
Aws::kendra::Model::Relevance::SetDuration
void SetDuration(const char *value)
Definition: Relevance.h:165
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::kendra::Model::Relevance::GetValueImportanceMap
const Aws::Map< Aws::String, int > & GetValueImportanceMap() const
Definition: Relevance.h:288
Aws::kendra::Model::Relevance::SetImportance
void SetImportance(int value)
Definition: Relevance.h:98
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::kendra::Model::Relevance::SetDuration
void SetDuration(Aws::String &&value)
Definition: Relevance.h:153
Aws::kendra::Model::Relevance::WithValueImportanceMap
Relevance & WithValueImportanceMap(const Aws::Map< Aws::String, int > &value)
Definition: Relevance.h:340
AWS_KENDRA_API
#define AWS_KENDRA_API
Definition: Kendra_EXPORTS.h:28
Aws::kendra::Model::Relevance::WithImportance
Relevance & WithImportance(int value)
Definition: Relevance.h:104
AWSMap.h
Aws::kendra::Model::Relevance
Definition: Relevance.h:37
Aws::kendra::Model::Relevance::WithValueImportanceMap
Relevance & WithValueImportanceMap(Aws::Map< Aws::String, int > &&value)
Definition: Relevance.h:353
Aws::kendra::Model::Relevance::RankOrderHasBeenSet
bool RankOrderHasBeenSet() const
Definition: Relevance.h:226
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19