AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DocumentChunkLocation.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 DocumentChunkLocation() = default;
31 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
32
34
38 inline int GetDocumentIndex() const { return m_documentIndex; }
39 inline bool DocumentIndexHasBeenSet() const { return m_documentIndexHasBeenSet; }
40 inline void SetDocumentIndex(int value) {
41 m_documentIndexHasBeenSet = true;
42 m_documentIndex = value;
43 }
45 SetDocumentIndex(value);
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 DocumentChunkLocation& WithStart(int value) {
62 SetStart(value);
63 return *this;
64 }
66
68
72 inline int GetEnd() const { return m_end; }
73 inline bool EndHasBeenSet() const { return m_endHasBeenSet; }
74 inline void SetEnd(int value) {
75 m_endHasBeenSet = true;
76 m_end = value;
77 }
78 inline DocumentChunkLocation& WithEnd(int value) {
79 SetEnd(value);
80 return *this;
81 }
83 private:
84 int m_documentIndex{0};
85
86 int m_start{0};
87
88 int m_end{0};
89 bool m_documentIndexHasBeenSet = false;
90 bool m_startHasBeenSet = false;
91 bool m_endHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace BedrockRuntime
96} // namespace Aws
AWS_BEDROCKRUNTIME_API DocumentChunkLocation()=default
AWS_BEDROCKRUNTIME_API DocumentChunkLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
DocumentChunkLocation & WithDocumentIndex(int value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKRUNTIME_API DocumentChunkLocation(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue