AWS SDK for C++

AWS SDK for C++ Version 1.11.636

Loading...
Searching...
No Matches
AutomatedReasoningPolicyTestCase.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/bedrock/model/AutomatedReasoningCheckResult.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Bedrock
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_BEDROCK_API AutomatedReasoningPolicyTestCase() = default;
41 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetTestCaseId() const { return m_testCaseId; }
49 inline bool TestCaseIdHasBeenSet() const { return m_testCaseIdHasBeenSet; }
50 template<typename TestCaseIdT = Aws::String>
51 void SetTestCaseId(TestCaseIdT&& value) { m_testCaseIdHasBeenSet = true; m_testCaseId = std::forward<TestCaseIdT>(value); }
52 template<typename TestCaseIdT = Aws::String>
53 AutomatedReasoningPolicyTestCase& WithTestCaseId(TestCaseIdT&& value) { SetTestCaseId(std::forward<TestCaseIdT>(value)); return *this;}
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>
64 void SetGuardContent(GuardContentT&& value) { m_guardContentHasBeenSet = true; m_guardContent = std::forward<GuardContentT>(value); }
65 template<typename GuardContentT = Aws::String>
66 AutomatedReasoningPolicyTestCase& WithGuardContent(GuardContentT&& value) { SetGuardContent(std::forward<GuardContentT>(value)); return *this;}
68
70
74 inline const Aws::String& GetQueryContent() const { return m_queryContent; }
75 inline bool QueryContentHasBeenSet() const { return m_queryContentHasBeenSet; }
76 template<typename QueryContentT = Aws::String>
77 void SetQueryContent(QueryContentT&& value) { m_queryContentHasBeenSet = true; m_queryContent = std::forward<QueryContentT>(value); }
78 template<typename QueryContentT = Aws::String>
79 AutomatedReasoningPolicyTestCase& WithQueryContent(QueryContentT&& value) { SetQueryContent(std::forward<QueryContentT>(value)); return *this;}
81
83
86 inline AutomatedReasoningCheckResult GetExpectedAggregatedFindingsResult() const { return m_expectedAggregatedFindingsResult; }
87 inline bool ExpectedAggregatedFindingsResultHasBeenSet() const { return m_expectedAggregatedFindingsResultHasBeenSet; }
88 inline void SetExpectedAggregatedFindingsResult(AutomatedReasoningCheckResult value) { m_expectedAggregatedFindingsResultHasBeenSet = true; m_expectedAggregatedFindingsResult = value; }
91
93
96 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
97 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
98 template<typename CreatedAtT = Aws::Utils::DateTime>
99 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
100 template<typename CreatedAtT = Aws::Utils::DateTime>
101 AutomatedReasoningPolicyTestCase& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
103
105
108 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
109 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
110 template<typename UpdatedAtT = Aws::Utils::DateTime>
111 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
112 template<typename UpdatedAtT = Aws::Utils::DateTime>
113 AutomatedReasoningPolicyTestCase& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
115
117
121 inline double GetConfidenceThreshold() const { return m_confidenceThreshold; }
122 inline bool ConfidenceThresholdHasBeenSet() const { return m_confidenceThresholdHasBeenSet; }
123 inline void SetConfidenceThreshold(double value) { m_confidenceThresholdHasBeenSet = true; m_confidenceThreshold = value; }
126 private:
127
128 Aws::String m_testCaseId;
129 bool m_testCaseIdHasBeenSet = false;
130
131 Aws::String m_guardContent;
132 bool m_guardContentHasBeenSet = false;
133
134 Aws::String m_queryContent;
135 bool m_queryContentHasBeenSet = false;
136
138 bool m_expectedAggregatedFindingsResultHasBeenSet = false;
139
140 Aws::Utils::DateTime m_createdAt{};
141 bool m_createdAtHasBeenSet = false;
142
143 Aws::Utils::DateTime m_updatedAt{};
144 bool m_updatedAtHasBeenSet = false;
145
146 double m_confidenceThreshold{0.0};
147 bool m_confidenceThresholdHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace Bedrock
152} // 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue