AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
AgenticRetrieveAction.h
1
6#pragma once
7#include <aws/context/Context_EXPORTS.h>
8#include <aws/context/model/AgenticRetrieveSourceRetriever.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/crt/cbor/Cbor.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace Context {
22namespace Model {
23
30 public:
31 AWS_CONTEXT_API AgenticRetrieveAction() = default;
32 AWS_CONTEXT_API AgenticRetrieveAction(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_CONTEXT_API AgenticRetrieveAction& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
40 inline const Aws::String& GetInputQuery() const { return m_inputQuery; }
41 inline bool InputQueryHasBeenSet() const { return m_inputQueryHasBeenSet; }
42 template <typename InputQueryT = Aws::String>
43 void SetInputQuery(InputQueryT&& value) {
44 m_inputQueryHasBeenSet = true;
45 m_inputQuery = std::forward<InputQueryT>(value);
46 }
47 template <typename InputQueryT = Aws::String>
48 AgenticRetrieveAction& WithInputQuery(InputQueryT&& value) {
49 SetInputQuery(std::forward<InputQueryT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::Vector<AgenticRetrieveSourceRetriever>& GetSourceRetrievers() const { return m_sourceRetrievers; }
60 inline bool SourceRetrieversHasBeenSet() const { return m_sourceRetrieversHasBeenSet; }
61 template <typename SourceRetrieversT = Aws::Vector<AgenticRetrieveSourceRetriever>>
62 void SetSourceRetrievers(SourceRetrieversT&& value) {
63 m_sourceRetrieversHasBeenSet = true;
64 m_sourceRetrievers = std::forward<SourceRetrieversT>(value);
65 }
66 template <typename SourceRetrieversT = Aws::Vector<AgenticRetrieveSourceRetriever>>
67 AgenticRetrieveAction& WithSourceRetrievers(SourceRetrieversT&& value) {
68 SetSourceRetrievers(std::forward<SourceRetrieversT>(value));
69 return *this;
70 }
71 template <typename SourceRetrieversT = AgenticRetrieveSourceRetriever>
72 AgenticRetrieveAction& AddSourceRetrievers(SourceRetrieversT&& value) {
73 m_sourceRetrieversHasBeenSet = true;
74 m_sourceRetrievers.emplace_back(std::forward<SourceRetrieversT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_inputQuery;
80
82 bool m_inputQueryHasBeenSet = false;
83 bool m_sourceRetrieversHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace Context
88} // namespace Aws
const Aws::Vector< AgenticRetrieveSourceRetriever > & GetSourceRetrievers() const
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetSourceRetrievers(SourceRetrieversT &&value)
AgenticRetrieveAction & WithInputQuery(InputQueryT &&value)
AWS_CONTEXT_API AgenticRetrieveAction()=default
AWS_CONTEXT_API AgenticRetrieveAction & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AgenticRetrieveAction & AddSourceRetrievers(SourceRetrieversT &&value)
AgenticRetrieveAction & WithSourceRetrievers(SourceRetrieversT &&value)
AWS_CONTEXT_API AgenticRetrieveAction(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector