AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
ComponentConditionProperty.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSAllocator.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AmplifyUIBuilder {
21namespace Model {
22class ComponentProperty;
23
33 public:
34 AWS_AMPLIFYUIBUILDER_API ComponentConditionProperty() = default;
35 AWS_AMPLIFYUIBUILDER_API ComponentConditionProperty(Aws::Utils::Json::JsonView jsonValue);
37 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetProperty() const { return m_property; }
44 inline bool PropertyHasBeenSet() const { return m_propertyHasBeenSet; }
45 template <typename PropertyT = Aws::String>
46 void SetProperty(PropertyT&& value) {
47 m_propertyHasBeenSet = true;
48 m_property = std::forward<PropertyT>(value);
49 }
50 template <typename PropertyT = Aws::String>
52 SetProperty(std::forward<PropertyT>(value));
53 return *this;
54 }
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) {
65 m_fieldHasBeenSet = true;
66 m_field = std::forward<FieldT>(value);
67 }
68 template <typename FieldT = Aws::String>
70 SetField(std::forward<FieldT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetOperator() const { return m_operator; }
81 inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
82 template <typename OperatorT = Aws::String>
83 void SetOperator(OperatorT&& value) {
84 m_operatorHasBeenSet = true;
85 m_operator = std::forward<OperatorT>(value);
86 }
87 template <typename OperatorT = Aws::String>
89 SetOperator(std::forward<OperatorT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetOperand() const { return m_operand; }
99 inline bool OperandHasBeenSet() const { return m_operandHasBeenSet; }
100 template <typename OperandT = Aws::String>
101 void SetOperand(OperandT&& value) {
102 m_operandHasBeenSet = true;
103 m_operand = std::forward<OperandT>(value);
104 }
105 template <typename OperandT = Aws::String>
107 SetOperand(std::forward<OperandT>(value));
108 return *this;
109 }
111
113
116 inline const ComponentProperty& GetThen() const { return *m_then; }
117 inline bool ThenHasBeenSet() const { return m_thenHasBeenSet; }
118 template <typename ThenT = ComponentProperty>
119 void SetThen(ThenT&& value) {
120 m_thenHasBeenSet = true;
121 m_then = Aws::MakeShared<ComponentProperty>("ComponentConditionProperty", std::forward<ThenT>(value));
122 }
123 template <typename ThenT = ComponentProperty>
125 SetThen(std::forward<ThenT>(value));
126 return *this;
127 }
129
131
134 inline const ComponentProperty& GetElse() const { return *m_else; }
135 inline bool ElseHasBeenSet() const { return m_elseHasBeenSet; }
136 template <typename ElseT = ComponentProperty>
137 void SetElse(ElseT&& value) {
138 m_elseHasBeenSet = true;
139 m_else = Aws::MakeShared<ComponentProperty>("ComponentConditionProperty", std::forward<ElseT>(value));
140 }
141 template <typename ElseT = ComponentProperty>
143 SetElse(std::forward<ElseT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::String& GetOperandType() const { return m_operandType; }
153 inline bool OperandTypeHasBeenSet() const { return m_operandTypeHasBeenSet; }
154 template <typename OperandTypeT = Aws::String>
155 void SetOperandType(OperandTypeT&& value) {
156 m_operandTypeHasBeenSet = true;
157 m_operandType = std::forward<OperandTypeT>(value);
158 }
159 template <typename OperandTypeT = Aws::String>
161 SetOperandType(std::forward<OperandTypeT>(value));
162 return *this;
163 }
165 private:
166 Aws::String m_property;
167
168 Aws::String m_field;
169
170 Aws::String m_operator;
171
172 Aws::String m_operand;
173
174 std::shared_ptr<ComponentProperty> m_then;
175
176 std::shared_ptr<ComponentProperty> m_else;
177
178 Aws::String m_operandType;
179 bool m_propertyHasBeenSet = false;
180 bool m_fieldHasBeenSet = false;
181 bool m_operatorHasBeenSet = false;
182 bool m_operandHasBeenSet = false;
183 bool m_thenHasBeenSet = false;
184 bool m_elseHasBeenSet = false;
185 bool m_operandTypeHasBeenSet = false;
186};
187
188} // namespace Model
189} // namespace AmplifyUIBuilder
190} // 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::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue