AWS SDK for C++  1.9.159
AWS SDK for C++
Facet.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace kendra
22 {
23 namespace Model
24 {
25 
32  {
33  public:
34  Facet();
38 
39 
43  inline const Aws::String& GetDocumentAttributeKey() const{ return m_documentAttributeKey; }
44 
48  inline bool DocumentAttributeKeyHasBeenSet() const { return m_documentAttributeKeyHasBeenSet; }
49 
53  inline void SetDocumentAttributeKey(const Aws::String& value) { m_documentAttributeKeyHasBeenSet = true; m_documentAttributeKey = value; }
54 
58  inline void SetDocumentAttributeKey(Aws::String&& value) { m_documentAttributeKeyHasBeenSet = true; m_documentAttributeKey = std::move(value); }
59 
63  inline void SetDocumentAttributeKey(const char* value) { m_documentAttributeKeyHasBeenSet = true; m_documentAttributeKey.assign(value); }
64 
68  inline Facet& WithDocumentAttributeKey(const Aws::String& value) { SetDocumentAttributeKey(value); return *this;}
69 
73  inline Facet& WithDocumentAttributeKey(Aws::String&& value) { SetDocumentAttributeKey(std::move(value)); return *this;}
74 
78  inline Facet& WithDocumentAttributeKey(const char* value) { SetDocumentAttributeKey(value); return *this;}
79 
80  private:
81 
82  Aws::String m_documentAttributeKey;
83  bool m_documentAttributeKeyHasBeenSet;
84  };
85 
86 } // namespace Model
87 } // namespace kendra
88 } // namespace Aws
Aws::kendra::Model::Facet::GetDocumentAttributeKey
const Aws::String & GetDocumentAttributeKey() const
Definition: Facet.h:43
Aws::kendra::Model::Facet::DocumentAttributeKeyHasBeenSet
bool DocumentAttributeKeyHasBeenSet() const
Definition: Facet.h:48
Aws::kendra::Model::Facet::Facet
Facet(Aws::Utils::Json::JsonView jsonValue)
Aws::kendra::Model::Facet::WithDocumentAttributeKey
Facet & WithDocumentAttributeKey(const Aws::String &value)
Definition: Facet.h:68
Kendra_EXPORTS.h
Aws::kendra::Model::Facet::SetDocumentAttributeKey
void SetDocumentAttributeKey(const Aws::String &value)
Definition: Facet.h:53
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::kendra::Model::Facet::WithDocumentAttributeKey
Facet & WithDocumentAttributeKey(const char *value)
Definition: Facet.h:78
Aws::kendra::Model::Facet::WithDocumentAttributeKey
Facet & WithDocumentAttributeKey(Aws::String &&value)
Definition: Facet.h:73
Aws::kendra::Model::Facet::Facet
Facet()
Aws::kendra::Model::Facet::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::kendra::Model::Facet::SetDocumentAttributeKey
void SetDocumentAttributeKey(const char *value)
Definition: Facet.h:63
Aws::kendra::Model::Facet::SetDocumentAttributeKey
void SetDocumentAttributeKey(Aws::String &&value)
Definition: Facet.h:58
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::kendra::Model::Facet::operator=
Facet & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::kendra::Model::Facet
Definition: Facet.h:32
AWS_KENDRA_API
#define AWS_KENDRA_API
Definition: Kendra_EXPORTS.h:28