AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Predicate.h
1
6#pragma once
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>
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
35 {
36 public:
37 AWS_AMPLIFYUIBUILDER_API Predicate();
38 AWS_AMPLIFYUIBUILDER_API Predicate(Aws::Utils::Json::JsonView jsonValue);
39 AWS_AMPLIFYUIBUILDER_API Predicate& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<Predicate>& GetOr() const{ return m_or; }
48 inline bool OrHasBeenSet() const { return m_orHasBeenSet; }
49 inline void SetOr(const Aws::Vector<Predicate>& value) { m_orHasBeenSet = true; m_or = value; }
50 inline void SetOr(Aws::Vector<Predicate>&& value) { m_orHasBeenSet = true; m_or = std::move(value); }
51 inline Predicate& WithOr(const Aws::Vector<Predicate>& value) { SetOr(value); return *this;}
52 inline Predicate& WithOr(Aws::Vector<Predicate>&& value) { SetOr(std::move(value)); return *this;}
53 inline Predicate& AddOr(const Predicate& value) { m_orHasBeenSet = true; m_or.push_back(value); return *this; }
54 inline Predicate& AddOr(Predicate&& value) { m_orHasBeenSet = true; m_or.push_back(std::move(value)); return *this; }
56
58
61 inline const Aws::Vector<Predicate>& GetAnd() const{ return m_and; }
62 inline bool AndHasBeenSet() const { return m_andHasBeenSet; }
63 inline void SetAnd(const Aws::Vector<Predicate>& value) { m_andHasBeenSet = true; m_and = value; }
64 inline void SetAnd(Aws::Vector<Predicate>&& value) { m_andHasBeenSet = true; m_and = std::move(value); }
65 inline Predicate& WithAnd(const Aws::Vector<Predicate>& value) { SetAnd(value); return *this;}
66 inline Predicate& WithAnd(Aws::Vector<Predicate>&& value) { SetAnd(std::move(value)); return *this;}
67 inline Predicate& AddAnd(const Predicate& value) { m_andHasBeenSet = true; m_and.push_back(value); return *this; }
68 inline Predicate& AddAnd(Predicate&& value) { m_andHasBeenSet = true; m_and.push_back(std::move(value)); return *this; }
70
72
75 inline const Aws::String& GetField() const{ return m_field; }
76 inline bool FieldHasBeenSet() const { return m_fieldHasBeenSet; }
77 inline void SetField(const Aws::String& value) { m_fieldHasBeenSet = true; m_field = value; }
78 inline void SetField(Aws::String&& value) { m_fieldHasBeenSet = true; m_field = std::move(value); }
79 inline void SetField(const char* value) { m_fieldHasBeenSet = true; m_field.assign(value); }
80 inline Predicate& WithField(const Aws::String& value) { SetField(value); return *this;}
81 inline Predicate& WithField(Aws::String&& value) { SetField(std::move(value)); return *this;}
82 inline Predicate& WithField(const char* value) { SetField(value); return *this;}
84
86
89 inline const Aws::String& GetOperator() const{ return m_operator; }
90 inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
91 inline void SetOperator(const Aws::String& value) { m_operatorHasBeenSet = true; m_operator = value; }
92 inline void SetOperator(Aws::String&& value) { m_operatorHasBeenSet = true; m_operator = std::move(value); }
93 inline void SetOperator(const char* value) { m_operatorHasBeenSet = true; m_operator.assign(value); }
94 inline Predicate& WithOperator(const Aws::String& value) { SetOperator(value); return *this;}
95 inline Predicate& WithOperator(Aws::String&& value) { SetOperator(std::move(value)); return *this;}
96 inline Predicate& WithOperator(const char* value) { SetOperator(value); return *this;}
98
100
103 inline const Aws::String& GetOperand() const{ return m_operand; }
104 inline bool OperandHasBeenSet() const { return m_operandHasBeenSet; }
105 inline void SetOperand(const Aws::String& value) { m_operandHasBeenSet = true; m_operand = value; }
106 inline void SetOperand(Aws::String&& value) { m_operandHasBeenSet = true; m_operand = std::move(value); }
107 inline void SetOperand(const char* value) { m_operandHasBeenSet = true; m_operand.assign(value); }
108 inline Predicate& WithOperand(const Aws::String& value) { SetOperand(value); return *this;}
109 inline Predicate& WithOperand(Aws::String&& value) { SetOperand(std::move(value)); return *this;}
110 inline Predicate& WithOperand(const char* value) { SetOperand(value); return *this;}
112
114
117 inline const Aws::String& GetOperandType() const{ return m_operandType; }
118 inline bool OperandTypeHasBeenSet() const { return m_operandTypeHasBeenSet; }
119 inline void SetOperandType(const Aws::String& value) { m_operandTypeHasBeenSet = true; m_operandType = value; }
120 inline void SetOperandType(Aws::String&& value) { m_operandTypeHasBeenSet = true; m_operandType = std::move(value); }
121 inline void SetOperandType(const char* value) { m_operandTypeHasBeenSet = true; m_operandType.assign(value); }
122 inline Predicate& WithOperandType(const Aws::String& value) { SetOperandType(value); return *this;}
123 inline Predicate& WithOperandType(Aws::String&& value) { SetOperandType(std::move(value)); return *this;}
124 inline Predicate& WithOperandType(const char* value) { SetOperandType(value); return *this;}
126 private:
127
129 bool m_orHasBeenSet = false;
130
132 bool m_andHasBeenSet = false;
133
134 Aws::String m_field;
135 bool m_fieldHasBeenSet = false;
136
137 Aws::String m_operator;
138 bool m_operatorHasBeenSet = false;
139
140 Aws::String m_operand;
141 bool m_operandHasBeenSet = false;
142
143 Aws::String m_operandType;
144 bool m_operandTypeHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace AmplifyUIBuilder
149} // namespace Aws
void SetOperator(const char *value)
Definition Predicate.h:93
void SetField(const char *value)
Definition Predicate.h:79
void SetAnd(const Aws::Vector< Predicate > &value)
Definition Predicate.h:63
void SetOr(const Aws::Vector< Predicate > &value)
Definition Predicate.h:49
Predicate & WithOr(Aws::Vector< Predicate > &&value)
Definition Predicate.h:52
Predicate & AddOr(Predicate &&value)
Definition Predicate.h:54
Predicate & WithField(const Aws::String &value)
Definition Predicate.h:80
Predicate & AddAnd(const Predicate &value)
Definition Predicate.h:67
const Aws::String & GetOperand() const
Definition Predicate.h:103
AWS_AMPLIFYUIBUILDER_API Predicate & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetOperator() const
Definition Predicate.h:89
Predicate & WithOperand(const char *value)
Definition Predicate.h:110
Predicate & WithField(Aws::String &&value)
Definition Predicate.h:81
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
Predicate & WithOperandType(const Aws::String &value)
Definition Predicate.h:122
void SetOperand(const char *value)
Definition Predicate.h:107
Predicate & WithOperand(const Aws::String &value)
Definition Predicate.h:108
Predicate & WithOperator(const char *value)
Definition Predicate.h:96
void SetOperand(const Aws::String &value)
Definition Predicate.h:105
Predicate & WithOperandType(Aws::String &&value)
Definition Predicate.h:123
Predicate & WithOperator(Aws::String &&value)
Definition Predicate.h:95
void SetOperandType(Aws::String &&value)
Definition Predicate.h:120
Predicate & WithOperand(Aws::String &&value)
Definition Predicate.h:109
Predicate & WithField(const char *value)
Definition Predicate.h:82
void SetAnd(Aws::Vector< Predicate > &&value)
Definition Predicate.h:64
const Aws::String & GetOperandType() const
Definition Predicate.h:117
Predicate & WithAnd(Aws::Vector< Predicate > &&value)
Definition Predicate.h:66
void SetOperand(Aws::String &&value)
Definition Predicate.h:106
Predicate & AddOr(const Predicate &value)
Definition Predicate.h:53
const Aws::Vector< Predicate > & GetOr() const
Definition Predicate.h:47
AWS_AMPLIFYUIBUILDER_API Predicate(Aws::Utils::Json::JsonView jsonValue)
Predicate & WithOperator(const Aws::String &value)
Definition Predicate.h:94
void SetField(Aws::String &&value)
Definition Predicate.h:78
void SetOperator(const Aws::String &value)
Definition Predicate.h:91
AWS_AMPLIFYUIBUILDER_API Predicate()
Predicate & WithAnd(const Aws::Vector< Predicate > &value)
Definition Predicate.h:65
const Aws::Vector< Predicate > & GetAnd() const
Definition Predicate.h:61
void SetOperandType(const Aws::String &value)
Definition Predicate.h:119
void SetField(const Aws::String &value)
Definition Predicate.h:77
void SetOperator(Aws::String &&value)
Definition Predicate.h:92
Predicate & AddAnd(Predicate &&value)
Definition Predicate.h:68
void SetOperandType(const char *value)
Definition Predicate.h:121
const Aws::String & GetField() const
Definition Predicate.h:75
void SetOr(Aws::Vector< Predicate > &&value)
Definition Predicate.h:50
Predicate & WithOperandType(const char *value)
Definition Predicate.h:124
Predicate & WithOr(const Aws::Vector< Predicate > &value)
Definition Predicate.h:51
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue