AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RuleVerdictExpression.h
1
6#pragma once
7#include <aws/mailmanager/MailManager_EXPORTS.h>
8#include <aws/mailmanager/model/RuleVerdictToEvaluate.h>
9#include <aws/mailmanager/model/RuleVerdictOperator.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/mailmanager/model/RuleVerdict.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace MailManager
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_MAILMANAGER_API RuleVerdictExpression();
39 AWS_MAILMANAGER_API RuleVerdictExpression(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const RuleVerdictToEvaluate& GetEvaluate() const{ return m_evaluate; }
49 inline bool EvaluateHasBeenSet() const { return m_evaluateHasBeenSet; }
50 inline void SetEvaluate(const RuleVerdictToEvaluate& value) { m_evaluateHasBeenSet = true; m_evaluate = value; }
51 inline void SetEvaluate(RuleVerdictToEvaluate&& value) { m_evaluateHasBeenSet = true; m_evaluate = std::move(value); }
52 inline RuleVerdictExpression& WithEvaluate(const RuleVerdictToEvaluate& value) { SetEvaluate(value); return *this;}
53 inline RuleVerdictExpression& WithEvaluate(RuleVerdictToEvaluate&& value) { SetEvaluate(std::move(value)); return *this;}
55
57
60 inline const RuleVerdictOperator& GetOperator() const{ return m_operator; }
61 inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
62 inline void SetOperator(const RuleVerdictOperator& value) { m_operatorHasBeenSet = true; m_operator = value; }
63 inline void SetOperator(RuleVerdictOperator&& value) { m_operatorHasBeenSet = true; m_operator = std::move(value); }
64 inline RuleVerdictExpression& WithOperator(const RuleVerdictOperator& value) { SetOperator(value); return *this;}
65 inline RuleVerdictExpression& WithOperator(RuleVerdictOperator&& value) { SetOperator(std::move(value)); return *this;}
67
69
76 inline const Aws::Vector<RuleVerdict>& GetValues() const{ return m_values; }
77 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
78 inline void SetValues(const Aws::Vector<RuleVerdict>& value) { m_valuesHasBeenSet = true; m_values = value; }
79 inline void SetValues(Aws::Vector<RuleVerdict>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
80 inline RuleVerdictExpression& WithValues(const Aws::Vector<RuleVerdict>& value) { SetValues(value); return *this;}
81 inline RuleVerdictExpression& WithValues(Aws::Vector<RuleVerdict>&& value) { SetValues(std::move(value)); return *this;}
82 inline RuleVerdictExpression& AddValues(const RuleVerdict& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
83 inline RuleVerdictExpression& AddValues(RuleVerdict&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
85 private:
86
87 RuleVerdictToEvaluate m_evaluate;
88 bool m_evaluateHasBeenSet = false;
89
90 RuleVerdictOperator m_operator;
91 bool m_operatorHasBeenSet = false;
92
94 bool m_valuesHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace MailManager
99} // namespace Aws
RuleVerdictExpression & AddValues(const RuleVerdict &value)
void SetOperator(const RuleVerdictOperator &value)
AWS_MAILMANAGER_API RuleVerdictExpression(Aws::Utils::Json::JsonView jsonValue)
void SetEvaluate(const RuleVerdictToEvaluate &value)
RuleVerdictExpression & AddValues(RuleVerdict &&value)
const RuleVerdictToEvaluate & GetEvaluate() const
RuleVerdictExpression & WithValues(const Aws::Vector< RuleVerdict > &value)
void SetValues(Aws::Vector< RuleVerdict > &&value)
RuleVerdictExpression & WithEvaluate(const RuleVerdictToEvaluate &value)
AWS_MAILMANAGER_API RuleVerdictExpression & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< RuleVerdict > & GetValues() const
RuleVerdictExpression & WithEvaluate(RuleVerdictToEvaluate &&value)
RuleVerdictExpression & WithOperator(RuleVerdictOperator &&value)
RuleVerdictExpression & WithOperator(const RuleVerdictOperator &value)
const RuleVerdictOperator & GetOperator() const
RuleVerdictExpression & WithValues(Aws::Vector< RuleVerdict > &&value)
void SetEvaluate(RuleVerdictToEvaluate &&value)
AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetValues(const Aws::Vector< RuleVerdict > &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue