AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Condition.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/pinpoint/model/Operator.h>
10#include <aws/pinpoint/model/SimpleCondition.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 Pinpoint
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_PINPOINT_API Condition();
38 AWS_PINPOINT_API Condition(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PINPOINT_API Condition& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<SimpleCondition>& GetConditions() const{ return m_conditions; }
48 inline bool ConditionsHasBeenSet() const { return m_conditionsHasBeenSet; }
49 inline void SetConditions(const Aws::Vector<SimpleCondition>& value) { m_conditionsHasBeenSet = true; m_conditions = value; }
50 inline void SetConditions(Aws::Vector<SimpleCondition>&& value) { m_conditionsHasBeenSet = true; m_conditions = std::move(value); }
51 inline Condition& WithConditions(const Aws::Vector<SimpleCondition>& value) { SetConditions(value); return *this;}
52 inline Condition& WithConditions(Aws::Vector<SimpleCondition>&& value) { SetConditions(std::move(value)); return *this;}
53 inline Condition& AddConditions(const SimpleCondition& value) { m_conditionsHasBeenSet = true; m_conditions.push_back(value); return *this; }
54 inline Condition& AddConditions(SimpleCondition&& value) { m_conditionsHasBeenSet = true; m_conditions.push_back(std::move(value)); return *this; }
56
58
63 inline const Operator& GetOperator() const{ return m_operator; }
64 inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
65 inline void SetOperator(const Operator& value) { m_operatorHasBeenSet = true; m_operator = value; }
66 inline void SetOperator(Operator&& value) { m_operatorHasBeenSet = true; m_operator = std::move(value); }
67 inline Condition& WithOperator(const Operator& value) { SetOperator(value); return *this;}
68 inline Condition& WithOperator(Operator&& value) { SetOperator(std::move(value)); return *this;}
70 private:
71
73 bool m_conditionsHasBeenSet = false;
74
75 Operator m_operator;
76 bool m_operatorHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace Pinpoint
81} // namespace Aws
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
const Operator & GetOperator() const
Definition Condition.h:63
void SetOperator(const Operator &value)
Definition Condition.h:65
AWS_PINPOINT_API Condition & operator=(Aws::Utils::Json::JsonView jsonValue)
Condition & WithOperator(const Operator &value)
Definition Condition.h:67
Condition & AddConditions(const SimpleCondition &value)
Definition Condition.h:53
void SetConditions(const Aws::Vector< SimpleCondition > &value)
Definition Condition.h:49
const Aws::Vector< SimpleCondition > & GetConditions() const
Definition Condition.h:47
Condition & AddConditions(SimpleCondition &&value)
Definition Condition.h:54
AWS_PINPOINT_API Condition(Aws::Utils::Json::JsonView jsonValue)
void SetConditions(Aws::Vector< SimpleCondition > &&value)
Definition Condition.h:50
void SetOperator(Operator &&value)
Definition Condition.h:66
Condition & WithConditions(const Aws::Vector< SimpleCondition > &value)
Definition Condition.h:51
Condition & WithOperator(Operator &&value)
Definition Condition.h:68
AWS_PINPOINT_API Condition()
Condition & WithConditions(Aws::Vector< SimpleCondition > &&value)
Definition Condition.h:52
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue