7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
22namespace AmplifyUIBuilder
49 template<
typename OrT = Aws::Vector<Predicate>>
50 void SetOr(OrT&& value) { m_orHasBeenSet =
true; m_or = std::forward<OrT>(value); }
51 template<
typename OrT = Aws::Vector<Predicate>>
53 template<
typename OrT = Predicate>
54 Predicate&
AddOr(OrT&& value) { m_orHasBeenSet =
true; m_or.emplace_back(std::forward<OrT>(value));
return *
this; }
63 template<
typename AndT = Aws::Vector<Predicate>>
64 void SetAnd(AndT&& value) { m_andHasBeenSet =
true; m_and = std::forward<AndT>(value); }
65 template<
typename AndT = Aws::Vector<Predicate>>
67 template<
typename AndT = Predicate>
68 Predicate&
AddAnd(AndT&& value) { m_andHasBeenSet =
true; m_and.emplace_back(std::forward<AndT>(value));
return *
this; }
77 template<
typename FieldT = Aws::String>
78 void SetField(FieldT&& value) { m_fieldHasBeenSet =
true; m_field = std::forward<FieldT>(value); }
79 template<
typename FieldT = Aws::String>
89 template<
typename OperatorT = Aws::String>
90 void SetOperator(OperatorT&& value) { m_operatorHasBeenSet =
true; m_operator = std::forward<OperatorT>(value); }
91 template<
typename OperatorT = Aws::String>
101 template<
typename OperandT = Aws::String>
102 void SetOperand(OperandT&& value) { m_operandHasBeenSet =
true; m_operand = std::forward<OperandT>(value); }
103 template<
typename OperandT = Aws::String>
113 template<
typename OperandTypeT = Aws::String>
114 void SetOperandType(OperandTypeT&& value) { m_operandTypeHasBeenSet =
true; m_operandType = std::forward<OperandTypeT>(value); }
115 template<
typename OperandTypeT = Aws::String>
121 bool m_orHasBeenSet =
false;
124 bool m_andHasBeenSet =
false;
127 bool m_fieldHasBeenSet =
false;
130 bool m_operatorHasBeenSet =
false;
133 bool m_operandHasBeenSet =
false;
136 bool m_operandTypeHasBeenSet =
false;
Predicate & WithOperator(OperatorT &&value)
void SetOperator(OperatorT &&value)
const Aws::String & GetOperand() const
AWS_AMPLIFYUIBUILDER_API Predicate & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetOperand(OperandT &&value)
const Aws::String & GetOperator() const
AWS_AMPLIFYUIBUILDER_API Predicate()=default
bool FieldHasBeenSet() const
Predicate & AddOr(OrT &&value)
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
bool OperandHasBeenSet() const
Predicate & WithAnd(AndT &&value)
Predicate & WithOr(OrT &&value)
const Aws::String & GetOperandType() const
bool OperatorHasBeenSet() const
void SetAnd(AndT &&value)
Predicate & AddAnd(AndT &&value)
Predicate & WithOperandType(OperandTypeT &&value)
bool OrHasBeenSet() const
bool AndHasBeenSet() const
Predicate & WithOperand(OperandT &&value)
const Aws::Vector< Predicate > & GetOr() const
Predicate & WithField(FieldT &&value)
AWS_AMPLIFYUIBUILDER_API Predicate(Aws::Utils::Json::JsonView jsonValue)
bool OperandTypeHasBeenSet() const
void SetOperandType(OperandTypeT &&value)
void SetField(FieldT &&value)
const Aws::Vector< Predicate > & GetAnd() const
const Aws::String & GetField() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue