AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
CitationsDelta.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/CitationSourceContentDelta.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
37 {
38 public:
39 AWS_BEDROCKRUNTIME_API CitationsDelta() = default;
40 AWS_BEDROCKRUNTIME_API CitationsDelta(Aws::Utils::Json::JsonView jsonValue);
41 AWS_BEDROCKRUNTIME_API CitationsDelta& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetTitle() const { return m_title; }
50 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
51 template<typename TitleT = Aws::String>
52 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
53 template<typename TitleT = Aws::String>
54 CitationsDelta& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
56
58
62 inline const Aws::Vector<CitationSourceContentDelta>& GetSourceContent() const { return m_sourceContent; }
63 inline bool SourceContentHasBeenSet() const { return m_sourceContentHasBeenSet; }
64 template<typename SourceContentT = Aws::Vector<CitationSourceContentDelta>>
65 void SetSourceContent(SourceContentT&& value) { m_sourceContentHasBeenSet = true; m_sourceContent = std::forward<SourceContentT>(value); }
66 template<typename SourceContentT = Aws::Vector<CitationSourceContentDelta>>
67 CitationsDelta& WithSourceContent(SourceContentT&& value) { SetSourceContent(std::forward<SourceContentT>(value)); return *this;}
68 template<typename SourceContentT = CitationSourceContentDelta>
69 CitationsDelta& AddSourceContent(SourceContentT&& value) { m_sourceContentHasBeenSet = true; m_sourceContent.emplace_back(std::forward<SourceContentT>(value)); return *this; }
71
73
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 CitationsDelta& 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
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)
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)
CitationsDelta & WithSourceContent(SourceContentT &&value)
CitationsDelta & AddSourceContent(SourceContentT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue