AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ConverseStreamMetadataEvent.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/TokenUsage.h>
9#include <aws/bedrock-runtime/model/ConverseStreamMetrics.h>
10#include <aws/bedrock-runtime/model/ConverseStreamTrace.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace BedrockRuntime
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_BEDROCKRUNTIME_API ConverseStreamMetadataEvent();
39 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const TokenUsage& GetUsage() const{ return m_usage; }
47 inline bool UsageHasBeenSet() const { return m_usageHasBeenSet; }
48 inline void SetUsage(const TokenUsage& value) { m_usageHasBeenSet = true; m_usage = value; }
49 inline void SetUsage(TokenUsage&& value) { m_usageHasBeenSet = true; m_usage = std::move(value); }
50 inline ConverseStreamMetadataEvent& WithUsage(const TokenUsage& value) { SetUsage(value); return *this;}
51 inline ConverseStreamMetadataEvent& WithUsage(TokenUsage&& value) { SetUsage(std::move(value)); return *this;}
53
55
58 inline const ConverseStreamMetrics& GetMetrics() const{ return m_metrics; }
59 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
60 inline void SetMetrics(const ConverseStreamMetrics& value) { m_metricsHasBeenSet = true; m_metrics = value; }
61 inline void SetMetrics(ConverseStreamMetrics&& value) { m_metricsHasBeenSet = true; m_metrics = std::move(value); }
62 inline ConverseStreamMetadataEvent& WithMetrics(const ConverseStreamMetrics& value) { SetMetrics(value); return *this;}
63 inline ConverseStreamMetadataEvent& WithMetrics(ConverseStreamMetrics&& value) { SetMetrics(std::move(value)); return *this;}
65
67
72 inline const ConverseStreamTrace& GetTrace() const{ return m_trace; }
73 inline bool TraceHasBeenSet() const { return m_traceHasBeenSet; }
74 inline void SetTrace(const ConverseStreamTrace& value) { m_traceHasBeenSet = true; m_trace = value; }
75 inline void SetTrace(ConverseStreamTrace&& value) { m_traceHasBeenSet = true; m_trace = std::move(value); }
76 inline ConverseStreamMetadataEvent& WithTrace(const ConverseStreamTrace& value) { SetTrace(value); return *this;}
77 inline ConverseStreamMetadataEvent& WithTrace(ConverseStreamTrace&& value) { SetTrace(std::move(value)); return *this;}
79 private:
80
81 TokenUsage m_usage;
82 bool m_usageHasBeenSet = false;
83
84 ConverseStreamMetrics m_metrics;
85 bool m_metricsHasBeenSet = false;
86
87 ConverseStreamTrace m_trace;
88 bool m_traceHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace BedrockRuntime
93} // namespace Aws
ConverseStreamMetadataEvent & WithTrace(const ConverseStreamTrace &value)
ConverseStreamMetadataEvent & WithUsage(const TokenUsage &value)
ConverseStreamMetadataEvent & WithUsage(TokenUsage &&value)
AWS_BEDROCKRUNTIME_API ConverseStreamMetadataEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API ConverseStreamMetadataEvent(Aws::Utils::Json::JsonView jsonValue)
ConverseStreamMetadataEvent & WithMetrics(ConverseStreamMetrics &&value)
ConverseStreamMetadataEvent & WithMetrics(const ConverseStreamMetrics &value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
ConverseStreamMetadataEvent & WithTrace(ConverseStreamTrace &&value)
Aws::Utils::Json::JsonValue JsonValue