AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ConverseStreamMetrics.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace BedrockRuntime {
17namespace Model {
18
25 public:
26 AWS_BEDROCKRUNTIME_API ConverseStreamMetrics() = default;
29 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
30
32
35 inline long long GetLatencyMs() const { return m_latencyMs; }
36 inline bool LatencyMsHasBeenSet() const { return m_latencyMsHasBeenSet; }
37 inline void SetLatencyMs(long long value) {
38 m_latencyMsHasBeenSet = true;
39 m_latencyMs = value;
40 }
41 inline ConverseStreamMetrics& WithLatencyMs(long long value) {
42 SetLatencyMs(value);
43 return *this;
44 }
46 private:
47 long long m_latencyMs{0};
48 bool m_latencyMsHasBeenSet = false;
49};
50
51} // namespace Model
52} // namespace BedrockRuntime
53} // namespace Aws
ConverseStreamMetrics & WithLatencyMs(long long value)
AWS_BEDROCKRUNTIME_API ConverseStreamMetrics(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API ConverseStreamMetrics()=default
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKRUNTIME_API ConverseStreamMetrics & operator=(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue