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-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/GuardrailContentPolicyAssessment.h>
9#include <aws/bedrock-agent-runtime/model/GuardrailSensitiveInformationPolicyAssessment.h>
10#include <aws/bedrock-agent-runtime/model/GuardrailTopicPolicyAssessment.h>
11#include <aws/bedrock-agent-runtime/model/GuardrailWordPolicyAssessment.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace BedrockAgentRuntime
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_BEDROCKAGENTRUNTIME_API GuardrailAssessment();
39 AWS_BEDROCKAGENTRUNTIME_API GuardrailAssessment(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BEDROCKAGENTRUNTIME_API GuardrailAssessment& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const GuardrailContentPolicyAssessment& GetContentPolicy() const{ return m_contentPolicy; }
49 inline bool ContentPolicyHasBeenSet() const { return m_contentPolicyHasBeenSet; }
50 inline void SetContentPolicy(const GuardrailContentPolicyAssessment& value) { m_contentPolicyHasBeenSet = true; m_contentPolicy = value; }
51 inline void SetContentPolicy(GuardrailContentPolicyAssessment&& value) { m_contentPolicyHasBeenSet = true; m_contentPolicy = std::move(value); }
55
57
60 inline const GuardrailSensitiveInformationPolicyAssessment& GetSensitiveInformationPolicy() const{ return m_sensitiveInformationPolicy; }
61 inline bool SensitiveInformationPolicyHasBeenSet() const { return m_sensitiveInformationPolicyHasBeenSet; }
62 inline void SetSensitiveInformationPolicy(const GuardrailSensitiveInformationPolicyAssessment& value) { m_sensitiveInformationPolicyHasBeenSet = true; m_sensitiveInformationPolicy = value; }
63 inline void SetSensitiveInformationPolicy(GuardrailSensitiveInformationPolicyAssessment&& value) { m_sensitiveInformationPolicyHasBeenSet = true; m_sensitiveInformationPolicy = std::move(value); }
67
69
72 inline const GuardrailTopicPolicyAssessment& GetTopicPolicy() const{ return m_topicPolicy; }
73 inline bool TopicPolicyHasBeenSet() const { return m_topicPolicyHasBeenSet; }
74 inline void SetTopicPolicy(const GuardrailTopicPolicyAssessment& value) { m_topicPolicyHasBeenSet = true; m_topicPolicy = value; }
75 inline void SetTopicPolicy(GuardrailTopicPolicyAssessment&& value) { m_topicPolicyHasBeenSet = true; m_topicPolicy = std::move(value); }
77 inline GuardrailAssessment& WithTopicPolicy(GuardrailTopicPolicyAssessment&& value) { SetTopicPolicy(std::move(value)); return *this;}
79
81
84 inline const GuardrailWordPolicyAssessment& GetWordPolicy() const{ return m_wordPolicy; }
85 inline bool WordPolicyHasBeenSet() const { return m_wordPolicyHasBeenSet; }
86 inline void SetWordPolicy(const GuardrailWordPolicyAssessment& value) { m_wordPolicyHasBeenSet = true; m_wordPolicy = value; }
87 inline void SetWordPolicy(GuardrailWordPolicyAssessment&& value) { m_wordPolicyHasBeenSet = true; m_wordPolicy = std::move(value); }
89 inline GuardrailAssessment& WithWordPolicy(GuardrailWordPolicyAssessment&& value) { SetWordPolicy(std::move(value)); return *this;}
91 private:
92
94 bool m_contentPolicyHasBeenSet = false;
95
96 GuardrailSensitiveInformationPolicyAssessment m_sensitiveInformationPolicy;
97 bool m_sensitiveInformationPolicyHasBeenSet = false;
98
100 bool m_topicPolicyHasBeenSet = false;
101
103 bool m_wordPolicyHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace BedrockAgentRuntime
108} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetWordPolicy(const GuardrailWordPolicyAssessment &value)
const GuardrailWordPolicyAssessment & GetWordPolicy() const
AWS_BEDROCKAGENTRUNTIME_API GuardrailAssessment()
GuardrailAssessment & WithSensitiveInformationPolicy(const GuardrailSensitiveInformationPolicyAssessment &value)
void SetSensitiveInformationPolicy(GuardrailSensitiveInformationPolicyAssessment &&value)
void SetTopicPolicy(GuardrailTopicPolicyAssessment &&value)
GuardrailAssessment & WithSensitiveInformationPolicy(GuardrailSensitiveInformationPolicyAssessment &&value)
GuardrailAssessment & WithTopicPolicy(const GuardrailTopicPolicyAssessment &value)
void SetWordPolicy(GuardrailWordPolicyAssessment &&value)
void SetContentPolicy(const GuardrailContentPolicyAssessment &value)
GuardrailAssessment & WithTopicPolicy(GuardrailTopicPolicyAssessment &&value)
const GuardrailTopicPolicyAssessment & GetTopicPolicy() const
void SetContentPolicy(GuardrailContentPolicyAssessment &&value)
AWS_BEDROCKAGENTRUNTIME_API GuardrailAssessment & operator=(Aws::Utils::Json::JsonView jsonValue)
GuardrailAssessment & WithWordPolicy(GuardrailWordPolicyAssessment &&value)
GuardrailAssessment & WithWordPolicy(const GuardrailWordPolicyAssessment &value)
void SetSensitiveInformationPolicy(const GuardrailSensitiveInformationPolicyAssessment &value)
const GuardrailContentPolicyAssessment & GetContentPolicy() const
GuardrailAssessment & WithContentPolicy(const GuardrailContentPolicyAssessment &value)
void SetTopicPolicy(const GuardrailTopicPolicyAssessment &value)
GuardrailAssessment & WithContentPolicy(GuardrailContentPolicyAssessment &&value)
const GuardrailSensitiveInformationPolicyAssessment & GetSensitiveInformationPolicy() const
AWS_BEDROCKAGENTRUNTIME_API GuardrailAssessment(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue