AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Citation.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/GeneratedResponsePart.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/bedrock-agent-runtime/model/RetrievedReference.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace BedrockAgentRuntime
24{
25namespace Model
26{
27
41 {
42 public:
43 AWS_BEDROCKAGENTRUNTIME_API Citation();
44 AWS_BEDROCKAGENTRUNTIME_API Citation(Aws::Utils::Json::JsonView jsonValue);
45 AWS_BEDROCKAGENTRUNTIME_API Citation& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const GeneratedResponsePart& GetGeneratedResponsePart() const{ return m_generatedResponsePart; }
54 inline bool GeneratedResponsePartHasBeenSet() const { return m_generatedResponsePartHasBeenSet; }
55 inline void SetGeneratedResponsePart(const GeneratedResponsePart& value) { m_generatedResponsePartHasBeenSet = true; m_generatedResponsePart = value; }
56 inline void SetGeneratedResponsePart(GeneratedResponsePart&& value) { m_generatedResponsePartHasBeenSet = true; m_generatedResponsePart = std::move(value); }
58 inline Citation& WithGeneratedResponsePart(GeneratedResponsePart&& value) { SetGeneratedResponsePart(std::move(value)); return *this;}
60
62
65 inline const Aws::Vector<RetrievedReference>& GetRetrievedReferences() const{ return m_retrievedReferences; }
66 inline bool RetrievedReferencesHasBeenSet() const { return m_retrievedReferencesHasBeenSet; }
67 inline void SetRetrievedReferences(const Aws::Vector<RetrievedReference>& value) { m_retrievedReferencesHasBeenSet = true; m_retrievedReferences = value; }
68 inline void SetRetrievedReferences(Aws::Vector<RetrievedReference>&& value) { m_retrievedReferencesHasBeenSet = true; m_retrievedReferences = std::move(value); }
71 inline Citation& AddRetrievedReferences(const RetrievedReference& value) { m_retrievedReferencesHasBeenSet = true; m_retrievedReferences.push_back(value); return *this; }
72 inline Citation& AddRetrievedReferences(RetrievedReference&& value) { m_retrievedReferencesHasBeenSet = true; m_retrievedReferences.push_back(std::move(value)); return *this; }
74 private:
75
76 GeneratedResponsePart m_generatedResponsePart;
77 bool m_generatedResponsePartHasBeenSet = false;
78
79 Aws::Vector<RetrievedReference> m_retrievedReferences;
80 bool m_retrievedReferencesHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace BedrockAgentRuntime
85} // namespace Aws
Citation & WithGeneratedResponsePart(const GeneratedResponsePart &value)
Definition Citation.h:57
Citation & WithRetrievedReferences(const Aws::Vector< RetrievedReference > &value)
Definition Citation.h:69
AWS_BEDROCKAGENTRUNTIME_API Citation()
void SetGeneratedResponsePart(const GeneratedResponsePart &value)
Definition Citation.h:55
const Aws::Vector< RetrievedReference > & GetRetrievedReferences() const
Definition Citation.h:65
void SetRetrievedReferences(const Aws::Vector< RetrievedReference > &value)
Definition Citation.h:67
void SetGeneratedResponsePart(GeneratedResponsePart &&value)
Definition Citation.h:56
AWS_BEDROCKAGENTRUNTIME_API Citation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
const GeneratedResponsePart & GetGeneratedResponsePart() const
Definition Citation.h:53
Citation & AddRetrievedReferences(const RetrievedReference &value)
Definition Citation.h:71
Citation & WithGeneratedResponsePart(GeneratedResponsePart &&value)
Definition Citation.h:58
AWS_BEDROCKAGENTRUNTIME_API Citation(Aws::Utils::Json::JsonView jsonValue)
Citation & AddRetrievedReferences(RetrievedReference &&value)
Definition Citation.h:72
Citation & WithRetrievedReferences(Aws::Vector< RetrievedReference > &&value)
Definition Citation.h:70
void SetRetrievedReferences(Aws::Vector< RetrievedReference > &&value)
Definition Citation.h:68
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue