AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
Citation.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/CitationLocation.h>
9#include <aws/bedrock-runtime/model/CitationSourceContent.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockRuntime {
23namespace Model {
24
33class Citation {
34 public:
35 AWS_BEDROCKRUNTIME_API Citation() = default;
38 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetTitle() const { return m_title; }
45 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
46 template <typename TitleT = Aws::String>
47 void SetTitle(TitleT&& value) {
48 m_titleHasBeenSet = true;
49 m_title = std::forward<TitleT>(value);
50 }
51 template <typename TitleT = Aws::String>
53 SetTitle(std::forward<TitleT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetSource() const { return m_source; }
64 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
65 template <typename SourceT = Aws::String>
66 void SetSource(SourceT&& value) {
67 m_sourceHasBeenSet = true;
68 m_source = std::forward<SourceT>(value);
69 }
70 template <typename SourceT = Aws::String>
72 SetSource(std::forward<SourceT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::Vector<CitationSourceContent>& GetSourceContent() const { return m_sourceContent; }
83 inline bool SourceContentHasBeenSet() const { return m_sourceContentHasBeenSet; }
84 template <typename SourceContentT = Aws::Vector<CitationSourceContent>>
86 m_sourceContentHasBeenSet = true;
87 m_sourceContent = std::forward<SourceContentT>(value);
88 }
89 template <typename SourceContentT = Aws::Vector<CitationSourceContent>>
91 SetSourceContent(std::forward<SourceContentT>(value));
92 return *this;
93 }
94 template <typename SourceContentT = CitationSourceContent>
96 m_sourceContentHasBeenSet = true;
97 m_sourceContent.emplace_back(std::forward<SourceContentT>(value));
98 return *this;
99 }
101
103
107 inline const CitationLocation& GetLocation() const { return m_location; }
108 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
109 template <typename LocationT = CitationLocation>
110 void SetLocation(LocationT&& value) {
111 m_locationHasBeenSet = true;
112 m_location = std::forward<LocationT>(value);
113 }
114 template <typename LocationT = CitationLocation>
116 SetLocation(std::forward<LocationT>(value));
117 return *this;
118 }
120 private:
121 Aws::String m_title;
122
123 Aws::String m_source;
124
126
127 CitationLocation m_location;
128 bool m_titleHasBeenSet = false;
129 bool m_sourceHasBeenSet = false;
130 bool m_sourceContentHasBeenSet = false;
131 bool m_locationHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace BedrockRuntime
136} // namespace Aws
Citation & WithSource(SourceT &&value)
Definition Citation.h:71
void SetSource(SourceT &&value)
Definition Citation.h:66
void SetSourceContent(SourceContentT &&value)
Definition Citation.h:85
AWS_BEDROCKRUNTIME_API Citation()=default
const Aws::String & GetTitle() const
Definition Citation.h:44
AWS_BEDROCKRUNTIME_API Citation(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< CitationSourceContent > & GetSourceContent() const
Definition Citation.h:82
Citation & WithTitle(TitleT &&value)
Definition Citation.h:52
void SetLocation(LocationT &&value)
Definition Citation.h:110
Citation & WithLocation(LocationT &&value)
Definition Citation.h:115
Citation & WithSourceContent(SourceContentT &&value)
Definition Citation.h:90
const Aws::String & GetSource() const
Definition Citation.h:63
AWS_BEDROCKRUNTIME_API Citation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
Citation & AddSourceContent(SourceContentT &&value)
Definition Citation.h:95
void SetTitle(TitleT &&value)
Definition Citation.h:47
const CitationLocation & GetLocation() const
Definition Citation.h:107
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue