AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ConverseResult.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/ConverseOutput.h>
9#include <aws/bedrock-runtime/model/StopReason.h>
10#include <aws/bedrock-runtime/model/TokenUsage.h>
11#include <aws/bedrock-runtime/model/ConverseMetrics.h>
12#include <aws/core/utils/Document.h>
13#include <aws/bedrock-runtime/model/ConverseTrace.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <utility>
16
17namespace Aws
18{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace BedrockRuntime
30{
31namespace Model
32{
34 {
35 public:
36 AWS_BEDROCKRUNTIME_API ConverseResult();
39
40
42
45 inline const ConverseOutput& GetOutput() const{ return m_output; }
46 inline void SetOutput(const ConverseOutput& value) { m_output = value; }
47 inline void SetOutput(ConverseOutput&& value) { m_output = std::move(value); }
48 inline ConverseResult& WithOutput(const ConverseOutput& value) { SetOutput(value); return *this;}
49 inline ConverseResult& WithOutput(ConverseOutput&& value) { SetOutput(std::move(value)); return *this;}
51
53
56 inline const StopReason& GetStopReason() const{ return m_stopReason; }
57 inline void SetStopReason(const StopReason& value) { m_stopReason = value; }
58 inline void SetStopReason(StopReason&& value) { m_stopReason = std::move(value); }
59 inline ConverseResult& WithStopReason(const StopReason& value) { SetStopReason(value); return *this;}
60 inline ConverseResult& WithStopReason(StopReason&& value) { SetStopReason(std::move(value)); return *this;}
62
64
69 inline const TokenUsage& GetUsage() const{ return m_usage; }
70 inline void SetUsage(const TokenUsage& value) { m_usage = value; }
71 inline void SetUsage(TokenUsage&& value) { m_usage = std::move(value); }
72 inline ConverseResult& WithUsage(const TokenUsage& value) { SetUsage(value); return *this;}
73 inline ConverseResult& WithUsage(TokenUsage&& value) { SetUsage(std::move(value)); return *this;}
75
77
80 inline const ConverseMetrics& GetMetrics() const{ return m_metrics; }
81 inline void SetMetrics(const ConverseMetrics& value) { m_metrics = value; }
82 inline void SetMetrics(ConverseMetrics&& value) { m_metrics = std::move(value); }
83 inline ConverseResult& WithMetrics(const ConverseMetrics& value) { SetMetrics(value); return *this;}
84 inline ConverseResult& WithMetrics(ConverseMetrics&& value) { SetMetrics(std::move(value)); return *this;}
86
88
91 inline Aws::Utils::DocumentView GetAdditionalModelResponseFields() const{ return m_additionalModelResponseFields; }
92 inline void SetAdditionalModelResponseFields(const Aws::Utils::Document& value) { m_additionalModelResponseFields = value; }
93 inline void SetAdditionalModelResponseFields(Aws::Utils::Document&& value) { m_additionalModelResponseFields = std::move(value); }
97
99
102 inline const ConverseTrace& GetTrace() const{ return m_trace; }
103 inline void SetTrace(const ConverseTrace& value) { m_trace = value; }
104 inline void SetTrace(ConverseTrace&& value) { m_trace = std::move(value); }
105 inline ConverseResult& WithTrace(const ConverseTrace& value) { SetTrace(value); return *this;}
106 inline ConverseResult& WithTrace(ConverseTrace&& value) { SetTrace(std::move(value)); return *this;}
108
110
111 inline const Aws::String& GetRequestId() const{ return m_requestId; }
112 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
113 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
114 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
115 inline ConverseResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
116 inline ConverseResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
117 inline ConverseResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
119 private:
120
121 ConverseOutput m_output;
122
123 StopReason m_stopReason;
124
125 TokenUsage m_usage;
126
127 ConverseMetrics m_metrics;
128
129 Aws::Utils::Document m_additionalModelResponseFields;
130
131 ConverseTrace m_trace;
132
133 Aws::String m_requestId;
134 };
135
136} // namespace Model
137} // namespace BedrockRuntime
138} // namespace Aws
ConverseResult & WithAdditionalModelResponseFields(const Aws::Utils::Document &value)
AWS_BEDROCKRUNTIME_API ConverseResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetMetrics(const ConverseMetrics &value)
const ConverseMetrics & GetMetrics() const
void SetMetrics(ConverseMetrics &&value)
ConverseResult & WithRequestId(Aws::String &&value)
ConverseResult & WithAdditionalModelResponseFields(Aws::Utils::Document &&value)
const StopReason & GetStopReason() const
ConverseResult & WithMetrics(ConverseMetrics &&value)
AWS_BEDROCKRUNTIME_API ConverseResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const ConverseOutput & GetOutput() const
ConverseResult & WithUsage(TokenUsage &&value)
void SetAdditionalModelResponseFields(Aws::Utils::Document &&value)
void SetStopReason(const StopReason &value)
void SetOutput(ConverseOutput &&value)
void SetOutput(const ConverseOutput &value)
ConverseResult & WithRequestId(const Aws::String &value)
ConverseResult & WithStopReason(StopReason &&value)
ConverseResult & WithTrace(const ConverseTrace &value)
const Aws::String & GetRequestId() const
ConverseResult & WithUsage(const TokenUsage &value)
ConverseResult & WithStopReason(const StopReason &value)
void SetAdditionalModelResponseFields(const Aws::Utils::Document &value)
void SetRequestId(const Aws::String &value)
ConverseResult & WithOutput(ConverseOutput &&value)
void SetTrace(const ConverseTrace &value)
ConverseResult & WithMetrics(const ConverseMetrics &value)
const ConverseTrace & GetTrace() const
void SetUsage(const TokenUsage &value)
ConverseResult & WithTrace(ConverseTrace &&value)
ConverseResult & WithRequestId(const char *value)
Aws::Utils::DocumentView GetAdditionalModelResponseFields() const
ConverseResult & WithOutput(const ConverseOutput &value)
AWS_BEDROCKRUNTIME_API ConverseResult()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue