AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Predicate.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/glue/model/Logical.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/glue/model/Condition.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Glue
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_GLUE_API Predicate() = default;
38 AWS_GLUE_API Predicate(Aws::Utils::Json::JsonView jsonValue);
41
42
44
48 inline Logical GetLogical() const { return m_logical; }
49 inline bool LogicalHasBeenSet() const { return m_logicalHasBeenSet; }
50 inline void SetLogical(Logical value) { m_logicalHasBeenSet = true; m_logical = value; }
51 inline Predicate& WithLogical(Logical value) { SetLogical(value); return *this;}
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) { m_conditionsHasBeenSet = true; m_conditions = std::forward<ConditionsT>(value); }
62 template<typename ConditionsT = Aws::Vector<Condition>>
63 Predicate& WithConditions(ConditionsT&& value) { SetConditions(std::forward<ConditionsT>(value)); return *this;}
64 template<typename ConditionsT = Condition>
65 Predicate& AddConditions(ConditionsT&& value) { m_conditionsHasBeenSet = true; m_conditions.emplace_back(std::forward<ConditionsT>(value)); return *this; }
67 private:
68
69 Logical m_logical{Logical::NOT_SET};
70 bool m_logicalHasBeenSet = false;
71
72 Aws::Vector<Condition> m_conditions;
73 bool m_conditionsHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace Glue
78} // namespace Aws
Logical GetLogical() const
Definition Predicate.h:48
AWS_GLUE_API Predicate & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ConditionsHasBeenSet() const
Definition Predicate.h:59
bool LogicalHasBeenSet() const
Definition Predicate.h:49
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLUE_API Predicate()=default
Predicate & WithConditions(ConditionsT &&value)
Definition Predicate.h:63
Predicate & WithLogical(Logical value)
Definition Predicate.h:51
void SetLogical(Logical value)
Definition Predicate.h:50
Predicate & AddConditions(ConditionsT &&value)
Definition Predicate.h:65
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