AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
CitationLocation.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/DocumentCharLocation.h>
9#include <aws/bedrock-runtime/model/DocumentPageLocation.h>
10#include <aws/bedrock-runtime/model/DocumentChunkLocation.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace BedrockRuntime
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_BEDROCKRUNTIME_API CitationLocation() = default;
40 AWS_BEDROCKRUNTIME_API CitationLocation(Aws::Utils::Json::JsonView jsonValue);
41 AWS_BEDROCKRUNTIME_API CitationLocation& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const DocumentCharLocation& GetDocumentChar() const { return m_documentChar; }
51 inline bool DocumentCharHasBeenSet() const { return m_documentCharHasBeenSet; }
52 template<typename DocumentCharT = DocumentCharLocation>
53 void SetDocumentChar(DocumentCharT&& value) { m_documentCharHasBeenSet = true; m_documentChar = std::forward<DocumentCharT>(value); }
54 template<typename DocumentCharT = DocumentCharLocation>
55 CitationLocation& WithDocumentChar(DocumentCharT&& value) { SetDocumentChar(std::forward<DocumentCharT>(value)); return *this;}
57
59
63 inline const DocumentPageLocation& GetDocumentPage() const { return m_documentPage; }
64 inline bool DocumentPageHasBeenSet() const { return m_documentPageHasBeenSet; }
65 template<typename DocumentPageT = DocumentPageLocation>
66 void SetDocumentPage(DocumentPageT&& value) { m_documentPageHasBeenSet = true; m_documentPage = std::forward<DocumentPageT>(value); }
67 template<typename DocumentPageT = DocumentPageLocation>
68 CitationLocation& WithDocumentPage(DocumentPageT&& value) { SetDocumentPage(std::forward<DocumentPageT>(value)); return *this;}
70
72
77 inline const DocumentChunkLocation& GetDocumentChunk() const { return m_documentChunk; }
78 inline bool DocumentChunkHasBeenSet() const { return m_documentChunkHasBeenSet; }
79 template<typename DocumentChunkT = DocumentChunkLocation>
80 void SetDocumentChunk(DocumentChunkT&& value) { m_documentChunkHasBeenSet = true; m_documentChunk = std::forward<DocumentChunkT>(value); }
81 template<typename DocumentChunkT = DocumentChunkLocation>
82 CitationLocation& WithDocumentChunk(DocumentChunkT&& value) { SetDocumentChunk(std::forward<DocumentChunkT>(value)); return *this;}
84 private:
85
86 DocumentCharLocation m_documentChar;
87 bool m_documentCharHasBeenSet = false;
88
89 DocumentPageLocation m_documentPage;
90 bool m_documentPageHasBeenSet = false;
91
92 DocumentChunkLocation m_documentChunk;
93 bool m_documentChunkHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace BedrockRuntime
98} // namespace Aws
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
CitationLocation & WithDocumentChar(DocumentCharT &&value)
CitationLocation & WithDocumentPage(DocumentPageT &&value)
CitationLocation & WithDocumentChunk(DocumentChunkT &&value)
AWS_BEDROCKRUNTIME_API CitationLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
const DocumentChunkLocation & GetDocumentChunk() const
const DocumentPageLocation & GetDocumentPage() const
AWS_BEDROCKRUNTIME_API CitationLocation(Aws::Utils::Json::JsonView jsonValue)
const DocumentCharLocation & GetDocumentChar() const
void SetDocumentChunk(DocumentChunkT &&value)
AWS_BEDROCKRUNTIME_API CitationLocation()=default
Aws::Utils::Json::JsonValue JsonValue