AWS SDK for C++  1.9.155
AWS SDK for C++
DocumentRelevanceConfiguration.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 
34  {
35  public:
40 
41 
46  inline const Aws::String& GetName() const{ return m_name; }
47 
52  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 
58  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
59 
64  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 
70  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
71 
76  inline DocumentRelevanceConfiguration& WithName(const Aws::String& value) { SetName(value); return *this;}
77 
82  inline DocumentRelevanceConfiguration& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
83 
88  inline DocumentRelevanceConfiguration& WithName(const char* value) { SetName(value); return *this;}
89 
90 
91 
92  inline const Relevance& GetRelevance() const{ return m_relevance; }
93 
94 
95  inline bool RelevanceHasBeenSet() const { return m_relevanceHasBeenSet; }
96 
97 
98  inline void SetRelevance(const Relevance& value) { m_relevanceHasBeenSet = true; m_relevance = value; }
99 
100 
101  inline void SetRelevance(Relevance&& value) { m_relevanceHasBeenSet = true; m_relevance = std::move(value); }
102 
103 
104  inline DocumentRelevanceConfiguration& WithRelevance(const Relevance& value) { SetRelevance(value); return *this;}
105 
106 
107  inline DocumentRelevanceConfiguration& WithRelevance(Relevance&& value) { SetRelevance(std::move(value)); return *this;}
108 
109  private:
110 
111  Aws::String m_name;
112  bool m_nameHasBeenSet;
113 
114  Relevance m_relevance;
115  bool m_relevanceHasBeenSet;
116  };
117 
118 } // namespace Model
119 } // namespace kendra
120 } // namespace Aws
Aws::kendra::Model::DocumentRelevanceConfiguration::SetName
void SetName(const char *value)
Definition: DocumentRelevanceConfiguration.h:70
Aws::kendra::Model::DocumentRelevanceConfiguration::SetRelevance
void SetRelevance(const Relevance &value)
Definition: DocumentRelevanceConfiguration.h:98
Aws::kendra::Model::DocumentRelevanceConfiguration::DocumentRelevanceConfiguration
DocumentRelevanceConfiguration(Aws::Utils::Json::JsonView jsonValue)
Aws::kendra::Model::DocumentRelevanceConfiguration::GetName
const Aws::String & GetName() const
Definition: DocumentRelevanceConfiguration.h:46
Aws::kendra::Model::DocumentRelevanceConfiguration::WithName
DocumentRelevanceConfiguration & WithName(Aws::String &&value)
Definition: DocumentRelevanceConfiguration.h:82
Aws::kendra::Model::DocumentRelevanceConfiguration::WithRelevance
DocumentRelevanceConfiguration & WithRelevance(const Relevance &value)
Definition: DocumentRelevanceConfiguration.h:104
Aws::kendra::Model::DocumentRelevanceConfiguration::GetRelevance
const Relevance & GetRelevance() const
Definition: DocumentRelevanceConfiguration.h:92
Aws::kendra::Model::DocumentRelevanceConfiguration::WithName
DocumentRelevanceConfiguration & WithName(const char *value)
Definition: DocumentRelevanceConfiguration.h:88
Aws::kendra::Model::DocumentRelevanceConfiguration::WithName
DocumentRelevanceConfiguration & WithName(const Aws::String &value)
Definition: DocumentRelevanceConfiguration.h:76
Kendra_EXPORTS.h
Relevance.h
Aws::kendra::Model::DocumentRelevanceConfiguration::RelevanceHasBeenSet
bool RelevanceHasBeenSet() const
Definition: DocumentRelevanceConfiguration.h:95
Aws::kendra::Model::DocumentRelevanceConfiguration::SetName
void SetName(Aws::String &&value)
Definition: DocumentRelevanceConfiguration.h:64
Aws::kendra::Model::DocumentRelevanceConfiguration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::kendra::Model::DocumentRelevanceConfiguration::SetName
void SetName(const Aws::String &value)
Definition: DocumentRelevanceConfiguration.h:58
Aws::kendra::Model::DocumentRelevanceConfiguration::WithRelevance
DocumentRelevanceConfiguration & WithRelevance(Relevance &&value)
Definition: DocumentRelevanceConfiguration.h:107
Aws::kendra::Model::DocumentRelevanceConfiguration::NameHasBeenSet
bool NameHasBeenSet() const
Definition: DocumentRelevanceConfiguration.h:52
Aws::kendra::Model::DocumentRelevanceConfiguration::SetRelevance
void SetRelevance(Relevance &&value)
Definition: DocumentRelevanceConfiguration.h:101
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::kendra::Model::DocumentRelevanceConfiguration
Definition: DocumentRelevanceConfiguration.h:34
Aws::kendra::Model::DocumentRelevanceConfiguration::operator=
DocumentRelevanceConfiguration & operator=(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::Model::DocumentRelevanceConfiguration::DocumentRelevanceConfiguration
DocumentRelevanceConfiguration()
AWS_KENDRA_API
#define AWS_KENDRA_API
Definition: Kendra_EXPORTS.h:28
Aws::kendra::Model::Relevance
Definition: Relevance.h:37