AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ComponentConditionProperty.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSAllocator.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AmplifyUIBuilder
23{
24namespace Model
25{
26 class ComponentProperty;
27
37 {
38 public:
39 AWS_AMPLIFYUIBUILDER_API ComponentConditionProperty() = default;
40 AWS_AMPLIFYUIBUILDER_API ComponentConditionProperty(Aws::Utils::Json::JsonView jsonValue);
42 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetProperty() const { return m_property; }
50 inline bool PropertyHasBeenSet() const { return m_propertyHasBeenSet; }
51 template<typename PropertyT = Aws::String>
52 void SetProperty(PropertyT&& value) { m_propertyHasBeenSet = true; m_property = std::forward<PropertyT>(value); }
53 template<typename PropertyT = Aws::String>
54 ComponentConditionProperty& WithProperty(PropertyT&& value) { SetProperty(std::forward<PropertyT>(value)); return *this;}
56
58
61 inline const Aws::String& GetField() const { return m_field; }
62 inline bool FieldHasBeenSet() const { return m_fieldHasBeenSet; }
63 template<typename FieldT = Aws::String>
64 void SetField(FieldT&& value) { m_fieldHasBeenSet = true; m_field = std::forward<FieldT>(value); }
65 template<typename FieldT = Aws::String>
66 ComponentConditionProperty& WithField(FieldT&& value) { SetField(std::forward<FieldT>(value)); return *this;}
68
70
74 inline const Aws::String& GetOperator() const { return m_operator; }
75 inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
76 template<typename OperatorT = Aws::String>
77 void SetOperator(OperatorT&& value) { m_operatorHasBeenSet = true; m_operator = std::forward<OperatorT>(value); }
78 template<typename OperatorT = Aws::String>
79 ComponentConditionProperty& WithOperator(OperatorT&& value) { SetOperator(std::forward<OperatorT>(value)); return *this;}
81
83
86 inline const Aws::String& GetOperand() const { return m_operand; }
87 inline bool OperandHasBeenSet() const { return m_operandHasBeenSet; }
88 template<typename OperandT = Aws::String>
89 void SetOperand(OperandT&& value) { m_operandHasBeenSet = true; m_operand = std::forward<OperandT>(value); }
90 template<typename OperandT = Aws::String>
91 ComponentConditionProperty& WithOperand(OperandT&& value) { SetOperand(std::forward<OperandT>(value)); return *this;}
93
95
98 inline const ComponentProperty& GetThen() const{
99 return *m_then;
100 }
101 inline bool ThenHasBeenSet() const { return m_thenHasBeenSet; }
102 template<typename ThenT = ComponentProperty>
103 void SetThen(ThenT&& value) {
104 m_thenHasBeenSet = true;
105 m_then = Aws::MakeShared<ComponentProperty>("ComponentConditionProperty", std::forward<ThenT>(value));
106 }
107 template<typename ThenT = ComponentProperty>
108 ComponentConditionProperty& WithThen(ThenT&& value) { SetThen(std::forward<ThenT>(value)); return *this;}
110
112
115 inline const ComponentProperty& GetElse() const{
116 return *m_else;
117 }
118 inline bool ElseHasBeenSet() const { return m_elseHasBeenSet; }
119 template<typename ElseT = ComponentProperty>
120 void SetElse(ElseT&& value) {
121 m_elseHasBeenSet = true;
122 m_else = Aws::MakeShared<ComponentProperty>("ComponentConditionProperty", std::forward<ElseT>(value));
123 }
124 template<typename ElseT = ComponentProperty>
125 ComponentConditionProperty& WithElse(ElseT&& value) { SetElse(std::forward<ElseT>(value)); return *this;}
127
129
132 inline const Aws::String& GetOperandType() const { return m_operandType; }
133 inline bool OperandTypeHasBeenSet() const { return m_operandTypeHasBeenSet; }
134 template<typename OperandTypeT = Aws::String>
135 void SetOperandType(OperandTypeT&& value) { m_operandTypeHasBeenSet = true; m_operandType = std::forward<OperandTypeT>(value); }
136 template<typename OperandTypeT = Aws::String>
137 ComponentConditionProperty& WithOperandType(OperandTypeT&& value) { SetOperandType(std::forward<OperandTypeT>(value)); return *this;}
139 private:
140
141 Aws::String m_property;
142 bool m_propertyHasBeenSet = false;
143
144 Aws::String m_field;
145 bool m_fieldHasBeenSet = false;
146
147 Aws::String m_operator;
148 bool m_operatorHasBeenSet = false;
149
150 Aws::String m_operand;
151 bool m_operandHasBeenSet = false;
152
153 std::shared_ptr<ComponentProperty> m_then;
154 bool m_thenHasBeenSet = false;
155
156 std::shared_ptr<ComponentProperty> m_else;
157 bool m_elseHasBeenSet = false;
158
159 Aws::String m_operandType;
160 bool m_operandTypeHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace AmplifyUIBuilder
165} // namespace Aws
ComponentConditionProperty & WithProperty(PropertyT &&value)
ComponentConditionProperty & WithOperand(OperandT &&value)
ComponentConditionProperty & WithOperandType(OperandTypeT &&value)
AWS_AMPLIFYUIBUILDER_API ComponentConditionProperty & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
ComponentConditionProperty & WithOperator(OperatorT &&value)
AWS_AMPLIFYUIBUILDER_API ComponentConditionProperty()=default
AWS_AMPLIFYUIBUILDER_API ComponentConditionProperty(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue