AWS SDK for C++

AWS SDK for C++ Version 1.11.849

Loading...
Searching...
No Matches
GuardrailChecksConfig.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/GuardrailChecksContentFilterConfig.h>
9#include <aws/bedrock-runtime/model/GuardrailChecksPromptAttackConfig.h>
10#include <aws/bedrock-runtime/model/GuardrailChecksSensitiveInformationConfig.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockRuntime {
22namespace Model {
23
31 public:
32 AWS_BEDROCKRUNTIME_API GuardrailChecksConfig() = default;
35 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const GuardrailChecksContentFilterConfig& GetContentFilter() const { return m_contentFilter; }
42 inline bool ContentFilterHasBeenSet() const { return m_contentFilterHasBeenSet; }
43 template <typename ContentFilterT = GuardrailChecksContentFilterConfig>
45 m_contentFilterHasBeenSet = true;
46 m_contentFilter = std::forward<ContentFilterT>(value);
47 }
48 template <typename ContentFilterT = GuardrailChecksContentFilterConfig>
50 SetContentFilter(std::forward<ContentFilterT>(value));
51 return *this;
52 }
54
56
59 inline const GuardrailChecksPromptAttackConfig& GetPromptAttack() const { return m_promptAttack; }
60 inline bool PromptAttackHasBeenSet() const { return m_promptAttackHasBeenSet; }
61 template <typename PromptAttackT = GuardrailChecksPromptAttackConfig>
63 m_promptAttackHasBeenSet = true;
64 m_promptAttack = std::forward<PromptAttackT>(value);
65 }
66 template <typename PromptAttackT = GuardrailChecksPromptAttackConfig>
68 SetPromptAttack(std::forward<PromptAttackT>(value));
69 return *this;
70 }
72
74
77 inline const GuardrailChecksSensitiveInformationConfig& GetSensitiveInformation() const { return m_sensitiveInformation; }
78 inline bool SensitiveInformationHasBeenSet() const { return m_sensitiveInformationHasBeenSet; }
79 template <typename SensitiveInformationT = GuardrailChecksSensitiveInformationConfig>
81 m_sensitiveInformationHasBeenSet = true;
82 m_sensitiveInformation = std::forward<SensitiveInformationT>(value);
83 }
84 template <typename SensitiveInformationT = GuardrailChecksSensitiveInformationConfig>
86 SetSensitiveInformation(std::forward<SensitiveInformationT>(value));
87 return *this;
88 }
90 private:
92
94
95 GuardrailChecksSensitiveInformationConfig m_sensitiveInformation;
96 bool m_contentFilterHasBeenSet = false;
97 bool m_promptAttackHasBeenSet = false;
98 bool m_sensitiveInformationHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace BedrockRuntime
103} // namespace Aws
AWS_BEDROCKRUNTIME_API GuardrailChecksConfig()=default
GuardrailChecksConfig & WithContentFilter(ContentFilterT &&value)
const GuardrailChecksContentFilterConfig & GetContentFilter() const
const GuardrailChecksPromptAttackConfig & GetPromptAttack() const
AWS_BEDROCKRUNTIME_API GuardrailChecksConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const GuardrailChecksSensitiveInformationConfig & GetSensitiveInformation() const
GuardrailChecksConfig & WithPromptAttack(PromptAttackT &&value)
void SetSensitiveInformation(SensitiveInformationT &&value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
GuardrailChecksConfig & WithSensitiveInformation(SensitiveInformationT &&value)
AWS_BEDROCKRUNTIME_API GuardrailChecksConfig(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue