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/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();
38 AWS_GLUE_API Predicate(Aws::Utils::Json::JsonView jsonValue);
41
42
44
48 inline const Logical& GetLogical() const{ return m_logical; }
49 inline bool LogicalHasBeenSet() const { return m_logicalHasBeenSet; }
50 inline void SetLogical(const Logical& value) { m_logicalHasBeenSet = true; m_logical = value; }
51 inline void SetLogical(Logical&& value) { m_logicalHasBeenSet = true; m_logical = std::move(value); }
52 inline Predicate& WithLogical(const Logical& value) { SetLogical(value); return *this;}
53 inline Predicate& WithLogical(Logical&& value) { SetLogical(std::move(value)); return *this;}
55
57
60 inline const Aws::Vector<Condition>& GetConditions() const{ return m_conditions; }
61 inline bool ConditionsHasBeenSet() const { return m_conditionsHasBeenSet; }
62 inline void SetConditions(const Aws::Vector<Condition>& value) { m_conditionsHasBeenSet = true; m_conditions = value; }
63 inline void SetConditions(Aws::Vector<Condition>&& value) { m_conditionsHasBeenSet = true; m_conditions = std::move(value); }
64 inline Predicate& WithConditions(const Aws::Vector<Condition>& value) { SetConditions(value); return *this;}
65 inline Predicate& WithConditions(Aws::Vector<Condition>&& value) { SetConditions(std::move(value)); return *this;}
66 inline Predicate& AddConditions(const Condition& value) { m_conditionsHasBeenSet = true; m_conditions.push_back(value); return *this; }
67 inline Predicate& AddConditions(Condition&& value) { m_conditionsHasBeenSet = true; m_conditions.push_back(std::move(value)); return *this; }
69 private:
70
71 Logical m_logical;
72 bool m_logicalHasBeenSet = false;
73
74 Aws::Vector<Condition> m_conditions;
75 bool m_conditionsHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace Glue
80} // namespace Aws
Predicate & AddConditions(Condition &&value)
Definition Predicate.h:67
void SetConditions(Aws::Vector< Condition > &&value)
Definition Predicate.h:63
Predicate & WithConditions(Aws::Vector< Condition > &&value)
Definition Predicate.h:65
AWS_GLUE_API Predicate & operator=(Aws::Utils::Json::JsonView jsonValue)
Predicate & AddConditions(const Condition &value)
Definition Predicate.h:66
void SetConditions(const Aws::Vector< Condition > &value)
Definition Predicate.h:62
bool ConditionsHasBeenSet() const
Definition Predicate.h:61
void SetLogical(Logical &&value)
Definition Predicate.h:51
bool LogicalHasBeenSet() const
Definition Predicate.h:49
void SetLogical(const Logical &value)
Definition Predicate.h:50
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
Predicate & WithLogical(const Logical &value)
Definition Predicate.h:52
Predicate & WithConditions(const Aws::Vector< Condition > &value)
Definition Predicate.h:64
const Aws::Vector< Condition > & GetConditions() const
Definition Predicate.h:60
AWS_GLUE_API Predicate(Aws::Utils::Json::JsonView jsonValue)
const Logical & GetLogical() const
Definition Predicate.h:48
Predicate & WithLogical(Logical &&value)
Definition Predicate.h:53
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue