AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
ConverseStreamOutput.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/MessageStartEvent.h>
9#include <aws/bedrock-runtime/model/ContentBlockStartEvent.h>
10#include <aws/bedrock-runtime/model/ContentBlockDeltaEvent.h>
11#include <aws/bedrock-runtime/model/ContentBlockStopEvent.h>
12#include <aws/bedrock-runtime/model/MessageStopEvent.h>
13#include <aws/bedrock-runtime/model/ConverseStreamMetadataEvent.h>
14#include <aws/bedrock-runtime/model/ModelStreamErrorException.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace BedrockRuntime
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_BEDROCKRUNTIME_API ConverseStreamOutput() = default;
41 AWS_BEDROCKRUNTIME_API ConverseStreamOutput(Aws::Utils::Json::JsonView jsonValue);
42 AWS_BEDROCKRUNTIME_API ConverseStreamOutput& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const MessageStartEvent& GetMessageStart() const { return m_messageStart; }
51 inline bool MessageStartHasBeenSet() const { return m_messageStartHasBeenSet; }
52 template<typename MessageStartT = MessageStartEvent>
53 void SetMessageStart(MessageStartT&& value) { m_messageStartHasBeenSet = true; m_messageStart = std::forward<MessageStartT>(value); }
54 template<typename MessageStartT = MessageStartEvent>
55 ConverseStreamOutput& WithMessageStart(MessageStartT&& value) { SetMessageStart(std::forward<MessageStartT>(value)); return *this;}
57
59
62 inline const ContentBlockStartEvent& GetContentBlockStart() const { return m_contentBlockStart; }
63 inline bool ContentBlockStartHasBeenSet() const { return m_contentBlockStartHasBeenSet; }
64 template<typename ContentBlockStartT = ContentBlockStartEvent>
65 void SetContentBlockStart(ContentBlockStartT&& value) { m_contentBlockStartHasBeenSet = true; m_contentBlockStart = std::forward<ContentBlockStartT>(value); }
66 template<typename ContentBlockStartT = ContentBlockStartEvent>
67 ConverseStreamOutput& WithContentBlockStart(ContentBlockStartT&& value) { SetContentBlockStart(std::forward<ContentBlockStartT>(value)); return *this;}
69
71
74 inline const ContentBlockDeltaEvent& GetContentBlockDelta() const { return m_contentBlockDelta; }
75 inline bool ContentBlockDeltaHasBeenSet() const { return m_contentBlockDeltaHasBeenSet; }
76 template<typename ContentBlockDeltaT = ContentBlockDeltaEvent>
77 void SetContentBlockDelta(ContentBlockDeltaT&& value) { m_contentBlockDeltaHasBeenSet = true; m_contentBlockDelta = std::forward<ContentBlockDeltaT>(value); }
78 template<typename ContentBlockDeltaT = ContentBlockDeltaEvent>
79 ConverseStreamOutput& WithContentBlockDelta(ContentBlockDeltaT&& value) { SetContentBlockDelta(std::forward<ContentBlockDeltaT>(value)); return *this;}
81
83
86 inline const ContentBlockStopEvent& GetContentBlockStop() const { return m_contentBlockStop; }
87 inline bool ContentBlockStopHasBeenSet() const { return m_contentBlockStopHasBeenSet; }
88 template<typename ContentBlockStopT = ContentBlockStopEvent>
89 void SetContentBlockStop(ContentBlockStopT&& value) { m_contentBlockStopHasBeenSet = true; m_contentBlockStop = std::forward<ContentBlockStopT>(value); }
90 template<typename ContentBlockStopT = ContentBlockStopEvent>
91 ConverseStreamOutput& WithContentBlockStop(ContentBlockStopT&& value) { SetContentBlockStop(std::forward<ContentBlockStopT>(value)); return *this;}
93
95
98 inline const MessageStopEvent& GetMessageStop() const { return m_messageStop; }
99 inline bool MessageStopHasBeenSet() const { return m_messageStopHasBeenSet; }
100 template<typename MessageStopT = MessageStopEvent>
101 void SetMessageStop(MessageStopT&& value) { m_messageStopHasBeenSet = true; m_messageStop = std::forward<MessageStopT>(value); }
102 template<typename MessageStopT = MessageStopEvent>
103 ConverseStreamOutput& WithMessageStop(MessageStopT&& value) { SetMessageStop(std::forward<MessageStopT>(value)); return *this;}
105
107
110 inline const ConverseStreamMetadataEvent& GetMetadata() const { return m_metadata; }
111 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
112 template<typename MetadataT = ConverseStreamMetadataEvent>
113 void SetMetadata(MetadataT&& value) { m_metadataHasBeenSet = true; m_metadata = std::forward<MetadataT>(value); }
114 template<typename MetadataT = ConverseStreamMetadataEvent>
115 ConverseStreamOutput& WithMetadata(MetadataT&& value) { SetMetadata(std::forward<MetadataT>(value)); return *this;}
117
119
122 inline const BedrockRuntimeError& GetInternalServerException() const { return m_internalServerException; }
123 inline bool InternalServerExceptionHasBeenSet() const { return m_internalServerExceptionHasBeenSet; }
124 template<typename InternalServerExceptionT = BedrockRuntimeError>
125 void SetInternalServerException(InternalServerExceptionT&& value) { m_internalServerExceptionHasBeenSet = true; m_internalServerException = std::forward<InternalServerExceptionT>(value); }
126 template<typename InternalServerExceptionT = BedrockRuntimeError>
127 ConverseStreamOutput& WithInternalServerException(InternalServerExceptionT&& value) { SetInternalServerException(std::forward<InternalServerExceptionT>(value)); return *this;}
129
131
134 inline const ModelStreamErrorException& GetModelStreamErrorException() const { return m_modelStreamErrorException; }
135 inline bool ModelStreamErrorExceptionHasBeenSet() const { return m_modelStreamErrorExceptionHasBeenSet; }
136 template<typename ModelStreamErrorExceptionT = ModelStreamErrorException>
137 void SetModelStreamErrorException(ModelStreamErrorExceptionT&& value) { m_modelStreamErrorExceptionHasBeenSet = true; m_modelStreamErrorException = std::forward<ModelStreamErrorExceptionT>(value); }
138 template<typename ModelStreamErrorExceptionT = ModelStreamErrorException>
139 ConverseStreamOutput& WithModelStreamErrorException(ModelStreamErrorExceptionT&& value) { SetModelStreamErrorException(std::forward<ModelStreamErrorExceptionT>(value)); return *this;}
141
143
149 inline const BedrockRuntimeError& GetValidationException() const { return m_validationException; }
150 inline bool ValidationExceptionHasBeenSet() const { return m_validationExceptionHasBeenSet; }
151 template<typename ValidationExceptionT = BedrockRuntimeError>
152 void SetValidationException(ValidationExceptionT&& value) { m_validationExceptionHasBeenSet = true; m_validationException = std::forward<ValidationExceptionT>(value); }
153 template<typename ValidationExceptionT = BedrockRuntimeError>
154 ConverseStreamOutput& WithValidationException(ValidationExceptionT&& value) { SetValidationException(std::forward<ValidationExceptionT>(value)); return *this;}
156
158
164 inline const BedrockRuntimeError& GetThrottlingException() const { return m_throttlingException; }
165 inline bool ThrottlingExceptionHasBeenSet() const { return m_throttlingExceptionHasBeenSet; }
166 template<typename ThrottlingExceptionT = BedrockRuntimeError>
167 void SetThrottlingException(ThrottlingExceptionT&& value) { m_throttlingExceptionHasBeenSet = true; m_throttlingException = std::forward<ThrottlingExceptionT>(value); }
168 template<typename ThrottlingExceptionT = BedrockRuntimeError>
169 ConverseStreamOutput& WithThrottlingException(ThrottlingExceptionT&& value) { SetThrottlingException(std::forward<ThrottlingExceptionT>(value)); return *this;}
171
173
178 inline const BedrockRuntimeError& GetServiceUnavailableException() const { return m_serviceUnavailableException; }
179 inline bool ServiceUnavailableExceptionHasBeenSet() const { return m_serviceUnavailableExceptionHasBeenSet; }
180 template<typename ServiceUnavailableExceptionT = BedrockRuntimeError>
181 void SetServiceUnavailableException(ServiceUnavailableExceptionT&& value) { m_serviceUnavailableExceptionHasBeenSet = true; m_serviceUnavailableException = std::forward<ServiceUnavailableExceptionT>(value); }
182 template<typename ServiceUnavailableExceptionT = BedrockRuntimeError>
183 ConverseStreamOutput& WithServiceUnavailableException(ServiceUnavailableExceptionT&& value) { SetServiceUnavailableException(std::forward<ServiceUnavailableExceptionT>(value)); return *this;}
185 private:
186
187 MessageStartEvent m_messageStart;
188 bool m_messageStartHasBeenSet = false;
189
190 ContentBlockStartEvent m_contentBlockStart;
191 bool m_contentBlockStartHasBeenSet = false;
192
193 ContentBlockDeltaEvent m_contentBlockDelta;
194 bool m_contentBlockDeltaHasBeenSet = false;
195
196 ContentBlockStopEvent m_contentBlockStop;
197 bool m_contentBlockStopHasBeenSet = false;
198
199 MessageStopEvent m_messageStop;
200 bool m_messageStopHasBeenSet = false;
201
203 bool m_metadataHasBeenSet = false;
204
205 BedrockRuntimeError m_internalServerException;
206 bool m_internalServerExceptionHasBeenSet = false;
207
208 ModelStreamErrorException m_modelStreamErrorException;
209 bool m_modelStreamErrorExceptionHasBeenSet = false;
210
211 BedrockRuntimeError m_validationException;
212 bool m_validationExceptionHasBeenSet = false;
213
214 BedrockRuntimeError m_throttlingException;
215 bool m_throttlingExceptionHasBeenSet = false;
216
217 BedrockRuntimeError m_serviceUnavailableException;
218 bool m_serviceUnavailableExceptionHasBeenSet = false;
219 };
220
221} // namespace Model
222} // namespace BedrockRuntime
223} // namespace Aws
void SetContentBlockDelta(ContentBlockDeltaT &&value)
AWS_BEDROCKRUNTIME_API ConverseStreamOutput(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API ConverseStreamOutput & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetContentBlockStart(ContentBlockStartT &&value)
const ContentBlockDeltaEvent & GetContentBlockDelta() const
ConverseStreamOutput & WithMetadata(MetadataT &&value)
ConverseStreamOutput & WithValidationException(ValidationExceptionT &&value)
ConverseStreamOutput & WithServiceUnavailableException(ServiceUnavailableExceptionT &&value)
ConverseStreamOutput & WithContentBlockStop(ContentBlockStopT &&value)
const MessageStartEvent & GetMessageStart() const
ConverseStreamOutput & WithMessageStart(MessageStartT &&value)
const BedrockRuntimeError & GetThrottlingException() const
const ConverseStreamMetadataEvent & GetMetadata() const
ConverseStreamOutput & WithContentBlockDelta(ContentBlockDeltaT &&value)
ConverseStreamOutput & WithContentBlockStart(ContentBlockStartT &&value)
AWS_BEDROCKRUNTIME_API ConverseStreamOutput()=default
const BedrockRuntimeError & GetValidationException() const
void SetModelStreamErrorException(ModelStreamErrorExceptionT &&value)
void SetServiceUnavailableException(ServiceUnavailableExceptionT &&value)
const ContentBlockStopEvent & GetContentBlockStop() const
ConverseStreamOutput & WithModelStreamErrorException(ModelStreamErrorExceptionT &&value)
const ContentBlockStartEvent & GetContentBlockStart() const
const BedrockRuntimeError & GetInternalServerException() const
void SetThrottlingException(ThrottlingExceptionT &&value)
const ModelStreamErrorException & GetModelStreamErrorException() const
ConverseStreamOutput & WithMessageStop(MessageStopT &&value)
const BedrockRuntimeError & GetServiceUnavailableException() const
void SetInternalServerException(InternalServerExceptionT &&value)
ConverseStreamOutput & WithInternalServerException(InternalServerExceptionT &&value)
void SetValidationException(ValidationExceptionT &&value)
ConverseStreamOutput & WithThrottlingException(ThrottlingExceptionT &&value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue