AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GuardrailAssessment.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/GuardrailTopicPolicyAssessment.h>
9#include <aws/bedrock-runtime/model/GuardrailContentPolicyAssessment.h>
10#include <aws/bedrock-runtime/model/GuardrailWordPolicyAssessment.h>
11#include <aws/bedrock-runtime/model/GuardrailSensitiveInformationPolicyAssessment.h>
12#include <aws/bedrock-runtime/model/GuardrailContextualGroundingPolicyAssessment.h>
13#include <aws/bedrock-runtime/model/GuardrailInvocationMetrics.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace BedrockRuntime
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_BEDROCKRUNTIME_API GuardrailAssessment();
41 AWS_BEDROCKRUNTIME_API GuardrailAssessment(Aws::Utils::Json::JsonView jsonValue);
42 AWS_BEDROCKRUNTIME_API GuardrailAssessment& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const GuardrailTopicPolicyAssessment& GetTopicPolicy() const{ return m_topicPolicy; }
51 inline bool TopicPolicyHasBeenSet() const { return m_topicPolicyHasBeenSet; }
52 inline void SetTopicPolicy(const GuardrailTopicPolicyAssessment& value) { m_topicPolicyHasBeenSet = true; m_topicPolicy = value; }
53 inline void SetTopicPolicy(GuardrailTopicPolicyAssessment&& value) { m_topicPolicyHasBeenSet = true; m_topicPolicy = std::move(value); }
55 inline GuardrailAssessment& WithTopicPolicy(GuardrailTopicPolicyAssessment&& value) { SetTopicPolicy(std::move(value)); return *this;}
57
59
62 inline const GuardrailContentPolicyAssessment& GetContentPolicy() const{ return m_contentPolicy; }
63 inline bool ContentPolicyHasBeenSet() const { return m_contentPolicyHasBeenSet; }
64 inline void SetContentPolicy(const GuardrailContentPolicyAssessment& value) { m_contentPolicyHasBeenSet = true; m_contentPolicy = value; }
65 inline void SetContentPolicy(GuardrailContentPolicyAssessment&& value) { m_contentPolicyHasBeenSet = true; m_contentPolicy = std::move(value); }
69
71
74 inline const GuardrailWordPolicyAssessment& GetWordPolicy() const{ return m_wordPolicy; }
75 inline bool WordPolicyHasBeenSet() const { return m_wordPolicyHasBeenSet; }
76 inline void SetWordPolicy(const GuardrailWordPolicyAssessment& value) { m_wordPolicyHasBeenSet = true; m_wordPolicy = value; }
77 inline void SetWordPolicy(GuardrailWordPolicyAssessment&& value) { m_wordPolicyHasBeenSet = true; m_wordPolicy = std::move(value); }
79 inline GuardrailAssessment& WithWordPolicy(GuardrailWordPolicyAssessment&& value) { SetWordPolicy(std::move(value)); return *this;}
81
83
86 inline const GuardrailSensitiveInformationPolicyAssessment& GetSensitiveInformationPolicy() const{ return m_sensitiveInformationPolicy; }
87 inline bool SensitiveInformationPolicyHasBeenSet() const { return m_sensitiveInformationPolicyHasBeenSet; }
88 inline void SetSensitiveInformationPolicy(const GuardrailSensitiveInformationPolicyAssessment& value) { m_sensitiveInformationPolicyHasBeenSet = true; m_sensitiveInformationPolicy = value; }
89 inline void SetSensitiveInformationPolicy(GuardrailSensitiveInformationPolicyAssessment&& value) { m_sensitiveInformationPolicyHasBeenSet = true; m_sensitiveInformationPolicy = std::move(value); }
93
95
98 inline const GuardrailContextualGroundingPolicyAssessment& GetContextualGroundingPolicy() const{ return m_contextualGroundingPolicy; }
99 inline bool ContextualGroundingPolicyHasBeenSet() const { return m_contextualGroundingPolicyHasBeenSet; }
100 inline void SetContextualGroundingPolicy(const GuardrailContextualGroundingPolicyAssessment& value) { m_contextualGroundingPolicyHasBeenSet = true; m_contextualGroundingPolicy = value; }
101 inline void SetContextualGroundingPolicy(GuardrailContextualGroundingPolicyAssessment&& value) { m_contextualGroundingPolicyHasBeenSet = true; m_contextualGroundingPolicy = std::move(value); }
105
107
110 inline const GuardrailInvocationMetrics& GetInvocationMetrics() const{ return m_invocationMetrics; }
111 inline bool InvocationMetricsHasBeenSet() const { return m_invocationMetricsHasBeenSet; }
112 inline void SetInvocationMetrics(const GuardrailInvocationMetrics& value) { m_invocationMetricsHasBeenSet = true; m_invocationMetrics = value; }
113 inline void SetInvocationMetrics(GuardrailInvocationMetrics&& value) { m_invocationMetricsHasBeenSet = true; m_invocationMetrics = std::move(value); }
117 private:
118
119 GuardrailTopicPolicyAssessment m_topicPolicy;
120 bool m_topicPolicyHasBeenSet = false;
121
122 GuardrailContentPolicyAssessment m_contentPolicy;
123 bool m_contentPolicyHasBeenSet = false;
124
126 bool m_wordPolicyHasBeenSet = false;
127
128 GuardrailSensitiveInformationPolicyAssessment m_sensitiveInformationPolicy;
129 bool m_sensitiveInformationPolicyHasBeenSet = false;
130
131 GuardrailContextualGroundingPolicyAssessment m_contextualGroundingPolicy;
132 bool m_contextualGroundingPolicyHasBeenSet = false;
133
134 GuardrailInvocationMetrics m_invocationMetrics;
135 bool m_invocationMetricsHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace BedrockRuntime
140} // namespace Aws
const GuardrailInvocationMetrics & GetInvocationMetrics() const
GuardrailAssessment & WithWordPolicy(const GuardrailWordPolicyAssessment &value)
void SetContentPolicy(const GuardrailContentPolicyAssessment &value)
void SetContextualGroundingPolicy(const GuardrailContextualGroundingPolicyAssessment &value)
void SetTopicPolicy(const GuardrailTopicPolicyAssessment &value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
GuardrailAssessment & WithSensitiveInformationPolicy(const GuardrailSensitiveInformationPolicyAssessment &value)
void SetWordPolicy(const GuardrailWordPolicyAssessment &value)
const GuardrailTopicPolicyAssessment & GetTopicPolicy() const
GuardrailAssessment & WithContextualGroundingPolicy(const GuardrailContextualGroundingPolicyAssessment &value)
GuardrailAssessment & WithInvocationMetrics(GuardrailInvocationMetrics &&value)
AWS_BEDROCKRUNTIME_API GuardrailAssessment & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSensitiveInformationPolicy(GuardrailSensitiveInformationPolicyAssessment &&value)
GuardrailAssessment & WithWordPolicy(GuardrailWordPolicyAssessment &&value)
void SetInvocationMetrics(GuardrailInvocationMetrics &&value)
GuardrailAssessment & WithSensitiveInformationPolicy(GuardrailSensitiveInformationPolicyAssessment &&value)
GuardrailAssessment & WithContextualGroundingPolicy(GuardrailContextualGroundingPolicyAssessment &&value)
GuardrailAssessment & WithContentPolicy(const GuardrailContentPolicyAssessment &value)
GuardrailAssessment & WithTopicPolicy(const GuardrailTopicPolicyAssessment &value)
void SetTopicPolicy(GuardrailTopicPolicyAssessment &&value)
const GuardrailSensitiveInformationPolicyAssessment & GetSensitiveInformationPolicy() const
GuardrailAssessment & WithTopicPolicy(GuardrailTopicPolicyAssessment &&value)
const GuardrailWordPolicyAssessment & GetWordPolicy() const
AWS_BEDROCKRUNTIME_API GuardrailAssessment(Aws::Utils::Json::JsonView jsonValue)
GuardrailAssessment & WithContentPolicy(GuardrailContentPolicyAssessment &&value)
void SetContextualGroundingPolicy(GuardrailContextualGroundingPolicyAssessment &&value)
const GuardrailContextualGroundingPolicyAssessment & GetContextualGroundingPolicy() const
const GuardrailContentPolicyAssessment & GetContentPolicy() const
void SetWordPolicy(GuardrailWordPolicyAssessment &&value)
void SetInvocationMetrics(const GuardrailInvocationMetrics &value)
void SetContentPolicy(GuardrailContentPolicyAssessment &&value)
void SetSensitiveInformationPolicy(const GuardrailSensitiveInformationPolicyAssessment &value)
GuardrailAssessment & WithInvocationMetrics(const GuardrailInvocationMetrics &value)
Aws::Utils::Json::JsonValue JsonValue