AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
SearchResultLocation.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace BedrockRuntime {
17namespace Model {
18
27 public:
28 AWS_BEDROCKRUNTIME_API SearchResultLocation() = default;
31 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
32
34
38 inline int GetSearchResultIndex() const { return m_searchResultIndex; }
39 inline bool SearchResultIndexHasBeenSet() const { return m_searchResultIndexHasBeenSet; }
40 inline void SetSearchResultIndex(int value) {
41 m_searchResultIndexHasBeenSet = true;
42 m_searchResultIndex = value;
43 }
46 return *this;
47 }
49
51
55 inline int GetStart() const { return m_start; }
56 inline bool StartHasBeenSet() const { return m_startHasBeenSet; }
57 inline void SetStart(int value) {
58 m_startHasBeenSet = true;
59 m_start = value;
60 }
61 inline SearchResultLocation& WithStart(int value) {
62 SetStart(value);
63 return *this;
64 }
66
68
71 inline int GetEnd() const { return m_end; }
72 inline bool EndHasBeenSet() const { return m_endHasBeenSet; }
73 inline void SetEnd(int value) {
74 m_endHasBeenSet = true;
75 m_end = value;
76 }
77 inline SearchResultLocation& WithEnd(int value) {
78 SetEnd(value);
79 return *this;
80 }
82 private:
83 int m_searchResultIndex{0};
84
85 int m_start{0};
86
87 int m_end{0};
88 bool m_searchResultIndexHasBeenSet = false;
89 bool m_startHasBeenSet = false;
90 bool m_endHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace BedrockRuntime
95} // namespace Aws
AWS_BEDROCKRUNTIME_API SearchResultLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API SearchResultLocation()=default
SearchResultLocation & WithSearchResultIndex(int value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKRUNTIME_API SearchResultLocation(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue