AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Expression.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/AttributeCondition.h>
9#include <aws/core/utils/memory/stl/AWSVector.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 Connect
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CONNECT_API Expression();
37 AWS_CONNECT_API Expression(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECT_API Expression& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const AttributeCondition& GetAttributeCondition() const{ return m_attributeCondition; }
47 inline bool AttributeConditionHasBeenSet() const { return m_attributeConditionHasBeenSet; }
48 inline void SetAttributeCondition(const AttributeCondition& value) { m_attributeConditionHasBeenSet = true; m_attributeCondition = value; }
49 inline void SetAttributeCondition(AttributeCondition&& value) { m_attributeConditionHasBeenSet = true; m_attributeCondition = std::move(value); }
50 inline Expression& WithAttributeCondition(const AttributeCondition& value) { SetAttributeCondition(value); return *this;}
51 inline Expression& WithAttributeCondition(AttributeCondition&& value) { SetAttributeCondition(std::move(value)); return *this;}
53
55
58 inline const Aws::Vector<Expression>& GetAndExpression() const{ return m_andExpression; }
59 inline bool AndExpressionHasBeenSet() const { return m_andExpressionHasBeenSet; }
60 inline void SetAndExpression(const Aws::Vector<Expression>& value) { m_andExpressionHasBeenSet = true; m_andExpression = value; }
61 inline void SetAndExpression(Aws::Vector<Expression>&& value) { m_andExpressionHasBeenSet = true; m_andExpression = std::move(value); }
62 inline Expression& WithAndExpression(const Aws::Vector<Expression>& value) { SetAndExpression(value); return *this;}
63 inline Expression& WithAndExpression(Aws::Vector<Expression>&& value) { SetAndExpression(std::move(value)); return *this;}
64 inline Expression& AddAndExpression(const Expression& value) { m_andExpressionHasBeenSet = true; m_andExpression.push_back(value); return *this; }
65 inline Expression& AddAndExpression(Expression&& value) { m_andExpressionHasBeenSet = true; m_andExpression.push_back(std::move(value)); return *this; }
67
69
72 inline const Aws::Vector<Expression>& GetOrExpression() const{ return m_orExpression; }
73 inline bool OrExpressionHasBeenSet() const { return m_orExpressionHasBeenSet; }
74 inline void SetOrExpression(const Aws::Vector<Expression>& value) { m_orExpressionHasBeenSet = true; m_orExpression = value; }
75 inline void SetOrExpression(Aws::Vector<Expression>&& value) { m_orExpressionHasBeenSet = true; m_orExpression = std::move(value); }
76 inline Expression& WithOrExpression(const Aws::Vector<Expression>& value) { SetOrExpression(value); return *this;}
77 inline Expression& WithOrExpression(Aws::Vector<Expression>&& value) { SetOrExpression(std::move(value)); return *this;}
78 inline Expression& AddOrExpression(const Expression& value) { m_orExpressionHasBeenSet = true; m_orExpression.push_back(value); return *this; }
79 inline Expression& AddOrExpression(Expression&& value) { m_orExpressionHasBeenSet = true; m_orExpression.push_back(std::move(value)); return *this; }
81 private:
82
83 AttributeCondition m_attributeCondition;
84 bool m_attributeConditionHasBeenSet = false;
85
86 Aws::Vector<Expression> m_andExpression;
87 bool m_andExpressionHasBeenSet = false;
88
89 Aws::Vector<Expression> m_orExpression;
90 bool m_orExpressionHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace Connect
95} // namespace Aws
void SetAttributeCondition(const AttributeCondition &value)
Definition Expression.h:48
Expression & AddOrExpression(Expression &&value)
Definition Expression.h:79
Expression & WithOrExpression(Aws::Vector< Expression > &&value)
Definition Expression.h:77
AWS_CONNECT_API Expression & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAndExpression(Aws::Vector< Expression > &&value)
Definition Expression.h:61
void SetOrExpression(Aws::Vector< Expression > &&value)
Definition Expression.h:75
Expression & AddAndExpression(const Expression &value)
Definition Expression.h:64
bool AttributeConditionHasBeenSet() const
Definition Expression.h:47
Expression & WithOrExpression(const Aws::Vector< Expression > &value)
Definition Expression.h:76
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
Expression & WithAttributeCondition(AttributeCondition &&value)
Definition Expression.h:51
Expression & WithAttributeCondition(const AttributeCondition &value)
Definition Expression.h:50
Expression & AddAndExpression(Expression &&value)
Definition Expression.h:65
const AttributeCondition & GetAttributeCondition() const
Definition Expression.h:46
Expression & WithAndExpression(Aws::Vector< Expression > &&value)
Definition Expression.h:63
Expression & WithAndExpression(const Aws::Vector< Expression > &value)
Definition Expression.h:62
void SetAndExpression(const Aws::Vector< Expression > &value)
Definition Expression.h:60
void SetAttributeCondition(AttributeCondition &&value)
Definition Expression.h:49
Expression & AddOrExpression(const Expression &value)
Definition Expression.h:78
const Aws::Vector< Expression > & GetOrExpression() const
Definition Expression.h:72
const Aws::Vector< Expression > & GetAndExpression() const
Definition Expression.h:58
void SetOrExpression(const Aws::Vector< Expression > &value)
Definition Expression.h:74
AWS_CONNECT_API Expression(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue