AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
Citation.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/bedrock-runtime/model/CitationLocation.h>
11#include <aws/bedrock-runtime/model/CitationSourceContent.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
38 {
39 public:
40 AWS_BEDROCKRUNTIME_API Citation() = default;
41 AWS_BEDROCKRUNTIME_API Citation(Aws::Utils::Json::JsonView jsonValue);
42 AWS_BEDROCKRUNTIME_API Citation& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetTitle() const { return m_title; }
51 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
52 template<typename TitleT = Aws::String>
53 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
54 template<typename TitleT = Aws::String>
55 Citation& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
57
59
63 inline const Aws::Vector<CitationSourceContent>& GetSourceContent() const { return m_sourceContent; }
64 inline bool SourceContentHasBeenSet() const { return m_sourceContentHasBeenSet; }
65 template<typename SourceContentT = Aws::Vector<CitationSourceContent>>
66 void SetSourceContent(SourceContentT&& value) { m_sourceContentHasBeenSet = true; m_sourceContent = std::forward<SourceContentT>(value); }
67 template<typename SourceContentT = Aws::Vector<CitationSourceContent>>
68 Citation& WithSourceContent(SourceContentT&& value) { SetSourceContent(std::forward<SourceContentT>(value)); return *this;}
69 template<typename SourceContentT = CitationSourceContent>
70 Citation& AddSourceContent(SourceContentT&& value) { m_sourceContentHasBeenSet = true; m_sourceContent.emplace_back(std::forward<SourceContentT>(value)); return *this; }
72
74
78 inline const CitationLocation& GetLocation() const { return m_location; }
79 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
80 template<typename LocationT = CitationLocation>
81 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
82 template<typename LocationT = CitationLocation>
83 Citation& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
85 private:
86
87 Aws::String m_title;
88 bool m_titleHasBeenSet = false;
89
91 bool m_sourceContentHasBeenSet = false;
92
93 CitationLocation m_location;
94 bool m_locationHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace BedrockRuntime
99} // namespace Aws
void SetSourceContent(SourceContentT &&value)
Definition Citation.h:66
AWS_BEDROCKRUNTIME_API Citation()=default
const Aws::String & GetTitle() const
Definition Citation.h:50
AWS_BEDROCKRUNTIME_API Citation(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< CitationSourceContent > & GetSourceContent() const
Definition Citation.h:63
Citation & WithTitle(TitleT &&value)
Definition Citation.h:55
void SetLocation(LocationT &&value)
Definition Citation.h:81
Citation & WithLocation(LocationT &&value)
Definition Citation.h:83
Citation & WithSourceContent(SourceContentT &&value)
Definition Citation.h:68
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:70
void SetTitle(TitleT &&value)
Definition Citation.h:53
const CitationLocation & GetLocation() const
Definition Citation.h:78
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue