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>
26namespace BedrockRuntime
52 template<
typename TopicPolicyT = GuardrailTopicPolicyAssessment>
53 void SetTopicPolicy(TopicPolicyT&& value) { m_topicPolicyHasBeenSet =
true; m_topicPolicy = std::forward<TopicPolicyT>(value); }
54 template<
typename TopicPolicyT = GuardrailTopicPolicyAssessment>
64 template<
typename ContentPolicyT = GuardrailContentPolicyAssessment>
65 void SetContentPolicy(ContentPolicyT&& value) { m_contentPolicyHasBeenSet =
true; m_contentPolicy = std::forward<ContentPolicyT>(value); }
66 template<
typename ContentPolicyT = GuardrailContentPolicyAssessment>
76 template<
typename WordPolicyT = GuardrailWordPolicyAssessment>
77 void SetWordPolicy(WordPolicyT&& value) { m_wordPolicyHasBeenSet =
true; m_wordPolicy = std::forward<WordPolicyT>(value); }
78 template<
typename WordPolicyT = GuardrailWordPolicyAssessment>
88 template<
typename SensitiveInformationPolicyT = GuardrailSensitiveInformationPolicyAssessment>
89 void SetSensitiveInformationPolicy(SensitiveInformationPolicyT&& value) { m_sensitiveInformationPolicyHasBeenSet =
true; m_sensitiveInformationPolicy = std::forward<SensitiveInformationPolicyT>(value); }
90 template<
typename SensitiveInformationPolicyT = GuardrailSensitiveInformationPolicyAssessment>
100 template<
typename ContextualGroundingPolicyT = GuardrailContextualGroundingPolicyAssessment>
101 void SetContextualGroundingPolicy(ContextualGroundingPolicyT&& value) { m_contextualGroundingPolicyHasBeenSet =
true; m_contextualGroundingPolicy = std::forward<ContextualGroundingPolicyT>(value); }
102 template<
typename ContextualGroundingPolicyT = GuardrailContextualGroundingPolicyAssessment>
112 template<
typename InvocationMetricsT = GuardrailInvocationMetrics>
113 void SetInvocationMetrics(InvocationMetricsT&& value) { m_invocationMetricsHasBeenSet =
true; m_invocationMetrics = std::forward<InvocationMetricsT>(value); }
114 template<
typename InvocationMetricsT = GuardrailInvocationMetrics>
120 bool m_topicPolicyHasBeenSet =
false;
123 bool m_contentPolicyHasBeenSet =
false;
126 bool m_wordPolicyHasBeenSet =
false;
129 bool m_sensitiveInformationPolicyHasBeenSet =
false;
132 bool m_contextualGroundingPolicyHasBeenSet =
false;
135 bool m_invocationMetricsHasBeenSet =
false;
const GuardrailInvocationMetrics & GetInvocationMetrics() const
bool SensitiveInformationPolicyHasBeenSet() const
void SetSensitiveInformationPolicy(SensitiveInformationPolicyT &&value)
GuardrailAssessment & WithWordPolicy(WordPolicyT &&value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
bool ContextualGroundingPolicyHasBeenSet() const
void SetTopicPolicy(TopicPolicyT &&value)
const GuardrailTopicPolicyAssessment & GetTopicPolicy() const
void SetContextualGroundingPolicy(ContextualGroundingPolicyT &&value)
bool InvocationMetricsHasBeenSet() const
AWS_BEDROCKRUNTIME_API GuardrailAssessment & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetContentPolicy(ContentPolicyT &&value)
GuardrailAssessment & WithContextualGroundingPolicy(ContextualGroundingPolicyT &&value)
bool TopicPolicyHasBeenSet() const
GuardrailAssessment & WithContentPolicy(ContentPolicyT &&value)
const GuardrailSensitiveInformationPolicyAssessment & GetSensitiveInformationPolicy() const
const GuardrailWordPolicyAssessment & GetWordPolicy() const
AWS_BEDROCKRUNTIME_API GuardrailAssessment(Aws::Utils::Json::JsonView jsonValue)
void SetInvocationMetrics(InvocationMetricsT &&value)
const GuardrailContextualGroundingPolicyAssessment & GetContextualGroundingPolicy() const
const GuardrailContentPolicyAssessment & GetContentPolicy() const
GuardrailAssessment & WithSensitiveInformationPolicy(SensitiveInformationPolicyT &&value)
void SetWordPolicy(WordPolicyT &&value)
GuardrailAssessment & WithTopicPolicy(TopicPolicyT &&value)
bool WordPolicyHasBeenSet() const
AWS_BEDROCKRUNTIME_API GuardrailAssessment()=default
GuardrailAssessment & WithInvocationMetrics(InvocationMetricsT &&value)
bool ContentPolicyHasBeenSet() const
Aws::Utils::Json::JsonValue JsonValue