AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
DocumentBlock.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/DocumentFormat.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/bedrock-runtime/model/DocumentSource.h>
11#include <aws/bedrock-runtime/model/CitationsConfig.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace BedrockRuntime
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_BEDROCKRUNTIME_API DocumentBlock() = default;
38 AWS_BEDROCKRUNTIME_API DocumentBlock(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BEDROCKRUNTIME_API DocumentBlock& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline DocumentFormat GetFormat() const { return m_format; }
48 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
49 inline void SetFormat(DocumentFormat value) { m_formatHasBeenSet = true; m_format = value; }
50 inline DocumentBlock& WithFormat(DocumentFormat value) { SetFormat(value); return *this;}
52
54
63 inline const Aws::String& GetName() const { return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 template<typename NameT = Aws::String>
66 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
67 template<typename NameT = Aws::String>
68 DocumentBlock& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
70
72
75 inline const DocumentSource& GetSource() const { return m_source; }
76 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
77 template<typename SourceT = DocumentSource>
78 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
79 template<typename SourceT = DocumentSource>
80 DocumentBlock& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
82
84
88 inline const Aws::String& GetContext() const { return m_context; }
89 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
90 template<typename ContextT = Aws::String>
91 void SetContext(ContextT&& value) { m_contextHasBeenSet = true; m_context = std::forward<ContextT>(value); }
92 template<typename ContextT = Aws::String>
93 DocumentBlock& WithContext(ContextT&& value) { SetContext(std::forward<ContextT>(value)); return *this;}
95
97
101 inline const CitationsConfig& GetCitations() const { return m_citations; }
102 inline bool CitationsHasBeenSet() const { return m_citationsHasBeenSet; }
103 template<typename CitationsT = CitationsConfig>
104 void SetCitations(CitationsT&& value) { m_citationsHasBeenSet = true; m_citations = std::forward<CitationsT>(value); }
105 template<typename CitationsT = CitationsConfig>
106 DocumentBlock& WithCitations(CitationsT&& value) { SetCitations(std::forward<CitationsT>(value)); return *this;}
108 private:
109
111 bool m_formatHasBeenSet = false;
112
113 Aws::String m_name;
114 bool m_nameHasBeenSet = false;
115
116 DocumentSource m_source;
117 bool m_sourceHasBeenSet = false;
118
119 Aws::String m_context;
120 bool m_contextHasBeenSet = false;
121
122 CitationsConfig m_citations;
123 bool m_citationsHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace BedrockRuntime
128} // namespace Aws
DocumentBlock & WithFormat(DocumentFormat value)
const Aws::String & GetName() const
DocumentBlock & WithContext(ContextT &&value)
DocumentBlock & WithSource(SourceT &&value)
AWS_BEDROCKRUNTIME_API DocumentBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
DocumentBlock & WithCitations(CitationsT &&value)
const CitationsConfig & GetCitations() const
AWS_BEDROCKRUNTIME_API DocumentBlock(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API DocumentBlock()=default
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFormat(DocumentFormat value)
const DocumentSource & GetSource() const
DocumentBlock & WithName(NameT &&value)
const Aws::String & GetContext() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue