AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <utility>
10#include <memory>
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();
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 inline void SetProperty(const Aws::String& value) { m_propertyHasBeenSet = true; m_property = value; }
52 inline void SetProperty(Aws::String&& value) { m_propertyHasBeenSet = true; m_property = std::move(value); }
53 inline void SetProperty(const char* value) { m_propertyHasBeenSet = true; m_property.assign(value); }
54 inline ComponentConditionProperty& WithProperty(const Aws::String& value) { SetProperty(value); return *this;}
55 inline ComponentConditionProperty& WithProperty(Aws::String&& value) { SetProperty(std::move(value)); return *this;}
56 inline ComponentConditionProperty& WithProperty(const char* value) { SetProperty(value); return *this;}
58
60
63 inline const Aws::String& GetField() const{ return m_field; }
64 inline bool FieldHasBeenSet() const { return m_fieldHasBeenSet; }
65 inline void SetField(const Aws::String& value) { m_fieldHasBeenSet = true; m_field = value; }
66 inline void SetField(Aws::String&& value) { m_fieldHasBeenSet = true; m_field = std::move(value); }
67 inline void SetField(const char* value) { m_fieldHasBeenSet = true; m_field.assign(value); }
68 inline ComponentConditionProperty& WithField(const Aws::String& value) { SetField(value); return *this;}
69 inline ComponentConditionProperty& WithField(Aws::String&& value) { SetField(std::move(value)); return *this;}
70 inline ComponentConditionProperty& WithField(const char* value) { SetField(value); return *this;}
72
74
78 inline const Aws::String& GetOperator() const{ return m_operator; }
79 inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
80 inline void SetOperator(const Aws::String& value) { m_operatorHasBeenSet = true; m_operator = value; }
81 inline void SetOperator(Aws::String&& value) { m_operatorHasBeenSet = true; m_operator = std::move(value); }
82 inline void SetOperator(const char* value) { m_operatorHasBeenSet = true; m_operator.assign(value); }
83 inline ComponentConditionProperty& WithOperator(const Aws::String& value) { SetOperator(value); return *this;}
84 inline ComponentConditionProperty& WithOperator(Aws::String&& value) { SetOperator(std::move(value)); return *this;}
85 inline ComponentConditionProperty& WithOperator(const char* value) { SetOperator(value); return *this;}
87
89
92 inline const Aws::String& GetOperand() const{ return m_operand; }
93 inline bool OperandHasBeenSet() const { return m_operandHasBeenSet; }
94 inline void SetOperand(const Aws::String& value) { m_operandHasBeenSet = true; m_operand = value; }
95 inline void SetOperand(Aws::String&& value) { m_operandHasBeenSet = true; m_operand = std::move(value); }
96 inline void SetOperand(const char* value) { m_operandHasBeenSet = true; m_operand.assign(value); }
97 inline ComponentConditionProperty& WithOperand(const Aws::String& value) { SetOperand(value); return *this;}
98 inline ComponentConditionProperty& WithOperand(Aws::String&& value) { SetOperand(std::move(value)); return *this;}
99 inline ComponentConditionProperty& WithOperand(const char* value) { SetOperand(value); return *this;}
101
103
106 AWS_AMPLIFYUIBUILDER_API const ComponentProperty& GetThen() const;
107 AWS_AMPLIFYUIBUILDER_API bool ThenHasBeenSet() const;
108 AWS_AMPLIFYUIBUILDER_API void SetThen(const ComponentProperty& value);
109 AWS_AMPLIFYUIBUILDER_API void SetThen(ComponentProperty&& value);
110 AWS_AMPLIFYUIBUILDER_API ComponentConditionProperty& WithThen(const ComponentProperty& value);
111 AWS_AMPLIFYUIBUILDER_API ComponentConditionProperty& WithThen(ComponentProperty&& value);
113
115
118 AWS_AMPLIFYUIBUILDER_API const ComponentProperty& GetElse() const;
119 AWS_AMPLIFYUIBUILDER_API bool ElseHasBeenSet() const;
120 AWS_AMPLIFYUIBUILDER_API void SetElse(const ComponentProperty& value);
121 AWS_AMPLIFYUIBUILDER_API void SetElse(ComponentProperty&& value);
122 AWS_AMPLIFYUIBUILDER_API ComponentConditionProperty& WithElse(const ComponentProperty& value);
123 AWS_AMPLIFYUIBUILDER_API ComponentConditionProperty& WithElse(ComponentProperty&& value);
125
127
130 inline const Aws::String& GetOperandType() const{ return m_operandType; }
131 inline bool OperandTypeHasBeenSet() const { return m_operandTypeHasBeenSet; }
132 inline void SetOperandType(const Aws::String& value) { m_operandTypeHasBeenSet = true; m_operandType = value; }
133 inline void SetOperandType(Aws::String&& value) { m_operandTypeHasBeenSet = true; m_operandType = std::move(value); }
134 inline void SetOperandType(const char* value) { m_operandTypeHasBeenSet = true; m_operandType.assign(value); }
135 inline ComponentConditionProperty& WithOperandType(const Aws::String& value) { SetOperandType(value); return *this;}
136 inline ComponentConditionProperty& WithOperandType(Aws::String&& value) { SetOperandType(std::move(value)); return *this;}
137 inline ComponentConditionProperty& WithOperandType(const char* value) { SetOperandType(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 & WithOperator(const char *value)
ComponentConditionProperty & WithOperator(const Aws::String &value)
AWS_AMPLIFYUIBUILDER_API ComponentConditionProperty & WithThen(const ComponentProperty &value)
ComponentConditionProperty & WithField(Aws::String &&value)
ComponentConditionProperty & WithOperand(Aws::String &&value)
AWS_AMPLIFYUIBUILDER_API ComponentConditionProperty & WithElse(const ComponentProperty &value)
AWS_AMPLIFYUIBUILDER_API void SetThen(ComponentProperty &&value)
AWS_AMPLIFYUIBUILDER_API void SetThen(const ComponentProperty &value)
ComponentConditionProperty & WithOperator(Aws::String &&value)
AWS_AMPLIFYUIBUILDER_API void SetElse(const ComponentProperty &value)
AWS_AMPLIFYUIBUILDER_API bool ThenHasBeenSet() const
AWS_AMPLIFYUIBUILDER_API const ComponentProperty & GetThen() const
AWS_AMPLIFYUIBUILDER_API ComponentConditionProperty & WithThen(ComponentProperty &&value)
AWS_AMPLIFYUIBUILDER_API const ComponentProperty & GetElse() const
AWS_AMPLIFYUIBUILDER_API ComponentConditionProperty & WithElse(ComponentProperty &&value)
ComponentConditionProperty & WithOperandType(Aws::String &&value)
ComponentConditionProperty & WithOperandType(const Aws::String &value)
AWS_AMPLIFYUIBUILDER_API void SetElse(ComponentProperty &&value)
ComponentConditionProperty & WithProperty(const char *value)
ComponentConditionProperty & WithField(const Aws::String &value)
AWS_AMPLIFYUIBUILDER_API bool ElseHasBeenSet() const
ComponentConditionProperty & WithOperand(const char *value)
ComponentConditionProperty & WithProperty(Aws::String &&value)
ComponentConditionProperty & WithProperty(const Aws::String &value)
ComponentConditionProperty & WithField(const char *value)
AWS_AMPLIFYUIBUILDER_API ComponentConditionProperty & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
ComponentConditionProperty & WithOperand(const Aws::String &value)
ComponentConditionProperty & WithOperandType(const char *value)
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