AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RetrieveAndGenerateStreamResponseOutput.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/BadGatewayException.h>
9#include <aws/bedrock-agent-runtime/model/CitationEvent.h>
10#include <aws/bedrock-agent-runtime/model/DependencyFailedException.h>
11#include <aws/bedrock-agent-runtime/model/GuardrailEvent.h>
12#include <aws/bedrock-agent-runtime/model/InternalServerException.h>
13#include <aws/bedrock-agent-runtime/model/RetrieveAndGenerateOutputEvent.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace BedrockAgentRuntime
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_BEDROCKAGENTRUNTIME_API RetrieveAndGenerateStreamResponseOutput() = default;
42 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
52 inline const BedrockAgentRuntimeError& GetAccessDeniedException() const { return m_accessDeniedException; }
53 inline bool AccessDeniedExceptionHasBeenSet() const { return m_accessDeniedExceptionHasBeenSet; }
54 template<typename AccessDeniedExceptionT = BedrockAgentRuntimeError>
55 void SetAccessDeniedException(AccessDeniedExceptionT&& value) { m_accessDeniedExceptionHasBeenSet = true; m_accessDeniedException = std::forward<AccessDeniedExceptionT>(value); }
56 template<typename AccessDeniedExceptionT = BedrockAgentRuntimeError>
57 RetrieveAndGenerateStreamResponseOutput& WithAccessDeniedException(AccessDeniedExceptionT&& value) { SetAccessDeniedException(std::forward<AccessDeniedExceptionT>(value)); return *this;}
59
61
64 inline const BadGatewayException& GetBadGatewayException() const { return m_badGatewayException; }
65 inline bool BadGatewayExceptionHasBeenSet() const { return m_badGatewayExceptionHasBeenSet; }
66 template<typename BadGatewayExceptionT = BadGatewayException>
67 void SetBadGatewayException(BadGatewayExceptionT&& value) { m_badGatewayExceptionHasBeenSet = true; m_badGatewayException = std::forward<BadGatewayExceptionT>(value); }
68 template<typename BadGatewayExceptionT = BadGatewayException>
69 RetrieveAndGenerateStreamResponseOutput& WithBadGatewayException(BadGatewayExceptionT&& value) { SetBadGatewayException(std::forward<BadGatewayExceptionT>(value)); return *this;}
71
73
76 inline const CitationEvent& GetCitation() const { return m_citation; }
77 inline bool CitationHasBeenSet() const { return m_citationHasBeenSet; }
78 template<typename CitationT = CitationEvent>
79 void SetCitation(CitationT&& value) { m_citationHasBeenSet = true; m_citation = std::forward<CitationT>(value); }
80 template<typename CitationT = CitationEvent>
81 RetrieveAndGenerateStreamResponseOutput& WithCitation(CitationT&& value) { SetCitation(std::forward<CitationT>(value)); return *this;}
83
85
88 inline const BedrockAgentRuntimeError& GetConflictException() const { return m_conflictException; }
89 inline bool ConflictExceptionHasBeenSet() const { return m_conflictExceptionHasBeenSet; }
90 template<typename ConflictExceptionT = BedrockAgentRuntimeError>
91 void SetConflictException(ConflictExceptionT&& value) { m_conflictExceptionHasBeenSet = true; m_conflictException = std::forward<ConflictExceptionT>(value); }
92 template<typename ConflictExceptionT = BedrockAgentRuntimeError>
93 RetrieveAndGenerateStreamResponseOutput& WithConflictException(ConflictExceptionT&& value) { SetConflictException(std::forward<ConflictExceptionT>(value)); return *this;}
95
97
100 inline const DependencyFailedException& GetDependencyFailedException() const { return m_dependencyFailedException; }
101 inline bool DependencyFailedExceptionHasBeenSet() const { return m_dependencyFailedExceptionHasBeenSet; }
102 template<typename DependencyFailedExceptionT = DependencyFailedException>
103 void SetDependencyFailedException(DependencyFailedExceptionT&& value) { m_dependencyFailedExceptionHasBeenSet = true; m_dependencyFailedException = std::forward<DependencyFailedExceptionT>(value); }
104 template<typename DependencyFailedExceptionT = DependencyFailedException>
105 RetrieveAndGenerateStreamResponseOutput& WithDependencyFailedException(DependencyFailedExceptionT&& value) { SetDependencyFailedException(std::forward<DependencyFailedExceptionT>(value)); return *this;}
107
109
112 inline const GuardrailEvent& GetGuardrail() const { return m_guardrail; }
113 inline bool GuardrailHasBeenSet() const { return m_guardrailHasBeenSet; }
114 template<typename GuardrailT = GuardrailEvent>
115 void SetGuardrail(GuardrailT&& value) { m_guardrailHasBeenSet = true; m_guardrail = std::forward<GuardrailT>(value); }
116 template<typename GuardrailT = GuardrailEvent>
117 RetrieveAndGenerateStreamResponseOutput& WithGuardrail(GuardrailT&& value) { SetGuardrail(std::forward<GuardrailT>(value)); return *this;}
119
121
124 inline const InternalServerException& GetInternalServerException() const { return m_internalServerException; }
125 inline bool InternalServerExceptionHasBeenSet() const { return m_internalServerExceptionHasBeenSet; }
126 template<typename InternalServerExceptionT = InternalServerException>
127 void SetInternalServerException(InternalServerExceptionT&& value) { m_internalServerExceptionHasBeenSet = true; m_internalServerException = std::forward<InternalServerExceptionT>(value); }
128 template<typename InternalServerExceptionT = InternalServerException>
129 RetrieveAndGenerateStreamResponseOutput& WithInternalServerException(InternalServerExceptionT&& value) { SetInternalServerException(std::forward<InternalServerExceptionT>(value)); return *this;}
131
133
136 inline const RetrieveAndGenerateOutputEvent& GetOutput() const { return m_output; }
137 inline bool OutputHasBeenSet() const { return m_outputHasBeenSet; }
138 template<typename OutputT = RetrieveAndGenerateOutputEvent>
139 void SetOutput(OutputT&& value) { m_outputHasBeenSet = true; m_output = std::forward<OutputT>(value); }
140 template<typename OutputT = RetrieveAndGenerateOutputEvent>
141 RetrieveAndGenerateStreamResponseOutput& WithOutput(OutputT&& value) { SetOutput(std::forward<OutputT>(value)); return *this;}
143
145
151 inline const BedrockAgentRuntimeError& GetResourceNotFoundException() const { return m_resourceNotFoundException; }
152 inline bool ResourceNotFoundExceptionHasBeenSet() const { return m_resourceNotFoundExceptionHasBeenSet; }
153 template<typename ResourceNotFoundExceptionT = BedrockAgentRuntimeError>
154 void SetResourceNotFoundException(ResourceNotFoundExceptionT&& value) { m_resourceNotFoundExceptionHasBeenSet = true; m_resourceNotFoundException = std::forward<ResourceNotFoundExceptionT>(value); }
155 template<typename ResourceNotFoundExceptionT = BedrockAgentRuntimeError>
156 RetrieveAndGenerateStreamResponseOutput& WithResourceNotFoundException(ResourceNotFoundExceptionT&& value) { SetResourceNotFoundException(std::forward<ResourceNotFoundExceptionT>(value)); return *this;}
158
160
166 inline const BedrockAgentRuntimeError& GetServiceQuotaExceededException() const { return m_serviceQuotaExceededException; }
167 inline bool ServiceQuotaExceededExceptionHasBeenSet() const { return m_serviceQuotaExceededExceptionHasBeenSet; }
168 template<typename ServiceQuotaExceededExceptionT = BedrockAgentRuntimeError>
169 void SetServiceQuotaExceededException(ServiceQuotaExceededExceptionT&& value) { m_serviceQuotaExceededExceptionHasBeenSet = true; m_serviceQuotaExceededException = std::forward<ServiceQuotaExceededExceptionT>(value); }
170 template<typename ServiceQuotaExceededExceptionT = BedrockAgentRuntimeError>
171 RetrieveAndGenerateStreamResponseOutput& WithServiceQuotaExceededException(ServiceQuotaExceededExceptionT&& value) { SetServiceQuotaExceededException(std::forward<ServiceQuotaExceededExceptionT>(value)); return *this;}
173
175
181 inline const BedrockAgentRuntimeError& GetThrottlingException() const { return m_throttlingException; }
182 inline bool ThrottlingExceptionHasBeenSet() const { return m_throttlingExceptionHasBeenSet; }
183 template<typename ThrottlingExceptionT = BedrockAgentRuntimeError>
184 void SetThrottlingException(ThrottlingExceptionT&& value) { m_throttlingExceptionHasBeenSet = true; m_throttlingException = std::forward<ThrottlingExceptionT>(value); }
185 template<typename ThrottlingExceptionT = BedrockAgentRuntimeError>
186 RetrieveAndGenerateStreamResponseOutput& WithThrottlingException(ThrottlingExceptionT&& value) { SetThrottlingException(std::forward<ThrottlingExceptionT>(value)); return *this;}
188
190
196 inline const BedrockAgentRuntimeError& GetValidationException() const { return m_validationException; }
197 inline bool ValidationExceptionHasBeenSet() const { return m_validationExceptionHasBeenSet; }
198 template<typename ValidationExceptionT = BedrockAgentRuntimeError>
199 void SetValidationException(ValidationExceptionT&& value) { m_validationExceptionHasBeenSet = true; m_validationException = std::forward<ValidationExceptionT>(value); }
200 template<typename ValidationExceptionT = BedrockAgentRuntimeError>
201 RetrieveAndGenerateStreamResponseOutput& WithValidationException(ValidationExceptionT&& value) { SetValidationException(std::forward<ValidationExceptionT>(value)); return *this;}
203 private:
204
205 BedrockAgentRuntimeError m_accessDeniedException;
206 bool m_accessDeniedExceptionHasBeenSet = false;
207
208 BadGatewayException m_badGatewayException;
209 bool m_badGatewayExceptionHasBeenSet = false;
210
211 CitationEvent m_citation;
212 bool m_citationHasBeenSet = false;
213
214 BedrockAgentRuntimeError m_conflictException;
215 bool m_conflictExceptionHasBeenSet = false;
216
217 DependencyFailedException m_dependencyFailedException;
218 bool m_dependencyFailedExceptionHasBeenSet = false;
219
220 GuardrailEvent m_guardrail;
221 bool m_guardrailHasBeenSet = false;
222
223 InternalServerException m_internalServerException;
224 bool m_internalServerExceptionHasBeenSet = false;
225
227 bool m_outputHasBeenSet = false;
228
229 BedrockAgentRuntimeError m_resourceNotFoundException;
230 bool m_resourceNotFoundExceptionHasBeenSet = false;
231
232 BedrockAgentRuntimeError m_serviceQuotaExceededException;
233 bool m_serviceQuotaExceededExceptionHasBeenSet = false;
234
235 BedrockAgentRuntimeError m_throttlingException;
236 bool m_throttlingExceptionHasBeenSet = false;
237
238 BedrockAgentRuntimeError m_validationException;
239 bool m_validationExceptionHasBeenSet = false;
240 };
241
242} // namespace Model
243} // namespace BedrockAgentRuntime
244} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
RetrieveAndGenerateStreamResponseOutput & WithInternalServerException(InternalServerExceptionT &&value)
RetrieveAndGenerateStreamResponseOutput & WithBadGatewayException(BadGatewayExceptionT &&value)
RetrieveAndGenerateStreamResponseOutput & WithDependencyFailedException(DependencyFailedExceptionT &&value)
RetrieveAndGenerateStreamResponseOutput & WithServiceQuotaExceededException(ServiceQuotaExceededExceptionT &&value)
AWS_BEDROCKAGENTRUNTIME_API RetrieveAndGenerateStreamResponseOutput & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API RetrieveAndGenerateStreamResponseOutput()=default
RetrieveAndGenerateStreamResponseOutput & WithThrottlingException(ThrottlingExceptionT &&value)
RetrieveAndGenerateStreamResponseOutput & WithConflictException(ConflictExceptionT &&value)
RetrieveAndGenerateStreamResponseOutput & WithAccessDeniedException(AccessDeniedExceptionT &&value)
RetrieveAndGenerateStreamResponseOutput & WithResourceNotFoundException(ResourceNotFoundExceptionT &&value)
AWS_BEDROCKAGENTRUNTIME_API RetrieveAndGenerateStreamResponseOutput(Aws::Utils::Json::JsonView jsonValue)
RetrieveAndGenerateStreamResponseOutput & WithValidationException(ValidationExceptionT &&value)
Aws::Utils::Json::JsonValue JsonValue