AWS SDK for C++

AWS SDK for C++ Version 1.11.850

Loading...
Searching...
No Matches
GuardrailChecksResults.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/GuardrailChecksContentFilterResult.h>
9#include <aws/bedrock-runtime/model/GuardrailChecksPromptAttackResult.h>
10#include <aws/bedrock-runtime/model/GuardrailChecksSensitiveInformationResult.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 GuardrailChecksResults() = default;
35 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const GuardrailChecksContentFilterResult& GetContentFilter() const { return m_contentFilter; }
42 inline bool ContentFilterHasBeenSet() const { return m_contentFilterHasBeenSet; }
43 template <typename ContentFilterT = GuardrailChecksContentFilterResult>
45 m_contentFilterHasBeenSet = true;
46 m_contentFilter = std::forward<ContentFilterT>(value);
47 }
48 template <typename ContentFilterT = GuardrailChecksContentFilterResult>
50 SetContentFilter(std::forward<ContentFilterT>(value));
51 return *this;
52 }
54
56
59 inline const GuardrailChecksPromptAttackResult& GetPromptAttack() const { return m_promptAttack; }
60 inline bool PromptAttackHasBeenSet() const { return m_promptAttackHasBeenSet; }
61 template <typename PromptAttackT = GuardrailChecksPromptAttackResult>
63 m_promptAttackHasBeenSet = true;
64 m_promptAttack = std::forward<PromptAttackT>(value);
65 }
66 template <typename PromptAttackT = GuardrailChecksPromptAttackResult>
68 SetPromptAttack(std::forward<PromptAttackT>(value));
69 return *this;
70 }
72
74
77 inline const GuardrailChecksSensitiveInformationResult& GetSensitiveInformation() const { return m_sensitiveInformation; }
78 inline bool SensitiveInformationHasBeenSet() const { return m_sensitiveInformationHasBeenSet; }
79 template <typename SensitiveInformationT = GuardrailChecksSensitiveInformationResult>
81 m_sensitiveInformationHasBeenSet = true;
82 m_sensitiveInformation = std::forward<SensitiveInformationT>(value);
83 }
84 template <typename SensitiveInformationT = GuardrailChecksSensitiveInformationResult>
86 SetSensitiveInformation(std::forward<SensitiveInformationT>(value));
87 return *this;
88 }
90 private:
92
94
95 GuardrailChecksSensitiveInformationResult 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
const GuardrailChecksContentFilterResult & GetContentFilter() const
void SetSensitiveInformation(SensitiveInformationT &&value)
const GuardrailChecksSensitiveInformationResult & GetSensitiveInformation() const
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKRUNTIME_API GuardrailChecksResults & operator=(Aws::Utils::Json::JsonView jsonValue)
GuardrailChecksResults & WithContentFilter(ContentFilterT &&value)
AWS_BEDROCKRUNTIME_API GuardrailChecksResults()=default
AWS_BEDROCKRUNTIME_API GuardrailChecksResults(Aws::Utils::Json::JsonView jsonValue)
GuardrailChecksResults & WithSensitiveInformation(SensitiveInformationT &&value)
const GuardrailChecksPromptAttackResult & GetPromptAttack() const
GuardrailChecksResults & WithPromptAttack(PromptAttackT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue