AWS SDK for C++

AWS SDK for C++ Version 1.11.636

Loading...
Searching...
No Matches
AutomatedReasoningPolicyDefinitionRule.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Bedrock
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_BEDROCK_API AutomatedReasoningPolicyDefinitionRule() = default;
39 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetId() const { return m_id; }
47 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 template<typename IdT = Aws::String>
49 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
50 template<typename IdT = Aws::String>
51 AutomatedReasoningPolicyDefinitionRule& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
53
55
58 inline const Aws::String& GetExpression() const { return m_expression; }
59 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
60 template<typename ExpressionT = Aws::String>
61 void SetExpression(ExpressionT&& value) { m_expressionHasBeenSet = true; m_expression = std::forward<ExpressionT>(value); }
62 template<typename ExpressionT = Aws::String>
63 AutomatedReasoningPolicyDefinitionRule& WithExpression(ExpressionT&& value) { SetExpression(std::forward<ExpressionT>(value)); return *this;}
65
67
71 inline const Aws::String& GetAlternateExpression() const { return m_alternateExpression; }
72 inline bool AlternateExpressionHasBeenSet() const { return m_alternateExpressionHasBeenSet; }
73 template<typename AlternateExpressionT = Aws::String>
74 void SetAlternateExpression(AlternateExpressionT&& value) { m_alternateExpressionHasBeenSet = true; m_alternateExpression = std::forward<AlternateExpressionT>(value); }
75 template<typename AlternateExpressionT = Aws::String>
76 AutomatedReasoningPolicyDefinitionRule& WithAlternateExpression(AlternateExpressionT&& value) { SetAlternateExpression(std::forward<AlternateExpressionT>(value)); return *this;}
78 private:
79
80 Aws::String m_id;
81 bool m_idHasBeenSet = false;
82
83 Aws::String m_expression;
84 bool m_expressionHasBeenSet = false;
85
86 Aws::String m_alternateExpression;
87 bool m_alternateExpressionHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace Bedrock
92} // namespace Aws
AWS_BEDROCK_API AutomatedReasoningPolicyDefinitionRule(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
AutomatedReasoningPolicyDefinitionRule & WithAlternateExpression(AlternateExpressionT &&value)
AutomatedReasoningPolicyDefinitionRule & WithExpression(ExpressionT &&value)
AWS_BEDROCK_API AutomatedReasoningPolicyDefinitionRule & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue