AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MessageStopEvent.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/StopReason.h>
9#include <aws/core/utils/Document.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockRuntime
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_BEDROCKRUNTIME_API MessageStopEvent();
36 AWS_BEDROCKRUNTIME_API MessageStopEvent(Aws::Utils::Json::JsonView jsonValue);
37 AWS_BEDROCKRUNTIME_API MessageStopEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const StopReason& GetStopReason() const{ return m_stopReason; }
46 inline bool StopReasonHasBeenSet() const { return m_stopReasonHasBeenSet; }
47 inline void SetStopReason(const StopReason& value) { m_stopReasonHasBeenSet = true; m_stopReason = value; }
48 inline void SetStopReason(StopReason&& value) { m_stopReasonHasBeenSet = true; m_stopReason = std::move(value); }
49 inline MessageStopEvent& WithStopReason(const StopReason& value) { SetStopReason(value); return *this;}
50 inline MessageStopEvent& WithStopReason(StopReason&& value) { SetStopReason(std::move(value)); return *this;}
52
54
57 inline Aws::Utils::DocumentView GetAdditionalModelResponseFields() const{ return m_additionalModelResponseFields; }
58 inline bool AdditionalModelResponseFieldsHasBeenSet() const { return m_additionalModelResponseFieldsHasBeenSet; }
59 inline void SetAdditionalModelResponseFields(const Aws::Utils::Document& value) { m_additionalModelResponseFieldsHasBeenSet = true; m_additionalModelResponseFields = value; }
60 inline void SetAdditionalModelResponseFields(Aws::Utils::Document&& value) { m_additionalModelResponseFieldsHasBeenSet = true; m_additionalModelResponseFields = std::move(value); }
64 private:
65
66 StopReason m_stopReason;
67 bool m_stopReasonHasBeenSet = false;
68
69 Aws::Utils::Document m_additionalModelResponseFields;
70 bool m_additionalModelResponseFieldsHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace BedrockRuntime
75} // namespace Aws
void SetStopReason(const StopReason &value)
Aws::Utils::DocumentView GetAdditionalModelResponseFields() const
void SetAdditionalModelResponseFields(Aws::Utils::Document &&value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
MessageStopEvent & WithAdditionalModelResponseFields(const Aws::Utils::Document &value)
void SetAdditionalModelResponseFields(const Aws::Utils::Document &value)
MessageStopEvent & WithStopReason(StopReason &&value)
AWS_BEDROCKRUNTIME_API MessageStopEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
MessageStopEvent & WithAdditionalModelResponseFields(Aws::Utils::Document &&value)
MessageStopEvent & WithStopReason(const StopReason &value)
AWS_BEDROCKRUNTIME_API MessageStopEvent(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue