AWS SDK for C++

AWS SDK for C++ Version 1.11.634

Loading...
Searching...
No Matches
AutomatedReasoningPolicyScenario.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/bedrock/model/AutomatedReasoningCheckResult.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 AutomatedReasoningPolicyScenario() = default;
41 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetExpression() const { return m_expression; }
49 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
50 template<typename ExpressionT = Aws::String>
51 void SetExpression(ExpressionT&& value) { m_expressionHasBeenSet = true; m_expression = std::forward<ExpressionT>(value); }
52 template<typename ExpressionT = Aws::String>
53 AutomatedReasoningPolicyScenario& WithExpression(ExpressionT&& value) { SetExpression(std::forward<ExpressionT>(value)); return *this;}
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>
64 void SetAlternateExpression(AlternateExpressionT&& value) { m_alternateExpressionHasBeenSet = true; m_alternateExpression = std::forward<AlternateExpressionT>(value); }
65 template<typename AlternateExpressionT = Aws::String>
66 AutomatedReasoningPolicyScenario& WithAlternateExpression(AlternateExpressionT&& value) { SetAlternateExpression(std::forward<AlternateExpressionT>(value)); return *this;}
68
70
74 inline const Aws::Vector<Aws::String>& GetRuleIds() const { return m_ruleIds; }
75 inline bool RuleIdsHasBeenSet() const { return m_ruleIdsHasBeenSet; }
76 template<typename RuleIdsT = Aws::Vector<Aws::String>>
77 void SetRuleIds(RuleIdsT&& value) { m_ruleIdsHasBeenSet = true; m_ruleIds = std::forward<RuleIdsT>(value); }
78 template<typename RuleIdsT = Aws::Vector<Aws::String>>
79 AutomatedReasoningPolicyScenario& WithRuleIds(RuleIdsT&& value) { SetRuleIds(std::forward<RuleIdsT>(value)); return *this;}
80 template<typename RuleIdsT = Aws::String>
81 AutomatedReasoningPolicyScenario& AddRuleIds(RuleIdsT&& value) { m_ruleIdsHasBeenSet = true; m_ruleIds.emplace_back(std::forward<RuleIdsT>(value)); return *this; }
83
85
89 inline AutomatedReasoningCheckResult GetExpectedResult() const { return m_expectedResult; }
90 inline bool ExpectedResultHasBeenSet() const { return m_expectedResultHasBeenSet; }
91 inline void SetExpectedResult(AutomatedReasoningCheckResult value) { m_expectedResultHasBeenSet = true; m_expectedResult = value; }
94 private:
95
96 Aws::String m_expression;
97 bool m_expressionHasBeenSet = false;
98
99 Aws::String m_alternateExpression;
100 bool m_alternateExpressionHasBeenSet = false;
101
102 Aws::Vector<Aws::String> m_ruleIds;
103 bool m_ruleIdsHasBeenSet = false;
104
106 bool m_expectedResultHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace Bedrock
111} // 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue