AWS SDK for C++

AWS SDK for C++ Version 1.11.850

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