AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Highlight.h
1
6#pragma once
7#include <aws/kendra/Kendra_EXPORTS.h>
8#include <aws/kendra/model/HighlightType.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace kendra
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_KENDRA_API Highlight() = default;
36 AWS_KENDRA_API Highlight(Aws::Utils::Json::JsonView jsonValue);
38 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline int GetBeginOffset() const { return m_beginOffset; }
47 inline bool BeginOffsetHasBeenSet() const { return m_beginOffsetHasBeenSet; }
48 inline void SetBeginOffset(int value) { m_beginOffsetHasBeenSet = true; m_beginOffset = value; }
49 inline Highlight& WithBeginOffset(int value) { SetBeginOffset(value); return *this;}
51
53
56 inline int GetEndOffset() const { return m_endOffset; }
57 inline bool EndOffsetHasBeenSet() const { return m_endOffsetHasBeenSet; }
58 inline void SetEndOffset(int value) { m_endOffsetHasBeenSet = true; m_endOffset = value; }
59 inline Highlight& WithEndOffset(int value) { SetEndOffset(value); return *this;}
61
63
67 inline bool GetTopAnswer() const { return m_topAnswer; }
68 inline bool TopAnswerHasBeenSet() const { return m_topAnswerHasBeenSet; }
69 inline void SetTopAnswer(bool value) { m_topAnswerHasBeenSet = true; m_topAnswer = value; }
70 inline Highlight& WithTopAnswer(bool value) { SetTopAnswer(value); return *this;}
72
74
77 inline HighlightType GetType() const { return m_type; }
78 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
79 inline void SetType(HighlightType value) { m_typeHasBeenSet = true; m_type = value; }
80 inline Highlight& WithType(HighlightType value) { SetType(value); return *this;}
82 private:
83
84 int m_beginOffset{0};
85 bool m_beginOffsetHasBeenSet = false;
86
87 int m_endOffset{0};
88 bool m_endOffsetHasBeenSet = false;
89
90 bool m_topAnswer{false};
91 bool m_topAnswerHasBeenSet = false;
92
94 bool m_typeHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace kendra
99} // namespace Aws
Highlight & WithEndOffset(int value)
Definition Highlight.h:59
AWS_KENDRA_API Highlight()=default
bool TopAnswerHasBeenSet() const
Definition Highlight.h:68
Highlight & WithType(HighlightType value)
Definition Highlight.h:80
Highlight & WithBeginOffset(int value)
Definition Highlight.h:49
bool EndOffsetHasBeenSet() const
Definition Highlight.h:57
AWS_KENDRA_API Highlight & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetBeginOffset(int value)
Definition Highlight.h:48
void SetType(HighlightType value)
Definition Highlight.h:79
bool BeginOffsetHasBeenSet() const
Definition Highlight.h:47
Highlight & WithTopAnswer(bool value)
Definition Highlight.h:70
AWS_KENDRA_API Highlight(Aws::Utils::Json::JsonView jsonValue)
void SetTopAnswer(bool value)
Definition Highlight.h:69
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
HighlightType GetType() const
Definition Highlight.h:77
void SetEndOffset(int value)
Definition Highlight.h:58
Aws::Utils::Json::JsonValue JsonValue