AWS SDK for C++

AWS SDK for C++ Version 1.11.849

Loading...
Searching...
No Matches
AgenticRetrieveCitation.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/AgenticRetrieveCitationReference.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockAgentRuntime {
21namespace Model {
22
30 public:
31 AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveCitation() = default;
34 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline int GetEndIndex() const { return m_endIndex; }
41 inline bool EndIndexHasBeenSet() const { return m_endIndexHasBeenSet; }
42 inline void SetEndIndex(int value) {
43 m_endIndexHasBeenSet = true;
44 m_endIndex = value;
45 }
47 SetEndIndex(value);
48 return *this;
49 }
51
53
56 inline const Aws::Vector<AgenticRetrieveCitationReference>& GetReferences() const { return m_references; }
57 inline bool ReferencesHasBeenSet() const { return m_referencesHasBeenSet; }
58 template <typename ReferencesT = Aws::Vector<AgenticRetrieveCitationReference>>
59 void SetReferences(ReferencesT&& value) {
60 m_referencesHasBeenSet = true;
61 m_references = std::forward<ReferencesT>(value);
62 }
63 template <typename ReferencesT = Aws::Vector<AgenticRetrieveCitationReference>>
65 SetReferences(std::forward<ReferencesT>(value));
66 return *this;
67 }
68 template <typename ReferencesT = AgenticRetrieveCitationReference>
70 m_referencesHasBeenSet = true;
71 m_references.emplace_back(std::forward<ReferencesT>(value));
72 return *this;
73 }
75
77
80 inline int GetStartIndex() const { return m_startIndex; }
81 inline bool StartIndexHasBeenSet() const { return m_startIndexHasBeenSet; }
82 inline void SetStartIndex(int value) {
83 m_startIndexHasBeenSet = true;
84 m_startIndex = value;
85 }
87 SetStartIndex(value);
88 return *this;
89 }
91 private:
92 int m_endIndex{0};
93
95
96 int m_startIndex{0};
97 bool m_endIndexHasBeenSet = false;
98 bool m_referencesHasBeenSet = false;
99 bool m_startIndexHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace BedrockAgentRuntime
104} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< AgenticRetrieveCitationReference > & GetReferences() const
AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveCitation(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveCitation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveCitation()=default
AgenticRetrieveCitation & WithReferences(ReferencesT &&value)
AgenticRetrieveCitation & AddReferences(ReferencesT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue