AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DocumentCharLocation.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 DocumentCharLocation() = 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
54 inline int GetStart() const { return m_start; }
55 inline bool StartHasBeenSet() const { return m_startHasBeenSet; }
56 inline void SetStart(int value) {
57 m_startHasBeenSet = true;
58 m_start = value;
59 }
60 inline DocumentCharLocation& WithStart(int value) {
61 SetStart(value);
62 return *this;
63 }
65
67
70 inline int GetEnd() const { return m_end; }
71 inline bool EndHasBeenSet() const { return m_endHasBeenSet; }
72 inline void SetEnd(int value) {
73 m_endHasBeenSet = true;
74 m_end = value;
75 }
76 inline DocumentCharLocation& WithEnd(int value) {
77 SetEnd(value);
78 return *this;
79 }
81 private:
82 int m_documentIndex{0};
83
84 int m_start{0};
85
86 int m_end{0};
87 bool m_documentIndexHasBeenSet = false;
88 bool m_startHasBeenSet = false;
89 bool m_endHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace BedrockRuntime
94} // namespace Aws
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKRUNTIME_API DocumentCharLocation()=default
DocumentCharLocation & WithDocumentIndex(int value)
AWS_BEDROCKRUNTIME_API DocumentCharLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API DocumentCharLocation(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue