AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
OptimizedPromptStream.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/AnalyzePromptEvent.h>
9#include <aws/bedrock-agent-runtime/model/BadGatewayException.h>
10#include <aws/bedrock-agent-runtime/model/DependencyFailedException.h>
11#include <aws/bedrock-agent-runtime/model/InternalServerException.h>
12#include <aws/bedrock-agent-runtime/model/OptimizedPromptEvent.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace BedrockAgentRuntime
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_BEDROCKAGENTRUNTIME_API OptimizedPromptStream() = default;
40 AWS_BEDROCKAGENTRUNTIME_API OptimizedPromptStream(Aws::Utils::Json::JsonView jsonValue);
41 AWS_BEDROCKAGENTRUNTIME_API OptimizedPromptStream& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const BedrockAgentRuntimeError& GetAccessDeniedException() const { return m_accessDeniedException; }
51 inline bool AccessDeniedExceptionHasBeenSet() const { return m_accessDeniedExceptionHasBeenSet; }
52 template<typename AccessDeniedExceptionT = BedrockAgentRuntimeError>
53 void SetAccessDeniedException(AccessDeniedExceptionT&& value) { m_accessDeniedExceptionHasBeenSet = true; m_accessDeniedException = std::forward<AccessDeniedExceptionT>(value); }
54 template<typename AccessDeniedExceptionT = BedrockAgentRuntimeError>
55 OptimizedPromptStream& WithAccessDeniedException(AccessDeniedExceptionT&& value) { SetAccessDeniedException(std::forward<AccessDeniedExceptionT>(value)); return *this;}
57
59
63 inline const AnalyzePromptEvent& GetAnalyzePromptEvent() const { return m_analyzePromptEvent; }
64 inline bool AnalyzePromptEventHasBeenSet() const { return m_analyzePromptEventHasBeenSet; }
65 template<typename AnalyzePromptEventT = AnalyzePromptEvent>
66 void SetAnalyzePromptEvent(AnalyzePromptEventT&& value) { m_analyzePromptEventHasBeenSet = true; m_analyzePromptEvent = std::forward<AnalyzePromptEventT>(value); }
67 template<typename AnalyzePromptEventT = AnalyzePromptEvent>
68 OptimizedPromptStream& WithAnalyzePromptEvent(AnalyzePromptEventT&& value) { SetAnalyzePromptEvent(std::forward<AnalyzePromptEventT>(value)); return *this;}
70
72
76 inline const BadGatewayException& GetBadGatewayException() const { return m_badGatewayException; }
77 inline bool BadGatewayExceptionHasBeenSet() const { return m_badGatewayExceptionHasBeenSet; }
78 template<typename BadGatewayExceptionT = BadGatewayException>
79 void SetBadGatewayException(BadGatewayExceptionT&& value) { m_badGatewayExceptionHasBeenSet = true; m_badGatewayException = std::forward<BadGatewayExceptionT>(value); }
80 template<typename BadGatewayExceptionT = BadGatewayException>
81 OptimizedPromptStream& WithBadGatewayException(BadGatewayExceptionT&& value) { SetBadGatewayException(std::forward<BadGatewayExceptionT>(value)); return *this;}
83
85
89 inline const DependencyFailedException& GetDependencyFailedException() const { return m_dependencyFailedException; }
90 inline bool DependencyFailedExceptionHasBeenSet() const { return m_dependencyFailedExceptionHasBeenSet; }
91 template<typename DependencyFailedExceptionT = DependencyFailedException>
92 void SetDependencyFailedException(DependencyFailedExceptionT&& value) { m_dependencyFailedExceptionHasBeenSet = true; m_dependencyFailedException = std::forward<DependencyFailedExceptionT>(value); }
93 template<typename DependencyFailedExceptionT = DependencyFailedException>
94 OptimizedPromptStream& WithDependencyFailedException(DependencyFailedExceptionT&& value) { SetDependencyFailedException(std::forward<DependencyFailedExceptionT>(value)); return *this;}
96
98
101 inline const InternalServerException& GetInternalServerException() const { return m_internalServerException; }
102 inline bool InternalServerExceptionHasBeenSet() const { return m_internalServerExceptionHasBeenSet; }
103 template<typename InternalServerExceptionT = InternalServerException>
104 void SetInternalServerException(InternalServerExceptionT&& value) { m_internalServerExceptionHasBeenSet = true; m_internalServerException = std::forward<InternalServerExceptionT>(value); }
105 template<typename InternalServerExceptionT = InternalServerException>
106 OptimizedPromptStream& WithInternalServerException(InternalServerExceptionT&& value) { SetInternalServerException(std::forward<InternalServerExceptionT>(value)); return *this;}
108
110
113 inline const OptimizedPromptEvent& GetOptimizedPromptEvent() const { return m_optimizedPromptEvent; }
114 inline bool OptimizedPromptEventHasBeenSet() const { return m_optimizedPromptEventHasBeenSet; }
115 template<typename OptimizedPromptEventT = OptimizedPromptEvent>
116 void SetOptimizedPromptEvent(OptimizedPromptEventT&& value) { m_optimizedPromptEventHasBeenSet = true; m_optimizedPromptEvent = std::forward<OptimizedPromptEventT>(value); }
117 template<typename OptimizedPromptEventT = OptimizedPromptEvent>
118 OptimizedPromptStream& WithOptimizedPromptEvent(OptimizedPromptEventT&& value) { SetOptimizedPromptEvent(std::forward<OptimizedPromptEventT>(value)); return *this;}
120
122
128 inline const BedrockAgentRuntimeError& GetThrottlingException() const { return m_throttlingException; }
129 inline bool ThrottlingExceptionHasBeenSet() const { return m_throttlingExceptionHasBeenSet; }
130 template<typename ThrottlingExceptionT = BedrockAgentRuntimeError>
131 void SetThrottlingException(ThrottlingExceptionT&& value) { m_throttlingExceptionHasBeenSet = true; m_throttlingException = std::forward<ThrottlingExceptionT>(value); }
132 template<typename ThrottlingExceptionT = BedrockAgentRuntimeError>
133 OptimizedPromptStream& WithThrottlingException(ThrottlingExceptionT&& value) { SetThrottlingException(std::forward<ThrottlingExceptionT>(value)); return *this;}
135
137
141 inline const BedrockAgentRuntimeError& GetValidationException() const { return m_validationException; }
142 inline bool ValidationExceptionHasBeenSet() const { return m_validationExceptionHasBeenSet; }
143 template<typename ValidationExceptionT = BedrockAgentRuntimeError>
144 void SetValidationException(ValidationExceptionT&& value) { m_validationExceptionHasBeenSet = true; m_validationException = std::forward<ValidationExceptionT>(value); }
145 template<typename ValidationExceptionT = BedrockAgentRuntimeError>
146 OptimizedPromptStream& WithValidationException(ValidationExceptionT&& value) { SetValidationException(std::forward<ValidationExceptionT>(value)); return *this;}
148 private:
149
150 BedrockAgentRuntimeError m_accessDeniedException;
151 bool m_accessDeniedExceptionHasBeenSet = false;
152
153 AnalyzePromptEvent m_analyzePromptEvent;
154 bool m_analyzePromptEventHasBeenSet = false;
155
156 BadGatewayException m_badGatewayException;
157 bool m_badGatewayExceptionHasBeenSet = false;
158
159 DependencyFailedException m_dependencyFailedException;
160 bool m_dependencyFailedExceptionHasBeenSet = false;
161
162 InternalServerException m_internalServerException;
163 bool m_internalServerExceptionHasBeenSet = false;
164
165 OptimizedPromptEvent m_optimizedPromptEvent;
166 bool m_optimizedPromptEventHasBeenSet = false;
167
168 BedrockAgentRuntimeError m_throttlingException;
169 bool m_throttlingExceptionHasBeenSet = false;
170
171 BedrockAgentRuntimeError m_validationException;
172 bool m_validationExceptionHasBeenSet = false;
173 };
174
175} // namespace Model
176} // namespace BedrockAgentRuntime
177} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API OptimizedPromptStream()=default
AWS_BEDROCKAGENTRUNTIME_API OptimizedPromptStream & operator=(Aws::Utils::Json::JsonView jsonValue)
OptimizedPromptStream & WithOptimizedPromptEvent(OptimizedPromptEventT &&value)
void SetAccessDeniedException(AccessDeniedExceptionT &&value)
OptimizedPromptStream & WithBadGatewayException(BadGatewayExceptionT &&value)
const DependencyFailedException & GetDependencyFailedException() const
const OptimizedPromptEvent & GetOptimizedPromptEvent() const
OptimizedPromptStream & WithThrottlingException(ThrottlingExceptionT &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
const BedrockAgentRuntimeError & GetAccessDeniedException() const
OptimizedPromptStream & WithAnalyzePromptEvent(AnalyzePromptEventT &&value)
OptimizedPromptStream & WithAccessDeniedException(AccessDeniedExceptionT &&value)
void SetDependencyFailedException(DependencyFailedExceptionT &&value)
const BedrockAgentRuntimeError & GetThrottlingException() const
OptimizedPromptStream & WithValidationException(ValidationExceptionT &&value)
AWS_BEDROCKAGENTRUNTIME_API OptimizedPromptStream(Aws::Utils::Json::JsonView jsonValue)
OptimizedPromptStream & WithDependencyFailedException(DependencyFailedExceptionT &&value)
const BedrockAgentRuntimeError & GetValidationException() const
const InternalServerException & GetInternalServerException() const
void SetInternalServerException(InternalServerExceptionT &&value)
OptimizedPromptStream & WithInternalServerException(InternalServerExceptionT &&value)
Aws::Utils::Json::JsonValue JsonValue