AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
GuardrailInvocationMetrics.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/GuardrailUsage.h>
9#include <aws/bedrock-runtime/model/GuardrailCoverage.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 GuardrailInvocationMetrics() = default;
36 AWS_BEDROCKRUNTIME_API GuardrailInvocationMetrics(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline long long GetGuardrailProcessingLatency() const { return m_guardrailProcessingLatency; }
46 inline bool GuardrailProcessingLatencyHasBeenSet() const { return m_guardrailProcessingLatencyHasBeenSet; }
47 inline void SetGuardrailProcessingLatency(long long value) { m_guardrailProcessingLatencyHasBeenSet = true; m_guardrailProcessingLatency = value; }
50
52
55 inline const GuardrailUsage& GetUsage() const { return m_usage; }
56 inline bool UsageHasBeenSet() const { return m_usageHasBeenSet; }
57 template<typename UsageT = GuardrailUsage>
58 void SetUsage(UsageT&& value) { m_usageHasBeenSet = true; m_usage = std::forward<UsageT>(value); }
59 template<typename UsageT = GuardrailUsage>
60 GuardrailInvocationMetrics& WithUsage(UsageT&& value) { SetUsage(std::forward<UsageT>(value)); return *this;}
62
64
67 inline const GuardrailCoverage& GetGuardrailCoverage() const { return m_guardrailCoverage; }
68 inline bool GuardrailCoverageHasBeenSet() const { return m_guardrailCoverageHasBeenSet; }
69 template<typename GuardrailCoverageT = GuardrailCoverage>
70 void SetGuardrailCoverage(GuardrailCoverageT&& value) { m_guardrailCoverageHasBeenSet = true; m_guardrailCoverage = std::forward<GuardrailCoverageT>(value); }
71 template<typename GuardrailCoverageT = GuardrailCoverage>
72 GuardrailInvocationMetrics& WithGuardrailCoverage(GuardrailCoverageT&& value) { SetGuardrailCoverage(std::forward<GuardrailCoverageT>(value)); return *this;}
74 private:
75
76 long long m_guardrailProcessingLatency{0};
77 bool m_guardrailProcessingLatencyHasBeenSet = false;
78
79 GuardrailUsage m_usage;
80 bool m_usageHasBeenSet = false;
81
82 GuardrailCoverage m_guardrailCoverage;
83 bool m_guardrailCoverageHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace BedrockRuntime
88} // namespace Aws
GuardrailInvocationMetrics & WithGuardrailProcessingLatency(long long value)
GuardrailInvocationMetrics & WithGuardrailCoverage(GuardrailCoverageT &&value)
AWS_BEDROCKRUNTIME_API GuardrailInvocationMetrics & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API GuardrailInvocationMetrics()=default
GuardrailInvocationMetrics & WithUsage(UsageT &&value)
AWS_BEDROCKRUNTIME_API GuardrailInvocationMetrics(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue