AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RuleNumberExpression.h
1
6#pragma once
7#include <aws/mailmanager/MailManager_EXPORTS.h>
8#include <aws/mailmanager/model/RuleNumberToEvaluate.h>
9#include <aws/mailmanager/model/RuleNumberOperator.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 MailManager
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_MAILMANAGER_API RuleNumberExpression();
37 AWS_MAILMANAGER_API RuleNumberExpression(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const RuleNumberToEvaluate& GetEvaluate() const{ return m_evaluate; }
47 inline bool EvaluateHasBeenSet() const { return m_evaluateHasBeenSet; }
48 inline void SetEvaluate(const RuleNumberToEvaluate& value) { m_evaluateHasBeenSet = true; m_evaluate = value; }
49 inline void SetEvaluate(RuleNumberToEvaluate&& value) { m_evaluateHasBeenSet = true; m_evaluate = std::move(value); }
50 inline RuleNumberExpression& WithEvaluate(const RuleNumberToEvaluate& value) { SetEvaluate(value); return *this;}
51 inline RuleNumberExpression& WithEvaluate(RuleNumberToEvaluate&& value) { SetEvaluate(std::move(value)); return *this;}
53
55
58 inline const RuleNumberOperator& GetOperator() const{ return m_operator; }
59 inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
60 inline void SetOperator(const RuleNumberOperator& value) { m_operatorHasBeenSet = true; m_operator = value; }
61 inline void SetOperator(RuleNumberOperator&& value) { m_operatorHasBeenSet = true; m_operator = std::move(value); }
62 inline RuleNumberExpression& WithOperator(const RuleNumberOperator& value) { SetOperator(value); return *this;}
63 inline RuleNumberExpression& WithOperator(RuleNumberOperator&& value) { SetOperator(std::move(value)); return *this;}
65
67
70 inline double GetValue() const{ return m_value; }
71 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
72 inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
73 inline RuleNumberExpression& WithValue(double value) { SetValue(value); return *this;}
75 private:
76
77 RuleNumberToEvaluate m_evaluate;
78 bool m_evaluateHasBeenSet = false;
79
80 RuleNumberOperator m_operator;
81 bool m_operatorHasBeenSet = false;
82
83 double m_value;
84 bool m_valueHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace MailManager
89} // namespace Aws
AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
RuleNumberExpression & WithEvaluate(RuleNumberToEvaluate &&value)
const RuleNumberOperator & GetOperator() const
RuleNumberExpression & WithOperator(RuleNumberOperator &&value)
void SetOperator(const RuleNumberOperator &value)
RuleNumberExpression & WithEvaluate(const RuleNumberToEvaluate &value)
RuleNumberExpression & WithOperator(const RuleNumberOperator &value)
const RuleNumberToEvaluate & GetEvaluate() const
void SetEvaluate(RuleNumberToEvaluate &&value)
AWS_MAILMANAGER_API RuleNumberExpression(Aws::Utils::Json::JsonView jsonValue)
AWS_MAILMANAGER_API RuleNumberExpression & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEvaluate(const RuleNumberToEvaluate &value)
RuleNumberExpression & WithValue(double value)
Aws::Utils::Json::JsonValue JsonValue