AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
DocumentMetadataConfiguration.h
1
6#pragma once
7#include <aws/kendra/Kendra_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kendra/model/DocumentAttributeValueType.h>
10#include <aws/kendra/model/Relevance.h>
11#include <aws/kendra/model/Search.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 kendra
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_KENDRA_API DocumentMetadataConfiguration() = default;
41 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 DocumentMetadataConfiguration& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
55
57
60 inline DocumentAttributeValueType GetType() const { return m_type; }
61 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
62 inline void SetType(DocumentAttributeValueType value) { m_typeHasBeenSet = true; m_type = value; }
65
67
71 inline const Relevance& GetRelevance() const { return m_relevance; }
72 inline bool RelevanceHasBeenSet() const { return m_relevanceHasBeenSet; }
73 template<typename RelevanceT = Relevance>
74 void SetRelevance(RelevanceT&& value) { m_relevanceHasBeenSet = true; m_relevance = std::forward<RelevanceT>(value); }
75 template<typename RelevanceT = Relevance>
76 DocumentMetadataConfiguration& WithRelevance(RelevanceT&& value) { SetRelevance(std::forward<RelevanceT>(value)); return *this;}
78
80
83 inline const Search& GetSearch() const { return m_search; }
84 inline bool SearchHasBeenSet() const { return m_searchHasBeenSet; }
85 template<typename SearchT = Search>
86 void SetSearch(SearchT&& value) { m_searchHasBeenSet = true; m_search = std::forward<SearchT>(value); }
87 template<typename SearchT = Search>
88 DocumentMetadataConfiguration& WithSearch(SearchT&& value) { SetSearch(std::forward<SearchT>(value)); return *this;}
90 private:
91
92 Aws::String m_name;
93 bool m_nameHasBeenSet = false;
94
96 bool m_typeHasBeenSet = false;
97
98 Relevance m_relevance;
99 bool m_relevanceHasBeenSet = false;
100
101 Search m_search;
102 bool m_searchHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace kendra
107} // namespace Aws
AWS_KENDRA_API DocumentMetadataConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
DocumentMetadataConfiguration & WithName(NameT &&value)
DocumentMetadataConfiguration & WithSearch(SearchT &&value)
AWS_KENDRA_API DocumentMetadataConfiguration()=default
AWS_KENDRA_API DocumentMetadataConfiguration(Aws::Utils::Json::JsonView jsonValue)
DocumentMetadataConfiguration & WithType(DocumentAttributeValueType value)
DocumentMetadataConfiguration & WithRelevance(RelevanceT &&value)
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue