AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetUsage(const GuardrailUsage& value) { m_usageHasBeenSet = true; m_usage = value; }
58 inline void SetUsage(GuardrailUsage&& value) { m_usageHasBeenSet = true; m_usage = std::move(value); }
59 inline GuardrailInvocationMetrics& WithUsage(const GuardrailUsage& value) { SetUsage(value); return *this;}
60 inline GuardrailInvocationMetrics& WithUsage(GuardrailUsage&& value) { SetUsage(std::move(value)); return *this;}
62
64
67 inline const GuardrailCoverage& GetGuardrailCoverage() const{ return m_guardrailCoverage; }
68 inline bool GuardrailCoverageHasBeenSet() const { return m_guardrailCoverageHasBeenSet; }
69 inline void SetGuardrailCoverage(const GuardrailCoverage& value) { m_guardrailCoverageHasBeenSet = true; m_guardrailCoverage = value; }
70 inline void SetGuardrailCoverage(GuardrailCoverage&& value) { m_guardrailCoverageHasBeenSet = true; m_guardrailCoverage = std::move(value); }
74 private:
75
76 long long m_guardrailProcessingLatency;
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 & WithUsage(GuardrailUsage &&value)
AWS_BEDROCKRUNTIME_API GuardrailInvocationMetrics & operator=(Aws::Utils::Json::JsonView jsonValue)
GuardrailInvocationMetrics & WithGuardrailCoverage(const GuardrailCoverage &value)
GuardrailInvocationMetrics & WithGuardrailCoverage(GuardrailCoverage &&value)
AWS_BEDROCKRUNTIME_API GuardrailInvocationMetrics(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
GuardrailInvocationMetrics & WithUsage(const GuardrailUsage &value)
Aws::Utils::Json::JsonValue JsonValue