AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
AutomatedReasoningPolicyScenario.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/AutomatedReasoningCheckResult.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.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 AutomatedReasoningPolicyScenario() = default;
36 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetExpression() const { return m_expression; }
43 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
44 template <typename ExpressionT = Aws::String>
45 void SetExpression(ExpressionT&& value) {
46 m_expressionHasBeenSet = true;
47 m_expression = std::forward<ExpressionT>(value);
48 }
49 template <typename ExpressionT = Aws::String>
51 SetExpression(std::forward<ExpressionT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetAlternateExpression() const { return m_alternateExpression; }
62 inline bool AlternateExpressionHasBeenSet() const { return m_alternateExpressionHasBeenSet; }
63 template <typename AlternateExpressionT = Aws::String>
65 m_alternateExpressionHasBeenSet = true;
66 m_alternateExpression = std::forward<AlternateExpressionT>(value);
67 }
68 template <typename AlternateExpressionT = Aws::String>
70 SetAlternateExpression(std::forward<AlternateExpressionT>(value));
71 return *this;
72 }
74
76
80 inline AutomatedReasoningCheckResult GetExpectedResult() const { return m_expectedResult; }
81 inline bool ExpectedResultHasBeenSet() const { return m_expectedResultHasBeenSet; }
83 m_expectedResultHasBeenSet = true;
84 m_expectedResult = value;
85 }
87 SetExpectedResult(value);
88 return *this;
89 }
91
93
97 inline const Aws::Vector<Aws::String>& GetRuleIds() const { return m_ruleIds; }
98 inline bool RuleIdsHasBeenSet() const { return m_ruleIdsHasBeenSet; }
99 template <typename RuleIdsT = Aws::Vector<Aws::String>>
100 void SetRuleIds(RuleIdsT&& value) {
101 m_ruleIdsHasBeenSet = true;
102 m_ruleIds = std::forward<RuleIdsT>(value);
103 }
104 template <typename RuleIdsT = Aws::Vector<Aws::String>>
106 SetRuleIds(std::forward<RuleIdsT>(value));
107 return *this;
108 }
109 template <typename RuleIdsT = Aws::String>
111 m_ruleIdsHasBeenSet = true;
112 m_ruleIds.emplace_back(std::forward<RuleIdsT>(value));
113 return *this;
114 }
116 private:
117 Aws::String m_expression;
118
119 Aws::String m_alternateExpression;
120
122
123 Aws::Vector<Aws::String> m_ruleIds;
124 bool m_expressionHasBeenSet = false;
125 bool m_alternateExpressionHasBeenSet = false;
126 bool m_expectedResultHasBeenSet = false;
127 bool m_ruleIdsHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace Bedrock
132} // namespace Aws
AWS_BEDROCK_API AutomatedReasoningPolicyScenario()=default
AutomatedReasoningPolicyScenario & WithExpression(ExpressionT &&value)
AWS_BEDROCK_API AutomatedReasoningPolicyScenario(Aws::Utils::Json::JsonView jsonValue)
AutomatedReasoningPolicyScenario & WithAlternateExpression(AlternateExpressionT &&value)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
AutomatedReasoningPolicyScenario & AddRuleIds(RuleIdsT &&value)
AutomatedReasoningPolicyScenario & WithExpectedResult(AutomatedReasoningCheckResult value)
AWS_BEDROCK_API AutomatedReasoningPolicyScenario & operator=(Aws::Utils::Json::JsonView jsonValue)
AutomatedReasoningPolicyScenario & WithRuleIds(RuleIdsT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue