AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
DocumentMetadataConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kendra/Kendra_EXPORTS.h>
9#include <aws/kendra/model/DocumentAttributeValueType.h>
10#include <aws/kendra/model/Relevance.h>
11#include <aws/kendra/model/Search.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace kendra {
23namespace Model {
24
32 public:
33 AWS_KENDRA_API DocumentMetadataConfiguration() = default;
36 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline DocumentAttributeValueType GetType() const { return m_type; }
61 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
63 m_typeHasBeenSet = true;
64 m_type = value;
65 }
67 SetType(value);
68 return *this;
69 }
71
73
77 inline const Relevance& GetRelevance() const { return m_relevance; }
78 inline bool RelevanceHasBeenSet() const { return m_relevanceHasBeenSet; }
79 template <typename RelevanceT = Relevance>
80 void SetRelevance(RelevanceT&& value) {
81 m_relevanceHasBeenSet = true;
82 m_relevance = std::forward<RelevanceT>(value);
83 }
84 template <typename RelevanceT = Relevance>
86 SetRelevance(std::forward<RelevanceT>(value));
87 return *this;
88 }
90
92
95 inline const Search& GetSearch() const { return m_search; }
96 inline bool SearchHasBeenSet() const { return m_searchHasBeenSet; }
97 template <typename SearchT = Search>
98 void SetSearch(SearchT&& value) {
99 m_searchHasBeenSet = true;
100 m_search = std::forward<SearchT>(value);
101 }
102 template <typename SearchT = Search>
104 SetSearch(std::forward<SearchT>(value));
105 return *this;
106 }
108 private:
109 Aws::String m_name;
110
112
113 Relevance m_relevance;
114
115 Search m_search;
116 bool m_nameHasBeenSet = false;
117 bool m_typeHasBeenSet = false;
118 bool m_relevanceHasBeenSet = false;
119 bool m_searchHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace kendra
124} // 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