AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
AgenticRetrieveStreamOutput.h
1
6#pragma once
7#include <aws/context/Context_EXPORTS.h>
8#include <aws/context/model/AgenticRetrieveResponseEvent.h>
9#include <aws/context/model/AgenticRetrieveResultEvent.h>
10#include <aws/context/model/AgenticRetrieveTraceEvent.h>
11#include <aws/context/model/ResourceNotFoundException.h>
12#include <aws/crt/cbor/Cbor.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Cbor {
19class CborValue;
20} // namespace Cbor
21} // namespace Utils
22namespace Context {
23namespace Model {
24
31 public:
32 AWS_CONTEXT_API AgenticRetrieveStreamOutput() = default;
33 AWS_CONTEXT_API AgenticRetrieveStreamOutput(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CONTEXT_API AgenticRetrieveStreamOutput& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
42 inline const AgenticRetrieveTraceEvent& GetTraceEvent() const { return m_traceEvent; }
43 inline bool TraceEventHasBeenSet() const { return m_traceEventHasBeenSet; }
44 template <typename TraceEventT = AgenticRetrieveTraceEvent>
45 void SetTraceEvent(TraceEventT&& value) {
46 m_traceEventHasBeenSet = true;
47 m_traceEvent = std::forward<TraceEventT>(value);
48 }
49 template <typename TraceEventT = AgenticRetrieveTraceEvent>
51 SetTraceEvent(std::forward<TraceEventT>(value));
52 return *this;
53 }
55
57
61 inline const AgenticRetrieveResponseEvent& GetResponseEvent() const { return m_responseEvent; }
62 inline bool ResponseEventHasBeenSet() const { return m_responseEventHasBeenSet; }
63 template <typename ResponseEventT = AgenticRetrieveResponseEvent>
64 void SetResponseEvent(ResponseEventT&& value) {
65 m_responseEventHasBeenSet = true;
66 m_responseEvent = std::forward<ResponseEventT>(value);
67 }
68 template <typename ResponseEventT = AgenticRetrieveResponseEvent>
70 SetResponseEvent(std::forward<ResponseEventT>(value));
71 return *this;
72 }
74
76
80 inline const AgenticRetrieveResultEvent& GetResult() const { return m_result; }
81 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
82 template <typename ResultT = AgenticRetrieveResultEvent>
83 void SetResult(ResultT&& value) {
84 m_resultHasBeenSet = true;
85 m_result = std::forward<ResultT>(value);
86 }
87 template <typename ResultT = AgenticRetrieveResultEvent>
89 SetResult(std::forward<ResultT>(value));
90 return *this;
91 }
93
95
99 inline const ContextError& GetAccessDeniedException() const { return m_accessDeniedException; }
100 inline bool AccessDeniedExceptionHasBeenSet() const { return m_accessDeniedExceptionHasBeenSet; }
101 template <typename AccessDeniedExceptionT = ContextError>
102 void SetAccessDeniedException(AccessDeniedExceptionT&& value) {
103 m_accessDeniedExceptionHasBeenSet = true;
104 m_accessDeniedException = std::forward<AccessDeniedExceptionT>(value);
105 }
106 template <typename AccessDeniedExceptionT = ContextError>
108 SetAccessDeniedException(std::forward<AccessDeniedExceptionT>(value));
109 return *this;
110 }
112
114
118 inline const ResourceNotFoundException& GetResourceNotFoundException() const { return m_resourceNotFoundException; }
119 inline bool ResourceNotFoundExceptionHasBeenSet() const { return m_resourceNotFoundExceptionHasBeenSet; }
120 template <typename ResourceNotFoundExceptionT = ResourceNotFoundException>
121 void SetResourceNotFoundException(ResourceNotFoundExceptionT&& value) {
122 m_resourceNotFoundExceptionHasBeenSet = true;
123 m_resourceNotFoundException = std::forward<ResourceNotFoundExceptionT>(value);
124 }
125 template <typename ResourceNotFoundExceptionT = ResourceNotFoundException>
126 AgenticRetrieveStreamOutput& WithResourceNotFoundException(ResourceNotFoundExceptionT&& value) {
127 SetResourceNotFoundException(std::forward<ResourceNotFoundExceptionT>(value));
128 return *this;
129 }
131
133
137 inline const ContextError& GetInternalServerException() const { return m_internalServerException; }
138 inline bool InternalServerExceptionHasBeenSet() const { return m_internalServerExceptionHasBeenSet; }
139 template <typename InternalServerExceptionT = ContextError>
140 void SetInternalServerException(InternalServerExceptionT&& value) {
141 m_internalServerExceptionHasBeenSet = true;
142 m_internalServerException = std::forward<InternalServerExceptionT>(value);
143 }
144 template <typename InternalServerExceptionT = ContextError>
145 AgenticRetrieveStreamOutput& WithInternalServerException(InternalServerExceptionT&& value) {
146 SetInternalServerException(std::forward<InternalServerExceptionT>(value));
147 return *this;
148 }
150 private:
151 AgenticRetrieveTraceEvent m_traceEvent;
152
153 AgenticRetrieveResponseEvent m_responseEvent;
154
156
157 ContextError m_accessDeniedException;
158
159 ResourceNotFoundException m_resourceNotFoundException;
160
161 ContextError m_internalServerException;
162 bool m_traceEventHasBeenSet = false;
163 bool m_responseEventHasBeenSet = false;
164 bool m_resultHasBeenSet = false;
165 bool m_accessDeniedExceptionHasBeenSet = false;
166 bool m_resourceNotFoundExceptionHasBeenSet = false;
167 bool m_internalServerExceptionHasBeenSet = false;
168};
169
170} // namespace Model
171} // namespace Context
172} // namespace Aws
AgenticRetrieveStreamOutput & WithInternalServerException(InternalServerExceptionT &&value)
AWS_CONTEXT_API AgenticRetrieveStreamOutput & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AgenticRetrieveStreamOutput & WithResourceNotFoundException(ResourceNotFoundExceptionT &&value)
const ResourceNotFoundException & GetResourceNotFoundException() const
AgenticRetrieveStreamOutput & WithResult(ResultT &&value)
AgenticRetrieveStreamOutput & WithAccessDeniedException(AccessDeniedExceptionT &&value)
AWS_CONTEXT_API AgenticRetrieveStreamOutput(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const AgenticRetrieveResultEvent & GetResult() const
AgenticRetrieveStreamOutput & WithTraceEvent(TraceEventT &&value)
const AgenticRetrieveTraceEvent & GetTraceEvent() const
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetAccessDeniedException(AccessDeniedExceptionT &&value)
void SetInternalServerException(InternalServerExceptionT &&value)
AgenticRetrieveStreamOutput & WithResponseEvent(ResponseEventT &&value)
const AgenticRetrieveResponseEvent & GetResponseEvent() const
AWS_CONTEXT_API AgenticRetrieveStreamOutput()=default
void SetResourceNotFoundException(ResourceNotFoundExceptionT &&value)