AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
AutomatedReasoningPolicyTestCase.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/AutomatedReasoningCheckResult.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Bedrock {
22namespace Model {
23
32 public:
33 AWS_BEDROCK_API AutomatedReasoningPolicyTestCase() = default;
36 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetTestCaseId() const { return m_testCaseId; }
43 inline bool TestCaseIdHasBeenSet() const { return m_testCaseIdHasBeenSet; }
44 template <typename TestCaseIdT = Aws::String>
45 void SetTestCaseId(TestCaseIdT&& value) {
46 m_testCaseIdHasBeenSet = true;
47 m_testCaseId = std::forward<TestCaseIdT>(value);
48 }
49 template <typename TestCaseIdT = Aws::String>
51 SetTestCaseId(std::forward<TestCaseIdT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetGuardContent() const { return m_guardContent; }
62 inline bool GuardContentHasBeenSet() const { return m_guardContentHasBeenSet; }
63 template <typename GuardContentT = Aws::String>
65 m_guardContentHasBeenSet = true;
66 m_guardContent = std::forward<GuardContentT>(value);
67 }
68 template <typename GuardContentT = Aws::String>
70 SetGuardContent(std::forward<GuardContentT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetQueryContent() const { return m_queryContent; }
81 inline bool QueryContentHasBeenSet() const { return m_queryContentHasBeenSet; }
82 template <typename QueryContentT = Aws::String>
84 m_queryContentHasBeenSet = true;
85 m_queryContent = std::forward<QueryContentT>(value);
86 }
87 template <typename QueryContentT = Aws::String>
89 SetQueryContent(std::forward<QueryContentT>(value));
90 return *this;
91 }
93
95
98 inline AutomatedReasoningCheckResult GetExpectedAggregatedFindingsResult() const { return m_expectedAggregatedFindingsResult; }
99 inline bool ExpectedAggregatedFindingsResultHasBeenSet() const { return m_expectedAggregatedFindingsResultHasBeenSet; }
101 m_expectedAggregatedFindingsResultHasBeenSet = true;
102 m_expectedAggregatedFindingsResult = value;
103 }
106 return *this;
107 }
109
111
114 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
115 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
116 template <typename CreatedAtT = Aws::Utils::DateTime>
117 void SetCreatedAt(CreatedAtT&& value) {
118 m_createdAtHasBeenSet = true;
119 m_createdAt = std::forward<CreatedAtT>(value);
120 }
121 template <typename CreatedAtT = Aws::Utils::DateTime>
123 SetCreatedAt(std::forward<CreatedAtT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
133 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
134 template <typename UpdatedAtT = Aws::Utils::DateTime>
135 void SetUpdatedAt(UpdatedAtT&& value) {
136 m_updatedAtHasBeenSet = true;
137 m_updatedAt = std::forward<UpdatedAtT>(value);
138 }
139 template <typename UpdatedAtT = Aws::Utils::DateTime>
141 SetUpdatedAt(std::forward<UpdatedAtT>(value));
142 return *this;
143 }
145
147
151 inline double GetConfidenceThreshold() const { return m_confidenceThreshold; }
152 inline bool ConfidenceThresholdHasBeenSet() const { return m_confidenceThresholdHasBeenSet; }
153 inline void SetConfidenceThreshold(double value) {
154 m_confidenceThresholdHasBeenSet = true;
155 m_confidenceThreshold = value;
156 }
159 return *this;
160 }
162 private:
163 Aws::String m_testCaseId;
164
165 Aws::String m_guardContent;
166
167 Aws::String m_queryContent;
168
170
171 Aws::Utils::DateTime m_createdAt{};
172
173 Aws::Utils::DateTime m_updatedAt{};
174
175 double m_confidenceThreshold{0.0};
176 bool m_testCaseIdHasBeenSet = false;
177 bool m_guardContentHasBeenSet = false;
178 bool m_queryContentHasBeenSet = false;
179 bool m_expectedAggregatedFindingsResultHasBeenSet = false;
180 bool m_createdAtHasBeenSet = false;
181 bool m_updatedAtHasBeenSet = false;
182 bool m_confidenceThresholdHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace Bedrock
187} // namespace Aws
AutomatedReasoningPolicyTestCase & WithConfidenceThreshold(double value)
AutomatedReasoningPolicyTestCase & WithTestCaseId(TestCaseIdT &&value)
AutomatedReasoningPolicyTestCase & WithCreatedAt(CreatedAtT &&value)
AutomatedReasoningPolicyTestCase & WithGuardContent(GuardContentT &&value)
AWS_BEDROCK_API AutomatedReasoningPolicyTestCase & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCK_API AutomatedReasoningPolicyTestCase()=default
AutomatedReasoningPolicyTestCase & WithExpectedAggregatedFindingsResult(AutomatedReasoningCheckResult value)
AutomatedReasoningPolicyTestCase & WithQueryContent(QueryContentT &&value)
AWS_BEDROCK_API AutomatedReasoningPolicyTestCase(Aws::Utils::Json::JsonView jsonValue)
void SetExpectedAggregatedFindingsResult(AutomatedReasoningCheckResult value)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
AutomatedReasoningPolicyTestCase & WithUpdatedAt(UpdatedAtT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue