AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
CitationsDelta.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/CitationSourceContentDelta.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
33 public:
34 AWS_BEDROCKRUNTIME_API CitationsDelta() = default;
37 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetTitle() const { return m_title; }
44 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
45 template <typename TitleT = Aws::String>
46 void SetTitle(TitleT&& value) {
47 m_titleHasBeenSet = true;
48 m_title = std::forward<TitleT>(value);
49 }
50 template <typename TitleT = Aws::String>
52 SetTitle(std::forward<TitleT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetSource() const { return m_source; }
63 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
64 template <typename SourceT = Aws::String>
65 void SetSource(SourceT&& value) {
66 m_sourceHasBeenSet = true;
67 m_source = std::forward<SourceT>(value);
68 }
69 template <typename SourceT = Aws::String>
71 SetSource(std::forward<SourceT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::Vector<CitationSourceContentDelta>& GetSourceContent() const { return m_sourceContent; }
82 inline bool SourceContentHasBeenSet() const { return m_sourceContentHasBeenSet; }
83 template <typename SourceContentT = Aws::Vector<CitationSourceContentDelta>>
85 m_sourceContentHasBeenSet = true;
86 m_sourceContent = std::forward<SourceContentT>(value);
87 }
88 template <typename SourceContentT = Aws::Vector<CitationSourceContentDelta>>
90 SetSourceContent(std::forward<SourceContentT>(value));
91 return *this;
92 }
93 template <typename SourceContentT = CitationSourceContentDelta>
95 m_sourceContentHasBeenSet = true;
96 m_sourceContent.emplace_back(std::forward<SourceContentT>(value));
97 return *this;
98 }
100
102
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
CitationsDelta & WithTitle(TitleT &&value)
const Aws::Vector< CitationSourceContentDelta > & GetSourceContent() const
AWS_BEDROCKRUNTIME_API CitationsDelta(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API CitationsDelta()=default
void SetSourceContent(SourceContentT &&value)
CitationsDelta & WithSource(SourceT &&value)
AWS_BEDROCKRUNTIME_API CitationsDelta & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
const CitationLocation & GetLocation() const
CitationsDelta & WithLocation(LocationT &&value)
const Aws::String & GetSource() const
CitationsDelta & WithSourceContent(SourceContentT &&value)
CitationsDelta & AddSourceContent(SourceContentT &&value)
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