AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
IndexStatistics.h
1
6#pragma once
7#include <aws/kendra/Kendra_EXPORTS.h>
8#include <aws/kendra/model/FaqStatistics.h>
9#include <aws/kendra/model/TextDocumentStatistics.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace kendra {
21namespace Model {
22
30 public:
31 AWS_KENDRA_API IndexStatistics() = default;
34 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const FaqStatistics& GetFaqStatistics() const { return m_faqStatistics; }
41 inline bool FaqStatisticsHasBeenSet() const { return m_faqStatisticsHasBeenSet; }
42 template <typename FaqStatisticsT = FaqStatistics>
43 void SetFaqStatistics(FaqStatisticsT&& value) {
44 m_faqStatisticsHasBeenSet = true;
45 m_faqStatistics = std::forward<FaqStatisticsT>(value);
46 }
47 template <typename FaqStatisticsT = FaqStatistics>
48 IndexStatistics& WithFaqStatistics(FaqStatisticsT&& value) {
49 SetFaqStatistics(std::forward<FaqStatisticsT>(value));
50 return *this;
51 }
53
55
58 inline const TextDocumentStatistics& GetTextDocumentStatistics() const { return m_textDocumentStatistics; }
59 inline bool TextDocumentStatisticsHasBeenSet() const { return m_textDocumentStatisticsHasBeenSet; }
60 template <typename TextDocumentStatisticsT = TextDocumentStatistics>
61 void SetTextDocumentStatistics(TextDocumentStatisticsT&& value) {
62 m_textDocumentStatisticsHasBeenSet = true;
63 m_textDocumentStatistics = std::forward<TextDocumentStatisticsT>(value);
64 }
65 template <typename TextDocumentStatisticsT = TextDocumentStatistics>
66 IndexStatistics& WithTextDocumentStatistics(TextDocumentStatisticsT&& value) {
67 SetTextDocumentStatistics(std::forward<TextDocumentStatisticsT>(value));
68 return *this;
69 }
71 private:
72 FaqStatistics m_faqStatistics;
73 bool m_faqStatisticsHasBeenSet = false;
74
75 TextDocumentStatistics m_textDocumentStatistics;
76 bool m_textDocumentStatisticsHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace kendra
81} // namespace Aws
void SetTextDocumentStatistics(TextDocumentStatisticsT &&value)
const TextDocumentStatistics & GetTextDocumentStatistics() const
AWS_KENDRA_API IndexStatistics & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_KENDRA_API IndexStatistics()=default
IndexStatistics & WithTextDocumentStatistics(TextDocumentStatisticsT &&value)
const FaqStatistics & GetFaqStatistics() const
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFaqStatistics(FaqStatisticsT &&value)
AWS_KENDRA_API IndexStatistics(Aws::Utils::Json::JsonView jsonValue)
IndexStatistics & WithFaqStatistics(FaqStatisticsT &&value)
Aws::Utils::Json::JsonValue JsonValue