AWS SDK for C++

AWS SDK for C++ Version 1.11.691

Loading...
Searching...
No Matches
Predicate.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/glue/Glue_EXPORTS.h>
9#include <aws/glue/model/Condition.h>
10#include <aws/glue/model/Logical.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Glue {
22namespace Model {
23
30class Predicate {
31 public:
32 AWS_GLUE_API Predicate() = default;
33 AWS_GLUE_API Predicate(Aws::Utils::Json::JsonView jsonValue);
36
38
42 inline Logical GetLogical() const { return m_logical; }
43 inline bool LogicalHasBeenSet() const { return m_logicalHasBeenSet; }
44 inline void SetLogical(Logical value) {
45 m_logicalHasBeenSet = true;
46 m_logical = value;
47 }
48 inline Predicate& WithLogical(Logical value) {
49 SetLogical(value);
50 return *this;
51 }
53
55
58 inline const Aws::Vector<Condition>& GetConditions() const { return m_conditions; }
59 inline bool ConditionsHasBeenSet() const { return m_conditionsHasBeenSet; }
60 template <typename ConditionsT = Aws::Vector<Condition>>
61 void SetConditions(ConditionsT&& value) {
62 m_conditionsHasBeenSet = true;
63 m_conditions = std::forward<ConditionsT>(value);
64 }
65 template <typename ConditionsT = Aws::Vector<Condition>>
66 Predicate& WithConditions(ConditionsT&& value) {
67 SetConditions(std::forward<ConditionsT>(value));
68 return *this;
69 }
70 template <typename ConditionsT = Condition>
71 Predicate& AddConditions(ConditionsT&& value) {
72 m_conditionsHasBeenSet = true;
73 m_conditions.emplace_back(std::forward<ConditionsT>(value));
74 return *this;
75 }
77 private:
78 Logical m_logical{Logical::NOT_SET};
79 bool m_logicalHasBeenSet = false;
80
81 Aws::Vector<Condition> m_conditions;
82 bool m_conditionsHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace Glue
87} // namespace Aws
Logical GetLogical() const
Definition Predicate.h:42
AWS_GLUE_API Predicate & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ConditionsHasBeenSet() const
Definition Predicate.h:59
bool LogicalHasBeenSet() const
Definition Predicate.h:43
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLUE_API Predicate()=default
Predicate & WithConditions(ConditionsT &&value)
Definition Predicate.h:66
Predicate & WithLogical(Logical value)
Definition Predicate.h:48
void SetLogical(Logical value)
Definition Predicate.h:44
Predicate & AddConditions(ConditionsT &&value)
Definition Predicate.h:71
const Aws::Vector< Condition > & GetConditions() const
Definition Predicate.h:58
AWS_GLUE_API Predicate(Aws::Utils::Json::JsonView jsonValue)
void SetConditions(ConditionsT &&value)
Definition Predicate.h:61
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue