AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
GuardrailAutomatedReasoningPolicy.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.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 Bedrock
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_BEDROCK_API GuardrailAutomatedReasoningPolicy() = default;
40 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::Vector<Aws::String>& GetPolicies() const { return m_policies; }
49 inline bool PoliciesHasBeenSet() const { return m_policiesHasBeenSet; }
50 template<typename PoliciesT = Aws::Vector<Aws::String>>
51 void SetPolicies(PoliciesT&& value) { m_policiesHasBeenSet = true; m_policies = std::forward<PoliciesT>(value); }
52 template<typename PoliciesT = Aws::Vector<Aws::String>>
53 GuardrailAutomatedReasoningPolicy& WithPolicies(PoliciesT&& value) { SetPolicies(std::forward<PoliciesT>(value)); return *this;}
54 template<typename PoliciesT = Aws::String>
55 GuardrailAutomatedReasoningPolicy& AddPolicies(PoliciesT&& value) { m_policiesHasBeenSet = true; m_policies.emplace_back(std::forward<PoliciesT>(value)); return *this; }
57
59
63 inline double GetConfidenceThreshold() const { return m_confidenceThreshold; }
64 inline bool ConfidenceThresholdHasBeenSet() const { return m_confidenceThresholdHasBeenSet; }
65 inline void SetConfidenceThreshold(double value) { m_confidenceThresholdHasBeenSet = true; m_confidenceThreshold = value; }
68 private:
69
70 Aws::Vector<Aws::String> m_policies;
71 bool m_policiesHasBeenSet = false;
72
73 double m_confidenceThreshold{0.0};
74 bool m_confidenceThresholdHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace Bedrock
79} // namespace Aws
AWS_BEDROCK_API GuardrailAutomatedReasoningPolicy(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCK_API GuardrailAutomatedReasoningPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
GuardrailAutomatedReasoningPolicy & WithPolicies(PoliciesT &&value)
GuardrailAutomatedReasoningPolicy & AddPolicies(PoliciesT &&value)
GuardrailAutomatedReasoningPolicy & WithConfidenceThreshold(double value)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue